/* Blaulicht Network — Design System */
@font-face { font-family: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-muted: #eef0f3;
  --ink: #0b0f14;
  --ink-soft: #2a313c;
  --muted: #5c6570;
  --line: #d8dde4;
  --line-strong: #b8c0cc;
  --accent: #0c2d5a;
  --accent-mid: #163f7a;
  --signal: #c8102e;
  --rescue: #0a6b4a;
  --bundeswehr: #3d4a28;
  --shadow: 0 18px 40px rgba(11, 15, 20, 0.08);
  --shadow-soft: 0 8px 24px rgba(11, 15, 20, 0.06);
  --radius: 4px;
  --nav-h: 78px;
  --nav-h-min: 78px;
  --max: 1200px;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "DM Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.18rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Typography ——— */
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(3rem, 6.5vw, 5.2rem); }
h2 { font-size: clamp(2.2rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

.lead {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 44rem;
}

.ui {
  font-family: var(--font-ui);
}

/* ——— Buttons ——— */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
}

.btn:hover {
  transform: translateY(-2px) translateZ(8px);
}

.btn:active {
  transform: translateY(0) translateZ(0);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ——— Navbar ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h-min);
  height: auto;
  background: rgba(var(--surface-rgb), 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform-style: preserve-3d;
}

.nav-inner {
  min-height: var(--nav-h-min);
  padding-block: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  background: linear-gradient(145deg, var(--accent) 0%, #1a4a8c 55%, var(--signal) 100%);
  box-shadow: inset 0 0 0 1px rgba(var(--surface-rgb), 0.15);
  transform: rotateY(-12deg) rotateX(8deg);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotateY(8deg) rotateX(-4deg) translateZ(4px);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: min(780px, 72vw);
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--bg-muted);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown > button:hover,
.nav-dropdown.open > button {
  color: var(--ink);
  background: var(--bg-muted);
}

.nav-dropdown .chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.25s ease;
}

.nav-dropdown.open .chevron {
  transform: rotate(225deg) translateY(-1px);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 240px;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) rotateX(-8deg);
  transform-origin: top center;
  transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0.25s;
  perspective: 800px;
}

.nav-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) rotateX(0);
}

.dropdown-panel a {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ink-soft);
}

.dropdown-panel a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  place-items: center;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 3.5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform-origin: center center;
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(18%) contrast(1.05);
  transform: scale(1.06);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 12% 62%, rgba(47, 111, 237, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(214, 228, 255, 0.22) 0%, rgba(206, 222, 255, 0.58) 40%, rgba(228, 238, 255, 0.95) 78%, var(--hero-end) 100%),
    linear-gradient(90deg, rgba(219, 232, 255, 0.82) 0%, rgba(219, 232, 255, 0.28) 55%, rgba(219, 232, 255, 0.05) 100%);
}

.hero-content {
  padding: clamp(3rem, 8vh, 6rem) 0 4.5rem;
  perspective: 1200px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8.5vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0.35rem 0 1.1rem;
  transform: translateZ(40px);
  max-width: 12ch;
}

.hero-copy {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.28rem;
}

.hero-stage {
  transform-style: preserve-3d;
  animation: heroIn 1.1s var(--ease) both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(28px) rotateX(8deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* ——— Sections ——— */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-soft {
  background:
    radial-gradient(1200px 420px at 10% 0%, rgba(12, 45, 90, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--surface) 70%);
}

.section-head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

/* ——— Topic tiles (interactive) ——— */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  perspective: 1400px;
}

.topic-tile {
  position: relative;
  min-height: 280px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.topic-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(11, 15, 20, 0.78) 100%),
    var(--tile-img) center/cover no-repeat;
  transform: scale(1.04);
  transition: transform 0.7s var(--ease);
  z-index: 0;
}

.topic-tile > * {
  position: relative;
  z-index: 1;
  color: #fff;
}

.topic-tile .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.topic-tile p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-ui);
  font-size: 1.05rem;
}

.topic-tile:hover {
  transform: rotateX(4deg) rotateY(-4deg) translateY(-6px) translateZ(12px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.topic-tile:hover::before {
  transform: scale(1.1);
}

.topic-tile[data-topic="polizei"] { --tile-img: url("../assets/polizei/p1.jpg"); }
.topic-tile[data-topic="feuerwehr"] { --tile-img: url("../assets/feuerwehr/f1.jpg"); }
.topic-tile[data-topic="rettung"] { --tile-img: url("../assets/rettung/r1.jpg"); }
.topic-tile[data-topic="bundeswehr"] { --tile-img: url("../assets/bundeswehr/b1.jpg"); }

/* ——— Map ——— */
.map-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.map-stage {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(12, 45, 90, 0.07), transparent 70%),
    linear-gradient(160deg, var(--bg-soft) 0%, var(--avatar-a) 48%, var(--bg-soft) 100%);
  overflow: hidden;
  perspective: 1400px;
  box-shadow: var(--shadow-soft);
  cursor: grab;
}

.map-stage:active {
  cursor: grabbing;
}

.map-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 45, 90, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 45, 90, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}

.map-hint {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--muted);
  background: rgba(var(--surface-rgb), 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  backdrop-filter: blur(6px);
}

.map-scene {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.map-plate {
  position: relative;
  width: min(88%, 420px);
  aspect-ratio: 420 / 540;
  transform-style: preserve-3d;
  animation: mapIdle 7s ease-in-out infinite;
}

.map-stage.is-tilting .map-plate {
  animation: none;
}

@keyframes mapIdle {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateZ(0deg); }
  50% { transform: translateY(-6px) rotateX(1.2deg) rotateZ(-0.6deg); }
}

.map-shadow {
  position: absolute;
  inset: 12% 8% auto 8%;
  height: 78%;
  border-radius: 42% 38% 40% 44%;
  background: radial-gradient(ellipse at center, rgba(11, 15, 20, 0.22), transparent 68%);
  transform: translateZ(-36px) rotateX(68deg) scale(1.05);
  filter: blur(10px);
  pointer-events: none;
}

.map-svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: translateZ(12px);
  overflow: visible;
}

.map-land {
  fill: url(#landFill);
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linejoin: round;
  filter: url(#landDepth);
  transition: fill 0.35s ease;
  pointer-events: none;
}

.map-land-edge {
  fill: #b7c4d6;
  transform: translate(0, 8px);
  pointer-events: none;
}

.city-pin {
  cursor: pointer;
  outline: none;
}

.city-pin .pin-hit {
  fill: transparent;
}

.city-pin .pin-ring {
  fill: none;
  stroke: rgba(12, 45, 90, 0.28);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}

.city-pin .pin-dot {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2.5;
  transition: fill 0.25s ease;
}

.city-pin .pin-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 4px;
  pointer-events: none;
}

.city-pin:hover .pin-dot,
.city-pin:focus-visible .pin-dot {
  fill: var(--accent-mid);
}

.city-pin.active .pin-dot {
  fill: var(--signal);
}

.city-pin.active .pin-ring {
  opacity: 1;
  animation: pinPulse 1.8s ease-out infinite;
}

@keyframes pinPulse {
  0% { transform: scale(0.55); opacity: 0.7; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

.map-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 560px;
}

.map-panel.is-updating {
  animation: panelSwap 0.45s var(--ease);
}

@keyframes panelSwap {
  from { opacity: 0.35; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.map-panel-media {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-muted);
}

.map-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.map-panel:hover .map-panel-media img {
  transform: scale(1.04);
}

.map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg-soft);
}

.map-panel h3 {
  margin-bottom: 0.25rem;
}

.map-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.city-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.city-chip-btn {
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: transform 0.35s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.city-chip-btn span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.city-chip-btn:hover,
.city-chip-btn.active {
  border-color: var(--accent);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

/* ——— Fleet / equipment ——— */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  perspective: 1200px;
}

.fleet-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.fleet-card:hover {
  transform: rotateY(-6deg) rotateX(3deg) translateY(-4px);
  box-shadow: var(--shadow);
}

.fleet-card figure {
  margin: 0;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-muted);
}

.fleet-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.fleet-card:hover img {
  transform: scale(1.06) translateZ(10px);
}

.fleet-card .body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.fleet-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.fleet-card p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 1.05rem;
}

/* ——— Split feature ——— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-visual {
  position: relative;
  perspective: 1400px;
  min-height: 360px;
}

.split-visual .layer {
  position: absolute;
  inset: 8% 8% auto 8%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotateY(-14deg) rotateX(6deg);
  transition: transform 0.6s var(--ease);
}

.split-visual .layer.back {
  inset: 18% 4% auto 18%;
  opacity: 0.55;
  transform: rotateY(-18deg) rotateX(8deg) translateZ(-40px);
  filter: grayscale(0.2);
}

.split-visual:hover .layer.front {
  transform: rotateY(-8deg) rotateX(3deg) translateZ(20px);
}

.split-visual .layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Stats strip ——— */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.stat {
  background: var(--surface);
  padding: 1.4rem 1.2rem;
  transform-style: preserve-3d;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat span {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--muted);
}

/* ——— Page hero (inner) ——— */
.page-hero {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--bg-soft), var(--surface)),
    radial-gradient(800px 280px at 80% 0%, rgba(12, 45, 90, 0.06), transparent 70%);
}

.page-hero .lead {
  margin-top: 0.75rem;
}

.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--ink);
}

/* ——— Content blocks ——— */
.content-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
}

.prose h2 {
  margin-top: 2.2rem;
}

.prose p {
  color: var(--ink-soft);
}

.aside-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem;
  background: var(--bg-soft);
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.aside-box h3 {
  font-size: 1.25rem;
}

.aside-box ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.aside-box li {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.aside-box li:last-child {
  border-bottom: 0;
}

/* ——— City detail ——— */
.city-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
}

.city-cover {
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease);
}

.city-cover:hover {
  transform: rotateY(-2deg) rotateX(1deg) translateZ(10px);
}

.city-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 2rem 0 1.25rem;
}

.org-tab {
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.org-tab.active,
.org-tab:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.org-panel {
  display: none;
  animation: fadeUp 0.45s var(--ease);
}

.org-panel.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  margin: 1.25rem 0 2rem;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.info-table th {
  width: 34%;
  color: var(--muted);
  font-weight: 600;
}

/* ——— Legal ——— */
.legal {
  max-width: 720px;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h4 {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  font-family: var(--font-ui);
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--ink);
}

.footer-brand p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28ch;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--muted);
}

/* ——— Reveal / motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px) rotateX(6deg);
  transform-origin: center top;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.float-y {
  animation: floatY 5.5s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
  .topic-grid,
  .fleet-grid,
  .stats,
  .city-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-stage,
  .map-scene,
  .map-panel {
    min-height: 480px;
  }

  .map-layout,
  .split,
  .content-grid,
  .city-hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-visual {
    min-height: 280px;
  }

  .aside-box {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s ease;
    max-width: none;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    justify-content: stretch;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-dropdown .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 0.75rem;
    display: none;
  }

  .nav-dropdown.open .dropdown-panel {
    display: grid;
  }
}

@media (max-width: 640px) {
  .topic-grid,
  .fleet-grid,
  .stats,
  .city-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 4.5rem;
  }

  .map-stage,
  .map-scene,
  .map-panel {
    min-height: 420px;
  }

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

  .map-hint {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .map-plate,
  .map-scene {
    transform: none !important;
  }
}
/* ——— BN extensions (PDF frontend) ——— */
.nav-settings-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.15rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink-soft);
}
.nav-settings-btn:hover { background: var(--bg-muted); color: var(--ink); }
.nav-lang .dropdown-panel button {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}
.nav-lang .dropdown-panel button:hover { background: var(--bg-muted); color: var(--ink); }

