/* ============================================================
   Unterseiten im neuen Stil (baut auf bausteine.css auf)
   Seitenkopf, Schritte, Ortsliste, „Gut zu wissen“, Schluss-Aufruf.
   Text-Kontraste auf WCAG 2.1 AA geprüft.
   ============================================================ */

/* ---- Seitenkopf: Titel links, Bild rechts ---- */
.seitenkopf { padding: 3rem 1rem 3.5rem; }
.seitenkopf__innen {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 900px) {
    .seitenkopf { padding: 4.5rem 1rem 5rem; }
    .seitenkopf__innen { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}
.seitenkopf__titel {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 600;
    font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--s-ink) !important;
    text-wrap: balance;
}
.seitenkopf__titel span { display: block; color: var(--s-blue) !important; font: inherit !important; }
.seitenkopf__lead {
    max-width: 34rem;
    margin: 1.25rem 0 0;
    font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
    line-height: 1.6;
    color: var(--s-ink);
}
.seitenkopf__wege { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.seitenkopf__bild img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
}

/* ---- Fließtext ---- */
.text { max-width: 40rem; font-size: 1.0625rem; line-height: 1.65; color: var(--s-ink); }
.text p { margin: 0 0 1rem; }

/* ---- Schritte (Reihenfolge trägt Information) ---- */
.schritte {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
    counter-reset: schritt;
}
@media (min-width: 768px) { .schritte { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.schritte li { counter-increment: schritt; }
.schritte li::before {
    content: counter(schritt);
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1;
    color: var(--s-blue);
}
.schritte__titel { display: block; font-size: 1.1875rem; font-weight: 800; line-height: 1.3; color: var(--s-ink); }
.schritte__info { display: block; margin-top: 0.25rem; font-size: 1.0625rem; line-height: 1.55; color: var(--s-muted); }

/* ---- Liefergebiet ---- */
.gebiet { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 900px) { .gebiet { grid-template-columns: 1fr 2fr; gap: 3rem; } }
.gebiet__zeit {
    margin: 0 0 0.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--s-blue);
}
.gebiet__titel { margin: 0 0 0.5rem; font-size: 1.375rem; font-weight: 800; line-height: 1.3; color: var(--s-ink) !important; }
.gebiet__info { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--s-muted); }
.orte { margin: 1rem 0 0; display: grid; max-width: 44rem; }
.orte div { padding: 0.875rem 0; border-top: 1px solid var(--s-line); }
@media (min-width: 640px) { .orte div { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; } .orte dt { padding-top: 0.125rem; } }
.orte dt { font-size: 0.9375rem; font-weight: 700; color: var(--s-muted); font-variant-numeric: tabular-nums; }
.orte dd { margin: 0.125rem 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--s-ink); }

/* ---- Gut zu wissen ---- */
.wissen { margin: 1.5rem 0 0; display: grid; max-width: 48rem; }
.wissen div {
    display: grid;
    gap: 0.125rem;
    padding: 1rem 0;
    border-top: 1px solid var(--s-line);
}
.wissen div:last-child { border-bottom: 1px solid var(--s-line); }
@media (min-width: 640px) { .wissen div { grid-template-columns: 12rem 1fr; gap: 1.5rem; } }
.wissen dt { font-size: 1.0625rem; font-weight: 700; color: var(--s-ink); }
.wissen dd { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--s-ink); }

