/* =========================================================================
   Stadt Breisach am Rhein – Übergangsseite
   Webdesign & Realisierung: aufwind Group
   ========================================================================= */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-ext-opsz-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-ext-opsz-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #13242a;
  --ink-2: #33464c;
  --muted: #56676c;
  --line: #e4ddd1;
  --line-2: #d6cec0;
  --paper: #fbf8f3;
  --paper-2: #f4eee4;
  --white: #ffffff;

  --rhein-950: #0b2a32;
  --rhein-900: #0f3640;
  --rhein-800: #154653;
  --rhein-700: #1c5664;
  --rhein-600: #276877;
  --rhein-300: #8fb6bf;
  --rhein-100: #dceaed;
  --rhein-50: #eef5f6;

  /* Akzentfarben aus dem CI der Stadt */
  --blau-900: #22547D;  /* Dunkles Blau – Schrift auf hellem Grund, Balken */
  --blau-600: #4D818D;  /* Dunkleres Blau – Icons */
  --blau-500: #608F9F;  /* Helles Blau – Linien, Markierungen */
  --blau-300: #87B0BF;  /* Helleres Blau – Schrift/Akzente auf dunklem Grund */
  --blau-150: #cfe1e8;
  --blau-100: #e3eef2;

  --ok: #2b7a4b;
  --ok-bg: #e3f2e8;
  --warn: #9a5b00;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 54, 64, .06), 0 2px 8px -2px rgba(15, 54, 64, .08);
  --shadow: 0 1px 2px rgba(15, 54, 64, .05), 0 12px 32px -12px rgba(15, 54, 64, .22);
  --shadow-lg: 0 30px 70px -28px rgba(11, 42, 50, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;
  color-scheme: light;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--rhein-700); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--blau-900); }
p { margin: 0 0 1em; }
address { font-style: normal; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blau-500); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: var(--blau-100); color: var(--ink); }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke-width: 1.8; }
.icon--ext { width: .85em; height: .85em; margin-left: .2em; display: inline-block; vertical-align: -.05em; opacity: .7; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: .75rem 1.1rem; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }
[hidden] { display: none !important; }
.muted { color: var(--muted); font-size: .9375rem; }
.rounded { border-radius: var(--radius-lg); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--rhein-700); --fg: var(--white); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.1rem; padding: .8rem 1.35rem;
  font: 600 1rem/1.2 var(--font-sans); letter-spacing: -.005em;
  color: var(--fg); background: var(--bg); border: 1.5px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--primary { --bg: var(--rhein-700); }