.announcement-host {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  max-width: min(420px, calc(100vw - 2rem));
}
.announcement-toast {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: bnRise 0.45s var(--ease);
}
.announcement-toast .eyebrow { margin: 0 0 0.25rem; color: var(--signal); }
.announcement-toast strong { display: block; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.35rem; }
.announcement-toast p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
@keyframes bnRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.bn-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(640px, calc(100vw - 2rem));
}
.bn-modal::backdrop { background: rgba(11, 15, 20, 0.45); backdrop-filter: blur(4px); }
.bn-modal-card {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}
.sound-settings .switch-row,
.sound-settings .volume-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-ui);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.mitteilungen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.mit-card {
  text-align: left;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.3s ease, border-color 0.25s ease;
  width: 100%;
}
.mit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}
.mit-card .mit-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
}
.mit-tag {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.mit-tag.neu { background: var(--avatar-a); color: var(--accent); }
.mit-tag.wichtig { background: var(--tint-red); color: var(--signal); }
.mit-card h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.mit-card p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

.country-browser { margin-top: 1.5rem; }
.country-row {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}
.country-card {
  flex: 1 1 180px;
  min-width: 170px;
  scroll-snap-align: start;
  appearance: none;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
  border-radius: 8px;
  padding: 1.2rem 1.15rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.25s ease, box-shadow 0.3s ease;
}
.country-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.country-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(12, 45, 90, 0.12);
}
.country-card .flag { font-size: 1.6rem; line-height: 1; margin-bottom: 0.55rem; }
.country-card strong { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.country-card span { font-family: var(--font-ui); font-size: 0.92rem; color: var(--muted); }

.org-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease), margin 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  margin-top: 0;
}
.org-expand.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1.25rem;
}
.org-expand-inner { overflow: hidden; }
.org-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.org-country-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem 1.25rem;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.3s ease;
}
.org-country-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--org-color, var(--accent));
}
.org-country-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.org-country-card h3 { margin-bottom: 0.35rem; }
.org-country-card p { margin: 0 0 0.75rem; color: var(--ink-soft); font-size: 1.02rem; }
.org-country-card .more {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--accent);
}
.org-choose-hint {
  margin-top: 1rem;
  font-family: var(--font-ui);
  color: var(--muted);
}
.org-coming {
  border-style: dashed;
  background: var(--bg-soft);
}
.org-coming::before { background: var(--line-strong); }

.team-category { margin-bottom: 2.5rem; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.profile-card {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 1.2rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.3s ease;
}
.profile-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.profile-top { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.85rem; }
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.online-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: #9aa3ad;
}
.online-dot.on { background: #22a06b; }
.rank-pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  color: #fff;
  margin-top: 0.25rem;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.tag {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: var(--bg-muted);
  color: var(--ink-soft);
}
.status-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--muted);
}
.status-line i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa3ad;
  display: inline-block;
}
.status-line i.on { background: #22a06b; }

.support-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.support-path {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  background: linear-gradient(165deg, var(--surface), var(--bg-soft));
}
.goal-card, .case-card, .forum-cat, .thread-row, .badge-card, .blog-entry, .app-type-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem 1.3rem;
  background: var(--surface);
}
.goal-list, .case-list, .forum-cats, .thread-list, .badge-grid, .blog-list, .app-type-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}
.badge-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.app-type-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.progress {
  height: 10px;
  background: var(--bg-muted);
  border-radius: 99px;
  overflow: hidden;
  margin: 0.75rem 0;
}
.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #2f6fed);
  border-radius: inherit;
}
.pay-banner {
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  border: 1px dashed var(--line-strong);
  background: var(--bg-soft);
  font-family: var(--font-ui);
}
.pay-banner strong { display: block; margin-bottom: 0.25rem; color: var(--signal); }

.bn-form {
  display: grid;
  gap: 0.9rem;
  max-width: 640px;
}
.bn-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
}
.bn-form input,
.bn-form select,
.bn-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}
.bn-form textarea { min-height: 140px; resize: vertical; }
.form-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 500 !important;
}
.form-check input { margin-top: 0.2rem; }
.form-result {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  background: var(--tint-green);
  border: 1px solid var(--tint-green);
  font-family: var(--font-ui);
}
.viewer-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--bg-soft);
  margin-top: 1.5rem;
}
.status-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0;
}
.status-steps span {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 0.3rem 0.55rem;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}
.status-steps span.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.blog-cat {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: var(--bg-muted);
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.forum-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
}
.thread-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.chip {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  background: var(--bg-muted);
}

@media (max-width: 860px) {
  .mitteilungen-grid,
  .support-hero-grid,
  .forum-layout { grid-template-columns: 1fr; }
  .country-card { min-width: 150px; }
}

/* =====================================================================
   Blaulicht Network – Überarbeitung (Navbar, Sprache, Module aus den Dokumenten)
   ===================================================================== */
:root {
  --navy: #0b1f3f;
  --blue: #1d4ed8;
  --blue-soft: #e8efff;
  --hero-end: #f2f6fd;
  --radius-lg: 14px;
  --radius-md: 10px;
  --nav-h: 72px;
  --nav-h-min: 72px;
}

h1, h2 { overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); }
.muted { color: var(--muted); font-family: var(--font-ui); font-size: 0.95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
mark.todo { background: var(--tint-yellow); color: var(--ink-yellow); padding: 0.05rem 0.4rem; border-radius: 4px; font-family: var(--font-ui); font-size: 0.92em; }

/* Icons & Flaggen */
.bn-icon { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.18em; }
.bn-icon svg, .nav-icon-btn svg, .country-arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bn-flag { display: inline-block; width: 1.5em; height: 1em; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(11, 15, 20, 0.12); vertical-align: -0.12em; flex-shrink: 0; }
.bn-flag svg { display: block; width: 100%; height: 100%; }
.bn-flag-ch { width: 1em; }

/* ——— Navbar: transparenter, ruhiger ——— */
.site-header {
  background: rgba(var(--surface-rgb), 0.58);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(var(--surface-rgb), 0.74);
  border-bottom-color: rgba(11, 15, 20, 0.07);
  box-shadow: 0 6px 24px rgba(11, 31, 63, 0.05);
}
.nav-inner { gap: 1.25rem; padding-block: 0; }
.logo { gap: 0.6rem; font-size: 1.18rem; white-space: nowrap; }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(150deg, #0b1f3f 0%, #12305e 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(11, 31, 63, 0.22), inset 0 0 0 1px rgba(var(--surface-rgb), 0.08);
  transform: none;
}
.logo-mark img { width: 26px; height: 26px; object-fit: contain; }
.logo:hover .logo-mark { transform: translateY(-1px); }
.nav-main { margin-left: auto; }
.nav-links { gap: 0.15rem; max-width: none; flex-wrap: nowrap; }
.nav-links a,
.nav-dropdown > button {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
}
.nav-links > li > a:hover,
.nav-dropdown > button:hover,
.nav-dropdown.open > button { background: rgba(11, 31, 63, 0.06); color: var(--ink); }
.nav-links > li > a.active,
.nav-dropdown.has-active > button { color: var(--navy); font-weight: 600; }
.nav-dropdown .chevron { width: 0.42rem; height: 0.42rem; border-width: 1.5px; opacity: 0.6; }
.dropdown-panel {
  top: calc(100% + 0.6rem);
  min-width: 230px;
  padding: 0.4rem;
  background: rgba(var(--surface-rgb), 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(11, 15, 20, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(11, 31, 63, 0.12);
  transform: translateY(6px);
}
.nav-dropdown.open .dropdown-panel { transform: translateY(0); }
.dropdown-right { left: auto; right: 0; }
.dropdown-panel a { padding: 0.6rem 0.8rem; border-radius: 9px; font-size: 0.95rem; }
.dropdown-panel a.active { color: var(--navy); font-weight: 600; background: var(--blue-soft); }
.dropdown-sep { display: block; height: 1px; margin: 0.35rem 0.6rem; background: var(--line); }
.nav-tools { display: flex; align-items: center; gap: 0.5rem; }

/* Sprachumschalter als Pille (wie Einsicht) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(11, 15, 20, 0.12);
  border-radius: 999px;
  background: rgba(var(--surface-rgb), 0.6);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  min-width: 2.15rem;
  height: 30px;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.nav-icon-btn {
  appearance: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid rgba(11, 15, 20, 0.12);
  border-radius: 999px;
  background: rgba(var(--surface-rgb), 0.6);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-icon-btn:hover { background: var(--surface); color: var(--ink); }
.nav-toggle { border-radius: 999px; background: rgba(var(--surface-rgb), 0.6); border-color: rgba(11, 15, 20, 0.12); width: 38px; height: 38px; }
.nav-toggle span { width: 16px; margin: 3px auto; }

/* ——— Hero ——— */
.hero { min-height: calc(92vh - var(--nav-h)); margin-top: calc(var(--nav-h) * -1); padding-top: var(--nav-h); }
.hero-brand { max-width: 11ch; }
.hero + .section-soft { background: linear-gradient(180deg, var(--hero-end), var(--surface) 85%); }

/* ——— Mitteilungen: zwei Spalten ——— */
.mitteilungen-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.mit-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: 0 10px 30px rgba(11, 31, 63, 0.04); }
.mit-col-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; font-family: var(--font-ui); }
.mit-col-head .bn-icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.mit-col-wichtig .mit-col-head .bn-icon { background: var(--tint-red); color: var(--signal); }
.mit-col-head h3 { margin: 0; font-size: 1.15rem; flex: 1; }
.mit-count { min-width: 1.7rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--bg-muted); font-weight: 600; font-size: 0.85rem; text-align: center; }
.mit-stack { display: grid; gap: 0.65rem; }
.mit-card { border-radius: var(--radius-md); padding: 1rem 1.1rem; background: var(--bg-soft); border-color: transparent; }
.mit-card:hover { background: var(--surface); border-color: var(--line); }
.mit-card h3 { font-size: 1.15rem; }
.mit-card p { font-size: 1rem; }
.mit-card .mit-meta { margin-bottom: 0.35rem; color: var(--muted); font-size: 0.82rem; }
.mit-more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.55rem; font-family: var(--font-ui); font-weight: 600; font-size: 0.88rem; color: var(--blue); }
.mit-col-wichtig .mit-more { color: var(--signal); }
.mit-empty { font-family: var(--font-ui); color: var(--muted); margin: 0; }
.modal-meta { font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted); }

/* ——— Organisations-Browser ——— */
.country-browser { position: relative; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 20px; border: 1px solid var(--line); background:
  radial-gradient(600px 240px at 90% 0%, rgba(29, 78, 216, 0.07), transparent 70%),
  radial-gradient(500px 200px at 0% 100%, rgba(200, 16, 46, 0.04), transparent 70%),
  linear-gradient(180deg, var(--surface), var(--bg-soft)); overflow: hidden; }
.country-browser::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(circle at 1px 1px, rgba(11, 31, 63, 0.09) 1px, transparent 0); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); mask-image: linear-gradient(180deg, #000, transparent 55%); }
.country-wrap { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.country-arrow { display: none; flex-shrink: 0; width: 38px; height: 38px; padding: 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink-soft); }
.country-wrap.is-scrollable .country-arrow { display: grid; place-items: center; }
.country-row { position: relative; flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 0.85rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.country-row::-webkit-scrollbar { display: none; }
.country-wrap.is-scrollable .country-row { grid-auto-columns: calc((100% - 3 * 0.85rem) / 4); }
.country-card { display: flex; align-items: center; gap: 0.9rem; min-width: 0; padding: 1rem 1.1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(11, 31, 63, 0.04); }
.country-card:hover { border-color: var(--line-strong); }
.country-card.active { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 31, 63, 0.1), 0 10px 26px rgba(11, 31, 63, 0.08); }
.country-flag .bn-flag { width: 44px; height: 30px; border-radius: 6px; }
.country-flag .bn-flag-ch { width: 30px; }
.country-text { display: grid; flex: 1; min-width: 0; }
.country-text strong { font-family: var(--font-display); font-size: 1.2rem; }
.country-text span { font-family: var(--font-ui); font-size: 0.88rem; color: var(--muted); }
.country-chev { color: var(--muted); transition: transform 0.3s var(--ease); }
.country-card.active .country-chev { transform: rotate(90deg); color: var(--navy); }
.org-choose-hint { position: relative; margin: 1rem 0 0; }
.org-expand.open { margin-top: 1.5rem; }
.org-expand-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.org-expand-head h3 { margin: 0; font-size: 1.25rem; }
.org-region-contact { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 1rem; font-family: var(--font-ui); font-size: 0.92rem; color: var(--muted); }
.org-country-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem; margin-top: 0.9rem; }
.org-country-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); padding: 1.2rem; border-color: var(--line); box-shadow: 0 6px 18px rgba(11, 31, 63, 0.04); animation: orgIn 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.org-country-card::before { inset: 0 0 auto 0; width: auto; height: 3px; }
.org-country-card:hover { border-color: color-mix(in srgb, var(--org-color) 40%, var(--line)); box-shadow: 0 14px 30px color-mix(in srgb, var(--org-color) 14%, transparent); }
.org-icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; margin-bottom: 0.85rem; border-radius: 12px; color: var(--org-color, var(--navy)); background: color-mix(in srgb, var(--org-color, var(--navy)) 10%, var(--surface)); }
.org-icon .bn-icon { width: 100%; height: 100%; }
.org-country-card h3 { font-size: 1.3rem; }
.org-country-card p { flex: 1; font-size: 1rem; }
.org-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-family: var(--font-ui); font-size: 0.88rem; }
.org-count { color: var(--muted); }
.org-country-card .more { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--org-color, var(--navy)); }
.org-coming { border-style: dashed; background: linear-gradient(160deg, var(--surface), var(--bg-soft)); --org-color: #64748b; }
.org-coming::before { display: none; }
.org-badge { padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--bg-muted); color: var(--muted); font-weight: 600; }
@keyframes orgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ——— Aus der Community ——— */
.community-teaser-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.teaser-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 0.5rem; box-shadow: 0 16px 40px rgba(11, 31, 63, 0.06); }
.teaser-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; border-radius: 12px; transition: background 0.2s ease; }
.teaser-row + .teaser-row { border-top: 1px solid var(--line); }
.teaser-row:hover { background: var(--bg-soft); }
.teaser-icon { display: grid; place-items: center; width: 40px; height: 40px; padding: 9px; border-radius: 11px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); flex-shrink: 0; }
.teaser-icon .bn-icon { width: 100%; height: 100%; }
.teaser-text { display: grid; flex: 1; min-width: 0; }
.teaser-text strong { font-family: var(--font-display); font-size: 1.08rem; }
.teaser-text span { font-family: var(--font-ui); font-size: 0.86rem; color: var(--muted); }
.teaser-chev { color: var(--muted); }

