:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-soft: #eef4f5;
  --ink: #172129;
  --muted: #60717c;
  --line: #d7e2e5;
  --brand: #d91f2f;
  --brand-dark: #a71320;
  --blue: #177a9c;
  --green: #2a8f6b;
  --yellow: #f2c84b;
  --orange: #f07b35;
  --red: #d93932;
  --violet: #7b4bb4;
  --shadow: 0 18px 50px rgba(23, 33, 41, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body.dark {
  color-scheme: dark;
  --bg: #11181d;
  --surface: #182228;
  --surface-soft: #202d34;
  --ink: #edf4f6;
  --muted: #a6b7c0;
  --line: #2c3c44;
  --shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(217, 31, 47, .22);
  overflow: hidden;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 6px;
}

.nav a {
  min-height: 40px;
  padding: 11px 14px;
  color: var(--muted);
  border-radius: 8px;
}

.nav a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.admin-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.admin-entry:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.admin-entry span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: .78rem;
}

.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-btn.filled {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, .55fr);
  gap: clamp(18px, 3vw, 34px);
  min-height: calc(100vh - 72px);
  padding: clamp(34px, 6vw, 76px) clamp(16px, 4vw, 48px) 38px;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(23, 122, 156, .15), transparent 46%),
    linear-gradient(158deg, rgba(217, 31, 47, .12), transparent 42%),
    var(--bg);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 860px;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px 12px 12px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow);
}

.hero-logo-mark {
  display: block;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(217, 31, 47, .22);
  overflow: hidden;
}

.hero-logo-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-logo strong,
.hero-logo small {
  display: block;
}

.hero-logo strong {
  font-size: 1.38rem;
  line-height: 1.05;
}

.hero-logo small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: .95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.15rem;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions,
.controls,
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.secondary-action,
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.primary-action {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  font-weight: 800;
}

.primary-action:hover,
.icon-btn.filled:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.primary-action:disabled {
  cursor: default;
  opacity: .68;
}

.secondary-action,
.filter-btn {
  background: var(--surface);
  color: var(--ink);
}

.ghost-inline {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--ink);
  color: var(--surface);
}

.storm-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.storm-visual::before {
  content: "";
  position: absolute;
  right: -8vw;
  top: 9vh;
  width: 58vw;
  height: 58vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 31, 47, .20), transparent 28%),
    repeating-conic-gradient(from 18deg, rgba(23, 122, 156, .22) 0 12deg, rgba(255, 255, 255, .18) 12deg 22deg);
  animation: spin 24s linear infinite;
}

.rain {
  position: absolute;
  inset: -40px;
  opacity: .26;
  background-image: repeating-linear-gradient(110deg, transparent 0 18px, rgba(23, 122, 156, .45) 18px 20px, transparent 20px 38px);
}

.rain-a {
  animation: rain 12s linear infinite;
}

.rain-b {
  opacity: .14;
  animation: rain 18s linear infinite reverse;
}

.bolt {
  position: absolute;
  left: 52%;
  top: 22%;
  width: 90px;
  height: 150px;
  clip-path: polygon(44% 0, 82% 0, 59% 38%, 88% 38%, 28% 100%, 43% 53%, 18% 53%);
  background: #f9d85b;
  filter: drop-shadow(0 0 20px rgba(249, 216, 91, .6));
  opacity: .8;
}

.radar-ring {
  position: absolute;
  right: 12vw;
  top: 32vh;
  width: 180px;
  height: 180px;
  border: 2px solid rgba(23, 122, 156, .22);
  border-radius: 50%;
  animation: pulseRing 4s ease-out infinite;
}

.ring-b {
  animation-delay: 1.2s;
}

.ring-c {
  animation-delay: 2.4s;
}