.btn--primary:hover { --bg: var(--rhein-800); }
.btn--outline { --bg: transparent; --fg: var(--rhein-800); --bd: var(--rhein-300); }
.btn--outline:hover { --bg: var(--white); --bd: var(--rhein-700); }
.btn--light { --bg: var(--white); --fg: var(--rhein-900); }
.btn--light:hover { --bg: var(--blau-100); }
.btn--glass { --bg: rgba(255, 255, 255, .12); --fg: var(--white); --bd: rgba(255, 255, 255, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { --bg: rgba(255, 255, 255, .22); }
.btn--ghost-light { --bg: transparent; --fg: var(--white); --bd: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { --bg: rgba(255, 255, 255, .1); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; text-decoration: none; color: var(--rhein-700);
}
.link-arrow:hover { color: var(--blau-900); text-decoration: underline; }
.link-arrow .icon { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(214, 206, 192, .7);
  transition: background-color .35s, color .35s, border-color .35s, box-shadow .35s;
}
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; color: var(--white); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header--overlay.is-scrolled, .site-header--overlay.is-open {
  background: rgba(251, 248, 243, .94); color: var(--ink); border-color: rgba(214, 206, 192, .7);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 8px 30px -18px rgba(15, 54, 64, .35);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; margin-right: auto; }
.brand:hover { color: inherit; }
.logo-mark { width: 62px; height: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; overflow: visible; }
.site-header .logo-mark { color: var(--rhein-700); }
.site-header--overlay:not(.is-scrolled):not(.is-open) .logo-mark { color: var(--white); }
.brand__text { display: flex; flex-direction: column; line-height: 1.02; }
.brand__small { font: 600 .7rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-bottom: .3rem; }
.brand__name { font: 500 1.45rem/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.brand__name em { font-style: italic; font-weight: 400; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: .15rem; }
.main-nav a { display: block; color: inherit; text-decoration: none; font-weight: 550; font-size: .95rem; white-space: nowrap; padding: .55rem .7rem; border-radius: 999px; transition: background-color .2s, color .2s; }
.main-nav a:hover { background: rgba(28, 86, 100, .09); color: inherit; }
.site-header--overlay:not(.is-scrolled):not(.is-open) .main-nav a:hover { background: rgba(255, 255, 255, .14); }
.main-nav a[aria-current="page"] { background: var(--rhein-100); color: var(--rhein-900); }
.main-nav__cta { display: inline-flex !important; align-items: center; gap: .5em; border: 1.5px solid currentColor; margin-left: .5rem; font-variant-numeric: tabular-nums; }
.main-nav__cta .icon { width: 1em; height: 1em; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-radius: 999px;
  font: 600 .95rem/1 var(--font-sans); color: inherit; background: transparent;
  border: 1.5px solid currentColor; cursor: pointer;
}
.nav-toggle .icon { width: 1.25rem; height: 1.25rem; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }

@media (max-width: 1199px) {
  .main-nav.is-open {
    display: block; position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--paper); color: var(--ink);
    padding: 1rem var(--gutter) 1.75rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(15, 54, 64, .45);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    animation: drop .3s var(--ease);
  }
  .main-nav.is-open ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.is-open li a { font-size: 1.15rem; padding: .9rem .25rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .main-nav.is-open .main-nav__cta { margin: 1.25rem 0 0; justify-content: center; padding: .9rem; border-radius: 999px; color: var(--rhein-800); }
}
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-items: center; margin-left: 2rem; }
}
@media (min-width: 1200px) and (max-width: 1559px) { .main-nav__cta { display: none !important; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(600px, 92vh, 880px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero__media, .hero__media picture { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform-origin: 72% 50%; animation: heroZoom 18s var(--ease) both; }
@media (max-aspect-ratio: 1/1) { .hero__img { object-position: 76% 50%; } .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 32, 38, .28); } }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 32, 38, .55) 0%, rgba(8, 32, 38, 0) 22%),
    linear-gradient(90deg, rgba(8, 32, 38, .82) 0%, rgba(8, 32, 38, .55) 38%, rgba(8, 32, 38, .05) 72%),
    linear-gradient(0deg, rgba(8, 32, 38, .7) 0%, rgba(8, 32, 38, 0) 45%);
}
.hero__inner { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(8.5rem, 16vh, 11rem); }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font: 600 .8rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .88);
  margin-bottom: 1.25rem;
}
.hero__eyebrow::before { content: ""; width: 2.25rem; height: 2px; background: var(--blau-300); border-radius: 2px; }
.hero__title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(2.75rem, 7.2vw, 6rem); line-height: 1.02; max-width: 12ch;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero__title em { font-style: italic; font-weight: 300; color: var(--blau-300); }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 34rem; margin: 1.5rem 0 0; color: rgba(255, 255, 255, .92); }
.hero__lead a { color: var(--white); }
.hero__lead--small { font-size: 1rem; margin-top: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero__status {
  display: inline-flex; align-items: center; gap: .65rem; margin: 1.75rem 0 0;
  padding: .55rem 1rem .55rem .8rem; border-radius: 999px;
  background: rgba(8, 32, 38, .45); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .9375rem; font-weight: 500;
}
.status-dot { width: .6rem; height: .6rem; border-radius: 50%; background: #9aa7ab; box-shadow: 0 0 0 4px rgba(154, 167, 171, .25); }
.is-open .status-dot, .status-dot.is-open { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); animation: pulse 2.4s infinite; }

.hero__notice { position: absolute; right: var(--gutter); bottom: clamp(7.5rem, 14vh, 9.5rem); z-index: 2; max-width: 22rem; font-size: .875rem; color: rgba(255, 255, 255, .85); text-align: right; }
.hero__notice summary {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none;
  padding: .4rem .8rem; border-radius: 999px; background: rgba(8, 32, 38, .35); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__notice summary::-webkit-details-marker { display: none; }
.hero__notice summary .icon { width: 1rem; height: 1rem; }
.hero__notice p { text-align: left; margin: .6rem 0 0; padding: .9rem 1rem; border-radius: 14px; background: rgba(8, 32, 38, .78); line-height: 1.5; }
@media (max-width: 760px) {
  .hero__notice { position: static; text-align: left; margin: 0 var(--gutter) 7.5rem; }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero__inner { padding-bottom: 1.25rem; width: auto; margin-inline: var(--gutter); }
}

/* ---------- Schnellzugriff ---------- */
.quick { position: relative; z-index: 3; margin-top: -6.5rem; }
.quick__grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.quick__card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 1.1rem 1.1rem 1.2rem; border-radius: var(--radius);
  background: var(--white); color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow); border: 1px solid rgba(214, 206, 192, .55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.quick__card::after {
  content: ""; position: absolute; right: 1.1rem; top: 1.25rem; width: .55rem; height: .55rem;
  border-top: 2px solid var(--rhein-300); border-right: 2px solid var(--rhein-300); transform: rotate(45deg);
  transition: transform .3s var(--ease), border-color .3s;
}
.quick__card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--rhein-300); }
.quick__card:hover::after { transform: translateX(3px) rotate(45deg); border-color: var(--blau-500); }
.quick__icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 14px;
  background: var(--rhein-50); color: var(--rhein-700); margin-bottom: .9rem;
  transition: background-color .3s, color .3s;
}
.quick__icon .icon { width: 1.4rem; height: 1.4rem; }
.quick__card:hover .quick__icon { background: var(--rhein-700); color: var(--white); }
.quick__title { font-weight: 650; font-size: 1rem; line-height: 1.3; letter-spacing: -.01em; padding-right: 1rem; }
.quick__text { font-size: .875rem; color: var(--muted); margin-top: .3rem; line-height: 1.45; }
@media (min-width: 760px) { .quick__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } .quick__card { padding: 1.4rem 1.4rem 1.5rem; } .quick__title { font-size: 1.0625rem; } }