/* ——— Announcement: kompakt, verdeckt nichts ——— */
.announcement-host { right: 1.25rem; bottom: 1.25rem; max-width: min(440px, calc(100vw - 2rem)); }
.announcement-toast { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.75rem 0.7rem 0.85rem; border-radius: 16px; background: rgba(var(--surface-rgb), 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(11, 15, 20, 0.08); box-shadow: 0 18px 40px rgba(11, 31, 63, 0.14); }
.ann-icon { display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--navy); color: #fff; flex-shrink: 0; }
.ann-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ann-text { flex: 1; min-width: 0; }
.announcement-toast .eyebrow { margin: 0; font-size: 0.7rem; color: var(--signal); }
.announcement-toast strong { font-size: 1rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-open { appearance: none; border: 0; border-radius: 999px; padding: 0.45rem 0.9rem; background: var(--navy); color: #fff; font-family: var(--font-ui); font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.ann-close { appearance: none; border: 0; background: transparent; width: 30px; height: 30px; padding: 6px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.ann-close:hover { background: var(--bg-muted); }
.ann-close svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ——— Modal & Einstellungen ——— */
.bn-modal { width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); }
.bn-modal.wide { width: min(760px, calc(100vw - 2rem)); }
.bn-modal-card { border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); border: 0; box-shadow: 0 30px 80px rgba(11, 31, 63, 0.25); max-height: calc(100vh - 2rem); overflow: auto; }
.bn-modal-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); padding-right: 2rem; }
.modal-body p { font-size: 1.05rem; color: var(--ink-soft); }
.modal-body h3 { font-size: 1.15rem; margin-top: 1.25rem; }
.modal-close { width: 36px; height: 36px; padding: 8px; border-radius: 999px; top: 0.9rem; right: 0.9rem; }
.modal-close:hover { background: var(--bg-muted); }
.modal-close svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.switch { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background 0.2s ease; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s var(--ease); }
.switch:checked { background: var(--navy); }
.switch:checked::after { transform: translateX(18px); }
.volume-wrap { display: flex; align-items: center; gap: 0.6rem; }
.volume-wrap input { accent-color: var(--navy); }
.volume-wrap output { min-width: 3rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

/* ——— Buttons ——— */
.btn { border-radius: 999px; min-height: 48px; padding: 0.75rem 1.4rem; }
.btn-small { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn .bn-icon { width: 1rem; height: 1rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.eyebrow-accent { color: var(--blue); display: inline-flex; align-items: center; gap: 0.5rem; }
.eyebrow-accent::before { content: ""; width: 4px; height: 1em; border-radius: 2px; background: var(--blue); transform: skewX(-18deg); }

/* ——— Über uns ——— */
.about-hero { position: relative; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); background:
  radial-gradient(900px 380px at 85% 10%, rgba(29, 78, 216, 0.1), transparent 70%),
  linear-gradient(180deg, var(--hero-end), var(--surface)); border-bottom: 1px solid var(--line); }
.about-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.about-title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.05; margin-bottom: 1.1rem; }
.about-title .accent { display: block; color: var(--blue); }
.about-pillars { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; background: rgba(var(--surface-rgb), 0.8); box-shadow: 0 16px 40px rgba(11, 31, 63, 0.06); }
.pillar { padding: 1.3rem 1.2rem; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar-icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; margin-bottom: 0.8rem; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.pillar-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.pillar p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); line-height: 1.5; }
.about-team { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.team-divider { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; position: relative; }
.team-divider::before, .team-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.team-divider::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.team-divider-icon { display: grid; place-items: center; width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(11, 31, 63, 0.25); }
.team-divider-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.team-divider h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: 0.08em; text-transform: uppercase; }
.team-divider p { margin: 0; font-family: var(--font-ui); color: var(--muted); font-size: 0.95rem; }
.team-category { margin-bottom: 2.75rem; }
.cat-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.cat-icon { display: grid; place-items: center; width: 48px; height: 48px; padding: 12px; border-radius: 50%; color: #fff; background: var(--cat); box-shadow: 0 8px 20px color-mix(in srgb, var(--cat) 35%, transparent); }
.cat-icon .bn-icon { width: 100%; height: 100%; }
.cat-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0; }
.cat-head p { margin: 0; font-family: var(--font-ui); color: var(--muted); font-size: 0.95rem; }
.member-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.member-card { appearance: none; width: 100%; display: flex; gap: 1.4rem; align-items: flex-start; text-align: left; padding: 1.5rem; border-radius: 18px; cursor: pointer; background: linear-gradient(160deg, var(--surface) 55%, color-mix(in srgb, var(--rank) 5%, var(--surface))); border: 1px solid color-mix(in srgb, var(--rank) 38%, var(--line)); box-shadow: 0 10px 30px color-mix(in srgb, var(--rank) 8%, transparent); transition: transform 0.35s var(--ease), box-shadow 0.3s ease; font: inherit; color: inherit; }
.member-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px color-mix(in srgb, var(--rank) 16%, transparent); }
.ring-avatar { position: relative; display: grid; place-items: center; width: 104px; height: 104px; flex-shrink: 0; border-radius: 50%; padding: 5px; background: conic-gradient(from 210deg, var(--rank), color-mix(in srgb, var(--rank) 45%, var(--surface)), var(--rank)); box-shadow: 0 8px 24px color-mix(in srgb, var(--rank) 28%, transparent); }
.ring-avatar > * { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--surface); }
.ring-avatar img { object-fit: cover; }
.avatar-initials { display: grid; place-items: center; background: linear-gradient(160deg, var(--avatar-a), var(--avatar-b)); font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: color-mix(in srgb, var(--rank) 70%, #0b0f14); }
.ring-avatar.lg { width: 120px; height: 120px; }
.member-body { display: grid; gap: 0.45rem; min-width: 0; flex: 1; }
.member-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.rank-pill { display: inline-flex; align-items: center; padding: 0.2rem 0.65rem; border-radius: 999px; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; color: color-mix(in srgb, var(--rank) 85%, #000); background: color-mix(in srgb, var(--rank) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--rank) 45%, transparent); margin: 0; }
.member-name { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -0.02em; }
.member-intro { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
.member-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.tag-pill { padding: 0.22rem 0.7rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--rank) 50%, transparent); font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); background: var(--surface); }
.member-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.35rem; font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); }
.member-open { margin-left: auto; display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; color: color-mix(in srgb, var(--rank) 80%, #000); }
.presence { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-ui); font-size: 0.8rem; color: var(--muted); }
.presence i { width: 8px; height: 8px; border-radius: 50%; background: #9aa3ad; }
.presence.online i { background: #22a06b; box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.18); }
.member-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem; min-height: 220px; padding: 1.5rem; text-align: center; border-radius: 18px; border: 1.5px dashed var(--line-strong); background: rgba(var(--surface-rgb), 0.6); transition: border-color 0.2s ease, background 0.2s ease; }
.member-slot:hover { border-color: var(--blue); background: var(--surface); }
.slot-icon { display: grid; place-items: center; width: 56px; height: 56px; padding: 14px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--blue); margin-bottom: 0.4rem; }
.slot-icon .bn-icon { width: 100%; height: 100%; }
.member-slot strong { font-family: var(--font-display); font-size: 1.12rem; }
.member-slot span { font-family: var(--font-ui); color: var(--blue); font-size: 0.95rem; }
.about-banner { display: flex; align-items: center; gap: 1.25rem; margin-top: 1rem; padding: 1.5rem 1.75rem; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(120deg, var(--blue-soft), var(--surface) 60%); }
.about-banner-icon { display: grid; place-items: center; width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--surface); color: var(--blue); box-shadow: 0 6px 18px rgba(29, 78, 216, 0.15); flex-shrink: 0; }
.about-banner-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.about-banner h3 { margin: 0 0 0.2rem; color: var(--navy); }
.about-banner p { margin: 0; color: var(--ink-soft); }
.profile-head { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1rem; }
.profile-cat { margin: 0.35rem 0; font-family: var(--font-ui); color: var(--muted); font-size: 0.9rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem 0.2rem 0.4rem; border-radius: 999px; font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 9%, var(--surface)); }
.profile-places { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-ui); font-size: 0.92rem; color: var(--muted); }
.profile-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.profile-gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* ——— Formulare ——— */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.card-form { max-width: none; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 16px 40px rgba(11, 31, 63, 0.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.bn-form input, .bn-form select, .bn-form textarea { border-radius: 10px; border-color: var(--line-strong); font-family: var(--font-ui); font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; width: 100%; }
.bn-form input:focus, .bn-form select:focus, .bn-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12); }
.bn-form .invalid { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1); }
.bn-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.bn-form legend { font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; padding: 0; }
.bn-form .form-check input { width: auto; accent-color: var(--navy); }
.is-disabled { opacity: 0.45; }
.hint { margin: 0; font-family: var(--font-ui); font-size: 0.86rem; color: var(--muted); }
.form-error { margin: 0; padding: 0.8rem 1rem; border-radius: 10px; background: var(--tint-red); color: var(--ink-red); font-family: var(--font-ui); font-weight: 600; }
.route-line { margin: -0.3rem 0 0; font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted); }
.route-line strong { color: var(--navy); }
.form-aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--nav-h) + 1rem); }
.aside-box { border-radius: 16px; }
.step-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; font-family: var(--font-ui); font-size: 0.95rem; color: var(--ink-soft); }
.form-result { display: flex; gap: 0.9rem; align-items: flex-start; border-radius: 16px; }
.form-result p { margin: 0.25rem 0 0; }
.result-icon { display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: #22a06b; color: #fff; flex-shrink: 0; }
.result-neutral { display: block; background: var(--surface); border: 1px solid var(--line); }
.result-neutral h3 { margin-top: 0; }
.note { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: 12px; background: var(--blue-soft); font-family: var(--font-ui); font-size: 0.92rem; color: var(--ink-soft); margin: 0.75rem 0; }
.note .bn-icon { color: var(--blue); margin-top: 0.1rem; }
.note p { margin: 0.2rem 0 0; }
.note-crisis { background: var(--tint-orange); }
.note-crisis .bn-icon { color: var(--ink-orange); }
.note-protected { background: var(--tint-violet); }
.note-protected .bn-icon { color: var(--ink-violet); }
.check-group { padding: 1rem !important; border: 1px solid var(--line) !important; border-radius: 12px; background: var(--bg-soft); }
.reason-field { margin-top: 0.3rem; }
.chip-checks { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip-check input, .amount-pill input, .radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span, .amount-pill span { display: inline-flex; padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--font-ui); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; background: var(--surface); }
.chip-check input:checked + span, .amount-pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-check input:focus-visible + span, .amount-pill input:focus-visible + span, .radio-card input:focus-visible + span { box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.25); }
.chip-check, .amount-pill, .radio-card { position: relative; display: inline-flex !important; }
.amount-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.radio-card span { display: grid; gap: 0.15rem; width: 100%; padding: 0.9rem 1rem; border-radius: 12px; border: 1px solid var(--line-strong); cursor: pointer; background: var(--surface); transition: all 0.2s ease; }
.radio-card strong { font-family: var(--font-display); font-size: 1.05rem; }
.radio-card small { font-family: var(--font-ui); color: var(--muted); font-weight: 400; }
.radio-card input:checked + span { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 31, 63, 0.1); background: var(--blue-soft); }
.inline-checks { display: flex; gap: 1.25rem; }