.status-panel,
.detail-panel,
.module,
.search-card {
  position: relative;
  min-width: 0;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.status-panel {
  align-self: end;
  padding: 18px;
}

.status-head,
.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.pulse {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(217, 57, 50, .16);
}

.stats-grid,
.mini-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.stats-grid div,
.mini-data div {
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
}

dt {
  color: var(--muted);
  font-size: .82rem;
}

dd {
  margin: 6px 0 0;
  font-weight: 900;
  font-size: 1.5rem;
}

.source-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.source-note[data-mode="dwd"] {
  color: var(--green);
  font-weight: 800;
}

.source-note[data-mode="unavailable"] {
  color: var(--orange);
  font-weight: 800;
}

.source-note[data-mode="loading"] {
  color: var(--blue);
  font-weight: 800;
}

.dashboard-band,
.workbench,
.data-grid,
.ticker-band,
.feature-preview,
.live-modules,
.app-band {
  padding: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 48px);
}

.dashboard-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.alert-strip {
  display: flex;
  gap: 14px;
  min-height: 118px;
  padding: 18px;
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  background: var(--surface-soft);
}

.alert-strip p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.alert-icon {
  flex: 0 0 auto;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 900;
}

.level-1 {
  --level: var(--yellow);
}

.level-0 {
  --level: var(--green);
}

.level-2 {
  --level: var(--orange);
}

.level-3 {
  --level: var(--red);
}

.level-4 {
  --level: var(--violet);
}

.alert-strip.level-0,
.alert-strip.level-1,
.alert-strip.level-2,
.alert-strip.level-3,
.alert-strip.level-4 {
  border-left-color: var(--level);
}

.alert-strip:only-child {
  grid-column: 1 / -1;
}

.section-title {
  margin-bottom: 22px;
}

.workbench {
  background: var(--bg);
}

.controls {
  margin-bottom: 18px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
}

.map-shell {
  min-height: 620px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.germany-map {
  display: block;
  width: 100%;
  height: min(72vh, 600px);
  min-height: 480px;
}

.country {
  fill: #e9f0ed;
  stroke: #ffffff;
  stroke-width: 4;
}

.state {
  cursor: pointer;
  stroke: #ffffff;
  stroke-width: 3;
  transition: transform .2s ease, opacity .2s ease, filter .2s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.state:hover,
.state.is-selected {
  transform: scale(1.025);
  filter: drop-shadow(0 10px 12px rgba(23, 33, 41, .22));
}

.state.is-muted {
  opacity: .24;
}

.state.level-0,
.swatch.level-0 {
  fill: #cfe4de;
  background: #cfe4de;
}

.state.level-1,
.swatch.level-1 {
  fill: var(--yellow);
  background: var(--yellow);
}

.state.level-2,
.swatch.level-2 {
  fill: var(--orange);
  background: var(--orange);
}

.state.level-3,
.swatch.level-3 {
  fill: var(--red);
  background: var(--red);
}

.state.level-4,
.swatch.level-4 {
  fill: var(--violet);
  background: var(--violet);
}

.radar-sweep {
  stroke: rgba(23, 122, 156, .5);
  stroke-width: 42;
  stroke-linecap: round;
  stroke-dasharray: 55 22;
  animation: dash 7s linear infinite;
}

.city {
  fill: #11181d;
  stroke: white;
  stroke-width: 3;
}

.city-label {
  fill: #11181d;
  font-size: 15px;
  font-weight: 800;
}

.legend {
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: .9rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.detail-panel {
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.severity {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--level);
  color: white;
  font-weight: 900;
}

.check-list {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.full {
  width: 100%;
}

.data-grid {
  display: grid;
  grid-template-columns: 1.15fr .9fr .95fr;
  gap: 18px;
  background: var(--surface);
}

.data-grid > *,
.map-layout > *,
.ticker-layout > *,
.feature-grid > * {
  min-width: 0;
}

.module {
  padding: 20px;
}

.module h2 {
  font-size: 1.25rem;
}

.module-head span {
  color: var(--muted);
  font-weight: 800;
}

.radar-box {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  width: 100%;
  min-width: 0;
  height: 230px;
  padding: 12px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    #16242c;
  background-size: 28px 28px;
}

.cell {
  border-radius: 999px;
  align-self: center;
  justify-self: center;
  background: rgba(47, 166, 118, .8);
  filter: blur(5px);
}

.c1 { width: 70px; height: 52px; grid-column: 2; grid-row: 3; }
.c2 { width: 96px; height: 70px; grid-column: 3; grid-row: 4; background: rgba(242, 200, 75, .86); }
.c3 { width: 84px; height: 84px; grid-column: 4; grid-row: 4; background: rgba(217, 57, 50, .9); }
.c4 { width: 92px; height: 56px; grid-column: 5; grid-row: 3; background: rgba(23, 122, 156, .85); }
.c5 { width: 72px; height: 64px; grid-column: 6; grid-row: 2; background: rgba(123, 75, 180, .75); }

.scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: translateX(-100%);
  animation: scan 4s linear infinite;
}

.meter {
  height: 24px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
}

.meter span {
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange));
}

.mini-data {
  margin-top: 18px;
}

.mini-data dd {
  font-size: 1.15rem;
}

.bars {
  display: grid;
  gap: 14px;
}

.bars label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.bars span {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.bars i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.ticker-band {
  background: var(--bg);
}

.ticker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline time {
  grid-row: span 2;
  color: var(--brand);
  font-weight: 900;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.search-card {
  padding: 20px;
  align-self: start;
}

.search-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface-soft);
  color: var(--ink);
}

#searchResult {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.feature-preview {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.preview-copy {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.feature-card.priority {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--surface-soft) 72%, rgba(217, 31, 47, .12));
}