/* ---------- Termin ---------- */
.termin {
  margin-top: 2rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; align-items: center;
  padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--blau-100); border: 1px solid var(--blau-150);
}
.termin__date { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 16px; background: var(--white); color: var(--blau-900); line-height: 1; box-shadow: var(--shadow-sm); }
.termin__date span { font: 600 1.6rem/1 var(--font-display); }
.termin__date small { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: -.6rem; }
.termin__label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blau-900); margin: 0 0 .2rem; }
.termin__title { font-weight: 650; margin: 0; line-height: 1.35; }
.termin__meta { display: inline-flex; align-items: flex-start; gap: .35rem; font-size: .9rem; color: var(--ink-2); margin: .25rem 0 0; }
.termin__meta .icon { width: 1rem; height: 1rem; margin-top: .2rem; }
.termin__link { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 999px; background: var(--white); color: var(--blau-900); font-weight: 650; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.termin__link:hover { color: var(--blau-900); transform: translateY(-2px); box-shadow: var(--shadow); }
.termin__link small { font-size: .8rem; font-weight: 500; color: var(--muted); }
@media (min-width: 760px) { .termin { grid-template-columns: auto 1fr auto; padding: 1.1rem 1.5rem 1.1rem 1.1rem; } .termin__link { grid-column: auto; justify-self: end; } }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--tint { background: var(--paper-2); }
.section--compact { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--split { max-width: none; display: grid; gap: 1rem 4rem; align-items: end; }
@media (min-width: 960px) { .section-head--split { grid-template-columns: 1fr 1fr; } .section-head--split .lead { margin: 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1rem;
  font: 700 .78rem/1 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--blau-900);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--blau-500); border-radius: 2px; }
.eyebrow--light::before { background: var(--blau-300); }
.eyebrow--light { color: var(--blau-300); }
.section-title { font-family: var(--font-display); font-weight: 450; font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -.02em; line-height: 1.06; color: var(--rhein-900); text-wrap: balance; }
.section-title--light { color: var(--white); }
.section-title--small { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lead { font-size: clamp(1.075rem, 1.4vw, 1.2rem); color: var(--ink-2); margin: 1.1rem 0 0; max-width: 40rem; }
.lead--light { color: rgba(255, 255, 255, .86); }
.subhead { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.75rem); color: var(--rhein-900); margin: clamp(3rem, 6vw, 4.5rem) 0 1.25rem; letter-spacing: -.01em; }
.subhead--center { text-align: center; margin-top: 0; }

/* ---------- Rathaus ---------- */
.rathaus { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.rathaus__media { position: relative; margin: 0; }
.rathaus__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); }
@media (min-width: 960px) {
  .rathaus { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .rathaus__media { position: sticky; top: calc(var(--header-h) + 2rem); }
  .rathaus__media img { aspect-ratio: 4 / 5; object-position: 70% 50%; }
}
.photo-chip {
  position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .9rem; border-radius: 999px; font-size: .875rem; font-weight: 600;
  background: rgba(255, 255, 255, .92); color: var(--rhein-900); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.photo-chip .icon { width: 1rem; height: 1rem; color: var(--blau-600); }

.contact-card {
  display: grid; gap: 1.25rem; margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .contact-card { grid-template-columns: 1fr 1fr; padding: 1.75rem 2rem; } }
.contact-card__address { line-height: 1.6; }
.contact-card__address strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--rhein-900); }
.contact-list { list-style: none; display: grid; gap: .85rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list .icon { width: 1.15rem; height: 1.15rem; margin-top: .25rem; color: var(--blau-600); }
.contact-list__label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.contact-list a { font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-list--compact { gap: .6rem; margin: 1rem 0 1.5rem; }
.contact-list--compact .icon { margin-top: .3rem; }

.hours { margin-top: 1.25rem; padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (min-width: 640px) { .hours { padding: 1.75rem 2rem; } }
.hours__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.hours__title { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--rhein-900); }
.hours__title .icon { color: var(--blau-600); }
.hours__status { display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .35rem .8rem; border-radius: 999px; font-size: .875rem; font-weight: 600; background: var(--paper-2); color: var(--ink-2); }
.hours__status.is-open { background: var(--ok-bg); color: var(--ok); }
.hours__status .status-dot.is-open { background: var(--ok); box-shadow: 0 0 0 4px rgba(43, 122, 75, .18); }
.hours__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .975rem; }
.hours__table th, .hours__table td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours__table thead th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; padding-top: 0; }
.hours__table tbody th { font-weight: 600; }
.hours__table tbody tr:last-child > * { border-bottom: 0; }
.hours__table tr.is-today > * { background: var(--rhein-50); }
.hours__table tr.is-today th { color: var(--rhein-800); box-shadow: inset 3px 0 0 var(--rhein-700); }
.hours__table tr.is-today th::after { content: "Heute"; display: inline-block; margin-left: .5rem; padding: .1rem .45rem; border-radius: 6px; background: var(--rhein-700); color: var(--white); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; vertical-align: .1em; }
.hours__note { margin: 1rem 0 0; font-size: .9375rem; color: var(--muted); }
@media (max-width: 520px) { .hours__table { font-size: .9rem; } .hours__table th, .hours__table td { padding: .6rem .3rem; } }

