:root {
  --ost-black: #191919;
  --ost-brombeer: #8c195f;
  --ost-himbeer: #d72864;
  --ost-hellpink: #f087b0;
  --ost-grau: #878786;
  --ost-hellgrau: #c6c6c5;
  --ost-dunkelrot: #c32e15;
  --ost-rot: #e84d0e;
  --ost-hellrot: #f39a8b;
  --ost-dunkelorange: #d18e00;
  --ost-orange: #fbb900;
  --ost-hellorange: #fcd6ae;
  --ost-dunkelgruen: #007e6b;
  --ost-gruen: #1cae8d;
  --ost-hellgruen: #a7d5c2;
  --ost-dunkelblau: #0072af;
  --ost-blau: #0085cd;
  --ost-hellblau: #5fbfed;
  --ost-dunkelviolett: #6b3881;
  --ost-violett: #945fa4;
  --ost-hellviolett: #d0a9d0;
  --bg: #f7f7f7;
  --paper: rgba(255, 255, 255, 0.9);
  --panel: rgba(255, 255, 255, 0.96);
  --line: rgba(25, 25, 25, 0.12);
  --text: var(--ost-black);
  --muted: #666666;
  --ink-soft: #3b3b3b;
  --water: var(--ost-dunkelblau);
  --water-soft: var(--ost-hellblau);
  --climate: var(--ost-himbeer);
  --tree: var(--ost-dunkelgruen);
  --salt: var(--ost-violett);
  --seepage: var(--ost-orange);
  --shadow: 0 22px 45px rgba(25, 25, 25, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --heading-font: "Adelle Sans", Arial, Helvetica, sans-serif;
  --body-font: "Adelle Sans", Arial, Helvetica, sans-serif;
  --serif-font: "Adelle PE", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(215, 40, 100, 0.14), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(140, 25, 95, 0.12), transparent 20rem),
    linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

body::after {
  width: min(36vw, 470px);
  aspect-ratio: 408 / 316;
  top: 8.8rem;
  right: min(14vw, 15rem);
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(140, 25, 95, 0.88) 0 44%, rgba(215, 40, 100, 0.88) 44% 100%);
  box-shadow: 0 22px 50px rgba(140, 25, 95, 0.18);
  -webkit-mask: url("./assets/ost-niere-mask.svg") center / contain no-repeat;
  mask: url("./assets/ost-niere-mask.svg") center / contain no-repeat;
  opacity: 0.76;
}

button,
a {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.hero,
.map-card,
.sensor-panel,
.dashboard-section,
.info-card,
.system-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero {
  padding: 1.2rem 1.2rem 2rem;
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(circle at 0 0, rgba(240, 135, 176, 0.22), transparent 16rem),
    linear-gradient(140deg, rgba(255, 255, 255, 0.97), rgba(247, 247, 247, 0.92));
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-copy {
  min-width: 0;
}

.brand-lockup p,
.section-heading p,
.panel-kicker,
.panel-label,
.card-kicker,
.section-kicker,
.map-title,
.map-subtitle,
.sensor-meta-line,
.hero-kicker,
.eyebrow {
  margin: 0;
}

.eyebrow,
.hero-kicker,
.panel-label,
.card-kicker,
.section-kicker,
.panel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.73rem;
  color: var(--muted);
}

.eyebrow,
.hero-kicker {
  font-family: var(--serif-font);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ost-brombeer);
}

.brand-title {
  margin-top: 0.2rem;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(25, 25, 25, 0.1);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.4rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  padding: 1.6rem;
  border-radius: var(--radius-xl);
}

.hero-copy {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 247, 247, 0.88));
  border: 1px solid rgba(25, 25, 25, 0.08);
}

.hero-copy h1 {
  margin: 0.4rem 0 1rem;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero-text {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ost-brombeer), var(--ost-himbeer));
  box-shadow: 0 12px 24px rgba(140, 25, 95, 0.24);
}

.button-secondary {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(25, 25, 25, 0.14);
}