.feature-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 900;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.feature-card strong {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand);
  font-size: .9rem;
}

.live-modules {
  background:
    linear-gradient(180deg, #11181d 0, #17232a 42%, var(--bg) 42%);
  border-top: 1px solid var(--line);
}

.service-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(217, 31, 47, .08), transparent 38%),
    linear-gradient(24deg, rgba(23, 122, 156, .10), transparent 48%),
    var(--surface);
  box-shadow: var(--shadow);
}

.service-teaser h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.service-teaser p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 24px;
  align-items: end;
  min-height: 430px;
  padding: clamp(34px, 6vw, 76px) clamp(16px, 4vw, 48px);
  background:
    linear-gradient(110deg, rgba(217, 31, 47, .35), transparent 36%),
    linear-gradient(24deg, rgba(23, 122, 156, .42), transparent 54%),
    #10181d;
  color: #f7fbfc;
}

.service-hero h1 {
  max-width: 820px;
}

.service-hero .lead {
  color: rgba(247, 251, 252, .78);
}

.service-status {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}

.service-status span {
  color: #ff6370;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-status strong {
  display: block;
  margin: 10px 0;
  font-size: 1.45rem;
}

.service-status p {
  margin: 0;
  color: rgba(247, 251, 252, .72);
  line-height: 1.5;
}

.service-modules {
  border-top: 0;
}

.content-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(18px, 4vw, 38px);
  align-items: stretch;
  padding: clamp(88px, 11vw, 140px) clamp(16px, 5vw, 72px) clamp(34px, 6vw, 72px);
  background:
    linear-gradient(116deg, rgba(217, 31, 47, .18), transparent 38%),
    linear-gradient(24deg, rgba(23, 122, 156, .20), transparent 54%),
    var(--bg);
}

.content-hero h1 {
  max-width: 940px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(2.35rem, 6vw, 5.1rem);
  line-height: .98;
}

.content-hero .lead {
  max-width: 760px;
}

.content-stat,
.api-preview,
.ad-slot-preview {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(238, 244, 245, .9));
  box-shadow: var(--shadow);
}

.content-stat strong {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .85;
}

.content-stat span,
.api-preview p,
.ad-slot-preview p {
  color: var(--muted);
  line-height: 1.5;
}

