/* =============================================================================
   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;
    --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;
}

.section { padding: 56px 0; }
.section--tint { background: var(--surface-tint); }
.section--warm { background: var(--surface-warm); }

.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: sticky; top: 0; z-index: 100;
}
.site-header__bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 12px 20px;
}
.site-header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header__logo strong { font-family: var(--font-head); color: var(--ink); font-size: 1.3rem; }
.site-header__phone {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--magenta-ink); font-weight: 700; text-decoration: none;
    white-space: nowrap;
}
.site-nav {
    display: none;
    border-top: 1px solid var(--border-soft);
}
.site-nav.is-open { display: block; }
.site-nav ul {
    list-style: none; margin: 0; padding: 10px 20px; display: flex; flex-direction: column;
}
.site-nav a {
    display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 600;
    border-bottom: 1px solid var(--border-soft);
}
.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;
}

@media (min-width: 900px) {
    .site-nav { display: block; border-top: none; }
    .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0 20px 12px; gap: 4px 18px; }
    .site-nav a { border-bottom: none; padding: 6px 4px; }
    .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;
}
@media (min-width: 900px) {
    .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------------------------------------------------------------------------
   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; box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column; gap: 10px;
}
.service-card::before {
    content: ""; position: absolute; top: -30px; right: -30px; width: 90px; height: 90px;
    border: 10px solid var(--surface-tint); border-radius: 50%;
}
.service-card h3 { margin-bottom: 0.2em; }
.service-card__teaser { color: var(--ink-soft); flex-grow: 1; }
.service-card__link { font-weight: 700; }

.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
   ------------------------------------------------------------------------- */
.team-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.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; }

.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);
}

/* ---------------------------------------------------------------------------
   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(--ink); color: #E6F1F3; padding: 48px 0 100px; }
.site-footer a { color: #BFE3E9; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-top: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
    margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.9rem; color: #BFE3E9;
    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 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; }

/* ---------------------------------------------------------------------------
   Cookie-Hinweis
   ------------------------------------------------------------------------- */
.cookie-note {
    position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 300;
    max-width: 480px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
}
.cookie-note button {
    margin-top: 10px; background: var(--magenta-ink); color: #fff; border: none;
    border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer;
    min-height: 44px;
}
@media (min-width: 900px) {
    .cookie-note { left: auto; right: 20px; bottom: 20px; }
}

/* ---------------------------------------------------------------------------
   Map-Vorschau (kein automatischer iFrame)
   ------------------------------------------------------------------------- */
.map-teaser {
    position: relative; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border-soft); background: var(--surface-tint);
    min-height: 220px; 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; }

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