.locations { display: grid; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .locations { grid-template-columns: 1fr 1fr; } }
.location { padding: 1.25rem 1.5rem; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.location__title { font-size: 1rem; font-weight: 650; margin-bottom: .35rem; }
.location p { margin: 0 0 .6rem; color: var(--ink-2); }

.disclosure { margin-top: 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.disclosure summary { display: flex; align-items: center; gap: .65rem; padding: 1rem 1.5rem; cursor: pointer; font-weight: 600; list-style: none; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary .icon { color: var(--blau-600); }
.disclosure__chev { margin-left: auto; transition: transform .25s var(--ease); color: var(--muted) !important; }
.disclosure[open] .disclosure__chev { transform: rotate(180deg); }
.bank { margin: 0; padding: 0 1.5rem 1.25rem; display: grid; gap: .75rem; }
.bank dt { font-size: .875rem; color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- Ansprechpartner ---------- */
.contacts { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr)); }
.contact { display: flex; flex-direction: column; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid rgba(214, 206, 192, .6); transition: box-shadow .3s, transform .3s var(--ease); }
.contact:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.contact__title { font-size: 1.05rem; font-weight: 650; color: var(--rhein-900); letter-spacing: -.01em; }
.contact__desc { font-size: .9rem; color: var(--muted); margin: .4rem 0 1rem; line-height: 1.5; }
.contact__lines { margin: auto 0 0; min-height: calc(2 * 1.65em + .9rem); padding-top: .9rem; border-top: 1px solid var(--line); font-size: .95rem; font-variant-numeric: tabular-nums; }
.contact__lines a { font-weight: 600; word-break: break-word; }

.ortsteile { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 860px) { .ortsteile { grid-template-columns: repeat(3, 1fr); } }
.ortsteil { padding: 1.5rem; border-radius: var(--radius); background: var(--rhein-900); color: rgba(255, 255, 255, .86); position: relative; overflow: hidden; }
.ortsteil::before { content: ""; position: absolute; left: 1.5rem; top: 0; width: 2.5rem; height: 3px; border-radius: 0 0 3px 3px; background: var(--blau-300); }
.ortsteil__title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--white); margin-bottom: .5rem; }
.ortsteil p { margin: 0 0 .9rem; font-size: .95rem; }
.ortsteil__hours { display: flex; gap: .6rem; font-variant-numeric: tabular-nums; }
.ortsteil__hours .icon { margin-top: .25rem; color: var(--blau-300); }
.ortsteil__contact { margin-bottom: 0 !important; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.ortsteil a { color: var(--white); font-weight: 600; word-break: break-word; }
.ortsteil a:hover { color: var(--blau-300); }

/* ---------- Bekanntmachungen ---------- */
.notices { list-style: none; display: grid; gap: 1rem; counter-reset: n; }
.notice {
  display: grid; gap: 1rem 1.75rem; grid-template-columns: auto 1fr; align-items: start;
  padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: box-shadow .3s, border-color .3s;
}
.notice:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.notice__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 4.5rem; height: 4.75rem; border-radius: 16px; background: var(--rhein-50); color: var(--rhein-800); line-height: 1; }
.notice__day { font: 500 1.9rem/1 var(--font-display); }
.notice__month { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: .35rem; text-align: center; }
.notice__body { min-width: 0; }
.notice__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .6rem; }
.tag { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 650; letter-spacing: .03em; background: var(--blau-100); color: var(--blau-900); }
.tag--muted { background: var(--paper-2); color: var(--muted); }
.tag--new { background: var(--ok-bg); color: var(--ok); }
.notice__title { font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 650; letter-spacing: -.01em; line-height: 1.3; color: var(--rhein-900); }
.notice__text { margin: .5rem 0 0; color: var(--ink-2); font-size: .975rem; max-width: 52rem; }
.notice .link-arrow { margin-top: .75rem; }
.notice__docs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.notice__more { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--line); }
.notice__more summary { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; cursor: pointer; list-style: none; font-weight: 650; color: var(--rhein-700); }
.notice__more summary::-webkit-details-marker { display: none; }
.notice__more summary .icon { color: var(--blau-600); }
.notice__more summary:hover { color: var(--blau-900); }
.notice__more-meta { font-weight: 500; color: var(--muted); font-size: .9rem; }
.notice__chev { transition: transform .25s var(--ease); }
.notice__more[open] .notice__chev { transform: rotate(180deg); }
.notice__more .doc-grid { margin-top: 1rem; }
.notice__more .doc-link { display: flex; height: 100%; }
.notice--past .notice__date { background: var(--paper-2); color: var(--muted); }
@media (min-width: 900px) {
  .notice { grid-template-columns: auto 1fr auto; padding: 1.6rem 1.75rem; }
  .notice__docs { grid-column: auto; align-self: center; flex-direction: column; align-items: stretch; }
}