.api-preview span,
.ad-slot-preview span {
  color: var(--brand);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.api-preview code,
.code-showcase code {
  display: block;
  overflow-x: auto;
  border-radius: 8px;
  padding: 13px;
  background: #142026;
  color: #f7fbfc;
  font-family: Consolas, Monaco, monospace;
}

.content-section {
  padding: clamp(36px, 7vw, 76px) clamp(16px, 5vw, 72px);
}

.content-grid {
  display: grid;
  gap: 16px;
}

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

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

.info-card,
.legal-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.info-card span {
  color: var(--brand);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.info-card h3,
.legal-card h2 {
  margin: 12px 0 10px;
}

.info-card p,
.legal-card p,
.split-section p,
.content-list p {
  color: var(--muted);
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}

.code-showcase,
.content-list {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-hero {
  grid-template-columns: 1fr;
  padding-bottom: 30px;
}

.legal-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(16px, 5vw, 72px) clamp(44px, 7vw, 84px);
}

.pricing-grid,
.about-proof,
.partner-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-card,
.about-proof article,
.partner-type-grid article,
.partner-steps article,
.partner-cta,
.about-signal,
.partner-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pricing-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.pricing-card.featured {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background:
    linear-gradient(145deg, rgba(217, 31, 47, .08), transparent 42%),
    var(--surface);
}

.pricing-card span,
.about-signal span,
.partner-panel span,
.partner-type-grid span {
  color: var(--brand);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-card h3,
.partner-type-grid h3 {
  margin: 0;
}

.pricing-card strong {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.pricing-card small,
.pricing-card p,
.pricing-card li,
.pricing-note p,
.about-signal p,
.partner-panel p,
.partner-type-grid p,
.partner-steps p,
.partner-cta p {
  color: var(--muted);
  line-height: 1.5;
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.pricing-note {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(23, 122, 156, .08), transparent 48%),
    var(--surface);
}

.about-signal,
.partner-panel {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 300px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(238, 244, 245, .9));
}

.about-signal strong,
.partner-panel strong {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: .95;
}

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

.about-proof article {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.about-proof strong {
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.about-proof span {
  color: var(--muted);
  font-weight: 800;
}

.about-story p + p {
  margin-top: 12px;
}

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

.partner-type-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
}

.partner-type-grid a {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 900;
}

.partner-steps {
  display: grid;
  gap: 12px;
}

.partner-steps article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 18px;
}

.partner-steps strong {
  grid-row: span 2;
  color: var(--brand);
  font-size: 1.7rem;
}

.partner-steps span {
  color: var(--ink);
  font-weight: 900;
}

.partner-steps p {
  margin: 0;
}

.partner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(217, 31, 47, .08), transparent 38%),
    var(--surface);
}

.link-preview {
  display: grid;
  align-content: center;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(238, 244, 245, .9));
  box-shadow: var(--shadow);
}

.link-preview img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 33, 41, .14);
}

.banner-choice-grid {
  display: grid;
  gap: 16px;
}

.app-banner-highlight {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(217, 31, 47, .08), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.app-banner-highlight img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 33, 41, .14);
}

.app-banner-highlight h3 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.app-banner-highlight p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.banner-choice-card {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.banner-preview-box {
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(16, 23, 27, .06), transparent 48%),
    var(--surface-soft);
}

.banner-preview-box img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.banner-choice-body {
  display: grid;
  gap: 10px;
  align-content: start;
}

.banner-choice-body span {
  color: var(--brand);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.banner-choice-body h3 {
  margin: 0;
}

.banner-choice-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.banner-choice-body label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.banner-choice-body textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #142026;
  color: #f7fbfc;
  font-family: Consolas, Monaco, monospace;
  font-size: .88rem;
  line-height: 1.45;
}

.ad-submit-form {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 16px;
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ad-campaign-form {
  align-items: start;
}

.ad-campaign-form fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.ad-campaign-form input,
.ad-campaign-form select,
.ad-campaign-form textarea {
  min-height: 46px;
  width: 100%;
  background: #fff;
  font: inherit;
}

.ad-campaign-form textarea {
  min-height: 156px;
  resize: vertical;
  line-height: 1.55;
  padding-block: 14px;
}

.ad-campaign-form input[type="file"] {
  padding: 9px;
  cursor: pointer;
}

.ad-campaign-form input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: #142026;
  color: #fff;
  font-weight: 900;
}

