/* SiKo Sachverständigenbüro – Gestaltung der Webseite (Stand 12/2026)
   Grundlage: Apple-Gestaltungsregeln (Skill „apple-design“):
   - sofortige Rückmeldung beim Drücken (:active), Hover nur bei Maus
   - unterbrechbare Bewegungen mit kritisch gedämpfter Feder, nur transform/opacity
   - durchscheinende Kopfzeile und Menü als Glas, Kante statt Trennlinie
   - Schrift: Systemschrift, Laufweite und Zeilenabstand je Größe, Abstände in rem
   - Farben passen sich an hell/dunkel an (Systemeinstellung, ohne Umschalter und ohne Speichern)
   - Rücksicht auf „Bewegung reduzieren“, „Transparenz reduzieren“ und „Mehr Kontrast“
   Alle Farben stehen als Variablen in :root; der Dunkelmodus ersetzt nur diese Variablen. */

:root {
  color-scheme: light dark;

  /* Markenfarben (in beiden Modi gleich) */
  --red: #c40f2b;
  --orange: #f28c00;
  --yellow: #ffd200;
  --grad: linear-gradient(90deg, #ffd200 0%, #f28c00 45%, #e30613 100%);
  --grad-diag: linear-gradient(135deg, #ffd200 0%, #f28c00 45%, #e30613 100%);
  --ink-on-light: #1b2530;

  /* Schrift und Linien */
  --ink: #1b2530;
  --ink-2: #3a4653;
  --muted: #5b6672;
  --muted-strong: #3a4653;
  --hairline: rgba(27, 37, 48, .10);
  --line-strong: rgba(27, 37, 48, .6);
  --fill: rgba(27, 37, 48, .055);
  --fill-2: rgba(27, 37, 48, .095);
  --text-accent: #c40f2b;
  --text-accent-hover: #9c0b22;
  --btn-hover: #9c0b22;

  /* Flächen */
  --bg: #ffffff;
  --bg-soft: #f6f4f0;
  --surface: #ffffff;
  --surface-sel: #ffffff;
  --sel-shadow: 0 1px 2px rgba(27, 37, 48, .14), 0 0 0 .5px rgba(27, 37, 48, .08);
  --hover-on-fill: rgba(255, 255, 255, .7);
  --pressed-bg: #1b2530;
  --pressed-fg: #ffffff;
  --check-bg: rgba(196, 15, 43, .1);
  --initials: linear-gradient(160deg, #2b3947, #1b2530);
  --notice-bg: #fff8e1;
  --notice-edge: #f6dc8a;
  --cta-bg: #1b2530;
  --cta-edge: 0 0 0 0 transparent;
  --footer-bg: #1b2530;
  --brand-plate: transparent;

  /* Glas */
  --header-glass: rgba(255, 255, 255, .8);
  --header-solid: #ffffff;
  --menu-glass: rgba(255, 255, 255, .84);
  --menu-solid: #ffffff;
  --caption-bg: rgba(255, 255, 255, .8);
  --caption-solid: #ffffff;
  --caption-fg: #1b2530;
  --glass-blur: saturate(180%) blur(20px);
  --edge: rgba(27, 37, 48, .10);
  --scrim: rgba(14, 20, 28, .32);

  /* Tiefe: kleine Flächen flach, große Flächen „dicker“; Kanten als halbtransparenter Schatten statt Linie */
  --shadow-1: 0 0 0 1px rgba(27, 37, 48, .06), 0 1px 2px rgba(27, 37, 48, .05);
  --shadow-2: 0 0 0 1px rgba(27, 37, 48, .05), 0 2px 4px rgba(27, 37, 48, .04), 0 12px 28px -8px rgba(27, 37, 48, .13);
  --shadow-3: 0 0 0 1px rgba(27, 37, 48, .05), 0 4px 10px rgba(27, 37, 48, .05), 0 28px 56px -16px rgba(27, 37, 48, .24);
  --photo-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5);

  --r-sm: .75rem;
  --r: 1.125rem;
  --r-lg: 1.5rem;
  --r-xl: 1.75rem;

  /* Bewegung: kräftiges Ausklingen; Feder kritisch gedämpft (Dämpfung 1,0, Ansprechzeit 0,4 s, ohne Überschwingen) */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --spring: var(--ease-out);
  --spring-dur: 500ms;

  --wrap: 73.75rem;
  --gutter: 1.5rem;
  --header-h: 4.5rem;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.0374, 0.1233, 0.2298, 0.3404, 0.4456, 0.5409, 0.6241, 0.6952, 0.7547, 0.8039, 0.8442, 0.8767,
      0.9029, 0.9238, 0.9404, 0.9536, 0.9639, 0.972, 0.9783, 0.9833, 0.9871, 0.9901, 0.9924, 0.9941, 0.9955, 1);
  }
}