.doc-link {
  display: inline-flex; align-items: center; gap: .75rem; padding: .7rem 1rem .7rem .8rem; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0;
  transition: background-color .2s, border-color .2s, transform .25s var(--ease);
}
.doc-link > .icon { width: 2.2rem; height: 2.2rem; padding: .45rem; border-radius: 10px; background: var(--blau-100); color: var(--blau-900); stroke-width: 1.7; }
.doc-link__title { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.doc-link__meta { display: block; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-link:hover { background: var(--white); border-color: var(--rhein-300); color: var(--ink); transform: translateY(-1px); }

/* ---------- Offenlage-Band ---------- */
.offenlage {
  position: relative; overflow: hidden; color: var(--white); padding-block: clamp(4.5rem, 9vw, 7rem);
  background:
    radial-gradient(900px 500px at 92% 10%, rgba(135, 176, 191, .28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(39, 104, 119, .55), transparent 65%),
    var(--rhein-900);
}
.offenlage::before {
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23ffffff' stroke-width='.5' fill='none'/%3E%3C/svg%3E");
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
}
.offenlage__inner { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .offenlage__inner { grid-template-columns: 1.5fr 1fr; gap: 4.5rem; } }
.pulse { width: .55rem; height: .55rem; border-radius: 50%; background: var(--blau-300); box-shadow: 0 0 0 0 rgba(135, 176, 191, .7); animation: pulse 2.2s infinite; }
.eyebrow .pulse + * { margin: 0; }
.eyebrow:has(.pulse)::before { display: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(135, 176, 191, .6); } 70% { box-shadow: 0 0 0 10px rgba(135, 176, 191, 0); } 100% { box-shadow: 0 0 0 0 rgba(135, 176, 191, 0); } }
.facts { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 1.25rem 0; border-block: 1px solid rgba(255, 255, 255, .16); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; } }
.facts dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); font-weight: 600; }
.facts dd { margin: .2rem 0 0; font: 500 1.25rem/1.3 var(--font-display); }
.facts a { color: var(--white); }
.offenlage__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.countdown { padding: 1.75rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.countdown__label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--blau-300); margin: 0; }
.countdown__date { font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--font-display); margin: .4rem 0 .5rem; }
.countdown__days { margin: 0 0 1rem; color: rgba(255, 255, 255, .85); }
.countdown__days strong { font-size: 1.15em; color: var(--white); }
.countdown__bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.countdown__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blau-500), var(--blau-300)); transition: width 1.2s var(--ease); }
.countdown__note { display: flex; gap: .6rem; margin: 1.25rem 0 0; font-size: .9rem; color: rgba(255, 255, 255, .78); line-height: 1.5; }
.countdown__note .icon { margin-top: .2rem; color: var(--blau-300); }
.countdown--card { background: var(--rhein-900); color: var(--white); box-shadow: var(--shadow-lg); }