.ad-campaign-form fieldset:nth-of-type(3) {
  grid-column: 1 / -1;
  grid-template-columns: minmax(240px, .82fr) minmax(0, 1.18fr);
}

.ad-campaign-form fieldset:nth-of-type(3) legend {
  grid-column: 1 / -1;
}

.ad-campaign-form legend {
  padding: 0 8px;
  color: var(--brand);
  font-weight: 900;
}

.ad-submit-form .wide,
.ad-submit-form .actions {
  grid-column: 1 / -1;
}

.ad-form-preview {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 31, 47, .08), transparent 45%),
    var(--surface-soft);
}

.ad-form-preview span {
  color: var(--brand);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-form-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.public-notice {
  margin-bottom: 16px;
}

.ad-live-section {
  padding: clamp(28px, 5vw, 52px) clamp(16px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(217, 31, 47, .08), transparent 42%),
    var(--bg);
}

.ad-live-section > .section-title {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.ad-live-section > .section-title h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.ad-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.ad-live-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(23, 33, 41, .08);
  overflow: hidden;
  padding: 0;
}

.ad-live-card.no-media {
  grid-template-columns: 1fr;
}

.ad-live-body {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px;
}

.ad-live-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 138px;
  max-height: 170px;
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

.ad-live-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}

.ad-live-card span {
  color: var(--brand);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.ad-live-card h3 {
  font-size: 1.02rem;
}

.ad-live-card p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.5;
}

.live-modules > .section-title {
  width: min(1240px, 100%);
  margin-inline: auto;
  color: #f7fbfc;
}

.live-modules > .section-title .eyebrow {
  color: #ff6370;
}

.app-band {
  background:
    linear-gradient(180deg, #11181d 0, #17232a 52%, var(--bg) 52%);
  border-top: 1px solid var(--line);
}

.app-band > .section-title {
  width: min(1240px, 100%);
  margin-inline: auto;
  color: #f7fbfc;
}

.app-band > .section-title .eyebrow {
  color: #ff6370;
}

.app-showcase {
  display: grid;
  grid-template-columns: minmax(310px, 420px) minmax(0, 1fr);
  gap: 22px;
  width: min(1240px, 100%);
  margin-inline: auto;
  align-items: center;
}

.phone-frame {
  position: relative;
  min-height: 680px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 30px;
  padding: 14px;
  background: #0d1419;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .38);
}

.phone-screen {
  min-height: 650px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(217, 31, 47, .22), transparent 36%),
    linear-gradient(28deg, rgba(23, 122, 156, .24), transparent 52%),
    #f4f7f8;
  color: #172129;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px 8px;
  color: #f7fbfc;
  font-size: .82rem;
  font-weight: 900;
}

.phone-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  margin: 0 12px 12px;
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, .94);
}

.phone-appbar strong,
.phone-appbar small {
  display: block;
}

.phone-appbar small {
  color: #60717c;
}

.mini-logo {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgba(255,255,255,.88) 29% 34%, transparent 35%),
    linear-gradient(135deg, var(--brand), var(--blue));
}

.mini-logo::after {
  content: "WR";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
}

.phone-content {
  display: grid;
  gap: 12px;
  padding: 0 12px 88px;
}

.phone-alert {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border-radius: 18px;
  padding: 16px;
  background: var(--brand);
  color: white;
}

.phone-alert span {
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.phone-alert strong {
  font-size: 1.45rem;
  line-height: 1.05;
}

.phone-alert p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.phone-map {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 55% 45%, rgba(217, 57, 50, .62), transparent 18%),
    radial-gradient(circle at 40% 62%, rgba(42, 143, 107, .55), transparent 18%),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    #14242d;
  background-size: auto, auto, 28px 28px, 28px 28px;
}