/* ---------- Dunkelmodus: dunkles Blaugrau der Marke statt Schwarz; Rot für Text aufgehellt
   (#ff6b78: Kontrast mindestens 4,9 : 1 auf allen dunklen Flächen) ---------- */
@media screen and (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f4;
    --ink-2: #c3ccd5;
    --muted: #9aa6b2;
    --muted-strong: #c3ccd5;
    --hairline: rgba(255, 255, 255, .12);
    --line-strong: rgba(255, 255, 255, .6);
    --fill: rgba(255, 255, 255, .08);
    --fill-2: rgba(255, 255, 255, .14);
    --text-accent: #ff6b78;
    --text-accent-hover: #ff959e;
    --btn-hover: #d4183a;

    --bg: #0f151c;
    --bg-soft: #151d26;
    --surface: #1b2530;
    --surface-sel: #3a4653;
    --sel-shadow: 0 1px 2px rgba(0, 0, 0, .45);
    --hover-on-fill: rgba(255, 255, 255, .1);
    --pressed-bg: #eef1f4;
    --pressed-fg: #1b2530;
    --check-bg: rgba(255, 107, 120, .16);
    --initials: linear-gradient(160deg, #3a4a5a, #26323e);
    --notice-bg: rgba(255, 210, 0, .12);
    --notice-edge: rgba(255, 210, 0, .3);
    --cta-bg: #1b2530;
    --cta-edge: 0 0 0 1px rgba(255, 255, 255, .08);
    --footer-bg: #0a0f14;
    --brand-plate: #ffffff;

    --header-glass: rgba(18, 25, 33, .76);
    --header-solid: #121921;
    --menu-glass: rgba(30, 39, 50, .84);
    --menu-solid: #1e2732;
    --caption-bg: rgba(18, 25, 33, .72);
    --caption-solid: #121921;
    --caption-fg: #eef1f4;
    --edge: rgba(0, 0, 0, .35);
    --scrim: rgba(0, 0, 0, .5);

    --shadow-1: 0 0 0 1px rgba(255, 255, 255, .07);
    --shadow-2: 0 0 0 1px rgba(255, 255, 255, .07), 0 12px 28px -8px rgba(0, 0, 0, .55);
    --shadow-3: 0 0 0 1px rgba(255, 255, 255, .09), 0 28px 56px -16px rgba(0, 0, 0, .7);
    --photo-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--bg);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Wechsel hell/dunkel ohne harten Helligkeitssprung */
  transition: background-color 300ms ease, color 300ms ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-accent); text-underline-offset: .2em; text-decoration-thickness: from-font; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: .375rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: .625rem; z-index: 200; background: var(--surface); color: var(--ink); padding: .625rem 1rem; border-radius: var(--r-sm); box-shadow: var(--shadow-3); }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Schrift: große Schrift enger und mit knappem Zeilenabstand, kleine Schrift offener ---------- */
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 1.2rem + 3.5vw, 3.6rem); line-height: 1.06; letter-spacing: -.028em; }
h2 { font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.375rem); line-height: 1.12; letter-spacing: -.022em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.012em; }
h4 { font-size: 1rem; line-height: 1.4; letter-spacing: -.004em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.eyebrow { display: inline-block; margin-bottom: .875rem; font-size: .8125rem; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--text-accent); }
.lead { font-size: 1.1875rem; line-height: 1.55; letter-spacing: -.008em; color: var(--ink-2); }
.muted { color: var(--muted); }