.button.wide {
  width: 100%;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.hero-facts div {
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(25, 25, 25, 0.08);
}

.hero-facts dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero-facts dd {
  margin: 0.55rem 0 0;
  font-size: 1rem;
  line-height: 1.35;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(215, 40, 100, 0.95) 0 0.42rem, transparent 0.42rem),
    radial-gradient(circle at 100% 0%, rgba(215, 40, 100, 0.36), transparent 14rem),
    linear-gradient(180deg, #191919, #2b1022 72%, #5b0f42);
  color: #ffffff;
  min-height: 100%;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: min(112%, 35rem);
  aspect-ratio: 408 / 316;
  right: -40%;
  top: -9%;
  background:
    linear-gradient(120deg, rgba(215, 40, 100, 0.24), rgba(140, 25, 95, 0.05)),
    rgba(255, 255, 255, 0.06);
  -webkit-mask: url("./assets/ost-niere-mask.svg") center / contain no-repeat;
  mask: url("./assets/ost-niere-mask.svg") center / contain no-repeat;
  transform: rotate(-11deg);
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.focus-list {
  padding-left: 1.1rem;
  margin: 1rem 0 1.6rem;
  display: grid;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.partner-cloud {
  display: grid;
  gap: 0.7rem;
}

.partner-cloud-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.partner-logo-card {
  min-height: 5.2rem;
  margin: 0;
  padding: 0.68rem;
  display: grid;
  grid-template-rows: minmax(2.6rem, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 0.44rem;
  border-radius: calc(var(--radius-sm) - 0.28rem);
  border: 1px solid rgba(25, 25, 25, 0.06);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(25, 25, 25, 0.12);
  color: var(--ost-black);
}

.partner-logo-card img {
  display: block;
  max-width: 100%;
  max-height: 2.5rem;
  object-fit: contain;
}

.partner-logo-link {
  display: grid;
  width: 100%;
  min-height: 2.6rem;
  align-items: center;
  justify-items: center;
  border-radius: calc(var(--radius-sm) - 0.45rem);
  outline-offset: 0.18rem;
}

.partner-logo-link:hover img {
  transform: translateY(-1px);
}

.partner-logo-link img {
  transition: transform 160ms ease;
}

.partner-logo-card.is-wide img {
  max-height: 2.1rem;
}

.partner-logo-card.is-lead-logo img {
  max-height: 2rem;
}

.partner-logo-card.is-ost-logo img {
  max-height: 2.55rem;
}

.partner-logo-card.is-mark img {
  max-height: 2.75rem;
}

.partner-logo-card figcaption,
.partner-text-card span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
}

.partner-text-card {
  align-content: center;
  grid-template-rows: auto auto;
  background:
    linear-gradient(90deg, var(--ost-himbeer) 0 0.34rem, transparent 0.34rem),
    #ffffff;
}

.partner-text-card.is-lead {
  background:
    linear-gradient(90deg, var(--ost-dunkelgruen) 0 0.34rem, transparent 0.34rem),
    #ffffff;
}

.partner-text-card strong {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

main {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.info-strip,
.system-grid,
.map-layout {
  display: grid;
  gap: 1rem;
}

.info-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-link-strip {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(0, 126, 107, 0.14) 0 0.34rem, transparent 0.34rem),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(25, 25, 25, 0.08);
  box-shadow: var(--shadow);
}

.project-link-strip p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.project-link-strip a {
  color: var(--ost-dunkelblau);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.info-card,
.system-card,
.sensor-panel,
.dashboard-section,
.map-card {
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.info-card,
.system-card {
  padding: 1.35rem;
}

.info-card h2,
.system-card h3,
.dashboard-header h2,
.section-heading h2,
.sensor-panel h3 {
  margin: 0.28rem 0 0.65rem;
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.section-heading {
  display: grid;
  gap: 0.2rem;
  max-width: 50rem;
}

.section-heading + .system-grid,
.section-heading + .map-layout {
  margin-top: 1rem;
}

.system-section {
  padding: 0.3rem 0;
}

.system-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.map-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.7fr);
  align-items: start;
}

.map-card {
  padding: 1.15rem;
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.map-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.map-subtitle {
  margin-top: 0.25rem;
  color: var(--muted);
}

.legend {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: end;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
  color: var(--ink-soft);
  border: 1px solid rgba(25, 25, 25, 0.08);
}

.legend-item::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
}

.legend-item.water::before {
  background: var(--water);
}

.legend-item.climate::before {
  background: var(--climate);
}

.legend-item.tree::before {
  background: var(--tree);
}

.legend-item.seepage::before {
  background: var(--seepage);
}

.site-map {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 0.2rem);
  border: 1px solid rgba(25, 25, 25, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  aspect-ratio: 16 / 9;
}

.site-map svg,
.interactive-map {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.interactive-map {
  position: absolute;
  inset: 0;
}

.sensor-marker-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.map-finish {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, rgba(198, 198, 197, 0.08), rgba(240, 135, 176, 0.05));
  pointer-events: none;
}

.sensor-node {
  position: absolute;
  width: 3.1rem;
  height: 3.1rem;
  margin: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(25, 25, 25, 0.18);
  transition: box-shadow 160ms ease, outline-color 160ms ease;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  touch-action: none;
}

.interactive-map.is-layout-edit .sensor-node.is-draggable {
  cursor: grab;
}

.interactive-map.is-layout-edit .sensor-node.is-draggable:active {
  cursor: grabbing;
}

.sensor-node::after {
  content: "";
  position: absolute;
  inset: -0.38rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.sensor-node:hover,
.sensor-node:focus-visible,
.sensor-node.is-active {
  box-shadow: 0 16px 34px rgba(25, 25, 25, 0.28);
}

.sensor-node:focus-visible {
  outline: 3px solid rgba(215, 40, 100, 0.42);
  outline-offset: 3px;
}

.sensor-node .node-code {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.sensor-node .node-pulse {
  position: absolute;
  inset: -0.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.36);
  animation: pulseRing 2.6s ease-out infinite;
}

.maplibregl-marker {
  z-index: 5;
}

.maplibregl-ctrl-bottom-right {
  bottom: 0.45rem;
  right: 0.45rem;
}

.maplibregl-ctrl.maplibregl-ctrl-attrib {
  font-family: var(--body-font);
  font-size: 0.62rem;
  line-height: 1.2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(25, 25, 25, 0.08);
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.78;
}

.maplibregl-ctrl-attrib-button,
.maplibregl-ctrl-attrib a,
.maplibregl-ctrl-attrib-inner {
  font-size: 0.62rem;
}

.sensor-panel {
  padding: 1.35rem;
  position: sticky;
  top: 1rem;
}

.sensor-panel h3 {
  font-size: 2rem;
}

.sensor-meta-line {
  color: var(--muted);
  font-size: 0.98rem;
}

.sensor-description {
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 1rem 0 1.2rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-card {
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(247, 247, 247, 0.9);
  border: 1px solid rgba(25, 25, 25, 0.08);
}

.stat-card .label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.stat-card .value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
}

.sensor-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.sensor-tags span,
.status-pill {
  border-radius: 999px;
  padding: 0.54rem 0.8rem;
  font-size: 0.84rem;
}

.sensor-tags span {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(25, 25, 25, 0.08);
}

.architecture-callout {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(25, 25, 25, 0.08);
}

.architecture-callout p:last-child {
  margin: 0.4rem 0 0;
  line-height: 1.65;
  color: var(--ink-soft);
}

.sensor-browser {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(25, 25, 25, 0.08);
}

.browser-header {
  margin-bottom: 0.8rem;
}

.sensor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.sensor-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem;
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.sensor-list-item:hover,
.sensor-list-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(140, 25, 95, 0.24);
  box-shadow: 0 12px 24px rgba(140, 25, 95, 0.1);
}

.sensor-color-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  display: inline-block;
}

.sensor-list-copy {
  display: grid;
  gap: 0.18rem;
}

.sensor-list-copy strong {
  font-size: 0.96rem;
}

.sensor-list-copy span {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.4;
}

.sensor-status {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.sensor-stack {
  margin-bottom: 1rem;
}

.system-card.compact {
  padding: 1rem;
}

.system-card.compact p:last-child {
  margin: 0.4rem 0 0;
  line-height: 1.6;
  color: var(--ink-soft);
}

.dashboard-section {
  padding: 1.25rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.dashboard-header h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 0.95;
}

.dashboard-header p:last-child {
  max-width: 56ch;
  line-height: 1.65;
  color: var(--ink-soft);
}

.dashboard-status {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: end;
}

.status-pill {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ost-brombeer), var(--ost-himbeer));
}

.status-pill.muted {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(25, 25, 25, 0.08);
}

.dashboard-disclaimer {
  margin-bottom: 0.8rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(25, 25, 25, 0.08);
}

.dashboard-disclaimer p {
  margin: 0;
}

.dashboard-disclaimer p:last-child {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.impact-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(0, 126, 107, 0.14) 0 0.34rem, transparent 0.34rem),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(25, 25, 25, 0.08);
}

.impact-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
}

.impact-card strong {
  display: block;
  margin-top: 0.42rem;
  font-size: 1.75rem;
  line-height: 1;
}

.impact-card p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.chart-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.9));
  border: 1px solid rgba(25, 25, 25, 0.08);
}