.phone-map::after {
  content: "Radar live";
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(16,25,32,.82);
  color: white;
  font-weight: 900;
}

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

.phone-tile {
  min-height: 112px;
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.94);
}

.phone-tile span {
  display: block;
  color: #60717c;
  font-size: .8rem;
  font-weight: 900;
}

.phone-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
}

.phone-alarm-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #9f1522);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.phone-nav {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}

.phone-nav span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-radius: 12px;
  color: #60717c;
  font-size: .76rem;
  font-weight: 900;
}

.phone-nav .active {
  background: var(--ink);
  color: white;
}

.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-feature {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-feature span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 0 10px;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: .82rem;
  font-weight: 900;
}

.app-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.weather-cockpit {
  display: grid;
  gap: 18px;
  width: min(1240px, 100%);
  margin-inline: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 31, 47, .16), transparent 32%),
    linear-gradient(24deg, rgba(23, 122, 156, .18), transparent 45%),
    #111b21;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
}

.radar-live {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
}

.module-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: none;
}

.priority-module {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(238, 244, 245, .88));
}

.module-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.module-copy h3,
.module-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.module-card .module-head {
  align-items: flex-start;
  margin-bottom: 14px;
}

.module-card .module-head > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.module-card .module-head strong {
  flex: 0 0 auto;
  min-height: 32px;
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: .82rem;
  line-height: 1;
  white-space: nowrap;
}

.module-copy p:not(.eyebrow),
.module-card > p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.radar-live-map {
  position: relative;
  min-height: 440px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 31, 47, .25), transparent 18%),
    radial-gradient(circle at 42% 58%, rgba(47, 166, 118, .34), transparent 20%),
    radial-gradient(circle at 60% 44%, rgba(242, 200, 75, .28), transparent 16%),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    #14232b;
  background-size: 32px 32px;
}

.radar-live-map img {
  position: absolute;
  inset: -16%;
  width: 132%;
  height: 132%;
  object-fit: cover;
}

#radarTile {
  opacity: .82;
  mix-blend-mode: screen;
}

.radar-target {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border: 2px solid rgba(217, 31, 47, .9);
  border-radius: 50%;
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
  transform: translate(-50%, -50%);
}

.radar-target::before,
.radar-target::after {
  content: "";
  position: absolute;
  inset: -22px;
  border: 1px solid rgba(217, 31, 47, .42);
  border-radius: inherit;
}

.radar-target::after {
  inset: -44px;
  opacity: .42;
}

.radar-time {
  position: absolute;
  left: 14px;
  bottom: 14px;
  min-height: 34px;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(17, 24, 29, .82);
  color: #fff;
  font-weight: 900;
}

.module-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.forecast-card {
  grid-column: 1 / -1;
}

.forecast-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.forecast-day,
.pegel-item {
  min-width: 0;
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-soft);
}

.forecast-day time,
.pegel-item span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.forecast-day strong,
.pegel-item strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.2rem;
}

.forecast-day p,
.pegel-item p,
.loading-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pegel-list {
  display: grid;
  gap: 10px;
}

.lightning-status {
  display: grid;
  gap: 8px;
  min-height: 130px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.lightning-status span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 10px rgba(242, 200, 75, .18);
}

.lightning-status.is-active span {
  background: var(--red);
  box-shadow: 0 0 0 10px rgba(217, 57, 50, .18);
}

.lightning-status p {
  margin: 0;
  color: var(--muted);
}

.webcam-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.webcam-grid a {
  display: grid;
  min-height: 118px;
  align-content: end;
  border-radius: 8px;
  padding: 14px;
  color: #fff;
  background:
    linear-gradient(180deg, transparent, rgba(17, 24, 29, .9)),
    linear-gradient(135deg, rgba(23, 122, 156, .9), rgba(217, 31, 47, .72));
}

.webcam-grid span {
  font-size: .82rem;
  font-weight: 900;
}

.webcam-grid strong {
  margin-top: 4px;
}