/* ——— Anträge & Viewer ——— */
.app-type-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 0; }
.app-type-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem; border-radius: 16px; transition: transform 0.35s var(--ease), box-shadow 0.3s ease; }
.app-type-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11, 31, 63, 0.08); }
.app-type-card h3 { font-size: 1.25rem; margin: 0; flex: 1; }
.app-num { font-family: var(--font-ui); font-weight: 700; font-size: 0.8rem; color: var(--blue); letter-spacing: 0.1em; }
.app-mail { margin: 0; font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); }
.app-mail span { color: var(--ink-soft); word-break: break-all; }
.app-type-card .btn { align-self: flex-start; margin-top: 0.4rem; }
.app-type-card.is-protected { border-color: var(--tint-violet-line); background: linear-gradient(160deg, var(--surface), var(--tint-violet)); }
.viewer-link { margin-top: 1.5rem; font-family: var(--font-ui); }
.viewer-link a { color: var(--blue); font-weight: 600; }
.h1-long { font-size: clamp(2rem, 5vw, 3.8rem); }
.viewer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.viewer-main, .viewer-side { display: grid; gap: 1.25rem; }
.viewer-box { margin: 0; border-radius: 16px; background: var(--surface); padding: 1.4rem; }
.viewer-box h3 { font-size: 1.15rem; }
.viewer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.viewer-id { font-family: var(--font-ui); font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: 0.02em; margin: 0; }
.status-badge { padding: 0.3rem 0.8rem; border-radius: 999px; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; background: var(--blue-soft); color: var(--blue); }
.status-accepted { background: var(--tint-green); color: var(--ink-green); }
.status-rejected { background: var(--tint-red); color: var(--ink-red); }
ol.status-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem; margin: 1.25rem 0; counter-reset: st; }
ol.status-steps li { position: relative; padding-top: 0.9rem; font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); }
ol.status-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 99px; background: var(--bg-muted); }
ol.status-steps li.done::before { background: var(--navy); }
ol.status-steps li.current::before { background: linear-gradient(90deg, var(--navy) 50%, var(--bg-muted) 50%); }
ol.status-steps li.current { color: var(--navy); font-weight: 600; }
ol.status-steps span { all: unset; }
.status-message { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0; padding: 0.8rem 1rem; border-radius: 12px; background: var(--bg-soft); font-family: var(--font-ui); font-size: 0.95rem; }
.viewer-dl { display: grid; grid-template-columns: minmax(120px, 0.6fr) 1fr; gap: 0.4rem 1rem; margin: 0 0 1rem; font-family: var(--font-ui); font-size: 0.95rem; }
.viewer-dl dt { color: var(--muted); }
.viewer-dl dd { margin: 0; overflow-wrap: anywhere; }
.viewer-message { white-space: pre-wrap; margin: 0; }
.assignee-list { margin: 0; padding: 0; list-style: none; font-family: var(--font-ui); }
.chat-log { display: grid; gap: 0.6rem; margin-bottom: 0.8rem; max-height: 320px; overflow: auto; }
.chat-msg { padding: 0.65rem 0.85rem; border-radius: 14px; background: var(--bg-soft); max-width: 92%; }
.chat-msg.from-me { justify-self: end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.from-team { border-bottom-left-radius: 4px; }
.chat-msg p { margin: 0.15rem 0 0; font-size: 0.98rem; white-space: pre-wrap; }
.chat-who { font-family: var(--font-ui); font-size: 0.75rem; opacity: 0.75; }
.chat-form { display: grid; gap: 0.5rem; }
.chat-form textarea { font: inherit; font-family: var(--font-ui); padding: 0.65rem 0.8rem; border-radius: 10px; border: 1px solid var(--line-strong); resize: vertical; }
.chat-form .btn { justify-self: end; }
.empty-state { display: grid; justify-items: center; gap: 0.6rem; padding: 2.5rem 1rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--muted); font-family: var(--font-ui); }
.empty-state .bn-icon { width: 30px; height: 30px; }
.empty-state p { margin: 0; }

/* ——— Unterstützung ——— */
.support-hero-grid { gap: 1.25rem; margin-top: 0; }
.support-path { position: relative; border-radius: 20px; padding: clamp(1.4rem, 3vw, 2rem); background: var(--surface); box-shadow: 0 16px 40px rgba(11, 31, 63, 0.05); }
.support-path h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.path-help { background: linear-gradient(160deg, var(--surface) 50%, var(--tint-red)); border-color: var(--tint-red-line); }
.path-bn { background: linear-gradient(160deg, var(--surface) 50%, var(--blue-soft)); border-color: var(--tint-blue-line); }
.path-icon { display: grid; place-items: center; width: 48px; height: 48px; padding: 11px; margin-bottom: 0.9rem; border-radius: 14px; background: var(--signal); color: #fff; }
.path-bn .path-icon { background: var(--navy); padding: 9px; }
.path-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.check-list { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.4rem; }
.check-list li { position: relative; padding-left: 1.6rem; font-size: 1.02rem; color: var(--ink-soft); }
.check-list li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.pay-banner { display: flex; gap: 0.9rem; align-items: flex-start; border-radius: 14px; border: 1px dashed var(--tint-orange-line); background: var(--tint-orange); }
.pay-banner .bn-icon { width: 22px; height: 22px; color: var(--ink-orange); margin-top: 0.1rem; }
.pay-banner strong { color: var(--ink-orange); }
.pay-banner span { color: var(--ink-soft); font-size: 0.95rem; }
.goal-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.1rem; }
.goal-card, .case-card { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.4rem; border-radius: 18px; box-shadow: 0 10px 30px rgba(11, 31, 63, 0.04); }
.goal-card h3, .case-card h3 { font-size: 1.3rem; margin: 0.2rem 0 0; }
.goal-card p, .case-card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.goal-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.goal-org { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.goal-badges { display: flex; gap: 0.35rem; }
.state-badge, .example-badge { padding: 0.18rem 0.6rem; border-radius: 999px; font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600; }
.example-badge { background: var(--tint-yellow); color: var(--ink-yellow); }
.state-badge.state-active { background: var(--tint-green); color: var(--ink-green); }
.state-badge.state-reached, .state-badge.state-exceeded { background: var(--blue-soft); color: var(--blue); }
.state-badge.state-completed { background: var(--bg-muted); color: var(--ink-soft); }
.state-badge.state-review { background: var(--tint-violet); color: var(--ink-violet); }
.goal-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.6rem; font-family: var(--font-ui); }
.goal-figures span { display: block; font-size: 0.78rem; color: var(--muted); }
.goal-figures strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.progress { height: 10px; margin: 0.6rem 0 0.2rem; }
.progress > span { background: linear-gradient(90deg, var(--navy), #2f6fed); transition: width 0.8s var(--ease); }
.state-completed .progress > span, .state-reached .progress > span, .state-exceeded .progress > span { background: linear-gradient(90deg, #137a4b, #22a06b); }
.goal-pct { font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted) !important; }
.goal-pct strong { color: var(--ink); }
.goal-card .btn-row { margin-top: auto; padding-top: 0.6rem; }
.supporter-list { list-style: none; margin: 0 0 0.75rem; padding: 0; font-family: var(--font-ui); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.supporter-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.9rem; }
.supporter-list li + li { border-top: 1px solid var(--line); }
.supporter-list li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.stat-tile { padding: 1.4rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 0.25rem; }
.stat-tile strong { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.stat-tile span { font-family: var(--font-ui); color: var(--muted); font-size: 0.92rem; }
.flow-steps { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; counter-reset: fl; }
.flow-steps li { counter-increment: fl; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem 0.45rem 0.45rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-family: var(--font-ui); font-size: 0.9rem; }
.flow-steps li::before { content: counter(fl); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.75rem; font-weight: 700; }
.cta-box { margin-top: 2rem; display: grid; gap: 0.5rem; justify-items: start; }
.cta-box h3, .cta-box p { margin: 0; }
.vehicle-grid, .rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.info-card { padding: 1.4rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.info-card h3 { font-size: 1.2rem; }
.info-card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.info-icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; margin-bottom: 0.8rem; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.info-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.faq-list { display: grid; gap: 0.7rem; max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 1.25rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-ui); color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 1.1rem; color: var(--ink-soft); }

/* ——— Community ——— */
.community-hero h1 { max-width: 16ch; }
.subnav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(var(--surface-rgb), 0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; padding: 0.5rem 0; }
.subnav a { padding: 0.45rem 0.9rem; border-radius: 999px; font-family: var(--font-ui); font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.subnav a.active { background: var(--navy); color: #fff; }
.preview-note { display: flex; gap: 0.6rem; align-items: center; padding: 0.75rem 1rem; margin-bottom: 1.25rem; border-radius: 12px; background: var(--tint-yellow); font-family: var(--font-ui); font-size: 0.92rem; color: var(--ink-yellow); }
.preview-note svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.forum-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 1.25rem; }
.search-field { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 0.5rem; padding: 0 0.9rem; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }
.search-field svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-field input { border: 0; outline: none; flex: 1; font-family: var(--font-ui); font-size: 0.98rem; background: transparent; min-width: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-muted); }
.seg button { appearance: none; border: 0; background: transparent; padding: 0.45rem 0.95rem; border-radius: 999px; font-family: var(--font-ui); font-weight: 500; font-size: 0.9rem; cursor: pointer; color: var(--ink-soft); }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.forum-layout { grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
.forum-cats { display: grid; gap: 0.2rem; margin: 0; position: sticky; top: calc(var(--nav-h) + 4rem); }
.forum-cat { appearance: none; width: 100%; display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border: 0; border-radius: 10px; background: transparent; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); cursor: pointer; text-align: left; }
.forum-cat .bn-icon { color: var(--c, var(--navy)); }
.forum-cat:hover { background: var(--bg-soft); }
.forum-cat.active { background: var(--blue-soft); color: var(--navy); }
.forum-cat-group ul { list-style: none; margin: 0 0 0.3rem; padding: 0 0 0 2.35rem; font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); display: grid; gap: 0.15rem; }
.thread-list { display: grid; gap: 0.9rem; margin: 0; }
.convo-card { padding: 1.3rem 1.4rem; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 8px 24px rgba(11, 31, 63, 0.04); }
.convo-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.mini-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(160deg, var(--avatar-a), var(--avatar-b)); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--rank); font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.convo-who { display: grid; flex: 1; min-width: 0; }
.convo-name { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.convo-role { font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); }
.convo-time { font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.convo-context { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0.4rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--tint-red); color: var(--signal); font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; }
.convo-card h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.convo-card > p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.convo-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--line); font-family: var(--font-ui); font-size: 0.88rem; color: var(--muted); }
.convo-group { padding: 0.15rem 0.6rem; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 9%, var(--surface)); font-weight: 600; }
.convo-actions { display: flex; gap: 1rem; }
.convo-actions span { display: inline-flex; align-items: center; gap: 0.3rem; }
.member-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }
.member-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s ease; }
.member-row:hover { border-color: var(--line-strong); }
.member-row-text { display: grid; min-width: 0; }
.member-row-text strong { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; font-family: var(--font-display); }
.member-row-text span { font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); }
.badge-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.8rem; }
.badge-card { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem; border-radius: 14px; }
.badge-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.badge-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.bn-badge { position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 10px; flex-shrink: 0; border-radius: 12px; color: #fff; background: linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 35%, transparent); overflow: hidden; }
.bn-badge .bn-icon { width: 100%; height: 100%; }
.bn-badge.sm { width: 20px; height: 20px; padding: 4px; border-radius: 6px; box-shadow: none; }
.bn-badge::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(var(--surface-rgb), 0.55) 50%, transparent 60%); transform: translateX(-100%); }
.bn-badge:hover::after, .badge-card:hover .bn-badge::after { transition: transform 0.7s var(--ease); transform: translateX(100%); }
.badge-card:hover .anim-spin .bn-icon, .bn-badge.anim-spin:hover .bn-icon { animation: badgeSpin 1.2s var(--ease); }
.badge-card:hover .anim-pulse, .bn-badge.anim-pulse:hover { animation: badgePulse 0.9s ease; }
.badge-card:hover .anim-lift .bn-icon, .badge-card:hover .anim-flash .bn-icon, .badge-card:hover .anim-draw .bn-icon { animation: badgeLift 0.6s var(--ease); }
.badge-more { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; color: var(--muted); }
@keyframes badgeSpin { to { transform: rotate(360deg); } }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 45%, transparent); } 60% { box-shadow: 0 0 0 10px transparent; } }
@keyframes badgeLift { 50% { transform: translateY(-2px) scale(1.08); } }
.achievements-head { margin-top: 3rem; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.75rem; }
.ach-card { display: flex; align-items: center; gap: 0.85rem; padding: 0.95rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); --r: #64748b; }
.ach-card h3 { font-size: 1rem; margin: 0 0 0.15rem; line-height: 1.3; }
.ach-icon { display: grid; place-items: center; width: 40px; height: 40px; padding: 9px; border-radius: 50%; flex-shrink: 0; color: var(--r); background: color-mix(in srgb, var(--r) 11%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--r) 40%, transparent); }
.ach-icon .bn-icon { width: 100%; height: 100%; }
.rarity { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--r); }
.rarity-uncommon { --r: #15803d; }
.rarity-rare { --r: #1d4ed8; }
.rarity-ultra { --r: #7c3aed; }
.rarity-legendary { --r: #d97706; }
.safety-steps { margin-bottom: 1.5rem; }

/* ——— Blog ——— */
.blog-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.blog-filter button { appearance: none; border: 1px solid var(--line-strong); background: var(--surface); padding: 0.4rem 0.85rem; border-radius: 999px; font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; cursor: pointer; color: var(--ink-soft); }
.blog-filter button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.blog-list { display: grid; gap: 0.8rem; margin: 0; }
.blog-entry { padding: 1.1rem 1.3rem; border-radius: 14px; border-left: 3px solid var(--navy); }
.blog-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem; font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); }
.blog-cat { margin: 0; }
.blog-text { margin: 0; font-size: 1.08rem; }
.blog-text strong { font-family: var(--font-display); }
.blog-role { margin: 0.2rem 0 0; font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); }

/* ——— Live-Daten ——— */
.live-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.live-head .section-head, .live-head > div { margin: 0; max-width: 40rem; }
.live-head h2 { margin-bottom: 0.4rem; }
.live-head .lead { margin: 0; }
.live-time { margin: 0; font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 0 rgba(34, 160, 107, 0.5); animation: livePulse 2s infinite; vertical-align: 0.05em; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.live-panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 1.25rem; }
.level-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.level-tile { padding: 1rem; border-radius: 14px; display: grid; gap: 0.2rem; background: var(--bg-soft); border-top: 4px solid var(--lv); }
.level-tile strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.level-tile span { font-family: var(--font-ui); font-size: 0.88rem; color: var(--muted); }
.lvl-1 { --lv: #facc15; } .lvl-2 { --lv: #f97316; } .lvl-3 { --lv: #dc2626; } .lvl-4 { --lv: #7e22ce; }
.warn-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.5rem; }
.warn-list li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.7rem 0.85rem; border-radius: 12px; border: 1px solid var(--line); }
.warn-dot { width: 10px; height: 10px; margin-top: 0.4rem; border-radius: 50%; background: var(--lv); flex-shrink: 0; }
.warn-text { display: grid; font-family: var(--font-ui); }
.warn-text strong { font-size: 0.95rem; }
.warn-text span { font-size: 0.85rem; color: var(--muted); }
.gauge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem; }
.gauge-card { padding: 1.2rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.gauge-top { display: flex; justify-content: space-between; gap: 0.5rem; font-family: var(--font-ui); font-size: 0.8rem; }
.gauge-river { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.gauge-state { padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--bg-muted); color: var(--ink-soft); }
.gauge-card.state-high .gauge-state { background: var(--tint-red); color: var(--ink-red); }
.gauge-card.state-low .gauge-state { background: var(--tint-yellow); color: var(--ink-yellow); }
.gauge-card h3 { font-size: 1.15rem; margin: 0.5rem 0 0.2rem; text-transform: capitalize; }
.gauge-value { margin: 0; font-family: var(--font-ui); color: var(--muted); }
.gauge-value strong { font-family: var(--font-display); font-size: 2rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.trend { font-size: 1.2rem; margin-left: 0.3rem; color: var(--ink-soft); }
.gauge-time { margin: 0.2rem 0 0; font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); }
.source-line { margin-top: 1rem; font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); }
.source-line a { color: var(--blue); }