.ic { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kopfzeile: Glas über dem Inhalt ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding-top: 3px;
  background: var(--grad) top left / 100% 3px no-repeat;
}
/* Glasfläche als eigene Ebene, damit das Handymenü darunter selbst Glas sein kann */
.site-header::before {
  content: ""; position: absolute; inset: 3px 0 0; z-index: -1;
  background: var(--header-solid);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header::before { background: var(--header-glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
}
/* Kante statt Trennlinie: erscheint erst, wenn Inhalt unter der Kopfzeile liegt */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .75rem; pointer-events: none;
  background: linear-gradient(var(--edge), transparent);
  opacity: 0; transition: opacity 200ms var(--ease-out);
}
.site-header.is-scrolled::after { opacity: 1; }

.header-inner { position: relative; display: flex; align-items: center; gap: .875rem; min-height: var(--header-h); }
.brand { flex: none; display: block; border-radius: .625rem; background: var(--brand-plate); }
.brand img { height: 2.75rem; width: auto; }
/* Dunkelmodus: Das Logo hat dunkle Schrift auf durchsichtigem Grund und steht deshalb auf einem weißen Schild */
@media screen and (prefers-color-scheme: dark) {
  .brand { padding: .3125rem .5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
  .brand img { height: 2.375rem; }
}

/* Menü als Segmentleiste: aktuelle Seite als erhabene Fläche */
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: .25rem; display: flex; gap: .125rem; background: var(--fill); border-radius: 999px; }
.main-nav a {
  display: block; padding: .4375rem .875rem; border-radius: 999px;
  color: var(--ink-2); font-weight: 600; font-size: .9375rem; line-height: 1.4; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.main-nav a:active { transform: scale(.95); transition-duration: 80ms; }
.main-nav a[aria-current="page"] { background: var(--surface-sel); color: var(--ink); box-shadow: var(--sel-shadow); }

.lang { flex: none; display: flex; gap: .125rem; padding: .1875rem; background: var(--fill); border-radius: 999px; }
.lang a {
  padding: .3125rem .6875rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; line-height: 1.4; letter-spacing: .03em; color: var(--muted); text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.lang a:active { transform: scale(.93); transition-duration: 80ms; }
.lang a[aria-current="true"] { background: var(--surface-sel); color: var(--ink); box-shadow: var(--sel-shadow); }

/* Menüknopf: zwei Striche, die sich beim Öffnen zum Kreuz drehen */
.nav-toggle {
  display: none; align-items: center; gap: .5rem; flex: none; min-height: 2.5rem; padding: .5rem .875rem;
  border: 0; border-radius: 999px; background: var(--fill); color: var(--ink);
  font: inherit; font-weight: 600; font-size: .9375rem; line-height: 1.4; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.nav-toggle:active { transform: scale(.94); transition-duration: 80ms; }
.nav-toggle .bars { position: relative; display: block; width: 1.125rem; height: .875rem; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--spring-dur) var(--spring);
}
.nav-toggle .bars::before { top: 2px; }
.nav-toggle .bars::after { bottom: 2px; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-4px) rotate(-45deg); }
.nav-scrim { display: none; }

@media (max-width: 67.5em) {
  .header-inner { gap: .625rem; }
  .main-nav a { padding: .4375rem .6875rem; font-size: .9063rem; }
}
@media (max-width: 57.5em) {
  .nav-toggle { display: inline-flex; }
  .lang { margin-left: auto; }
  .main-nav ul { flex-direction: column; gap: .125rem; padding: 0; background: none; border-radius: 0; }
  .main-nav a { padding: .75rem 1rem; border-radius: var(--r-sm); font-size: 1.0625rem; color: var(--ink); }
  .main-nav a[aria-current="page"] { background: var(--fill-2); box-shadow: none; }

  /* Handymenü: Glasfläche, die aus dem Menüknopf heraus erscheint und auf demselben Weg verschwindet.
     Übergänge sind unterbrechbar: erneutes Tippen kehrt die Bewegung vom aktuellen Stand aus um. */
  .js .main-nav {
    position: absolute; top: calc(100% + .5rem); right: var(--gutter);
    width: min(20rem, calc(100% - 2 * var(--gutter)));
    margin: 0; padding: .5rem; border-radius: var(--r-lg);
    background: var(--menu-solid); box-shadow: var(--shadow-3);
    transform-origin: top right;
    opacity: 0; visibility: hidden; transform: translateY(-.5rem) scale(.94); filter: blur(4px);
    transition: opacity 180ms var(--ease-out), transform var(--spring-dur) var(--spring), filter 240ms var(--ease-out), visibility 0s linear var(--spring-dur);
  }
  .js .main-nav.open {
    opacity: 1; visibility: visible; transform: none; filter: none;
    transition: opacity 180ms var(--ease-out), transform var(--spring-dur) var(--spring), filter 240ms var(--ease-out), visibility 0s;
  }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .js .main-nav { background: var(--menu-glass); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
  }
  /* Abdunkeln lenkt den Blick aufs Menü; die Kopfzeile bleibt unverändert */
  .js .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 90; background: var(--scrim);
    opacity: 0; visibility: hidden; transition: opacity 240ms var(--ease-out), visibility 0s linear 240ms;
  }
  .menu-open .nav-scrim { opacity: 1; visibility: visible; transition: opacity 240ms var(--ease-out), visibility 0s; }

  /* ohne JavaScript: Menü als Zeile unter dem Logo, nichts ist versteckt */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: .5rem; }
  html:not(.js) .main-nav { order: 3; width: 100%; margin: 0; }
  html:not(.js) .main-nav ul { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .main-nav a { padding: .375rem .75rem; font-size: .9375rem; }
}
@media (max-width: 40em) {
  :root { --gutter: 1rem; }
  body { font-size: 1rem; }
}
@media (max-width: 30em) {
  :root { --header-h: 4rem; }
  .brand img { height: 2.375rem; }
  .header-inner { gap: .5rem; }
  .nav-toggle { padding: .5rem .75rem; }
  .nav-toggle .label { display: none; }
  h1 { -webkit-hyphens: auto; hyphens: auto; }
}
@media screen and (max-width: 30em) and (prefers-color-scheme: dark) {
  .brand { padding: .25rem .4375rem; }
  .brand img { height: 2.0625rem; }
}

/* ---------- Schaltflächen: Rückmeldung beim Drücken, nicht erst beim Loslassen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.875rem; padding: .6875rem 1.375rem; border: 0; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.3; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); transition-duration: 80ms; }
.btn .ic { width: 1.25rem; height: 1.25rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:active { background: var(--btn-hover); color: #fff; }
.btn-ghost { background: var(--fill); color: var(--ink); }
.btn-ghost:active { background: var(--fill-2); color: var(--ink); }
/* Glas-Schaltfläche auf dunklem Grund (Rostock-Bild, Handlungsaufforderung) */
.btn-light {
  background: rgba(255, 255, 255, .16); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26), inset 0 1px 0 rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.btn-light:active { background: rgba(255, 255, 255, .28); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Abschnitte ---------- */
.section { padding: 6rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 47.5rem; margin-bottom: 2.75rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.page-hero { padding: 4rem 0 3.5rem; background: var(--bg-soft); }
.page-hero .lead { max-width: 48.75rem; }

/* Startseite: Kopfbereich */
.hero { padding: 5rem 0 5.5rem; background: var(--bg-soft); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 1.75em; max-width: 36em; }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--photo-shadow); }
.hero-figure figcaption {
  position: absolute; left: 1rem; bottom: 1rem; padding: .4375rem .875rem; border-radius: 999px;
  background: var(--caption-bg); color: var(--caption-fg);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  font-size: .875rem; font-weight: 600; letter-spacing: .005em; box-shadow: 0 1px 3px rgba(0, 0, 0, .14);
}
@media (max-width: 56.25em) {
  .hero { padding: 3rem 0 3.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
}

/* Rostock-Bild als mitlaufender Hintergrund (funktioniert auch auf iPhone/iPad:
   das Bild steht fest im Fenster, der Abschnitt schneidet es nur aus) */
.rostock { position: relative; clip-path: inset(0); background: #1b2530; color: #fff; }
.rostock::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/rostock.jpg") center 30% / cover no-repeat;
}
.rostock::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero.rostock { background: transparent; }
.hero.rostock::after { background: linear-gradient(90deg, rgba(14, 20, 28, .84) 0%, rgba(14, 20, 28, .62) 50%, rgba(14, 20, 28, .30) 100%); }
.rostock h1 { color: #fff; }
.rostock .eyebrow { color: var(--yellow); }
.rostock .lead { color: rgba(255, 255, 255, .9); }
@media (max-width: 56.25em) { .hero.rostock::after { background: rgba(14, 20, 28, .7); } }
/* Kopfbereich der Unterseiten mit Rostock-Bild */
.page-hero.rostock { background: transparent; padding: 5rem 0 4.5rem; }
.page-hero.rostock::after { background: linear-gradient(90deg, rgba(14, 20, 28, .86) 0%, rgba(14, 20, 28, .66) 55%, rgba(14, 20, 28, .42) 100%); }
@media (max-width: 56.25em) { .page-hero.rostock::after { background: rgba(14, 20, 28, .74); } }
@media (max-width: 40em) { .page-hero.rostock { padding: 3rem 0 2.75rem; } }
.rostock-band { min-height: 23.75rem; display: grid; place-items: center; padding: 5rem 0; text-align: center; }
.rostock-band::after { background: linear-gradient(180deg, rgba(14, 20, 28, .35), rgba(14, 20, 28, .6)); }
.rostock-band p { margin: 0 auto; max-width: 51.25rem; font-size: clamp(1.5rem, 1rem + 2.2vw, 2.5rem); font-weight: 700; line-height: 1.18; letter-spacing: -.022em; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.rostock-band small { display: block; margin-top: .875rem; font-size: .9375rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); text-shadow: none; }
/* im Dunkelmodus das Bild etwas stärker abdunkeln, damit es nicht greller wirkt als die Seite */
@media screen and (prefers-color-scheme: dark) {
  .hero.rostock::after { background: linear-gradient(90deg, rgba(10, 15, 20, .88) 0%, rgba(10, 15, 20, .7) 50%, rgba(10, 15, 20, .42) 100%); }
  .page-hero.rostock::after { background: linear-gradient(90deg, rgba(10, 15, 20, .9) 0%, rgba(10, 15, 20, .74) 55%, rgba(10, 15, 20, .52) 100%); }
  .rostock-band::after { background: linear-gradient(180deg, rgba(10, 15, 20, .45), rgba(10, 15, 20, .7)); }
}

/* ---------- Karten ---------- */
/* minmax(0, 1fr): alle Spalten gleich breit, auch wenn ein langer Text (z. B. E-Mail) darin steht */
.cards { display: grid; gap: 1.375rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 62.5em) { .cards, .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40em) { .cards, .cards.three, .cards.two { grid-template-columns: minmax(0, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); padding: 1.75rem 1.625rem; box-shadow: var(--shadow-2); }
.card h3 { margin-top: .375rem; }
.card p { color: var(--ink-2); }
.card .more { margin-top: auto; display: inline-flex; align-items: center; gap: .375rem; font-weight: 600; color: var(--text-accent); }
.card .more .ic { width: 1.125rem; height: 1.125rem; transition: transform 220ms var(--ease-out); }
a.card { color: inherit; text-decoration: none; transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
a.card:active { transform: scale(.985); transition-duration: 90ms; }
.badge-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: .875rem; background: var(--grad-diag); color: #fff; margin-bottom: 1rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.badge-icon .ic { width: 1.5rem; height: 1.5rem; stroke-width: 2; }

/* Zweispaltige Inhalte */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; align-items: center; }
.split img { border-radius: var(--r-lg); box-shadow: var(--shadow-2); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 56.25em) { .split { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* Listen mit Haken (Maße in em, damit der Haken mit der Schrift mitwächst) */
.checklist { list-style: none; margin: 0 0 1em; padding: 0; }
.checklist li { position: relative; padding-left: 1.85em; margin-bottom: .5em; overflow-wrap: break-word; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .225em; width: 1.15em; height: 1.15em; border-radius: 50%; background: var(--check-bg); }
.checklist li::after { content: ""; position: absolute; left: .34em; top: .55em; width: .48em; height: .26em; border-left: 2px solid var(--text-accent); border-bottom: 2px solid var(--text-accent); transform: rotate(-45deg); }
.checklist ul { list-style: disc; margin: .4em 0 0; padding-left: 1.1em; color: var(--ink-2); }
.checklist ul li { padding-left: 0; margin-bottom: .2em; }
.checklist ul li::before, .checklist ul li::after { display: none; }

/* Leistungen */
.service { display: grid; grid-template-columns: 18.75rem minmax(0, 1fr); gap: 3rem; padding: 3.5rem 0; border-top: 1px solid var(--hairline); }
.service:first-of-type { border-top: 0; }
.service-head h2 { margin-top: .25rem; }
.service-head p { color: var(--ink-2); }
.service-body { columns: 2; column-gap: 2.5rem; }
.service-body .checklist li { break-inside: avoid; }
.service-note { grid-column: 2; margin-top: -.5rem; padding: 1.125rem 1.375rem; border-radius: var(--r); background: var(--bg-soft); }
/* lange Fachwörter (z. B. „Gesundheitsschutzkoordination“) brauchen Platz: erst ab großer Breite zweispaltig */
@media (max-width: 68em) { .service-body { columns: 1; } }
@media (max-width: 56.25em) {
  .service { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 2.75rem 0; }
  .service-note { grid-column: 1; margin-top: 0; }
}

/* ---------- Team ---------- */
.team-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.team-nav a {
  padding: .4375rem .875rem; border-radius: 999px; background: var(--fill); color: var(--ink);
  font-size: .875rem; font-weight: 600; line-height: 1.4; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.team-nav a:active { transform: scale(.95); transition-duration: 80ms; }
/* auf dem Rostock-Bild als Glas mit heller Kante */
.rostock .team-nav a {
  background: rgba(255, 255, 255, .14); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
}
.rostock .team-nav a:active { background: rgba(255, 255, 255, .26); }
.group-photo { margin: 0; }
.group-photo img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--photo-shadow); aspect-ratio: 3 / 2; object-fit: cover; }
.people { display: flex; flex-direction: column; gap: 2.5rem; }
.person { display: grid; grid-template-columns: 21.25rem minmax(0, 1fr); gap: 2.75rem; align-items: center; padding: 2rem; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.person:nth-child(even) { grid-template-columns: minmax(0, 1fr) 21.25rem; }
.person:nth-child(even) .person-photo { order: 2; }
.person-photo { position: relative; }
.person-photo img, .person-photo .initials { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); }
.initials { display: grid; place-items: center; background: var(--initials); color: #fff; font-size: 4rem; font-weight: 700; letter-spacing: .02em; }
.person-text { padding-top: .375rem; }
.person-text h2 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -.02em; margin-bottom: .3em; }
.person-role { font-size: 1.0625rem; font-weight: 600; color: var(--text-accent); margin-bottom: 1.2em; }
.person-text h3 { font-size: .8125rem; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9em; }
.contact-chips { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.125rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .5rem .9375rem; border-radius: 999px;
  background: var(--fill); color: var(--ink); font-size: .9375rem; font-weight: 600; line-height: 1.3; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.chip:active { transform: scale(.96); background: var(--fill-2); transition-duration: 80ms; }
.chip .ic { width: 1.125rem; height: 1.125rem; color: var(--text-accent); }
@media (max-width: 56.25em) {
  .person, .person:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 1.625rem; padding: 1.375rem; }
  .person:nth-child(even) .person-photo { order: 0; }
  .person-photo { max-width: 18.75rem; }
  .person-photo img, .person-photo .initials { aspect-ratio: 1 / 1; }
}

/* ---------- Referenzen ---------- */
.filter { display: none; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem; }
.js .filter { display: flex; }
.filter button {
  min-height: 2.5rem; padding: .5rem 1rem; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink);
  font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.3; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.filter button:active { transform: scale(.95); transition-duration: 80ms; }
.filter button[aria-pressed="true"] { background: var(--pressed-bg); color: var(--pressed-fg); }
.ref-group { margin-bottom: 3.25rem; }
.ref-group[hidden] { display: none; }
.ref-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.375rem; }
.ref-head .badge-icon { margin: 0; }
.ref-head h2 { min-width: 0; margin: 0; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.016em; -webkit-hyphens: auto; hyphens: auto; }
.ref-head .count { margin-left: auto; flex: none; padding: .25rem .75rem; border-radius: 999px; background: var(--fill); color: var(--muted); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ref-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .875rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.ref { position: relative; padding: 1.125rem 1.25rem 1.125rem 1.375rem; background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--shadow-1); overflow: hidden; }
.ref::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad-diag); }
.ref strong { display: block; line-height: 1.35; letter-spacing: -.005em; }
.ref span { display: block; margin-top: .1875rem; color: var(--muted); font-size: .9063rem; letter-spacing: .005em; }

/* ---------- Jobs ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.benefits li { display: flex; gap: .875rem; align-items: flex-start; padding: 1.25rem; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1); font-weight: 600; }
.benefits .ic { color: var(--text-accent); margin-top: .125rem; }
@media (max-width: 56.25em) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 35em) { .benefits { grid-template-columns: minmax(0, 1fr); } }
.job h3 { font-size: 1.375rem; }
.job h4 { margin-top: 1.2em; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.notice { padding: 1.125rem 1.375rem; border-radius: var(--r); background: var(--notice-bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--notice-edge); }
.rostock .notice {
  max-width: 48rem; background: rgba(255, 255, 255, .14); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 56.25em) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: .875rem; align-items: flex-start; padding: .875rem 0; border-bottom: 1px solid var(--hairline); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ic { color: var(--text-accent); margin-top: .1875rem; }
.contact-list small { display: block; color: var(--muted); font-size: .8125rem; letter-spacing: .01em; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .625rem 0; border-bottom: 1px solid var(--hairline); }
.hours th { font-weight: 600; width: 45%; }
.mini-person { display: flex; gap: .875rem; align-items: center; }
.mini-person > div { min-width: 0; }
.mini-person img, .mini-person .initials { flex: none; width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; object-position: 50% 30%; font-size: 1.2rem; }

/* Kontakt: Ansprechpartner nach Fachbereich */
.area-head { display: flex; align-items: center; gap: .875rem; }
.area-head .badge-icon { margin: 0; }
.area-head h3 { margin: 0; }
.area-people { list-style: none; margin: 1.375rem 0 0; padding: 1.375rem 0 0; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.125rem; }
.mini-text strong { display: block; margin-bottom: .25rem; }
.mini-text a { display: flex; align-items: center; gap: .5rem; padding: .125rem 0; color: var(--ink-2); font-size: .9375rem; text-decoration: none; transition: color 160ms var(--ease-out); }
.mini-text a span { overflow-wrap: break-word; min-width: 0; }
.mini-text a:active { color: var(--text-accent); }
.mini-text .ic { width: 1rem; height: 1rem; color: var(--text-accent); }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 51.25rem; }
.legal h2 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.014em; margin-top: 2em; }
.legal h3 { font-size: 1.0625rem; margin-top: 1.5em; }
.legal address { font-style: normal; }
.legal-note { padding: .875rem 1.125rem; border-radius: var(--r-sm); background: var(--bg-soft); color: var(--ink-2); margin-bottom: 2em; }

