/* =============================================================================
   Pflege-Daheim — öffentliches Design
   =============================================================================
   Kontrast-Nachweis (WCAG 2.1 AA, gerechnet gegen #FFFFFF bzw. die genannte
   Fläche, relative Luminanz nach der Standardformel):

     --brand-magenta #E5097D  auf Weiß  = 4.50:1  (Grenzwert AA großer Text/UI)
     --brand-teal    #068EA2  auf Weiß  = 3.89:1  (NICHT ausreichend für Fließtext)
     --magenta-ink   #B80663  auf Weiß  = 6.47:1  (AA, auch für kleinen Text)
     --teal-ink      #03606E  auf Weiß  = 7.24:1  (AAA)
     --ink           #0A3B44  auf Weiß  = 12.20:1 (AAA)
     --ink-soft      #4A6B72  auf Weiß  = 5.77:1  (AA)
     --ink           auf --surface-tint (#E6F4F6) = 10.82:1
     --ink           auf --surface-warm (#FDEAF3) = 10.59:1
     --ink-soft      auf --surface-tint            = 5.12:1 (AA)
     --magenta-ink   auf --surface-tint            = 5.74:1 (AA)
     --teal-ink      auf --surface-tint            = 6.42:1 (AA)
     Weiß auf --magenta-ink (Primär-Button-Fläche)  = 6.47:1
     Weiß auf --teal-ink (dunkle Flächen)           = 7.24:1

   Deshalb: --brand-magenta und --brand-teal ausschließlich für Flächen/Icons,
   nie als Schrift- oder Button-Text-Farbe. Für Schrift, Links und Buttons
   ausschließlich die *-ink-Varianten.
   ========================================================================= */

@font-face {
    font-family: "Spectral";
    src: url("../fonts/spectral-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("../fonts/spectral-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Public Sans";
    src: url("../fonts/public-sans-var.woff2") format("woff2-variations");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Markenfarben — nur für Flächen, Grafik, Icons, Logo */
    --brand-magenta: #E5097D;
    --brand-teal:    #068EA2;
    /* Textsichere Varianten — für Schrift, Links, Buttons */
    --magenta-ink:   #B80663;
    --teal-ink:      #03606E;
    /* Text und Flächen */
    --ink:           #0A3B44;
    --ink-soft:      #4A6B72;
    --surface:       #FFFFFF;
    --surface-tint:  #E6F4F6;
    --logo-pink:     #E50A7A; /* Pink aus dem Logo (nur für Dekoration, nicht für Text) */
    --surface-warm:  #FDEAF3;

    --border-soft: #CFE6EA;
    --font-head: "Spectral", Georgia, "Times New Roman", serif;
    --font-body: "Public Sans", -apple-system, "Segoe UI", Arial, sans-serif;
    --radius: 14px;
    --max-line: 70ch;
    --container: 1160px;
    --shadow-soft: 0 2px 14px rgba(10, 59, 68, 0.08);
    --focus-ring: 3px solid #0A3B44;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface);
    padding-bottom: 76px; /* Platz für die feste Mobil-CTA-Leiste */
}

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

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); margin-top: 1.4em; }
h3 { font-size: 1.25rem; }

p, li { max-width: var(--max-line); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

a { color: var(--teal-ink); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--magenta-ink); }

:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* padding-top/-bottom statt der Kurzform "padding", damit sich .section nicht
   mit .container (padding: 0 20px) beißt, wenn beide Klassen am selben Element
   stehen — sonst gewinnt je nach Reihenfolge im Stylesheet eine der beiden
   Angaben komplett und die andere Achse (links/rechts oder oben/unten) fehlt. */
.section { padding-top: 56px; padding-bottom: 56px; }
.section--tint { background: var(--surface-tint); }
.section--warm { background: var(--surface-warm); }

/* ---------------------------------------------------------------------------
   Hilfsklassen — bewusst als Klasse statt als inline style="...", da CSP
   (style-src 'self') inline style-Attribute im Browser blockiert.
   ------------------------------------------------------------------------- */