.abo-form {
  display: grid;
  gap: 8px;
}

.abo-form label {
  color: var(--muted);
  font-weight: 800;
}

#alertSignupStatus {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.alarm-control {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid rgba(217, 31, 47, .18);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(217, 31, 47, .08), rgba(20, 31, 37, .04));
}

.alarm-control::before {
  content: "Warnmodus";
  color: var(--brand);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.alarm-control .primary-action,
.alarm-control .ghost-inline {
  width: 100%;
  min-height: 46px;
}

.alarm-control p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(16px, 4vw, 48px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer > div {
  display: grid;
  gap: 4px;
}

.footer strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
}

.footer-links a {
  font-weight: 800;
}

.mobile-tabbar {
  display: none;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

@keyframes rain {
  to { transform: translate3d(-90px, 90px, 0); }
}

@keyframes pulseRing {
  from { transform: scale(.35); opacity: .8; }
  to { transform: scale(2.2); opacity: 0; }
}

@keyframes dash {
  to { stroke-dashoffset: -154; }
}

@keyframes scan {
  to { transform: translateX(100%); }
}

@media (max-width: 1020px) {
  .hero,
  .map-layout,
  .data-grid,
  .ticker-layout,
  .feature-preview,
  .service-hero,
  .service-teaser,
  .content-hero,
  .split-section,
  .app-banner-highlight,
  .banner-choice-card,
  .radar-live,
  .app-showcase {
    grid-template-columns: 1fr;
  }

  .dashboard-band,
  .feature-grid,
  .module-mosaic,
  .ad-live-grid,
  .pricing-grid,
  .about-proof,
  .partner-type-grid,
  .content-grid.three,
  .content-grid.four,
  .legal-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-card {
    grid-column: 1 / -1;
  }

  .detail-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .top-actions {
    margin-left: 0;
  }

  .nav {
    order: 3;
    flex: 0 0 100%;
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    padding-bottom: 4px;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-logo {
    width: 100%;
  }

  .hero-logo-mark {
    width: 62px;
    height: 62px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
    line-height: 1;
  }

  .dashboard-band,
  .feature-grid,
  .module-mosaic,
  .webcam-grid,
  .stats-grid,
  .mini-data,
  .app-feature-grid {
    grid-template-columns: 1fr;
  }

  .live-modules {
    background:
      linear-gradient(180deg, #11181d 0, #17232a 300px, var(--bg) 300px);
  }

  .weather-cockpit {
    padding: 10px;
  }

  .module-card .module-head {
    display: grid;
  }

  .alarm-control {
    grid-template-columns: 1fr;
  }

  .radar-live-map {
    min-height: 320px;
  }

  .phone-frame {
    min-height: 610px;
    border-radius: 24px;
    padding: 10px;
  }

  .phone-screen {
    min-height: 590px;
  }

  .phone-nav {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .forecast-list {
    grid-template-columns: repeat(7, 132px);
  }

  .module {
    overflow: hidden;
  }

  .map-shell {
    min-height: auto;
    padding: 10px;
  }

  .germany-map {
    min-height: 420px;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .timeline time {
    grid-row: auto;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .content-grid.three,
  .content-grid.four,
  .ad-submit-form,
  .ad-campaign-form,
  .ad-live-grid,
  .pricing-grid,
  .about-proof,
  .partner-type-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .partner-cta {
    display: grid;
  }

  .partner-steps article {
    grid-template-columns: 1fr;
  }

  .banner-choice-card {
    padding: 12px;
  }

  .banner-preview-box {
    min-height: 160px;
  }

  body {
    padding-bottom: 72px;
  }

  .mobile-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 7px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 18px 46px rgba(19, 32, 42, .22);
    backdrop-filter: blur(16px);
  }

  .mobile-tabbar a {
    display: grid;
    min-height: 46px;
    place-items: center;
    border-radius: 12px;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 900;
  }

  .mobile-tabbar a:first-child {
    background: var(--ink);
    color: var(--surface);
  }
}