.chart-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.7rem;
}

.chart-card h3,
.chart-card p {
  margin: 0;
}

.chart-card h3 {
  font-size: 1.08rem;
}

.chart-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.chart-frame {
  width: 100%;
  height: 240px;
  border-radius: calc(var(--radius-md) - 0.1rem);
  background:
    linear-gradient(180deg, rgba(198, 198, 197, 0.28), rgba(255, 255, 255, 0.45));
  overflow: hidden;
}

.chart-card:has(.heat-scale) .chart-frame {
  height: 270px;
}

.chart-frame svg {
  display: block;
  width: 100%;
  height: 100%;
}

.axis-label {
  fill: #666666;
  font-size: 12px;
}

.axis-title {
  font-weight: 600;
}

.axis-tick {
  stroke: rgba(25, 25, 25, 0.28);
  stroke-width: 1;
}

.axis-tick-label {
  font-size: 10px;
}

.grid-line {
  stroke: rgba(255, 255, 255, 0.84);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke-width: 2.4;
}

.chart-area {
  opacity: 0.18;
}

.bar {
  fill: rgba(95, 191, 237, 0.88);
}

.bar.soft {
  fill: rgba(167, 213, 194, 0.6);
}

.chart-note {
  fill: #666666;
  font-size: 11px;
}