/* ---------- Online-Dienste ---------- */
.servicebw {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.5rem;
  padding: 1.5rem 1.75rem; border-radius: var(--radius-lg); text-decoration: none; color: var(--white);
  background: linear-gradient(120deg, var(--rhein-800), var(--rhein-600)); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.servicebw:hover { color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.servicebw__badge { font: 700 1.05rem/1 var(--font-sans); letter-spacing: -.01em; padding: .85rem 1rem; border-radius: 14px; background: var(--white); color: var(--rhein-800); white-space: nowrap; }
.servicebw__title { display: block; font: 500 clamp(1.3rem, 2.2vw, 1.65rem)/1.2 var(--font-display); }
.servicebw__text { display: block; margin-top: .35rem; color: rgba(255, 255, 255, .82); font-size: .975rem; }
.servicebw__go { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); transition: background-color .3s, transform .3s var(--ease); }
.servicebw:hover .servicebw__go { background: var(--white); color: var(--rhein-800); transform: rotate(45deg); }
@media (max-width: 640px) { .servicebw { grid-template-columns: 1fr; } .servicebw__badge { justify-self: start; } .servicebw__go { display: none; } }

.services { list-style: none; display: grid; gap: .75rem; margin-top: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.service {
  display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.service:hover { color: var(--ink); border-color: var(--rhein-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.service__icon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--rhein-50); color: var(--rhein-700); }
.service__icon .icon { width: 1.35rem; height: 1.35rem; }
.service__body { flex: 1; min-width: 0; }
.service__title { display: block; font-weight: 650; line-height: 1.3; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.service__text { display: block; font-size: .875rem; color: var(--muted); line-height: 1.4; margin-top: .15rem; }
.service__go { width: 1.1rem; height: 1.1rem; color: var(--rhein-300); transition: color .25s, transform .25s var(--ease); }
.service:hover .service__go { color: var(--blau-900); transform: translate(2px, -2px); }

.abfall { display: grid; gap: 1.25rem; align-items: center; margin-top: 1.25rem; padding: 1.5rem 1.75rem; border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--line); }
@media (min-width: 900px) { .abfall { grid-template-columns: 1fr auto; } }
.abfall__body { display: flex; gap: 1.1rem; align-items: flex-start; }
.abfall__body p { margin: .25rem 0 0; color: var(--ink-2); font-size: .975rem; }
.abfall__icon { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 14px; background: var(--white); color: var(--blau-600); }
.abfall__title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--rhein-900); }
.abfall__docs { display: flex; flex-wrap: wrap; gap: .6rem; }
.abfall .doc-link { background: var(--white); }

/* ---------- Split (Ratsinfo) ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split__media { position: relative; margin: 0; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse .split__media { order: 2; } }
.checks { list-style: none; display: grid; gap: .6rem; margin-top: 1.5rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks .icon { width: 1.35rem; height: 1.35rem; padding: .2rem; margin-top: .15rem; border-radius: 50%; background: var(--rhein-100); color: var(--rhein-800); stroke-width: 2.5; }

/* ---------- Feature (Karriere) ---------- */
.feature { position: relative; isolation: isolate; padding-block: clamp(5rem, 12vw, 9rem); overflow: hidden; }
.feature__media, .feature__media picture { position: absolute; inset: 0; z-index: -1; }
.feature__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 32, 38, .55), rgba(8, 32, 38, .05) 70%); }
.feature__card { max-width: 34rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-lg); background: rgba(251, 248, 243, .96); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.feature__card p { color: var(--ink-2); }
.feature__card .section-title { margin-bottom: 1.1rem; }

/* ---------- Tourismus ---------- */
.tourism { display: grid; gap: 0; align-items: center; }
.tourism__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tourism__card { position: relative; margin: -4rem 1rem 0; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); border: 1px solid rgba(214, 206, 192, .5); }
.tourism__card p { color: var(--ink-2); }
.tourism__card .section-title { margin-bottom: 1rem; }
.tourism__card address { margin-top: 1.25rem; line-height: 1.6; }
@media (min-width: 960px) {
  .tourism { grid-template-columns: repeat(12, 1fr); }
  .tourism__media { grid-column: 1 / 9; grid-row: 1; }
  .tourism__media img { aspect-ratio: 5 / 4; }
  .tourism__card { grid-column: 7 / 13; grid-row: 1; margin: 0; align-self: center; }
}