/* ——— Responsive ——— */
@media (max-width: 1180px) {
  .nav-toggle { display: grid; }
  .nav-main {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    margin: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(var(--surface-rgb), 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(11, 31, 63, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s ease;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-main.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links { display: grid; gap: 0.15rem; position: static; transform: none; opacity: 1; pointer-events: auto; padding: 0; background: none; border: 0; max-height: none; }
  .nav-links a, .nav-dropdown > button { width: 100%; justify-content: space-between; border-radius: 10px; padding: 0.75rem 0.85rem; font-size: 1.02rem; }
  .nav-dropdown .dropdown-panel { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0.35rem 0.75rem; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-dropdown.open .dropdown-panel { display: grid; }
  .nav-tools { margin-left: auto; }
}
@media (max-width: 980px) {
  .about-hero-grid, .community-teaser-grid, .form-layout, .viewer-grid { grid-template-columns: 1fr; }
  .form-aside { position: static; }
  .member-grid { grid-template-columns: 1fr; }
  .stat-grid, .level-grid { grid-template-columns: repeat(2, 1fr); }
  .forum-layout { grid-template-columns: 1fr; }
  .forum-cats { position: static; display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .forum-cat-group { display: contents; }
  .forum-cat-group ul { display: none; }
  .forum-cat { width: auto; border: 1px solid var(--line); background: var(--surface); }
}
@media (max-width: 760px) {
  .mitteilungen-grid { grid-template-columns: 1fr; }
  .country-row { grid-auto-flow: row; grid-auto-columns: auto; }
  .country-wrap.is-scrollable .country-row { grid-auto-flow: column; grid-auto-columns: 82%; }
  .country-wrap.is-scrollable .country-arrow { display: none; }
  .about-pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .pillar { display: grid; grid-template-columns: 44px 1fr; column-gap: 0.9rem; }
  .pillar-icon { grid-row: span 2; margin: 0; }
  .member-card { flex-direction: column; align-items: center; text-align: center; padding: 1.3rem; }
  .member-top, .member-tags, .member-meta { justify-content: center; }
  .member-open { margin-left: 0; }
  .ring-avatar { width: 96px; height: 96px; }
  .form-row, .radio-cards { grid-template-columns: 1fr; }
  ol.status-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: 0.7rem; }
  ol.status-steps li { font-size: 0.7rem; }
  .goal-grid { grid-template-columns: 1fr; }
  .about-banner { flex-direction: column; align-items: flex-start; }
  .team-divider { flex-direction: column; text-align: center; gap: 0.6rem; }
  .team-divider::before, .team-divider::after { display: none; }
  .announcement-host { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; }
  .profile-head { flex-direction: column; text-align: center; }
  .profile-head .badge-row { justify-content: center; }
  .viewer-dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .viewer-dl dd { margin-bottom: 0.5rem; }
}
@media (max-width: 520px) {
  .logo-text { font-size: 1.02rem; }
  .nav-inner { gap: 0.5rem; }
  .lang-switch button { min-width: 1.85rem; padding: 0 0.3rem; font-size: 0.7rem; height: 28px; }
  .nav-icon-btn { display: none; }
  .hero-brand { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .stat-grid, .level-grid { grid-template-columns: 1fr 1fr; }
  .flow-steps li { font-size: 0.82rem; }
}
@media (max-width: 380px) {
  .logo-text { display: none; }
}
.nav-mobile-only { display: none; }
.nav-plain-btn { appearance: none; border: 0; background: transparent; width: 100%; text-align: left; padding: 0.75rem 0.85rem; border-radius: 10px; font-family: var(--font-ui); font-size: 1.02rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; }
@media (max-width: 520px) {
  .nav-mobile-only { display: block; border-top: 1px solid var(--line); margin-top: 0.35rem; padding-top: 0.35rem; }
  .logo-text { font-size: 0.98rem; }
  .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
  .logo-mark img { width: 23px; height: 23px; }
}
.org-coming { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 1rem; }
.org-coming .org-icon { margin: 0; grid-row: span 2; }
.org-coming h3 { margin: 0; font-size: 1.15rem; }
.org-coming p { grid-column: 2; margin: 0; }
.org-coming .org-foot { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 640px) { .org-coming { grid-template-columns: auto 1fr; } .org-coming .org-foot { grid-column: 2; grid-row: auto; margin-top: 0.5rem; } }
[hidden] { display: none !important; }
.gauge-grid .empty-state, .gauge-grid > .muted { grid-column: 1 / -1; }
.live-panel .empty-state { border: 0; padding: 1.5rem 1rem; }
.info-table td, .info-table th { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 0; border-bottom: 0; }
}
@media (max-width: 1180px) {
  .site-header .nav-main { background: var(--surface); }
  .nav-links { justify-content: stretch; }
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-toggle { flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { margin: 0; }
@media (max-width: 1180px) { .nav-toggle { display: flex; } }
.nav-toggle.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ——— Kopfbereich: einheitliche Mischfarbe statt Weiß/Verlauf ———
   #E0E8EC (70 %) + #98A0BC (30 %) = #CAD2DE */
:root { --hero-tone: #cad2de; --hero-end: #cad2de; }
.hero-shade { background: rgba(202, 210, 222, 0.9); }
.hero + .section-soft { background: var(--bg-soft); }
.about-hero, .page-hero { background: var(--hero-tone); border-bottom: 0; }
.page-hero .breadcrumb, .page-hero .lead, .about-hero .lead { color: var(--ink-soft); }
.about-pillars { background: rgba(var(--surface-rgb), 0.72); border-color: rgba(11, 31, 63, 0.1); }
.site-header { background: rgba(var(--surface-rgb), 0.5); }
.member-roles { display: grid; gap: 0.2rem; font-family: var(--font-ui); font-size: 0.86rem; color: var(--ink-soft); }
.member-roles span { position: relative; padding-left: 0.9rem; }
.member-roles span::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--rank, var(--navy)); }
@media (max-width: 760px) { .member-roles { justify-items: center; text-align: center; } .member-roles span { padding-left: 0; } .member-roles span::before { display: none; } }

/* ——— Hero: Verlauf im dunkleren Blau (#98A0BC) statt Weiß, rechts frei für das RTW-Foto ——— */
.hero-shade {
  background:
    linear-gradient(90deg, rgba(152, 160, 188, 0.94) 0%, rgba(152, 160, 188, 0.82) 30%, rgba(152, 160, 188, 0.38) 60%, rgba(152, 160, 188, 0.08) 100%),
    linear-gradient(180deg, rgba(152, 160, 188, 0.25) 0%, rgba(152, 160, 188, 0) 30%, rgba(152, 160, 188, 0) 75%, rgba(152, 160, 188, 0.55) 100%);
}
.hero .hero-copy { color: var(--ink); }
.hero .eyebrow { color: var(--ink-soft); }
.hero .btn-ghost { color: #0b0f14; }
.about-hero, .page-hero {
  background: linear-gradient(90deg, rgba(152, 160, 188, 0.55) 0%, rgba(152, 160, 188, 0.22) 60%, rgba(152, 160, 188, 0.08) 100%), var(--bg-soft);
}
@media (max-width: 760px) {
  .hero-shade { background: linear-gradient(180deg, rgba(152, 160, 188, 0.55) 0%, rgba(152, 160, 188, 0.85) 45%, rgba(152, 160, 188, 0.92) 100%); }
}
.goal-grid > .empty-state { grid-column: 1 / -1; }

/* ——— Navbar verschmilzt oben mit dem Hintergrund, Glas-Effekt erst beim Scrollen ——— */
.site-header:not(.scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.site-header:not(.scrolled) .lang-switch,
.site-header:not(.scrolled) .nav-icon-btn,
.site-header:not(.scrolled) .nav-toggle { background: rgba(var(--surface-rgb), 0.35); border-color: rgba(11, 15, 20, 0.14); }
.site-header:not(.scrolled) .nav-links > li > a:hover,
.site-header:not(.scrolled) .nav-dropdown > button:hover,
.site-header:not(.scrolled) .nav-dropdown.open > button { background: rgba(var(--surface-rgb), 0.4); }
/* Unterseiten: Kopfbereich läuft unter die Navbar, damit sie mit ihm verschmilzt */
.page-hero, .about-hero { margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4rem)); }

/* ——— Sauberer, kurzer Übergang am unteren Rand ——— */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 246, 248, 0) 0%, var(--bg-soft) 100%);
}
.about-hero, .page-hero {
  background:
    linear-gradient(180deg, rgba(var(--surface-rgb), 0) 70%, var(--surface) 100%),
    linear-gradient(90deg, rgba(152, 160, 188, 0.55) 0%, rgba(152, 160, 188, 0.22) 60%, rgba(152, 160, 188, 0.08) 100%),
    var(--bg-soft);
}
/* Navbar-Bereich oben etwas ruhiger, damit die Links auch über dem hellen Blaulicht lesbar bleiben */
.hero-shade {
  background:
    linear-gradient(180deg, rgba(152, 160, 188, 0.7) 0%, rgba(152, 160, 188, 0) 22%),
    linear-gradient(90deg, rgba(152, 160, 188, 0.94) 0%, rgba(152, 160, 188, 0.82) 30%, rgba(152, 160, 188, 0.38) 60%, rgba(152, 160, 188, 0.08) 100%);
}
.site-header:not(.scrolled) .nav-links a,
.site-header:not(.scrolled) .nav-dropdown > button { color: #0b0f14; }
.site-header:not(.scrolled) .lang-switch button:not([aria-pressed="true"]) { color: var(--ink-soft); }
@media (max-width: 760px) {
  .hero-shade { background: linear-gradient(180deg, rgba(152, 160, 188, 0.7) 0%, rgba(152, 160, 188, 0.85) 45%, rgba(152, 160, 188, 0.92) 100%); }
}

/* ——— Cookie- & Datenschutzhinweis ——— */
.cookie-banner {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 300;
  width: min(460px, calc(100vw - 2.5rem));
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(var(--surface-rgb), 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(11, 15, 20, 0.08);
  box-shadow: 0 24px 60px rgba(11, 31, 63, 0.18);
  animation: cookieIn 0.45s var(--ease) both;
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-head { display: flex; gap: 0.85rem; align-items: flex-start; }
.cookie-icon { display: grid; place-items: center; width: 38px; height: 38px; padding: 9px; flex-shrink: 0; border-radius: 11px; background: var(--navy); color: #fff; }
.cookie-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cookie-head h2 { font-size: 1.1rem; margin: 0 0 0.3rem; padding: 0; }
.cookie-head p { margin: 0; font-family: var(--font-ui); font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); }
.cookie-head a { color: var(--blue); font-weight: 600; white-space: nowrap; }
.cookie-settings { display: none; gap: 0.5rem; margin-top: 1rem; }
.cookie-banner.show-settings .cookie-settings { display: grid; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 0.85rem; border-radius: 12px; background: var(--bg-soft); cursor: pointer; }
.cookie-option span { display: grid; gap: 0.15rem; font-family: var(--font-ui); }
.cookie-option strong { font-size: 0.92rem; }
.cookie-option small { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.cookie-option .switch:disabled { opacity: 0.55; cursor: not-allowed; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem; margin-top: 1rem; }
.cookie-actions .btn { min-height: 38px; font-size: 0.88rem; padding: 0.45rem 0.9rem; }
.cookie-actions [data-cookie="save"] { display: none; }
.cookie-banner.show-settings [data-cookie="save"] { display: inline-flex; }
.cookie-banner.show-settings [data-cookie="settings"] { display: none; }
.footer-bottom-links { display: inline-flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.footer-link-btn { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer-link-btn:hover { color: var(--ink); }
.consent-box { display: grid; justify-items: center; gap: 0.75rem; padding: 2rem 1rem; text-align: center; font-family: var(--font-ui); color: var(--ink-soft); grid-column: 1 / -1; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--surface); }
.consent-box .bn-icon { width: 26px; height: 26px; color: var(--navy); }
.consent-box p { margin: 0; max-width: 46ch; font-size: 0.95rem; }
.live-panel .consent-box { border: 0; }
@media (max-width: 760px) {
  .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; padding: 1rem; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1 1 auto; justify-content: center; }
}
.cookie-banner.show-settings { width: min(540px, calc(100vw - 2.5rem)); }

/* Cookie-Hinweis mittig unten (wie bei der Grundschule) */
.cookie-banner {
  left: 50%;
  right: auto;
  bottom: 1.25rem;
  width: min(640px, calc(100vw - 2rem));
  transform: translateX(-50%);
  animation: cookieInCenter 0.45s var(--ease) both;
}
.cookie-banner.show-settings { width: min(680px, calc(100vw - 2rem)); }
@keyframes cookieInCenter { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookie-actions { justify-content: center; }
.cookie-head { justify-content: center; }
@media (max-width: 760px) {
  .cookie-banner { left: 50%; right: auto; width: calc(100vw - 1.5rem); bottom: 0.75rem; }
}

/* =====================================================================
   Dark Mode
   ===================================================================== */
:root {
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --tint-red: #fdebee; --tint-yellow: #fff4d6; --tint-green: #e7f6ee; --tint-orange: #fff8ef; --tint-violet: #f3efff;
  --tint-red-line: #f3d5da; --tint-blue-line: #d6e1fb; --tint-violet-line: #ddd3fb; --tint-orange-line: #e7c3a0;
  --ink-red: #9b0d24; --ink-yellow: #7a5600; --ink-green: #137a4b; --ink-orange: #92400e; --ink-violet: #6d28d9;
  --avatar-a: #eef2f8; --avatar-b: #dde4ee;
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1120;
  --bg-soft: #0f1729;
  --bg-muted: #1b2538;
  --ink: #e7ecf3;
  --ink-soft: #c2cbd8;
  --muted: #8d99ab;
  --line: #233047;
  --line-strong: #34435c;
  --surface: #121c31;
  --surface-rgb: 18, 28, 49;
  --navy: #3b6fe0;
  --blue: #86a8ff;
  --blue-soft: rgba(59, 111, 224, 0.16);
  --accent: #86a8ff;
  --signal: #ff5a6e;
  --hero-end: #0f1729;
  --tint-red: rgba(255, 90, 110, 0.13); --tint-yellow: rgba(250, 204, 21, 0.12); --tint-green: rgba(34, 197, 94, 0.13); --tint-orange: rgba(249, 115, 22, 0.12); --tint-violet: rgba(139, 92, 246, 0.15);
  --tint-red-line: rgba(255, 90, 110, 0.3); --tint-blue-line: rgba(134, 168, 255, 0.3); --tint-violet-line: rgba(139, 92, 246, 0.35); --tint-orange-line: rgba(249, 115, 22, 0.35);
  --ink-red: #ff9aa8; --ink-yellow: #fcd96b; --ink-green: #6ee7a4; --ink-orange: #fdba74; --ink-violet: #c4b5fd;
  --avatar-a: #1d2942; --avatar-b: #16213a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .btn { --btn-bg: #e7ecf3; --btn-fg: #0b1120; }
html[data-theme="dark"] .btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
html[data-theme="dark"] .logo-mark { background: linear-gradient(150deg, #1b2c52, #0f1b36); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .site-header.scrolled { background: rgba(11, 17, 32, 0.78); border-bottom-color: var(--line); }
html[data-theme="dark"] .site-header:not(.scrolled) .nav-links a,
html[data-theme="dark"] .site-header:not(.scrolled) .nav-dropdown > button { color: var(--ink); }
html[data-theme="dark"] .site-header:not(.scrolled) .lang-switch button:not([aria-pressed="true"]) { color: var(--ink-soft); }
html[data-theme="dark"] .site-header:not(.scrolled) .lang-switch,
html[data-theme="dark"] .site-header:not(.scrolled) .nav-icon-btn,
html[data-theme="dark"] .site-header:not(.scrolled) .nav-toggle { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .nav-toggle span { background: var(--ink); }
html[data-theme="dark"] .dropdown-panel { background: rgba(18, 28, 49, 0.97); border-color: var(--line); }
html[data-theme="dark"] .hero-shade {
  background:
    linear-gradient(180deg, rgba(11, 17, 32, 0.75) 0%, rgba(11, 17, 32, 0) 22%),
    linear-gradient(90deg, rgba(11, 17, 32, 0.94) 0%, rgba(11, 17, 32, 0.8) 30%, rgba(11, 17, 32, 0.35) 60%, rgba(11, 17, 32, 0.05) 100%);
}
html[data-theme="dark"] .hero::after { background: linear-gradient(180deg, rgba(15, 23, 41, 0) 0%, var(--bg-soft) 100%); }
html[data-theme="dark"] .hero .hero-copy, html[data-theme="dark"] .hero .eyebrow { color: var(--ink-soft); }
html[data-theme="dark"] .hero .btn-ghost { color: var(--ink); }
html[data-theme="dark"] .hero-brand { color: #fff; }
html[data-theme="dark"] .about-hero, html[data-theme="dark"] .page-hero {
  background:
    linear-gradient(180deg, rgba(11, 17, 32, 0) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(59, 111, 224, 0.22) 0%, rgba(59, 111, 224, 0.08) 60%, rgba(59, 111, 224, 0.02) 100%),
    var(--bg-soft);
}
html[data-theme="dark"] .page-hero .breadcrumb, html[data-theme="dark"] .page-hero .lead, html[data-theme="dark"] .about-hero .lead { color: var(--ink-soft); }
html[data-theme="dark"] .site-footer { background: #080d19; border-top-color: var(--line); }
html[data-theme="dark"] .section-soft, html[data-theme="dark"] .hero + .section-soft { background: var(--bg-soft); }
html[data-theme="dark"] .team-divider-icon, html[data-theme="dark"] .cookie-icon, html[data-theme="dark"] .ann-icon { background: #1d3a7a; }
html[data-theme="dark"] .map-land { fill: #1b2740; }
html[data-theme="dark"] .map-land-edge { stroke: #34435c; }
html[data-theme="dark"] .country-browser::before { opacity: 0.25; }
html[data-theme="dark"] img { filter: brightness(0.92); }
html[data-theme="dark"] .logo-mark img, html[data-theme="dark"] .path-icon img { filter: none; }
html[data-theme="dark"] mark.todo { background: var(--tint-yellow); color: var(--ink-yellow); }

/* ——— Darstellungs-Regler (Sonne / Mond) unten rechts ——— */
.theme-switch {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 250;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(11, 15, 20, 0.12);
  background: rgba(var(--surface-rgb), 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(11, 31, 63, 0.14);
}
html[data-theme="dark"] .theme-switch { border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); }
.theme-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  width: 38px;
  height: 34px;
  padding: 8px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.theme-switch svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-switch button[aria-pressed="true"] svg { animation: themeIcon 0.5s var(--ease); }
@keyframes themeIcon { from { transform: rotate(-60deg) scale(0.6); opacity: 0.3; } to { transform: none; opacity: 1; } }
/* Announcement sitzt über dem Regler */
.announcement-host { bottom: 4.9rem; }
html.theme-anim, html.theme-anim * { transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease !important; }
@media (max-width: 760px) {
  .theme-switch { right: 0.75rem; bottom: 0.75rem; }
  .theme-switch button { width: 34px; height: 32px; padding: 7px; }
  .announcement-host { bottom: 4.2rem; }
}
.mini-avatar { overflow: hidden; } .mini-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
html[data-theme="dark"] .rank-pill,
html[data-theme="dark"] .member-open,
html[data-theme="dark"] .avatar-initials { color: color-mix(in srgb, var(--rank) 55%, #fff); }
html[data-theme="dark"] .rank-pill { background: color-mix(in srgb, var(--rank) 16%, transparent); }
html[data-theme="dark"] .org-country-card .more { color: color-mix(in srgb, var(--org-color) 60%, #fff); }
html[data-theme="dark"] .org-icon { color: color-mix(in srgb, var(--org-color, var(--blue)) 65%, #fff); }

/* ——— Feinschliff Dark Mode (Runde 2) ——— */
/* Regler: Icons exakt mittig */
.theme-switch { align-items: center; }
.theme-switch button { display: grid; place-items: center; padding: 0; line-height: 0; }
.theme-switch svg { width: 18px; height: 18px; display: block; flex: none; }
@media (max-width: 760px) { .theme-switch button { padding: 0; } .theme-switch svg { width: 17px; height: 17px; } }

/* 3D-Karte im Dark Mode */
html[data-theme="dark"] .map-stage {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(59, 111, 224, 0.14), transparent 70%),
    linear-gradient(160deg, #0f1729 0%, #111b30 50%, #0f1729 100%);
}
html[data-theme="dark"] .map-stage::before {
  background-image:
    linear-gradient(rgba(134, 168, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 168, 255, 0.05) 1px, transparent 1px);
}
html[data-theme="dark"] .map-land { fill: #1a2640; stroke: #3a4d70; stroke-width: 2; filter: none; }
html[data-theme="dark"] .map-land-edge { fill: #0a101e; stroke: none; }
html[data-theme="dark"] .map-shadow { background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 68%); }
html[data-theme="dark"] .city-pin .pin-label { fill: #e7ecf3; stroke: #1a2640; stroke-width: 4px; }
html[data-theme="dark"] .city-pin .pin-dot { fill: #6f93ff; stroke: #1a2640; }
html[data-theme="dark"] .city-pin:hover .pin-dot, html[data-theme="dark"] .city-pin:focus-visible .pin-dot { fill: #9db6ff; }
html[data-theme="dark"] .city-pin.active .pin-dot { fill: #ff4d5e; }
html[data-theme="dark"] .city-pin .pin-ring { stroke: rgba(255, 77, 94, 0.55); }
html[data-theme="dark"] .map-hint { background: rgba(18, 28, 49, 0.9); color: var(--ink-soft); }

/* Farbige Chips/Abzeichen: dunkle Farben aufhellen, damit nichts „blau auf blau“ ist */
html[data-theme="dark"] .badge-chip,
html[data-theme="dark"] .convo-group,
html[data-theme="dark"] .teaser-icon {
  color: color-mix(in srgb, var(--c) 45%, #fff);
  background: color-mix(in srgb, var(--c) 24%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, rgba(255, 255, 255, 0.12));
}
html[data-theme="dark"] .bn-badge { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 72%, #fff 28%), var(--c)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 16px rgba(0, 0, 0, 0.35); }
html[data-theme="dark"] .map-shadow { display: none; }
html[data-theme="dark"] .map-plate { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.45)); }
html[data-theme="dark"] .btn:disabled, html[data-theme="dark"] .btn[disabled] { background: #1f2b44; color: #8d9ab2; border-color: transparent; opacity: 1; }
html[data-theme="dark"] .mini-avatar { color: color-mix(in srgb, var(--rank, #86a8ff) 45%, #fff); }

/* ——— Städte-Karte: Länderwechsel (Deutschland / Schweiz) ——— */
.map-country {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 3;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(11, 31, 63, 0.08);
  cursor: default;
}
.map-country button {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem 0.42rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.map-country button:hover { color: var(--ink); }
.map-country button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.map-country .bn-flag { width: 1.35em; height: 0.95em; }
.map-country .bn-flag-ch { width: 0.95em; }
.map-plate.is-switching .map-svg { animation: mapSwitch 0.55s var(--ease); }
@keyframes mapSwitch { from { opacity: 0; transform: translateZ(12px) scale(0.94); } to { opacity: 1; transform: translateZ(12px) scale(1); } }
html[data-theme="dark"] .map-country { background: rgba(18, 28, 49, 0.9); border-color: rgba(255, 255, 255, 0.1); }
@media (max-width: 760px) {
  .map-country { top: 0.75rem; left: 0.75rem; }
  .map-country button { padding: 0.36rem 0.7rem 0.36rem 0.5rem; font-size: 0.82rem; }
}
.map-shadow { display: none; }
.map-plate { filter: drop-shadow(0 22px 26px rgba(12, 45, 90, 0.16)); }
html[data-theme="dark"] .map-plate { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.45)); }

/* ——— Mobile-Menü: geschlossen = wirklich nicht klickbar ——— */
@media (max-width: 1180px) {
  .nav-main:not(.open) { visibility: hidden; transition: transform 0.35s var(--ease), opacity 0.3s ease, visibility 0s linear 0.35s; }
  .nav-main.open { visibility: visible; transition: transform 0.35s var(--ease), opacity 0.3s ease, visibility 0s; }
  .nav-main:not(.open) * { pointer-events: none !important; }
}

/* ——— Hero am Handy: Text oben, Foto komplett als Band darunter ——— */
@media (max-width: 760px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    background: linear-gradient(180deg, #b4bbd0 0%, #98a0bc 100%);
  }
  .hero-shade { display: none; }
  .hero-content { order: 1; padding-top: calc(var(--nav-h) * 0.4 + 2.2rem); padding-bottom: 0.5rem; }
  .hero-media {
    order: 2;
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    aspect-ratio: 16 / 10;
    transform: none !important;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
  }
  .hero-media img { transform: none; object-position: 62% 60%; }
  .hero::after { z-index: 1; height: 70px; }
  html[data-theme="dark"] .hero { background: linear-gradient(180deg, #0f1729 0%, #0b1120 100%); }
}
/* Handy: Foto direkt oben unter der Navbar, Text darunter */
@media (max-width: 760px) {
  .hero { padding-top: var(--nav-h); }
  .hero-media { order: 0; margin-top: 0.25rem;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%); }
  .hero-content { order: 1; padding-top: 0; margin-top: -1.6rem; position: relative; z-index: 1; padding-bottom: 3rem; }
}
/* Handy: Foto als sauber abgerundete Karte statt weicher Maske */
@media (max-width: 760px) {
  .hero-media {
    width: auto;
    margin: 0.75rem 1.25rem 0;
    border-radius: 18px;
    overflow: hidden;
    -webkit-mask-image: none;
    mask-image: none;
    box-shadow: 0 18px 40px rgba(11, 31, 63, 0.28);
  }
  .hero-media img { object-position: 60% 62%; }
  .hero-content { margin-top: 0; padding-top: 1.8rem; }
  html[data-theme="dark"] .hero-media { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06); }
}

/* ——— Weihnachts-Logo (Badge mit eigenem Hintergrund) ——— */
.logo-mark--badge,
html[data-theme="dark"] .logo-mark--badge {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 11px;
  background: transparent;
  box-shadow: 0 4px 14px rgba(11, 31, 63, 0.22);
  overflow: hidden;
}
.logo-mark--badge img,
.site-footer .logo-mark--badge img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .logo-mark--badge, html[data-theme="dark"] .logo-mark--badge { width: 36px; height: 36px; border-radius: 10px; }
  .logo-mark--badge img { width: 100%; height: 100%; }
}

/* =====================================================================
   Login / Registrierung / Konto / Admin  (js/auth.js, js/auth-pages.js)
   ===================================================================== */
.auth-pending main { visibility: hidden; }

/* ——— Navbar: Anmelden-Button & Konto-Menü ——— */
.nav-account { position: relative; }
.nav-login-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  height: 38px; padding: 0 0.95rem 0 0.75rem;
  border-radius: 999px; background: var(--navy); color: #fff;
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(11, 31, 63, 0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.2s ease;
}
.nav-login-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-login-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(11, 31, 63, 0.24); color: #fff; }
.nav-avatar-btn { appearance: none; border: 0; padding: 2px; background: transparent; border-radius: 999px; cursor: pointer; display: grid; place-items: center; }
.nav-avatar-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 120; width: 260px;
  padding: 0.5rem; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: 0 22px 50px rgba(11, 31, 63, 0.16);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
}
.nav-account.open .account-menu { opacity: 1; visibility: visible; transform: none; }
.account-menu-head { display: flex; gap: 0.75rem; align-items: center; padding: 0.6rem 0.6rem 0.85rem; margin-bottom: 0.35rem; border-bottom: 1px solid var(--line); }
.account-menu-head > div { display: grid; gap: 0.1rem; min-width: 0; justify-items: start; }
.account-menu-head strong { font-family: var(--font-ui); font-size: 0.98rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.account-menu-head > div > span:not(.role-badge) { font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); }
.account-menu-head .role-badge { margin-top: 0.25rem; }
.account-menu a, .account-menu button {
  display: flex; align-items: center; gap: 0.65rem; width: 100%;
  padding: 0.6rem 0.65rem; border: 0; border-radius: 10px; background: none;
  font-family: var(--font-ui); font-size: 0.93rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; text-align: left; cursor: pointer;
}
.account-menu a:hover, .account-menu button:hover { background: var(--blue-soft); color: var(--ink); }
.account-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.account-menu .account-logout { color: var(--signal); }
.account-menu .account-logout:hover { background: var(--tint-red); color: var(--signal); }

/* ——— Avatare & Rollen ——— */
.auth-avatar {
  --av: #1d4ed8;
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(150deg, color-mix(in srgb, var(--av) 85%, #fff) 0%, var(--av) 100%);
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--av) 45%, transparent);
}
.auth-avatar.sm { width: 34px; height: 34px; font-size: 0.82rem; }
.auth-avatar.xl { width: 104px; height: 104px; font-size: 2.3rem; box-shadow: 0 0 0 5px var(--surface), 0 0 0 7px color-mix(in srgb, var(--av) 40%, transparent), 0 18px 40px rgba(11, 31, 63, 0.18); }
.auth-avatar.role-admin { --av: #7c3aed; }
.auth-avatar.role-moderator { --av: #0a6b4a; }
.auth-avatar.role-user { --av: #1d4ed8; }
.role-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.18rem 0.6rem; border-radius: 999px;
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--blue-soft); color: var(--blue);
}
.role-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.role-badge.role-admin { background: var(--tint-violet); color: var(--ink-violet); }
.role-badge.role-moderator { background: var(--tint-green); color: var(--ink-green); }

/* ——— Login-Seite ——— */
.auth-section {
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + clamp(1.5rem, 5vw, 3.5rem)) 0 clamp(3rem, 7vw, 5.5rem);
  min-height: calc(100vh - 40px);
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(29, 78, 216, 0.10), transparent 70%),
    linear-gradient(90deg, rgba(152, 160, 188, 0.45) 0%, rgba(152, 160, 188, 0.16) 60%, rgba(152, 160, 188, 0.05) 100%),
    var(--bg-soft);
}
.auth-card {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  max-width: 1040px; margin: 0 auto; overflow: hidden;
  border-radius: 26px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(11, 31, 63, 0.14), 0 4px 14px rgba(11, 31, 63, 0.05);
}
.auth-brand {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 2rem; justify-content: space-between;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(160deg, #0b1f3f 0%, #10305f 55%, #173f86 100%);
}
.auth-beacon { position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; filter: blur(30px); pointer-events: none; }
.auth-beacon--a { top: -170px; right: -150px; background: radial-gradient(circle, rgba(59, 130, 246, 0.75), rgba(59, 130, 246, 0) 65%); animation: authBeacon 3.2s ease-in-out infinite; }
.auth-beacon--b { bottom: -200px; left: -170px; background: radial-gradient(circle, rgba(96, 165, 250, 0.5), rgba(96, 165, 250, 0) 65%); animation: authBeacon 3.2s ease-in-out -1.6s infinite; }
@keyframes authBeacon { 0%, 100% { opacity: 0.35; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.05); } }
.auth-brand-logo { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.auth-brand-logo:hover { color: #fff; }
.auth-brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); }
.auth-brand-mark img { width: 34px; height: 34px; object-fit: contain; }
.auth-brand-eyebrow { margin: 0 0 0.6rem; font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #93b4ff; }
.auth-brand h2 { margin: 0 0 0.8rem; color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.08; }
.auth-brand-body > p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 1.02rem; line-height: 1.6; }
.auth-perks { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.auth-perks li { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-ui); font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); }
.auth-perk-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.12); }
.auth-perk-icon svg { width: 18px; height: 18px; fill: none; stroke: #bcd0ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-brand-foot { margin: 0; font-family: var(--font-ui); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }

.auth-panel { padding: clamp(1.5rem, 4vw, 2.75rem); display: flex; flex-direction: column; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--bg-muted); margin-bottom: 1.75rem; }
.auth-tabs button {
  position: relative; z-index: 1; appearance: none; border: 0; background: none; cursor: pointer;
  height: 42px; border-radius: 999px; font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600; color: var(--muted);
  transition: color 0.25s ease;
}
.auth-tabs button[aria-selected="true"] { color: var(--ink); }
.auth-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.auth-tab-ink {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--surface); box-shadow: 0 4px 12px rgba(11, 31, 63, 0.1);
  transition: transform 0.4s var(--ease);
}
.auth-panel[data-view="register"] .auth-tab-ink { transform: translateX(100%); }
.auth-form { display: grid; gap: 1rem; max-width: none; }
.auth-form[hidden] { display: none; }
.auth-form.auth-in { animation: authIn 0.45s var(--ease) both; }
@keyframes authIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.auth-head h1 { margin: 0 0 0.3rem; font-size: clamp(1.8rem, 3.4vw, 2.3rem); line-height: 1.1; }
.auth-head p { margin: 0; }
.auth-form label > span:first-child { display: inline-block; }
.auth-form em.muted, .acc-card em.muted { font-style: normal; font-size: 0.82rem; font-weight: 500; }
.auth-remember { margin-top: -0.2rem; font-family: var(--font-ui); font-size: 0.94rem; }
.auth-submit { width: 100%; min-height: 52px; margin-top: 0.2rem; --btn-bg: var(--navy); box-shadow: 0 10px 24px rgba(11, 31, 63, 0.2); }
.auth-switch { margin: 0.2rem 0 0; text-align: center; font-family: var(--font-ui); font-size: 0.94rem; color: var(--muted); }
.link-btn { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--blue); }
.link-btn:hover { text-decoration: underline; }
.field-hint { margin: -0.55rem 0 0; font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); }
.field-hint.is-error { color: var(--signal); }

.pw-field { position: relative; display: block; }
.pw-field input { padding-right: 3rem !important; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 36px; padding: 8px;
  border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); background: var(--bg-muted); }
.pw-toggle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 4px; margin-top: 0.45rem; min-height: 16px; }
.pw-meter i { height: 4px; border-radius: 4px; background: var(--bg-muted); transition: background 0.25s ease; }
.pw-meter em { min-width: 3.6rem; text-align: right; font-style: normal; font-family: var(--font-ui); font-size: 0.76rem; font-weight: 600; color: var(--muted); }
.pw-meter[data-score="0"] i:nth-child(-n+1) { background: #dc2626; }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: #f97316; }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: #eab308; }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: #22c55e; }
.pw-meter[data-score="4"] i:nth-child(-n+4) { background: #16a34a; }

.form-error.shake { animation: authShake 0.4s ease; }
@keyframes authShake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.btn.is-busy { opacity: 0.7; pointer-events: none; }
.btn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: authSpin 0.7s linear infinite; }
@keyframes authSpin { to { transform: rotate(360deg); } }
.btn-danger { --btn-bg: #c8102e; --btn-fg: #fff; }
.btn-danger:hover { --btn-bg: #a50d26; }
.btn.is-armed { --btn-bg: #7f1d1d; animation: authShake 0.35s ease; }

/* ——— Toast ——— */
.auth-toast {
  position: fixed; left: 50%; top: calc(var(--nav-h) + 0.75rem); z-index: 400;
  transform: translate(-50%, -14px); opacity: 0; pointer-events: none;
  padding: 0.75rem 1.2rem; border-radius: 999px;
  background: #0b1f3f; color: #fff; font-family: var(--font-ui); font-size: 0.94rem; font-weight: 600;
  box-shadow: 0 16px 40px rgba(11, 31, 63, 0.3);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
.auth-toast::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.6rem; border-radius: 50%; background: #4ade80; vertical-align: 0.08em; }
.auth-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ——— Mein Konto ——— */
.auth-page-section { padding-top: clamp(2rem, 4vw, 3rem); }
.acc-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.acc-profile {
  position: sticky; top: calc(var(--nav-h) + 1rem); overflow: hidden;
  display: grid; justify-items: center; gap: 0.5rem; text-align: center;
  padding: 0 1.5rem 1.5rem; border-radius: 22px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 16px 40px rgba(11, 31, 63, 0.06);
}
.acc-profile-cover { width: calc(100% + 3rem); height: 96px; margin-bottom: -52px; background: linear-gradient(140deg, #0b1f3f, #1d4ed8); }
.acc-profile h2 { margin: 0.6rem 0 0; font-size: 1.5rem; }
.acc-handle { margin: 0 0 0.2rem; font-family: var(--font-ui); color: var(--muted); }
.acc-facts { width: 100%; margin: 0.9rem 0 0.4rem; display: grid; gap: 0; text-align: left; }
.acc-facts div { display: grid; gap: 0.1rem; padding: 0.65rem 0; border-top: 1px solid var(--line); }
.acc-facts dt { font-family: var(--font-ui); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.acc-facts dd { margin: 0; font-family: var(--font-ui); font-size: 0.95rem; color: var(--ink); overflow-wrap: anywhere; }
.acc-profile .btn { width: 100%; }
.acc-main { display: grid; gap: 1.25rem; min-width: 0; }
.acc-card {
  display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 10px 30px rgba(11, 31, 63, 0.04); max-width: none;
}
.acc-card h3 { margin: 0; font-size: 1.25rem; }
.acc-card p { margin: 0; }
.acc-actions { display: flex; justify-content: flex-end; gap: 0.6rem; flex-wrap: wrap; }
.acc-card--admin { grid-template-columns: auto 1fr; align-items: start; background: linear-gradient(150deg, var(--surface) 40%, var(--tint-violet)); border-color: var(--tint-violet-line); }
.acc-card--admin > div { display: grid; gap: 0.5rem; }
.acc-card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint-violet); color: var(--ink-violet); }
.acc-card-icon .bn-icon { width: 24px; height: 24px; }
.acc-card--danger { grid-template-columns: 1fr auto; align-items: center; border-color: var(--tint-red-line); }
.acc-card--danger > div { display: grid; gap: 0.35rem; }

/* ——— Admin ——— */
.adm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.adm-stat {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.85rem; align-items: center;
  padding: 1.1rem 1.2rem; border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 8px 24px rgba(11, 31, 63, 0.04);
}
.adm-stat-icon { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); }
.adm-stat-icon .bn-icon { width: 22px; height: 22px; }
.adm-stat strong { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--ink); }
.adm-stat > span:last-child { font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); }
.adm-board { border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 16px 40px rgba(11, 31, 63, 0.05); overflow: hidden; }
.adm-tabs { display: flex; gap: 0.25rem; padding: 0.6rem 0.75rem 0; border-bottom: 1px solid var(--line); overflow-x: auto; background: var(--bg-soft); }
.adm-tabs button {
  appearance: none; border: 0; background: none; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.75rem 1rem; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600; color: var(--muted);
}
.adm-tabs button:hover { color: var(--ink); }
.adm-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--navy); }
.adm-count { min-width: 1.5rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--bg-muted); font-size: 0.76rem; text-align: center; }
.adm-tabs button[aria-selected="true"] .adm-count { background: var(--navy); color: #fff; }
.adm-view { padding: clamp(1rem, 2.5vw, 1.5rem); display: grid; gap: 1rem; }
.adm-toolbar { display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.adm-search { position: relative; flex: 1 1 260px; max-width: 420px; display: flex; align-items: center; }
.adm-search .bn-icon { position: absolute; left: 0.85rem; color: var(--muted); }
.adm-search input { width: 100%; height: 44px; padding: 0 1rem 0 2.5rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-family: var(--font-ui); font-size: 0.95rem; }
.adm-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12); }
.adm-toolbar .btn { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.95rem; --btn-bg: var(--navy); }
.adm-new { background: var(--bg-soft); box-shadow: none; }
.adm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.adm-table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 0.93rem; }
.adm-table th { text-align: left; padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-soft); }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover td { background: color-mix(in srgb, var(--blue-soft) 45%, transparent); }
.adm-table tr.is-builtin td { background: color-mix(in srgb, var(--tint-violet) 55%, transparent); }
.adm-table tr.is-locked td { opacity: 0.65; }
.adm-table code, .adm-contact code { font-size: 0.82rem; padding: 0.1rem 0.4rem; border-radius: 6px; background: var(--bg-muted); color: var(--ink-soft); }
.adm-user { display: flex; align-items: center; gap: 0.7rem; min-width: 190px; }
.adm-user > div, .adm-user-text { display: grid; gap: 0.05rem; }
.adm-user strong, .adm-user-text strong { color: var(--ink); font-weight: 600; }
.adm-user > div > span, .adm-user-text span { font-size: 0.82rem; color: var(--muted); }
.adm-role { height: 36px; padding: 0 2rem 0 0.7rem; border-radius: 10px; border: 1px solid var(--line-strong); background-color: var(--surface); color: var(--ink); font-family: var(--font-ui); font-size: 0.9rem; cursor: pointer; }
.status-dot { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; white-space: nowrap; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status-dot.is-on { color: var(--ink-green); }
.status-dot.is-on::before { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.status-dot.is-off { color: var(--ink-red); }
.status-dot.is-off::before { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }
.adm-row-actions { display: flex; gap: 0.4rem; justify-content: flex-end; }
.adm-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 0.8rem;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.adm-btn:hover { border-color: var(--navy); color: var(--ink); }
.adm-btn--danger { color: var(--signal); border-color: var(--tint-red-line); }
.adm-btn--danger:hover, .adm-btn--danger.is-armed { background: var(--signal); border-color: var(--signal); color: #fff; }
.adm-empty { margin: 0; padding: 1.5rem 1rem; text-align: center; font-family: var(--font-ui); color: var(--muted); }
.adm-empty--box { border: 1px dashed var(--line-strong); border-radius: 14px; }
.adm-contacts { display: grid; gap: 0.6rem; }
.adm-contact { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.adm-contact[open] { border-color: var(--line-strong); box-shadow: 0 8px 22px rgba(11, 31, 63, 0.06); }
.adm-contact summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.85rem 1rem; cursor: pointer; list-style: none; font-family: var(--font-ui); }
.adm-contact summary::-webkit-details-marker { display: none; }
.adm-contact-main { display: grid; gap: 0.1rem; min-width: 0; }
.adm-contact-main strong { color: var(--ink); }
.adm-contact-main span, .adm-contact-meta span { font-size: 0.84rem; color: var(--muted); }
.adm-contact-meta { display: grid; justify-items: end; gap: 0.2rem; flex-shrink: 0; }
.adm-contact-body { display: grid; gap: 0.6rem; justify-items: start; padding: 0 1rem 1rem; border-top: 1px solid var(--line); padding-top: 0.85rem; }
.adm-contact-body p { margin: 0; }
.adm-system { display: grid; gap: 1rem; }

html[data-theme="dark"] .auth-card { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
html[data-theme="dark"] .auth-section { background: radial-gradient(900px 420px at 85% 0%, rgba(59, 111, 224, 0.16), transparent 70%), var(--bg); }
html[data-theme="dark"] .auth-tab-ink { background: var(--bg-soft); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
html[data-theme="dark"] .account-menu { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5); }
html[data-theme="dark"] .nav-login-btn { background: #2b5bd0; }
html[data-theme="dark"] .auth-submit, html[data-theme="dark"] .adm-toolbar .btn { --btn-bg: #2b5bd0; --btn-fg: #fff; }

@media (max-width: 980px) {
  .acc-grid { grid-template-columns: 1fr; }
  .acc-profile { position: static; }
  .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-brand { gap: 1.25rem; }
  .auth-brand-body > p, .auth-perks, .auth-brand-foot { display: none; }
  .auth-brand h2 { font-size: 1.6rem; margin: 0; }
}
@media (max-width: 760px) {
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table tr { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .adm-table td { border: 0; padding: 0.35rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .adm-table td[data-label]::before { content: attr(data-label); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
  .adm-table td:first-child::before { display: none; }
  .acc-card--danger { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav-login-btn { width: 38px; padding: 0; justify-content: center; }
  .nav-login-btn span { display: none; }
  .account-menu { position: fixed; left: 0.75rem; right: 0.75rem; top: calc(var(--nav-h) + 4px); width: auto; }
  .adm-stats { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .adm-stat { padding: 0.9rem; column-gap: 0.6rem; }
  .adm-stat-icon { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-beacon { animation: none; opacity: 0.6; }
  .auth-form.auth-in, .form-error.shake, .btn.is-armed { animation: none; }
}
.auth-form .form-row, .acc-card .form-row { align-items: start; }
.auth-form label, .acc-card label { align-content: start; }
@media (max-width: 440px) {
  .site-header .logo-text { display: none; }
  .nav-inner { gap: 0.4rem; }
}

/* ——— Supabase-Erweiterung: Passwort vergessen, Bestätigung, Hinweise ——— */
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: -0.2rem; }
.auth-row .auth-remember { margin-top: 0; }
.auth-forgot-link { font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; }
.auth-panel[data-view="forgot"] .auth-tabs, .auth-panel[data-view="check"] .auth-tabs { display: none; }
.auth-check { display: grid; justify-items: center; gap: 0.75rem; text-align: center; padding: 1.5rem 0 0.5rem; }
.auth-check[hidden] { display: none; }
.auth-check.auth-in { animation: authIn 0.45s var(--ease) both; }
.auth-check h1 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.3rem); }
.auth-check p { margin: 0; max-width: 34ch; }
.auth-check .btn { margin-top: 0.5rem; }
.auth-check-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--blue-soft); color: var(--blue); margin-bottom: 0.25rem; }
.auth-check-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-success { margin: 0; padding: 0.8rem 1rem; border-radius: 10px; background: var(--tint-green); color: var(--ink-green); font-family: var(--font-ui); font-weight: 600; }
.auth-success[hidden] { display: none; }
.auth-notice { margin: 0 0 1rem; padding: 0.85rem 1rem; border-radius: 12px; background: var(--tint-yellow); color: var(--ink-yellow); font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; }
.auth-card--single { grid-template-columns: 1fr; max-width: 520px; }
.auth-card--single .auth-head { display: grid; justify-items: start; gap: 0.3rem; margin-bottom: 1.25rem; }
.auth-state { margin: 0 0 1rem; font-family: var(--font-ui); color: var(--muted); }
.auth-state.is-error { padding: 0.85rem 1rem; border-radius: 12px; background: var(--tint-red); color: var(--ink-red); font-weight: 600; }
.adm-inline summary { list-style: none; }
.adm-inline summary::-webkit-details-marker { display: none; }
.adm-inline[open] p { margin: 0.6rem 0 0; max-width: 40ch; font-size: 0.9rem; }