/* ---------- Partner (Startseite): Banner 1000 x 300, einzeln mittig, ab zwei nebeneinander ---------- */
.section.partner { padding: 4.5rem 0; text-align: center; }
.partner h2 { margin-bottom: 1.75rem; }
.partner-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem; }
.partner-liste li { flex: 0 1 30rem; min-width: 0; }
.partner-liste img { width: 100%; }
@media (max-width: 40em) { .section.partner { padding: 3rem 0; } }

/* ---------- Handlungsaufforderung ---------- */
.cta { position: relative; overflow: hidden; padding: 3.5rem; border-radius: var(--r-xl); background: var(--cta-bg); color: #fff; box-shadow: var(--cta-edge); }
.cta::before { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(242, 140, 0, .5), transparent); }
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .82); max-width: 40rem; }
@media (max-width: 40em) { .cta { padding: 2.125rem 1.5rem; } }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, .8); font-size: .9375rem; }
.site-footer::before { content: ""; display: block; height: 3px; background: var(--grad); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
.site-footer h2 { font-size: .8125rem; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1em; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45em; }
.footer-logo { display: inline-block; background: #fff; padding: .625rem .875rem; border-radius: var(--r-sm); margin-bottom: 1rem; }
.footer-logo img { height: 2.5rem; width: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; letter-spacing: .005em; color: rgba(255, 255, 255, .6); }
@media (max-width: 56.25em) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 35em) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-top: 2.75rem; } }