/* ---------- Aktuelles ---------- */
.news { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .news { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.news__item { padding: 1.75rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.news__item time, .news__label { display: block; margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--blau-900); }
.news__label { text-transform: uppercase; }
.news__item .link-arrow { margin-top: .25rem; }
.news__more .doc-link { margin-top: .25rem; }
.news__title { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.25; color: var(--rhein-900); margin: .5rem 0 .8rem; letter-spacing: -.01em; }
.news__item > p { color: var(--ink-2); font-size: .975rem; }
.news__more summary { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--rhein-700); cursor: pointer; list-style: none; }
.news__more summary::-webkit-details-marker { display: none; }
.news__more summary::after { content: "+"; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--rhein-50); font-size: 1rem; line-height: 1; transition: transform .25s var(--ease); }
.news__more[open] summary::after { transform: rotate(45deg); }
.news__more > *:not(summary) { margin-top: 1rem; font-size: .95rem; color: var(--ink-2); }
.steps { padding-left: 1.25rem; display: grid; gap: .4rem; }
.steps--big { padding-left: 0; list-style: none; counter-reset: s; gap: 1rem; margin: 1.25rem 0 1.5rem; }
.steps--big li { position: relative; padding-left: 3.25rem; counter-increment: s; }
.steps--big li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--rhein-700); color: var(--white); font: 600 1rem/1 var(--font-display); }

.faq h2 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin-top: 2rem; }
.faq h2:first-child { margin-top: 0; }

/* ---------- Chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.chip { display: inline-flex; align-items: center; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-weight: 550; text-decoration: none; transition: border-color .2s, color .2s, background-color .2s; }
.chip:hover { border-color: var(--rhein-700); color: var(--rhein-800); background: var(--rhein-50); }

/* ---------- Unterseiten ---------- */
.page-head {
  position: relative; overflow: hidden; color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background: radial-gradient(800px 400px at 95% 0%, rgba(135, 176, 191, .32), transparent 60%), linear-gradient(120deg, var(--rhein-900) 35%, var(--blau-900));
}
.page-head--small { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.page-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -.02em; line-height: 1.05; max-width: 22ch; text-wrap: balance; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .875rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.75rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: rgba(255, 255, 255, .9); }
.page-body { padding-block: clamp(3rem, 7vw, 5rem); }
.page-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .page-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 4rem; } .page-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.page-aside { display: grid; gap: 1rem; }
.aside-card { padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.aside-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--rhein-900); margin-bottom: .75rem; }
.aside-card p { font-size: .95rem; color: var(--ink-2); }

.prose { max-width: 46rem; }
.prose--narrow { max-width: 44rem; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--rhein-900); margin: 2.5rem 0 .9rem; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; font-weight: 650; margin: 1.75rem 0 .6rem; color: var(--rhein-900); }
.prose ul { padding-left: 1.25rem; display: grid; gap: .35rem; margin-bottom: 1.25rem; }
.prose li::marker { color: var(--blau-500); }
.callout { display: flex; gap: .9rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); background: var(--blau-100); color: var(--ink); font-size: .95rem; line-height: 1.55; }
.callout .icon { margin-top: .2rem; color: var(--blau-900); }
.callout--ok { background: var(--ok-bg); }
.callout--ok .icon { color: var(--ok); }

.docs { margin-top: clamp(3rem, 6vw, 4.5rem); }
.docs__head, .listing__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.docs__meta { margin: 0; color: var(--muted); font-size: .9375rem; }
.doc-grid { list-style: none; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.doc-grid .doc-link { display: flex; height: 100%; background: var(--white); }
.note-block { margin-top: clamp(3rem, 6vw, 4rem); padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius); background: var(--paper-2); max-width: 52rem; }
.note-block .subhead { margin-top: 0; }
.note-block p:last-child { margin: 0; }