.u-narrow-sm { max-width: 640px; }
.u-narrow-md { max-width: 760px; }
.u-narrow { max-width: 800px; }
.u-wide { max-width: 960px; }
.u-max-none { max-width: none; }
.u-w-full { width: 100%; }
.u-text-center { text-align: center; }
.u-font-normal { font-weight: 400; }
.u-mt-0 { margin-top: 0; }
.u-mt-10 { margin-top: 10px; }
.u-mt-20 { margin-top: 20px; }
.u-mt-24 { margin-top: 24px; }
.u-mt-32 { margin-top: 32px; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-32 { margin-bottom: 32px; }
.u-plain-link { color: inherit; text-decoration: none; }

.kontakt-grid { display: grid; gap: 40px; }
.pflegegrad-option-label {
    display: flex; gap: 10px; align-items: center; font-weight: 400; margin-bottom: 8px;
}
.pflegegrad-option-input { width: 20px; height: 20px; }
.pflegegrad-legend { font-weight: 700; padding: 0 6px; }
.service-card__title-compact { font-size: 1.25rem; margin-top: 0; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 8px; top: -60px; background: var(--ink);
    color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000;
    transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

/* ---------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5em;
    min-height: 48px; min-width: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn--primary { background: var(--magenta-ink); color: #fff; }
.btn--primary:hover { background: #96054F; color: #fff; }
.btn--secondary { background: transparent; border-color: var(--teal-ink); color: var(--teal-ink); }
.btn--secondary:hover { background: var(--surface-tint); color: var(--teal-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
    border-bottom: 1px solid var(--border-soft);
    background: var(--surface);
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    max-height: 100vh; overflow-y: auto;
    transition: box-shadow 0.25s ease;
}
/* Grobe Startwerte ohne JavaScript; app.js setzt die exakte Höhe der großen Kopfzeile. */
.site-header-spacer { height: 106px; }
@media (min-width: 900px) { .site-header-spacer { height: 126px; } }
/* Nur kurz beim Nachmessen der Kopfzeilenhöhe aktiv (siehe app.js). */
.site-header.is-measuring, .site-header.is-measuring * { transition: none !important; }
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(10,59,68,0.1); }

/* Eine Zeile: Logo links, Navigation daneben, Telefon/Menü-Symbol rechtsbündig.
   Schrumpft beim Scrollen (Klasse .is-scrolled, per JS gesetzt, siehe app.js),
   damit die Kopfzeile beim Lesen nicht zu viel Platz wegnimmt. Nur Eigenschaften,
   die sich weich animieren lassen (padding, Höhe, Schriftgröße) — daher eine
   einzeilige Struktur statt zwei separaten Zeilen, die sich nicht sauber
   ineinander überblenden ließen. */
.site-header__inner {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px 20px; padding: 18px 20px;
    transition: padding 0.25s ease;
}
.site-header.is-scrolled .site-header__inner { padding: 8px 20px; }

.site-header__logo { display: inline-flex; text-decoration: none; order: 0; }
.site-header__logo-img {
    height: 68px; width: auto; display: block;
    transition: height 0.25s ease;
}
.site-header.is-scrolled .site-header__logo-img { height: 38px; }

.site-header__actions {
    display: flex; align-items: center; gap: 14px; order: 1; margin-left: auto;
}

/* Utility-Farbklassen — bewusst als Klasse statt als inline style="color:var(...)",
   da sich Custom Properties in manchen Rendering-Umgebungen innerhalb von
   inline style-Attributen nicht zuverlässig auflösen lassen. */
.icon-teal { color: var(--teal-ink); }
.icon-magenta { color: var(--magenta-ink); }

.pflegegrad-fieldset {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 20px;
}
.site-header__phone {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--magenta-ink); font-weight: 700; text-decoration: none;
    white-space: nowrap; transition: font-size 0.25s ease;
}
.site-header.is-scrolled .site-header__phone { font-size: 0.9rem; }
.site-nav {
    display: none; order: 2; flex: 1 0 100%;
}
.site-nav.is-open { display: block; padding-bottom: 76px; } /* Platz über der festen Rückruf-Leiste unten */
.site-nav ul {
    list-style: none; margin: 8px 0 0; padding: 10px 0 0; display: flex; flex-direction: column;
    border-top: 1px solid var(--border-soft);
}
.site-nav a {
    display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 600;
    border-bottom: 1px solid var(--border-soft);
    transition: font-size 0.25s ease, padding 0.25s ease;
}
.site-nav__toggle {
    background: none; border: 2px solid var(--border-soft); border-radius: 10px;
    padding: 8px 12px; min-height: 48px; min-width: 48px; cursor: pointer;
}