@media (max-width: 40em) {
  .section { padding: 4rem 0; }
  .page-hero { padding: 2.75rem 0 2.5rem; }
}

/* ---------- Hover nur bei Maus/Trackpad (auf Touch-Geräten bleibt Hover sonst „hängen“) ---------- */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--text-accent-hover); }
  .main-nav a:not([aria-current]):hover { color: var(--ink); background: var(--hover-on-fill); }
  .lang a:not([aria-current="true"]):hover { color: var(--ink); background: var(--hover-on-fill); }
  .nav-toggle:hover { background: var(--fill-2); }
  .btn-primary:hover { background: var(--btn-hover); color: #fff; }
  .btn-ghost:hover { background: var(--fill-2); color: var(--ink); }
  .btn-light:hover { background: rgba(255, 255, 255, .26); color: #fff; }
  a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); color: inherit; }
  a.card:hover:active { transform: translateY(-1px) scale(.985); }
  a.card:hover .more .ic { transform: translateX(3px); }
  .team-nav a:hover { background: var(--fill-2); color: var(--ink); }
  .rostock .team-nav a:hover { background: rgba(255, 255, 255, .26); color: #fff; }
  .chip:hover { background: var(--fill-2); color: var(--text-accent); }
  .filter button:not([aria-pressed="true"]):hover { background: var(--fill-2); }
  .contact-list a:hover, .mini-text a:hover { color: var(--text-accent); }
  .site-footer a:hover { color: #fff; text-decoration: underline; }
}

/* ---------- Bewegung reduzieren: nur noch überblenden, Hintergrund läuft mit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
  .rostock::before { position: absolute; }
  .js .main-nav, .js .main-nav.open { transform: none !important; filter: none !important; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { transition: none; }
  a.card:hover, a.card:hover:active, a.card:hover .more .ic { transform: none; }
}

/* ---------- Transparenz reduzieren: Glas wird fest ---------- */
@media (prefers-reduced-transparency: reduce) {
  .site-header::before { background: var(--header-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js .main-nav { background: var(--menu-solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .btn-light, .btn-light:active, .btn-light:hover { background: #fff; color: var(--ink-on-light); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rostock .team-nav a, .rostock .team-nav a:hover, .rostock .notice { background: #fff; color: var(--ink-on-light); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-figure figcaption { background: var(--caption-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Mehr Kontrast: feste Flächen, deutliche Kanten (hell und dunkel) ---------- */
@media (prefers-contrast: more) {
  :root {
    --ink-2: var(--ink); --muted: var(--muted-strong);
    --hairline: var(--line-strong); --fill: var(--fill-2);
    --shadow-1: 0 0 0 1px var(--line-strong);
    --shadow-2: 0 0 0 1px var(--line-strong);
    --shadow-3: 0 0 0 1px var(--line-strong), 0 12px 32px rgba(0, 0, 0, .25);
  }
  .site-header { box-shadow: 0 1px 0 var(--ink); }
  .site-header::before { background: var(--header-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js .main-nav { background: var(--menu-solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .btn-light, .btn-light:hover, .rostock .team-nav a, .rostock .team-nav a:hover, .rostock .notice { background: #fff; color: var(--ink-on-light); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media print {
  :root { color-scheme: light; }
  .site-header, .site-footer, .nav-toggle, .nav-scrim, .filter, .cta { display: none !important; }
  body { font-size: 11pt; color: #1b2530; background: #fff; }
  .person, .card, .ref { box-shadow: none; break-inside: avoid; background: #fff; color: #1b2530; }
  .rostock::before, .rostock::after { display: none; }
  .rostock { background: none; color: #1b2530; }
  .rostock h1 { color: #1b2530; }
}