.filter { position: sticky; top: calc(var(--header-h) + .75rem); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .5rem .5rem .5rem 1.1rem; margin-bottom: 2.5rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.filter__label { color: var(--muted); display: grid; }
.filter__input { flex: 1; min-width: 12rem; border: 0; background: transparent; font: 500 1.05rem/1.4 var(--font-sans); color: var(--ink); padding: .65rem 0; }
.filter__input:focus { outline: none; }
.filter:focus-within { border-color: var(--rhein-700); box-shadow: 0 0 0 3px var(--rhein-100), var(--shadow); }
.filter__count { margin: 0 .75rem 0 0; font-size: .875rem; color: var(--muted); }
.filter__empty { text-align: center; color: var(--muted); padding: 2rem 0; }
.listing { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.listing__note { margin-top: 1rem; color: var(--muted); font-size: .9375rem; }
.file-list { list-style: none; display: grid; gap: 0; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
@media (min-width: 900px) { .file-list { grid-template-columns: 1fr 1fr; } .file-list li:nth-child(odd) { border-right: 1px solid var(--line); } }
.file-list li { border-bottom: 1px solid var(--line); }
.file-row { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.25rem; height: 100%; color: var(--ink); text-decoration: none; transition: background-color .2s; }
.file-row:hover { background: var(--rhein-50); color: var(--ink); }
.file-row > .icon { color: var(--blau-600); }
.file-row__title { flex: 1; font-weight: 550; line-height: 1.35; }
.file-row__meta { flex: none; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 404 ---------- */
.notfound { position: relative; isolation: isolate; min-height: 100vh; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.notfound__media, .notfound__media picture { position: absolute; inset: 0; z-index: -2; }
.notfound__img { width: 100%; height: 100%; object-fit: cover; }
.notfound::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 32, 38, .9), rgba(8, 32, 38, .45)); }
.notfound__inner { padding-block: calc(var(--header-h) + 3rem) 4rem; }
.notfound__links { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.page-404 .site-footer { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--rhein-950); color: rgba(255, 255, 255, .78); padding-top: clamp(4rem, 8vw, 6rem); font-size: .95rem; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--blau-900), var(--blau-500) 50%, var(--blau-300));
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--blau-300); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.3fr .9fr .8fr 1.2fr; gap: 3rem; } }
.brand--footer { color: var(--white); margin-bottom: 1.5rem; }
.brand--footer .logo-mark { color: var(--blau-300); }
.site-footer address { line-height: 1.7; }
.site-footer__contact { display: grid; gap: .4rem; margin-top: 1rem; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; }
.site-footer__contact .icon { color: var(--blau-300); width: 1rem; height: 1rem; }
.site-footer__title { font: 700 .75rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blau-300); margin-bottom: 1.1rem; }
.site-footer__nav ul { list-style: none; display: grid; gap: .55rem; }
.site-footer__note p { line-height: 1.6; margin: 0; }
.site-footer__note strong { color: var(--white); font-weight: 600; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding: 1.5rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-footer__credit { margin-left: auto !important; color: rgba(255, 255, 255, .6); }
.site-footer__credit a { font-weight: 600; }

/* ---------- Schmale Bildschirme ---------- */
.rathaus > *, .split > *, .page-grid > *, .tourism > *, .offenlage__inner > *, .notice > *, .site-header__inner > * { min-width: 0; }
@media (max-width: 520px) {
  :root { --header-h: 68px; }
  .logo-mark { width: 46px; }
  .brand { gap: .6rem; }
  .brand__name { font-size: 1.2rem; }
  .brand__small { font-size: .62rem; margin-bottom: .25rem; }
  .nav-toggle { padding: .55rem; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hours { padding: 1.25rem 1rem; }
  .hours__table thead th:first-child { width: 28%; }
  .hours__table tr.is-today th::after { display: block; width: max-content; margin: .35rem 0 0; }
  .contact-card { padding: 1.25rem; }
  .notice { padding: 1.25rem; gap: .9rem 1rem; }
  .notice__date { width: 3.75rem; height: 4rem; }
  .notice__day { font-size: 1.6rem; }
  .countdown { padding: 1.4rem; }
  .filter { border-radius: 22px; padding: .35rem .5rem .35rem 1rem; }
  .filter__count { width: 100%; margin: 0 0 .5rem; }
  .notice { grid-template-columns: 1fr; }
  .notice__date { flex-direction: row; align-items: baseline; gap: .4rem; width: auto; height: auto; padding: .4rem .8rem; border-radius: 999px; justify-self: start; }
  .notice__day { font-size: 1.15rem; }
  .notice__month { margin: 0; }
}
@media (max-width: 760px) {
  .feature { padding-top: 15rem; padding-bottom: 1.5rem; }
  .feature::after { background: linear-gradient(180deg, rgba(8, 32, 38, 0) 30%, rgba(8, 32, 38, .45)); }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__img { animation: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .nav-toggle, .hero__media, .hero::before, .feature__media, .feature::after, .tourism__media, .rathaus__media, .split__media, .skip-link, .hero__notice, .quick, .filter { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .offenlage, .page-head, .feature, .site-footer { color: #000 !important; background: none !important; min-height: 0; padding: 1rem 0 !important; }
  .hero__title, .section-title, .page-title, .section-title--light, .lead--light, .eyebrow--light { color: #000 !important; text-shadow: none; }
  .section { padding: 1.5rem 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .notice, .contact, .service, .doc-link { break-inside: avoid; box-shadow: none; }
}