/* Aufklappmenü "Weitere Sprachen" — Handy: Antippen klappt die Einträge darunter auf */
.has-submenu { position: relative; list-style: none; }
.submenu-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; text-align: left;
    background: none; border: none; border-bottom: 1px solid var(--border-soft); border-radius: 0;
    font: inherit; font-weight: 600; color: var(--ink); padding: 12px 4px; cursor: pointer;
}
.submenu-toggle__icon { display: inline-block; flex: none; transition: transform 0.2s ease; }
.has-submenu.is-open .submenu-toggle__icon { transform: rotate(180deg); }
.site-nav .submenu { display: none; list-style: none; margin: 0; padding: 0 0 0 16px; border-top: none; flex-direction: column; }
.site-nav .has-submenu.is-open .submenu { display: flex; }
.site-nav .submenu a { display: block; padding: 12px 4px; }

@media (min-width: 900px) {
    /* Laptop: Aufklappmenü darf über den Rand der Kopfzeile hinausragen, öffnet per Maus-Hover. */
    .site-header { max-height: none; overflow: visible; }
    .submenu-toggle { width: auto; justify-content: flex-start; padding: 6px 4px; border-bottom: none; }
    .site-header.is-scrolled .submenu-toggle { font-size: 0.88rem; }
    .submenu-toggle:hover, .submenu-toggle:focus-visible { color: var(--magenta-ink); }
    .has-submenu:hover .submenu-toggle__icon { transform: rotate(180deg); }
    .site-nav .submenu {
        position: absolute; top: 100%; left: -12px; z-index: 110; min-width: 180px;
        gap: 0; padding: 8px 0; margin-top: 0;
        background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
        box-shadow: 0 8px 24px rgba(10,59,68,0.14);
    }
    /* Unsichtbare Brücke, damit das Menü beim Hinunterfahren mit der Maus nicht zuklappt */
    .site-nav .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
    .site-nav .has-submenu:hover .submenu, .site-nav .has-submenu:focus-within .submenu { display: flex; }
    .site-nav .submenu a { padding: 10px 18px; white-space: nowrap; }
    .site-nav .submenu a:hover { background: var(--surface-tint); }
}

@media (min-width: 900px) {
    .site-header__logo-img { height: 88px; }
    .site-header.is-scrolled .site-header__logo-img { height: 42px; }
    .site-nav { display: block; order: 1; flex: none; padding-bottom: 0; }
    .site-nav.is-open { padding-bottom: 0; }
    .site-nav ul { flex-direction: row; flex-wrap: wrap; margin: 0; padding: 0; border-top: none; gap: 4px 18px; }
    .site-nav a { border-bottom: none; padding: 6px 4px; }
    .site-header.is-scrolled .site-nav a { font-size: 0.88rem; }
    .site-header__actions { order: 2; }
    .site-nav__toggle { display: none; }
}

/* ---------------------------------------------------------------------------
   Signature-Element: Bogen aus dem Logo-Kreislauf
   ------------------------------------------------------------------------- */
.arc-divider { display: block; width: 100%; height: auto; color: var(--surface-tint); }
.arc-divider--warm { color: var(--surface-warm); }