.surface-a {
  stroke: var(--ost-rot);
}

.surface-b {
  stroke: var(--ost-orange);
}

.line-water {
  stroke: var(--ost-dunkelblau);
}

.line-climate {
  stroke: var(--ost-himbeer);
}

.line-tree {
  stroke: var(--ost-dunkelgruen);
}

.line-pink {
  stroke: var(--ost-hellpink);
}

.line-black {
  stroke: var(--ost-black);
}

.line-orange {
  stroke: var(--ost-orange);
}

.line-salt {
  stroke: var(--ost-violett);
}

.heat-cell {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 0.7;
}

@keyframes pulseRing {
  0% {
    opacity: 0.8;
    transform: scale(0.84);
  }

  70% {
    opacity: 0;
    transform: scale(1.22);
  }

  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@media (max-width: 1180px) {
  .hero-grid,
  .map-layout,
  .system-grid,
  .info-strip,
  .impact-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .map-toolbar {
    flex-direction: column;
  }

  .legend,
  .dashboard-status {
    justify-content: start;
  }

  .sensor-panel {
    position: static;
  }

  .sensor-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
  }

  .hero {
    padding: 0.8rem 0.8rem 1rem;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .hero-copy,
  .hero-panel,
  .map-card,
  .sensor-panel,
  .dashboard-section {
    padding: 1rem;
  }

  .hero-facts,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .sensor-node {
    width: 2.8rem;
    height: 2.8rem;
    margin-left: -1.4rem;
    margin-top: -1.4rem;
    font-size: 0.9rem;
  }

  .chart-frame {
    height: 210px;
  }
}