/* ---- Schluss-Aufruf ---- */
.aufruf {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
    background: var(--s-tint);
    color: var(--s-ink);
}
@media (min-width: 768px) { .aufruf { grid-template-columns: 1fr auto; align-items: center; padding: 2.5rem; } }
.aufruf__titel {
    margin: 0 0 0.375rem;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 600;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    line-height: 1.2;
    color: var(--s-ink) !important;
}
.aufruf p { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
.aufruf__wege { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- Menschen (Teamseite) ---- */
.gruppe + .gruppe { margin-top: 3rem; }
.gruppe__titel { margin: 0; font-size: 1.375rem; font-weight: 800; line-height: 1.3; color: var(--s-ink) !important; }
.gruppe__info { margin: 0.5rem 0 0; max-width: 40rem; font-size: 1.0625rem; line-height: 1.6; color: var(--s-ink); }
.leute {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
}
@media (min-width: 640px) { .leute { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .leute { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }
.leute figure { margin: 0; }
.leute img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
    background: var(--s-line);
}
.leute figcaption { margin-top: 0.625rem; line-height: 1.35; }
.leute__name { display: block; font-size: 1.0625rem; font-weight: 800; color: var(--s-ink); }
.leute__rolle { display: block; margin-top: 0.125rem; font-size: 1rem; color: var(--s-muted); }
.namen { margin: 1rem 0 0; font-size: 1.125rem; font-weight: 700; line-height: 1.6; color: var(--s-ink); }
.gruppe__info + .gruppe__info { margin-top: 0.75rem; }
.gruppe__info + .leute, .gruppe__info + .namen { margin-top: 1.25rem; }

/* ---- Seitenkopf ohne Bild: Eckdaten rechts ---- */
.seitenkopf__neben { margin: 1rem 0 0; font-size: 1.0625rem; }
.eckdaten {
    margin: 0;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--s-line);
    border-radius: 1.25rem;
    background: var(--s-surface);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}
.eckdaten div { padding: 1rem 0; }
.eckdaten div + div { border-top: 1px solid var(--s-line); }
.eckdaten dt { font-size: 1rem; font-weight: 700; color: var(--s-muted); }
.eckdaten dd { margin: 0.125rem 0 0; font-size: 1.1875rem; font-weight: 700; line-height: 1.4; color: var(--s-ink); }

/* ---- Zwei Spalten, Fließtext mit Listen ---- */
.zwei { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .zwei { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.zwei .abschnitt__titel + .wissen, .zwei .abschnitt__titel + .text { margin-top: 1.5rem; }
.text ul, .text ol { margin: 0 0 1rem; padding-left: 1.375rem; }
.text ul { list-style: disc; }
.text ol { list-style: decimal; }
.text li { margin: 0 0 0.5rem; padding-left: 0.25rem; }
.text li::marker { color: var(--s-blue); font-weight: 700; }
.text strong { font-weight: 700; }
.text__quelle { font-size: 0.9375rem; color: var(--s-muted); }
@media (min-width: 640px) { .wissen--schmal div { grid-template-columns: 1fr; gap: 0.125rem; } }
.abschnitt__lead--nach { margin-top: 2rem; }

/* ---- Ja/Nein-Listen ---- */
.punkte__titel { display: flex; align-items: center; gap: 0.625rem; margin: 1.75rem 0 0; font-size: 1.375rem; font-weight: 800; line-height: 1.3; color: var(--s-ink) !important; }
.punkte__ja { color: #15803d; }
.punkte__nein { color: #b42318; }
html.dark .punkte__ja { color: #6fd39a; }
html.dark .punkte__nein { color: #ff9a8f; }
.punkte { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.punkte li { padding: 1rem 0; border-top: 1px solid var(--s-line); font-size: 1.0625rem; line-height: 1.55; color: var(--s-ink); }
.punkte strong { display: block; margin-bottom: 0.125rem; font-weight: 800; }

/* ---- Leiser Zusatz unter dem Aufruf ---- */
.nebenbei { max-width: 72rem; margin: 2rem auto 0; font-size: 1rem; line-height: 1.6; color: var(--s-muted); }
.nebenbei p { margin: 0 0 0.375rem; }
.nebenbei strong { color: var(--s-ink); }

/* ---- Sprungmarken im Seitenkopf („Auf dieser Seite“) ---- */
.sprung {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--s-line);
    border-radius: 1.25rem;
    background: var(--s-surface);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}
.sprung__titel { margin: 1rem 0 0.25rem; font-size: 1rem; font-weight: 700; color: var(--s-muted); }
.sprung ul { list-style: none; margin: 0; padding: 0; }
.sprung li + li { border-top: 1px solid var(--s-line); }
.sprung a { display: block; padding: 0.875rem 0; color: var(--s-ink) !important; text-decoration: none !important; }
.sprung__name { display: block; font-size: 1.1875rem; font-weight: 800; color: var(--s-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sprung a:hover .sprung__name { text-decoration-thickness: 2px; }
.sprung__info { display: block; margin-top: 0.125rem; font-size: 1rem; color: var(--s-muted); }
.sprung a:focus-visible { outline: 3px solid #ff6600; outline-offset: 2px; border-radius: 4px; }
.zwei--abstand { margin-top: 1rem; }

/* ---- pDL-Liste ---- */
.pdl-liste { list-style: none; margin: 1.5rem 0 2.5rem; padding: 0; max-width: 52rem; }
.pdl { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--s-line); }
.pdl:last-child { border-bottom: 1px solid var(--s-line); }
.pdl__bild { width: 3.5rem; height: 3.5rem; }
html.dark .pdl__bild { background: #f3f4f6; border-radius: 0.75rem; padding: 0.25rem; }
.pdl__titel { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.3; color: var(--s-ink) !important; }
.pdl__wann { margin: 0.125rem 0 0; font-size: 1rem; font-weight: 700; color: var(--s-blue); }
.pdl__info { margin: 0.5rem 0 0; font-size: 1.0625rem; line-height: 1.6; color: var(--s-ink); }
.pdl__meta { margin: 0.375rem 0 0; font-size: 1rem; color: var(--s-muted); }
.pdl__wege { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0.25rem 0 0; }
@media (max-width: 480px) { .pdl { grid-template-columns: 1fr; gap: 0.75rem; } }

/* ---- Drei Wege (E-Rezept) ---- */
.drei { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem; counter-reset: weg; }
@media (min-width: 900px) { .drei { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.drei li { counter-increment: weg; padding-top: 1.25rem; border-top: 2px solid var(--s-blue); }
.drei__titel { margin: 0 0 0.5rem; font-size: 1.3125rem; font-weight: 800; line-height: 1.3; color: var(--s-ink) !important; }
.drei__titel::before { content: counter(weg) ". "; color: var(--s-blue); }
.drei p { margin: 0 0 0.75rem; font-size: 1.0625rem; line-height: 1.6; color: var(--s-ink); }
.drei__fuer { color: var(--s-muted) !important; }
.text--schritte { margin-top: 1.5rem; }
.text--schritte li { margin-bottom: 0.75rem; }
.laden { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }
.video__titel { margin-top: 0; margin-bottom: 1rem; }
.video__hinweis { margin: 0.75rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--s-muted); }
/* Hochformat-Bild im Seitenkopf: oben ausgerichtet beschnitten (der
   im Bild eingebrannte Satz unten fällt weg), nicht höher als nötig */
.seitenkopf__bild--hoch { max-width: 26rem; justify-self: center; }
.seitenkopf__bild--hoch img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
@media (max-width: 899px) { .seitenkopf__bild--hoch img { aspect-ratio: 4 / 3; object-position: center 35%; } }