.arc-steps { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.arc-steps__svg { display: block; width: 100%; height: auto; margin-bottom: -20px; }
.arc-steps__grid { display: grid; gap: 28px; }
.arc-step { display: flex; gap: 16px; align-items: flex-start; }
.arc-step__num {
    flex: none; width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface-tint); color: var(--teal-ink);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 600; font-size: 1.2rem;
    border: 2px solid var(--teal-ink);
}
@media (min-width: 800px) {
    .arc-steps__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero { padding: 40px 0 56px; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__eyebrow {
    display: inline-block; color: var(--teal-ink); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem;
    margin-bottom: 10px;
}
.hero__lead { font-size: 1.2rem; color: var(--ink-soft); }
.hero__media {
    background: var(--surface-tint); border-radius: var(--radius);
    border: 1px dashed var(--teal-ink);
    padding: 20px; text-align: center; color: var(--ink-soft);
    min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero__media--photo { border: none; padding: 0; background: none; overflow: hidden; display: block; }
.hero__media-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }
@media (min-width: 900px) {
    .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* Hero mit Video/Bild als breitem Hintergrund (statt seitlicher Box) —
   aktiv, sobald ein Hero-Bild oder -Video hinterlegt ist. */
.hero--media {
    position: relative; overflow: hidden; padding: 72px 0; min-height: 460px;
    display: flex; align-items: center;
}
.hero--media .hero__bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
    transition: opacity 0.6s ease-in-out;
}
.hero--media .hero__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(8,18,20,var(--dim-a)) 0%, rgba(8,18,20,var(--dim-b)) 45%, rgba(8,18,20,var(--dim-c)) 100%);
}
/* Abdunklungsstufen (im Admin unter „Seiteninhalte" wählbar); Standard = Stufe 2 */
.dim-0 { --dim-a: 0;    --dim-b: 0;    --dim-c: 0;    --dim-ban-a: 0;    --dim-ban-b: 0; }
.dim-1 { --dim-a: 0.18; --dim-b: 0.10; --dim-c: 0;    --dim-ban-a: 0.08; --dim-ban-b: 0.04; }
.dim-2 { --dim-a: 0.35; --dim-b: 0.20; --dim-c: 0.03; --dim-ban-a: 0.15; --dim-ban-b: 0.07; }
.dim-3 { --dim-a: 0.50; --dim-b: 0.30; --dim-c: 0.05; --dim-ban-a: 0.30; --dim-ban-b: 0.18; }
.dim-4 { --dim-a: 0.82; --dim-b: 0.62; --dim-c: 0.28; --dim-ban-a: 0.55; --dim-ban-b: 0.35; }
.hero--media .hero__content { position: relative; max-width: 620px; }
.hero--media .hero__content-inner {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.hero--media .hero__logo {
    height: 120px; width: auto; display: block; flex: none;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.45));
}
.hero--media .hero__eyebrow { color: #fff; opacity: 0.92; }
.hero--media h1 { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.hero--media .hero__lead { color: rgba(255,255,255,0.9); }
.hero--media .btn--secondary { border-color: #fff; color: #fff; }
.hero--media .btn--secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }
@media (min-width: 640px) {
    .hero--media .hero__content { max-width: 760px; }
    .hero--media .hero__content-inner { flex-direction: row; align-items: center; gap: 32px; }
    .hero--media .hero__logo { height: 150px; }
}
@media (min-width: 900px) {
    .hero--media { min-height: 600px; padding: 96px 0; }
    .hero--media .hero__logo { height: 180px; }
}

/* ---------------------------------------------------------------------------
   Video-Banner (zweites Hintergrundvideo, weiter unten auf der Startseite)
   ------------------------------------------------------------------------- */
.video-banner {
    position: relative; overflow: hidden; min-height: 320px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink);
}
.video-banner__media {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
    transition: opacity 0.6s ease-in-out;
}
.video-banner__overlay {
    position: relative; width: 100%; padding: 48px 0;
    background: linear-gradient(0deg, rgba(10,20,22,var(--dim-ban-a)), rgba(10,20,22,var(--dim-ban-b)));
}
.video-banner__text {
    color: #fff; font-family: var(--font-head); font-size: 1.6rem; text-align: center;
    max-width: 720px; margin: 0 auto; text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
@media (min-width: 900px) {
    .video-banner { min-height: 420px; }
    .video-banner__text { font-size: 2rem; }
}

/* ---------------------------------------------------------------------------
   Vertrauensleiste
   ------------------------------------------------------------------------- */
.trust-bar { background: var(--surface-tint); }
.trust-bar__grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 20px;
    grid-template-columns: repeat(2, 1fr);
}
.trust-bar__item { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.trust-bar__icon { flex: none; color: var(--teal-ink); }
@media (min-width: 800px) {
    .trust-bar__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------------------------------------------------------------------
   Kapazitätsblock
   ------------------------------------------------------------------------- */
.capacity-banner {
    background: var(--surface-warm); border: 2px solid var(--magenta-ink);
    border-radius: var(--radius); padding: 20px 24px; display: flex;
    flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.capacity-banner p { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------------------------
   Leistungskarten
   ------------------------------------------------------------------------- */
.card-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 24px 24px 58px; box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column; gap: 10px;
}
/* Dekor wie im Entwurf: dunkles Wellenband unten (mit feiner pinker Linie), rechts unten
   ein dunkles Dreieck mit der pinken Form darüber. Alles liegt hinter dem Text. */
.service-card::before, .service-card::after {
    content: ""; position: absolute; bottom: 0; pointer-events: none;
    background-repeat: no-repeat; background-size: 100% 100%;
}
.service-card::before {
    left: 0; width: calc(100% - 104px); height: 40px;
    background-image: url('../img/card-band.svg');
}
.service-card::after {
    right: 0; width: 68px; height: 159px;
    background-image: url('../img/card-corner.svg');
}
.service-card > * { position: relative; z-index: 1; }
.service-card--wound::before, .service-card--wound::after,
.service-card--plain::before, .service-card--plain::after { display: none; }
.service-card h3 { margin-bottom: 0.2em; }
/* Symbol im dunklen Kreis, feine Trennlinie unter dem Titel, pinker Link */
.service-card > .icon-teal {
    align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 50%; background: #0088A0; color: #fff;
}
.service-card > .icon-teal svg { width: 30px; height: 30px; }
.service-card h3, .service-card .service-card__title-compact {
    padding-bottom: 12px; border-bottom: 1px solid var(--border-soft);
    font-family: var(--font-body); font-weight: 700; font-size: 1.4rem; line-height: 1.25; color: var(--ink);
}
.service-card--wound h3, .service-card--wound h2, .service-card--plain h3, .service-card--plain h2 { padding-bottom: 0; border-bottom: none; font-family: var(--font-head); font-weight: 600; }
.service-card--wound .service-card__title-compact, .service-card--plain .service-card__title-compact { font-size: 1.25rem; }
.service-card--wound, .service-card--plain { padding-bottom: 24px; }
.service-card__teaser { color: var(--ink); flex-grow: 1; }
.service-card__link { font-weight: 700; color: var(--magenta-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.service-card--wound {
    background: var(--surface-warm); border-color: var(--brand-magenta);
}

/* ---------------------------------------------------------------------------
   Sprachen
   ------------------------------------------------------------------------- */
.lang-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .lang-grid { grid-template-columns: 1fr 1fr; } }
.lang-card {
    background: var(--surface); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 24px;
}
.lang-card [lang] { display: block; margin-top: 6px; }

/* ---------------------------------------------------------------------------
   Team
   ------------------------------------------------------------------------- */
/* auto-fit statt fester Spaltenzahl: bei wenigen Mitarbeitenden bleiben die
   Fotos angemessen klein und zentriert, statt sich über die ganze Breite zu
   strecken — funktioniert unabhängig davon, wie viele Personen später über
   den Admin-Bereich hinzukommen. */
.team-grid {
    display: grid; gap: 22px; justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(120px, 160px));
}
.team-card { text-align: center; }
.team-card__photo {
    aspect-ratio: 1; border-radius: 50%; background: var(--surface-tint);
    border: 2px dashed var(--teal-ink); display: flex; align-items: center; justify-content: center;
    color: var(--ink-soft); font-size: 0.85rem; padding: 10px; margin-bottom: 10px;
}
.team-card__photo-img {
    aspect-ratio: 1; width: 100%; border-radius: 50%; object-fit: cover;
    margin-bottom: 10px; border: 2px solid var(--border-soft);
}
.team-card__name { font-weight: 700; margin: 0; }
.team-card__role { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* Geschäftsführung wird in einer eigenen, vorangestellten Gruppe angezeigt,
   aber bewusst in derselben Größe wie die übrigen Teammitglieder — auf
   ausdrücklichen Wunsch, nicht optisch größer/wichtiger wirken zu lassen. */
.team-grid--leadership { margin-bottom: 36px; }

.content-image {
    width: 100%; max-width: 100%; height: auto; border-radius: var(--radius);
    margin: 20px 0; border: 1px solid var(--border-soft);
}

.placeholder-box {
    border: 1px dashed var(--teal-ink); background: var(--surface-tint);
    border-radius: var(--radius); padding: 20px; color: var(--ink-soft);
}

/* ---------------------------------------------------------------------------
   Bewertungen
   ------------------------------------------------------------------------- */
.review-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
    background: var(--surface); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft);
}
.review-card__stars { color: var(--magenta-ink); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review-card__text { color: var(--ink); font-style: italic; }
.review-card__author { color: var(--ink-soft); font-weight: 700; font-style: normal; margin: 0; }

/* ---------------------------------------------------------------------------
   Kosten-Tabelle
   ------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.cost-table { border-collapse: collapse; width: 100%; min-width: 520px; }
.cost-table th, .cost-table td {
    text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-soft);
}
.cost-table th { font-family: var(--font-head); background: var(--surface-tint); }

/* ---------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--border-soft); padding: 6px 0; }
.faq-item summary {
    cursor: pointer; font-weight: 700; padding: 14px 4px; list-style: none;
    display: flex; justify-content: space-between; gap: 12px; min-height: 48px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-ink); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 4px 16px; color: var(--ink-soft); }

/* ---------------------------------------------------------------------------
   Formulare
   ------------------------------------------------------------------------- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-field .hint { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-top: 4px; }
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px;
    border: 1.5px solid var(--border-soft); background: #fff; color: var(--ink);
    min-height: 48px;
}
.form-field textarea { min-height: 120px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success {
    background: var(--surface-tint); border: 1px solid var(--teal-ink);
    border-radius: var(--radius); padding: 18px 20px;
}
.form-error {
    background: var(--surface-warm); border: 1px solid var(--magenta-ink);
    border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; color: var(--ink);
}

/* ---------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--surface-tint); color: var(--ink-soft); padding: 56px 0 110px; }
.site-footer a { color: var(--teal-ink); }
.site-footer a:hover { color: var(--magenta-ink); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.site-footer h2 { color: var(--ink); font-size: 1.1rem; margin-top: 0; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 14px; }
.footer-contact-row { display: flex; gap: 8px; margin: 0 0 4px; }
.footer-contact-label { flex: 0 0 62px; }
.footer-bottom {
    margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-soft);
    font-size: 0.9rem; color: var(--ink-soft);
    display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}

/* ---------------------------------------------------------------------------
   Mobile CTA-Leiste (immer sichtbar)
   ------------------------------------------------------------------------- */
.mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    display: grid; grid-template-columns: 1fr; gap: 1px;
    background: var(--border-soft);
    box-shadow: 0 -4px 16px rgba(10,59,68,0.15);
}
.mobile-cta a {
    background: var(--surface); color: var(--magenta-ink); text-decoration: none;
    font-weight: 700; text-align: center; padding: 14px 8px; min-height: 60px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mobile-cta a:first-child { background: var(--magenta-ink); color: #fff; }

/* Die feste Leiste ist eine mobile Bedienhilfe (kurze Daumenreichweite zum
   Telefon). Ab Desktop-Breite gibt es genug Platz für Buttons im Fließtext
   und einen sichtbaren Telefonlink im Header, daher blenden wir sie dort aus. */
@media (min-width: 900px) {
    .mobile-cta { display: none; }
    body { padding-bottom: 0; }
}

/* ---------------------------------------------------------------------------
   Cookie-Hinweis
   ------------------------------------------------------------------------- */
.cookie-note {
    position: fixed; left: 0; right: 0; bottom: 76px; z-index: 300;
    background: var(--surface); border-top: 1px solid var(--border-soft);
    padding: 10px 16px; font-size: 0.85rem; color: var(--ink-soft);
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
}
/* Ohne diese Regel gewinnt display:flex oben immer gegen das hidden-Attribut,
   das der Browser sonst automatisch auf display:none setzt — der Hinweis
   ließe sich dann per Klick auf "Verstanden" nie mehr ausblenden. */
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; flex: 1 1 240px; }
.cookie-note strong { color: var(--ink); }
.cookie-note button {
    flex: none; background: transparent; color: var(--teal-ink); border: 1.5px solid var(--teal-ink);
    border-radius: 999px; padding: 6px 16px; font-weight: 700; cursor: pointer;
    min-height: 36px; font-size: 0.85rem;
}
@media (min-width: 900px) {
    .cookie-note {
        left: auto; right: 20px; bottom: 20px; max-width: 360px;
        border: 1px solid var(--border-soft); border-radius: var(--radius);
        box-shadow: var(--shadow-soft); flex-direction: column; align-items: flex-start;
    }
}

/* ---------------------------------------------------------------------------
   Kontaktübersicht (Adresse / Kontakt / Rechtliches)
   ------------------------------------------------------------------------- */
.contact-overview {
    display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 32px;
}
@media (min-width: 720px) { .contact-overview { grid-template-columns: repeat(3, 1fr); } }
.contact-overview__item { display: flex; gap: 14px; align-items: flex-start; }
.contact-overview__item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.contact-overview__item p { margin: 0; color: var(--ink-soft); }

/* ---------------------------------------------------------------------------
   Map-Vorschau (kein automatischer iFrame, lädt erst nach Klick)
   ------------------------------------------------------------------------- */
.map-teaser {
    position: relative; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border-soft); background: var(--surface);
    min-height: 320px; display: flex; align-items: center; justify-content: center;
}
.map-teaser a.btn { text-decoration: none; }
.map-teaser__grid {
    position: absolute; inset: 0; opacity: 0.5;
    background-image:
        linear-gradient(var(--border-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
    background-size: 28px 28px;
}
.map-teaser__content { position: relative; text-align: center; padding: 24px; max-width: 420px; }
.map-teaser__iframe { border: 0; display: block; }

/* ---------------------------------------------------------------------------
   Fade-in beim Scrollen — Klasse wird per JS gesetzt (assets/js/app.js),
   damit ohne JavaScript oder bei "Bewegungen reduzieren" einfach alles
   normal sichtbar bleibt.
   ------------------------------------------------------------------------- */
.fade-in-section {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------------------------
   Karriere: Kopfbereich, Fakten, Stellenübersicht, Detailseite
   ------------------------------------------------------------------------- */
.career-hero {
    position: relative; overflow: hidden; background: var(--surface-tint);
    padding: 56px 0 84px;
}
.career-hero--job { padding: 36px 0 76px; }
.career-hero .hero__lead { max-width: 640px; margin-bottom: 0; }
.career-hero h1 { margin-top: 0; }
/* Wellenband unten und Dreieck + Spitze rechts — wie bei den Leistungs-Kästchen */
.career-hero::before, .career-hero::after {
    content: ""; position: absolute; bottom: 0; pointer-events: none;
    background-repeat: no-repeat; background-size: 100% 100%;
}
.career-hero::before { left: 0; width: calc(100% - 150px); height: 44px; background-image: url('../img/card-band.svg'); }
.career-hero::after { right: 0; width: 68px; height: 159px; background-image: url('../img/card-corner.svg'); }
.career-hero__inner { position: relative; z-index: 1; }

.career-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .career-facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .career-facts { grid-template-columns: repeat(4, 1fr); } }
.career-fact { display: flex; flex-direction: column; gap: 8px; }
.career-fact__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
    border-radius: 50%; background: #0088A0; color: #fff; margin-bottom: 4px;
}
.career-fact strong { font-size: 1.1rem; line-height: 1.3; color: var(--ink); }
.career-fact span:last-child { color: var(--ink-soft); }

.job-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.job-row {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 20px 24px; background: var(--surface); border: 1px solid var(--border-soft);
    border-left: 5px solid #0088A0; border-radius: var(--radius); box-shadow: var(--shadow-soft);
    text-decoration: none; color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.job-row:hover, .job-row:focus-visible { border-left-color: var(--logo-pink); box-shadow: 0 6px 22px rgba(10,59,68,0.16); transform: translateY(-2px); }
.job-row__icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
    border-radius: 50%; background: #0088A0; color: #fff;
}
.job-row__main { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 200px; }
.job-row__title { font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.job-row__type {
    display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
    background: var(--surface-tint); color: var(--teal-ink);
}
.job-row__more { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--magenta-ink); font-weight: 700; white-space: nowrap; }
.job-row__arrow {
    display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 50%; background: var(--magenta-ink); color: #fff; transition: transform 0.2s ease;
}
.job-row:hover .job-row__arrow { transform: translateX(4px); }

.job-body {
    max-width: 720px; margin: 0 0 8px; padding: 28px 32px; background: var(--surface);
    border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.job-body > :first-child { margin-top: 0; }
.job-body > :last-child { margin-bottom: 0; }
.job-body h2, .job-body h3 { margin-top: 1.6em; }
.job-body h2::after, .job-body h3::after {
    content: ""; display: block; width: 44px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--logo-pink);
}
.job-body ul { list-style: none; padding-left: 0; }
.job-body li { position: relative; padding-left: 28px; margin-bottom: 0.55em; }
.job-body li::before {
    content: ""; position: absolute; left: 4px; top: 0.62em; width: 10px; height: 10px; border-radius: 50%; background: #0088A0;
}
.job-body ol { padding-left: 1.4em; }

.job-apply {
    position: relative; overflow: hidden; margin-top: 32px; padding: 28px 30px 32px; border-radius: var(--radius);
    background: var(--surface-tint);
}
.job-apply::before {
    content: ""; position: absolute; right: 0; bottom: 0; width: 52px; height: 76px;
    background: url('../img/card-corner.svg') no-repeat right bottom; background-size: auto 100%; opacity: 0.9;
    pointer-events: none;
}
.job-apply > * { position: relative; z-index: 1; }
.job-apply h2 { margin-top: 0; font-size: 1.35rem; }
@media (max-width: 639px) {
    .job-body { padding: 22px 20px; }
    .job-row__more { margin-left: 0; }
    .career-hero::before { width: calc(100% - 90px); }
}

/* ---------------------------------------------------------------------------
   Team als Karussell: eine Person pro Ansicht
   ------------------------------------------------------------------------- */
.team-slider { max-width: 920px; margin: 28px auto 0; }
.team-slider__viewport {
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: var(--radius);
}
.team-slider__viewport::-webkit-scrollbar { display: none; }
.team-slider__viewport:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 3px; }
.team-slider__track { display: flex; list-style: none; margin: 0; padding: 0; }
.team-slide {
    flex: 0 0 100%; max-width: none; scroll-snap-align: center; scroll-snap-stop: always; box-sizing: border-box;
    position: relative; overflow: hidden;
    display: grid; gap: 20px; justify-items: center; text-align: center; align-items: center;
    padding: 32px 44px 70px 24px; background: var(--surface); border: 1px solid var(--border-soft); /* rechts mehr Platz für die pinke Form */
    border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
/* Gleiches Muster wie bei den Leistungs-Kästchen: Wellenband unten (mit Lücke), rechts Dreieck mit pinker Form */
.team-slide::before, .team-slide::after {
    content: ""; position: absolute; bottom: 0; pointer-events: none;
    background-repeat: no-repeat; background-size: 100% 100%;
}
.team-slide::before { left: 0; width: calc(100% - 104px); height: 40px; background-image: url('../img/card-band.svg'); }
.team-slide::after { right: 0; width: 68px; height: 159px; background-image: url('../img/card-corner.svg'); }
.team-slide > * { position: relative; z-index: 1; }
.team-slide__photo { width: 150px; max-width: 60%; }
.team-slide__img, .team-slide__photo picture, .team-slide__photo img { display: block; width: 100%; }
.team-slide__img {
    aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--surface-tint);
    box-shadow: 0 0 0 2px var(--border-soft);
}
.team-slide__photo picture img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--surface-tint); box-shadow: 0 0 0 2px var(--border-soft); }
.team-slide__nophoto {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%;
    background: var(--surface-tint); border: 2px dashed var(--teal-ink); color: var(--ink-soft); font-size: 0.9rem;
}
.team-slide__name { margin: 0 0 4px; font-size: 1.6rem; }
.team-slide__role { margin: 0 0 6px; font-weight: 700; color: var(--magenta-ink); }
.team-slide__meta { margin: 0 0 4px; color: var(--ink-soft); font-size: 0.98rem; }
.team-slide__bio { margin: 14px 0 0; max-width: 520px; }
@media (min-width: 720px) {
    .team-slide { grid-template-columns: 170px 1fr; justify-items: start; text-align: left; padding: 40px 90px 74px 48px; gap: 36px; }
    .team-slide__photo { width: 100%; max-width: none; }
}

.team-slider__nav { display: none; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.team-slider.is-enhanced .team-slider__nav { display: flex; }
.team-slider__btn {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border-radius: 50%; border: none; background: #0088A0; color: #fff; font-size: 1.9rem; line-height: 1;
    cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.team-slider__btn:hover, .team-slider__btn:focus-visible { background: var(--magenta-ink); }
.team-slider__btn:active { transform: scale(0.94); }
.team-slider__dots { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.team-slider__dot {
    width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid #0088A0; background: transparent; cursor: pointer;
}
.team-slider__dot[aria-current="true"] { background: var(--magenta-ink); border-color: var(--magenta-ink); }
