/* Stadtzwerge – Design D „Ruhig mit Zwergen“ (gemeinsamer Team-Entwurf).
   Grundlage ist das bisherige Design; ruhiger durch dünnere Überschriften, weiche Wellen zwischen den
   Abschnitten (design-d.js), geordnete Farben und Viertelkreise nur dort, wo das Team sie wünscht.
   Wird zusätzlich zu site.css und design.css (Einstieg) geladen, nur bei Design D. */

@font-face { font-family: Poppins; src: url(fonts/Poppins-Medium.ttf); font-weight: 500; font-display: swap; }

body.design-d {
  --nacht: #425771; --text: #425771; --grau: #5d6f86;
  --gelb: #F4B53F; --rot: #ED775C; --gruen: #B1C8B5; --flieder: #A8A6CF; --himmel: #5C769F;
  --creme: #FBF7F0;
  --gelb-hell: #FDF4E2; --gelb-dunkel: #b98314; --rot-hell: #FCEDE7; --gruen-hell: #E4F1ED; --gruen-dunkel: #557a62;
  --flieder-hell: #EEEBF5; --flieder-dunkel: #6f6cae; --himmel-hell: #EDF1F7;
  background: var(--creme);
}

/* ---------- Schrift: große Überschriften dünner (Kachel-Überschriften bleiben kräftig) ---------- */
.design-d h1, .design-d .sec-h h2, .design-d .rot-h, .design-d .resp h2, .design-d .ask h2,
.design-d .block h2, .design-d .prose h2, .design-d .d-haeuser-kopf h2 { font-weight: 500; letter-spacing: -.01em; }
.design-d .d-held h1 { font-weight: 500; }

/* Menü: gewählter Punkt Koralle unterstrichen, Knopf „Platz anfragen“ Koralle */
.design-d nav a::after { background: var(--rot) !important; }
.design-d .btn-p { background: var(--rot); color: #fff; }
.design-d .btn-y { background: var(--rot); color: #fff; }

/* ---------- Viertelkreise: nur dort, wo gewünscht ---------- */
.design-d .qc { display: none; }
.design-d #momente .qc,                       /* Pädagogik: neun Momente */
.design-d #haltung .card .qc,                 /* Pädagogik: Familie, Kinder, Mitarbeitende */
.design-d #respondera + .block .qc,           /* Pädagogik: RESPONDERA-Karten */
.design-d #u3 .qc, .design-d #ue3 .qc, .design-d #plus .qc, /* Betreuung & Kosten */
.design-d #partner .qc,                       /* Über uns: Partner & Netzwerke */
.design-d #initiativ .qc { display: block; }  /* Karriere: „Nichts Passendes dabei?“ */
/* Webseite 85 (Holger/Nicole 25.11.): Viertelkreise in denselben sanften Tönen wie die Aufzählungspunkte (55 % Farbe) */
.design-d .qc { background: color-mix(in srgb, var(--c, var(--gelb)) 55%, #fff); }
.design-d #haltung .card .qc { left: 0; right: auto; border-bottom-left-radius: 0; border-bottom-right-radius: 100%; }
.design-d .balloon { display: none; }

/* ---------- Einstieg (Aufbau wie Design A, siehe design.css) ---------- */
.design-d .d-held-d { background: var(--creme); padding-bottom: 96px; }
.design-d .d-held-d .d-detail { left: auto; right: -36px; bottom: -48px; transform: rotate(3deg); }
.design-d .d-zeigt { position: absolute; left: -118px; bottom: -40px; width: 200px; z-index: 3; pointer-events: none; }
.design-d .d-leitsatz { display: block; }
.design-d .d-held h1 .d-falter { position: absolute; width: .56em; right: .2em; top: .1em; }

/* ---------- Neun Momente: Farben je Reihe nach Thema ---------- */
.design-d .mgrid .m:nth-child(-n+3) { --bg: var(--gelb-hell) !important; --c: var(--gelb-dunkel) !important; }
.design-d .mgrid .m:nth-child(n+4):nth-child(-n+6) { --bg: var(--gruen-hell) !important; --c: var(--gruen-dunkel) !important; }
.design-d .mgrid .m:nth-child(n+7) { --bg: var(--flieder-hell) !important; --c: var(--flieder-dunkel) !important; }
.design-d #momente .mgrid .m:nth-child(-n+3) .qc { background: color-mix(in srgb, var(--gelb) 55%, #fff) !important; }
.design-d #momente .mgrid .m:nth-child(n+4):nth-child(-n+6) .qc { background: color-mix(in srgb, var(--gruen) 55%, #fff) !important; }
.design-d #momente .mgrid .m:nth-child(n+7) .qc { background: color-mix(in srgb, var(--flieder) 55%, #fff) !important; }

/* ---------- RESPONDERA-Fläche ---------- */
.design-d .resp { background: var(--gruen-hell); color: var(--nacht); }
.design-d .resp h2 { color: var(--nacht); }
.design-d .resp p { opacity: 1; }
.design-d .logo-word { color: var(--himmel); }
.design-d .signals span { background: #fff !important; color: var(--nacht); box-shadow: inset 0 0 0 1px #d7e4de; }

/* ---------- Videos: ruhiger ---------- */
.design-d .vitem small { display: none; }
.design-d .vitem { box-shadow: inset 0 0 0 1px #eee6d9; }
.design-d .vitem:hover, .design-d .vitem.on { box-shadow: inset 0 0 0 1px var(--himmel); }
.design-d .vitem b { font-weight: 500; }
.design-d .vtabs button { background: transparent; box-shadow: inset 0 0 0 1px #e3dacb; font-weight: 500; }
.design-d .vtabs button.on { background: var(--nacht); box-shadow: none; }
.design-d .consent { font-size: 12.5px; }

/* ---------- Häuser: Fotos ohne Viertelkreis, Heilbronn dezent im Hintergrund ---------- */
.design-d .places, .design-d .d-heilbronn { position: relative; }
.design-d .places::before, .design-d .d-heilbronn::before {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0; height: 62%;
  background: url(img/heilbronn-silhouette.svg) center bottom / cover no-repeat;
  filter: blur(3px); opacity: .75; pointer-events: none; z-index: 0;
}
.design-d .places > .wrap, .design-d .d-heilbronn > .wrap { position: relative; z-index: 1; }
.design-d .place .top { background: #eee7dc !important; }

/* ---------- Kennenlernen (Fliederkarte) ---------- */
.design-d #platz .ask { background: var(--flieder-hell); color: var(--nacht); }
.design-d #platz .ask h2 { color: var(--nacht); }
.design-d #platz .ask { overflow: visible; }

/* ---------- Unterseiten ---------- */
.design-d .phero .zw[src$="Zwerg_Tuer.png"] { height: 300px; bottom: -36px; right: 10px; }
.design-d .eyebrow { letter-spacing: .07em; }

/* ---------- Wellen zwischen Abschnitten (design-d.js) ---------- */
.d-welle { position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; pointer-events: none; z-index: 2; }
.d-welle svg { display: block; width: 100%; height: 100%; }
.design-d .mit-welle { position: relative; padding-bottom: calc(var(--d-unten, 0px) + 24px) !important; }
/* Webseite 95 (Holger 26.11.): Abstände zwischen den Abschnitten straffen (vorher 70 px oben/unten, Welle +56 px) */
.design-d .block { padding-top: 50px; padding-bottom: 50px; }
.design-d .sec, .design-d .vids, .design-d .resp { padding-top: 60px; padding-bottom: 60px; } /* vorher 100 px (Startseite, Videos) */
.design-d .moments { padding-bottom: 60px; }
.design-d .phero { padding-bottom: 44px; } /* Seitenkopf unten vorher 60 px */

/* ---------- Schmetterlinge ---------- */
.falter { overflow: visible; }
.falter .fluegel, .falter .fluegel-hinten { transform-box: fill-box; transform-origin: 18% 88%; }
.falter.sitzt .fluegel { animation: d-klappen 7s ease-in-out infinite; animation-delay: var(--d-verzug, 0s); }
.falter.sitzt .fluegel-hinten { animation: d-klappen-h 7s ease-in-out infinite; animation-delay: var(--d-verzug, 0s); }
.falter.fliegt .fluegel { animation: d-schlag .22s ease-in-out infinite alternate; }
.falter.fliegt .fluegel-hinten { animation: d-schlag-h .22s ease-in-out infinite alternate; }
@keyframes d-klappen { 0%, 84%, 100% { transform: none; } 88% { transform: scaleY(.18) skewX(-8deg); } 92% { transform: none; } 95% { transform: scaleY(.25) skewX(-6deg); } }
@keyframes d-klappen-h { 0%, 84%, 100% { transform: none; } 88% { transform: scaleY(.35); } 92% { transform: none; } 95% { transform: scaleY(.4); } }
@keyframes d-schlag { from { transform: none; } to { transform: scaleY(.15) skewX(-10deg); } }
@keyframes d-schlag-h { from { transform: none; } to { transform: scaleY(.3); } }
.d-falter-platz { position: absolute; width: 46px; height: auto; z-index: 4; pointer-events: none; }
.d-falter-platz .falter { width: 100%; height: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
  .falter .fluegel, .falter .fluegel-hinten { animation: none !important; }
}

@media (max-width: 980px) {
  .design-d .d-zeigt { left: auto; right: 8px; bottom: -34px; width: 140px; }
  .design-d .d-held-d .d-detail { right: auto; left: 12px; }
}
@media (max-width: 600px) {
  .design-d .d-zeigt { width: 110px; bottom: -26px; }
  .d-welle { height: 40px; }
  .design-d .mit-welle { padding-bottom: calc(var(--d-unten, 0px) + 18px) !important; }
  .design-d .block { padding-top: 40px; padding-bottom: 40px; }
  .design-d .sec, .design-d .vids, .design-d .resp { padding-top: 44px; padding-bottom: 44px; }
  .design-d .moments { padding-bottom: 44px; }
}

/* ---------- Rückmeldung Team (06.11.): Kopf weiß, Hintergründe im Wechsel ---------- */
.design-d header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid #efe7da; }
.design-d .vids { background: #fff; }
.design-d .places { background: #fff; }
.design-d #neuigkeiten { background: var(--flieder-hell); }
.design-d #karriere { background: var(--gruen-hell); }
.design-d #platz { background: #fff; padding-top: 50px; padding-bottom: 70px; margin-top: 0 !important; max-width: none; } /* Webseite 95: oben 70 → 50 px */
.design-d #platz .ask { max-width: 1144px; margin: 0 auto; }
.design-d .insta { padding-top: 80px !important; }

/* Kennenlernen: kleiner Zwerg mit Schmetterling auf dem Finger, Karte etwas niedriger */
.design-d #platz .ask { padding: 48px 60px; min-height: 0; }
.design-d #platz .ask img.d-finger-zwerg { width: min(210px, 100%); }
.d-falter-platz.klein { width: 34px; }
@media (max-width: 600px) { .design-d #platz .ask { padding: 36px 24px; } .design-d #platz .ask img.d-finger-zwerg { width: 160px; } }

/* Heilbronn als feine Strichzeichnung (statt weichgezeichneter Fläche) und Punktelinie unter den Häusern */
.design-d .places::before, .design-d .d-heilbronn::before {
  filter: none; opacity: 1; height: 200px; bottom: 70px; left: 0; right: 0;
  background: url(img/heilbronn-silhouette.svg) center bottom / auto 100% no-repeat;
}
.design-d .places .band { position: relative; margin-top: 150px; }
.d-punkte { position: relative; height: 60px; margin: 26px 0 0; }
.d-punkte svg { display: block; width: 100%; height: 100%; overflow: visible; }
@media (max-width: 980px) { .d-punkte { display: none; } .design-d .places .band { margin-top: 110px; } }
.design-d .phero .zw[src$="Zwerge_Platz_fuer_Dich.svg"] { height: 230px; bottom: -24px; right: 0; }
@media (max-width: 980px) { .design-d .phero .zw[src$="Zwerge_Platz_fuer_Dich.svg"] { height: 150px; } }
.design-d #platz .ask img.d-finger-zwerg { transform: scaleX(-1); } /* schaut und zeigt nach links, in Flugrichtung zum Knopf */

/* ---------- Rückmeldung Team (06.11., Runde 2) ---------- */
/* Farbkonzept ruhiger: Grundton Creme, Abschnitte im Wechsel Weiß/Creme, je Abschnitt höchstens ein zarter
   Pastellton aus den Stadtzwerge-Farben. Knöpfe in Nachtblau (wie das Wort „ZWERGE“ im Logo),
   Koralle nur noch als kleiner Akzent (Unterstrich im Menü, Herzen, Fahnen). */
body.design-d {
  --sand: #F5EFE6;
  --gelb-hell: #FBF2DE; --gruen-hell: #E7F1EC; --flieder-hell: #EFEDF6; --rot-hell: #FBEEE9;
}
.design-d .btn-p, .design-d .btn-y { background: var(--nacht); color: #fff; box-shadow: none; }
.design-d .btn-p:hover, .design-d .btn-y:hover { background: var(--himmel); }
.design-d .btn { transition: transform .2s, background-color .2s; }

/* Heilbronn: Silhouette als eigener Streifen unter den Häusern statt Hintergrund – nichts überlagert die Schrift */
.design-d .places::before, .design-d .d-heilbronn::before { content: none; display: none; }
.design-d .places .band { margin-top: 36px; }
.d-stadt { position: relative; z-index: 1; margin: 8px auto 0; max-width: 1240px; aspect-ratio: 1720 / 240;
  background: url(img/heilbronn-silhouette.svg) center bottom / 100% auto no-repeat; pointer-events: none; }
@media (max-width: 980px) { .design-d .places .band { margin-top: 28px; } }
@media (max-width: 600px) { .d-stadt { width: 150%; margin-left: -25%; } }

/* Pädagogik „Haltung“: Viertelkreis oben links – Überschrift rückt daneben, damit nichts verdeckt wird */
.design-d #haltung .card { padding-top: 34px; }
.design-d #haltung .card h3 { padding-left: 50px; min-height: 40px; }

/* Eingewöhnung: Hinweis mit Abstand zu den Karten, ruhig in Weiß mit feinem gelben Rand */
.design-d .note { background: #fff; margin-top: 22px; box-shadow: inset 4px 0 0 var(--gelb); padding: 16px 22px 16px 26px; }

/* Karriere „Nichts Passendes dabei?“: wie die Kennenlernen-Karte, nur in Mint; Mädchen bleibt */
.design-d #initiativ .ask { background: var(--gruen-hell) !important; color: var(--nacht); padding: 48px 60px; overflow: visible; }
.design-d #initiativ .ask h2 { color: var(--nacht); }
.design-d #initiativ .ask .qc { --s: 200px; background: rgba(177, 200, 181, .35) !important; border-top-right-radius: 40px; }
.design-d #initiativ .ask img { width: min(190px, 100%); }
.design-d #initiativ { margin-top: 70px !important; }
@media (max-width: 600px) { .design-d #initiativ .ask { padding: 36px 24px; } .design-d #initiativ .ask img { width: 150px; } }

/* Aktuelles: Zwerg schaut nach links zur Überschrift */
.design-d .phero .zw[src$="Zwerg_baby_sitzend.png"] { transform: scaleX(-1); }

/* Kein Creme-Streifen zwischen Kennenlernen und Fuß: Fuß schließt direkt an, mit feiner Linie */
.design-d footer { margin-top: 0; border-top: 1px solid #efe7da; }

/* Knöpfe: unser Rot eine Nuance heller und sanfter, Schrift Nachtblau (ersetzt das Nachtblau von vorhin) */
.design-d .btn-p, .design-d .btn-y { background: #F6A794; color: var(--nacht); }
.design-d .btn-p:hover, .design-d .btn-y:hover { background: #F39580; color: var(--nacht); }

/* ---------- Bildansicht (Draußensein): hell und freundlich statt dunkel ---------- */
.design-d .lb { background: rgba(251, 247, 240, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 34px 84px 20px; gap: 18px; }
.lb-offen, .lb-offen body { overflow: hidden; }
.design-d .lb .lb-karte { position: relative; margin: 0; background: #fff; padding: 14px 14px 12px; border-radius: 26px;
  box-shadow: 0 30px 80px rgba(66, 87, 113, .2), 0 2px 8px rgba(66, 87, 113, .08); transform: rotate(-1.2deg); max-width: min(1100px, 100%); }
.design-d .lb .lb-karte > img { display: block; max-width: 100%; max-height: 66vh; border-radius: 16px; box-shadow: none; margin: 0 auto; }
.design-d .lb figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 6px 2px; }
.design-d .lb figcaption p { color: var(--nacht); font-weight: 500; margin: 0; }
.design-d .lb .lb-zahl { color: var(--grau); font-size: 13px; white-space: nowrap; }
.design-d .lb button { background: #fff; color: var(--nacht); box-shadow: 0 6px 18px rgba(66, 87, 113, .16); transition: transform .2s, background-color .2s; }
.design-d .lb .prev, .design-d .lb .next { top: 50%; transform: translateY(-50%); }
.design-d .lb .prev:hover, .design-d .lb .next:hover { transform: translateY(-50%) scale(1.06); }
.design-d .lb .x { top: -18px; right: -18px; width: 44px; height: 44px; font-size: 24px; background: #F6A794; }
.design-d .lb .x:hover { transform: scale(1.06); }
.design-d .lb-leiste { display: flex; gap: 8px; max-width: min(760px, 100%); overflow-x: auto; padding: 6px 4px; scrollbar-width: none; }
.design-d .lb-leiste::-webkit-scrollbar { display: none; }
.design-d .lb .lb-leiste button { position: static; flex: none; width: 64px; height: 46px; border-radius: 12px; padding: 0; overflow: hidden; opacity: .55; box-shadow: none; }
.design-d .lb .lb-leiste button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.design-d .lb .lb-leiste button.on { opacity: 1; box-shadow: 0 0 0 3px #F6A794; }
.design-d .lb .lb-leiste button:hover { opacity: 1; }
@media (max-width: 600px) {
  .design-d .lb { padding: 28px 14px 14px; }
  .design-d .lb .lb-karte { transform: none; padding: 8px; border-radius: 20px; }
  .design-d .lb .prev, .design-d .lb .next { display: none; } /* auf dem Handy wischen oder Vorschaubild tippen */
  .design-d .lb .x { top: -14px; right: -6px; }
}

/* Standorte: Heilbronn-Silhouette im Kopf unter dem Text, der Zwerg sitzt rechts daneben und schaut nach links darauf */
/* groß über die ganze Breite, unten leicht von der weißen Welle verdeckt; ohne Zwerg */
.d-stadt.im-kopf { width: min(1400px, 100vw); max-width: none; margin: -4px 0 0 calc(50% - min(700px, 50vw)); background-image: url(img/heilbronn-silhouette-kopf.svg?v=42); }
.design-d .phero.mit-welle:has(.d-stadt) { padding-bottom: 0 !important; }
.design-d .phero:has(.d-stadt) .zw { display: none; }
@media (max-width: 600px) { .d-stadt.im-kopf { width: 190vw; margin-left: calc(50% - 95vw); } .design-d .phero.mit-welle:has(.d-stadt) { padding-bottom: 18px !important; } }

/* Standorte: Sonne (design-d.js) liegt hinter Schrift und Silhouette; Berg und Turm sind in der Zeichnung gefüllt */
.d-sonne { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; will-change: transform; visibility: hidden; }
.d-sonne.bereit { visibility: visible; }
.d-sonne svg { display: block; width: 100%; height: 100%; }
.design-d .phero.mit-sonne > .wrap { position: relative; z-index: 1; }

/* Standorte: Welle unter der Silhouette sanfter (nur hier) */
.design-d .phero:has(.d-stadt) .d-welle { height: 30px; }

/* Karriere: Abstand zwischen „Nichts Passendes dabei?“ und dem Fuß */
.design-d #initiativ { margin-bottom: 80px; }

/* Pädagogik: Zwerg im Kopf gespiegelt, schaut nach links zum Text */
.design-d .phero .zw[src$="Zwerg_Sitzend.png"] { transform: scaleX(-1); }

/* Betreuung: Punkteliste in der Karte mit Innenabstand, Punkte berühren den Rand nicht */
.design-d .dot-list.card { padding: 30px 32px; }

/* ---------- Startseite, neun Momente: ein bis zwei echte Fotos wie aufgeklebte Polaroids ---------- */
.design-d .m.mit-polaroid { overflow: visible; }
.design-d .m.mit-polaroid h3, .design-d .m.mit-polaroid p { padding-right: 118px; max-width: none; }
.d-polaroid { position: absolute; right: -10px; top: -16px; width: 132px; margin: 0; padding: 8px 8px 0; background: #fff;
  border-radius: 4px; box-shadow: 0 10px 24px rgba(66, 87, 113, .16), 0 1px 3px rgba(66, 87, 113, .12);
  transform: rotate(5deg); z-index: 2; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.d-polaroid.andersrum { transform: rotate(-4deg); }
.d-polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.d-polaroid figcaption { font-size: 11.5px; font-weight: 500; color: var(--nacht); text-align: center; padding: 7px 2px 9px; line-height: 1.2; }
/* Klebestreifen oben */
.d-polaroid::before { content: ""; position: absolute; left: 50%; top: -9px; width: 58px; height: 20px; margin-left: -29px;
  background: rgba(244, 181, 63, .45); transform: rotate(-3deg); border-radius: 2px; }
.d-polaroid.andersrum::before { background: rgba(168, 166, 207, .5); transform: rotate(4deg); }
.m.mit-polaroid:hover .d-polaroid { transform: rotate(1deg) translateY(-3px); }
@media (max-width: 600px) {
  .d-polaroid { width: 104px; right: -6px; }
  .design-d .m.mit-polaroid h3, .design-d .m.mit-polaroid p { padding-right: 92px; }
}
@media (prefers-reduced-motion: reduce) { .d-polaroid { transition: none; } }

/* Polaroids auf den Kacheln wie das Foto im Einstieg der Startseite: gleiche Rundungen, gleiches Querformat, gleiche Schrift */
.d-polaroid { width: 150px; padding: 8px 8px 10px; border-radius: 16px; box-shadow: 0 22px 44px -20px rgba(66, 87, 113, .5); }
.d-polaroid img { aspect-ratio: 25 / 18; border-radius: 10px; }
.d-polaroid figcaption { font-size: 13px; font-weight: 400; padding: 0; margin-top: 8px; }
/* Webseite 77 (Holger 24.11.): Bildunterschrift dreht wieder mit dem Polaroid mit (gerade gestellt sah es nicht gut aus) */
/* Webseite 78: Ursache des Flackerns war das wechselnde Wort in „Mehr steckt im …“ (siehe site.css .rot-word), nicht die
   Schmetterlinge – deren eigene Zeichenebene aus Webseite 76 entfällt wieder */
.design-d .m.mit-polaroid h3, .design-d .m.mit-polaroid p { padding-right: 132px; }
@media (max-width: 600px) {
  .d-polaroid { width: 118px; }
  .d-polaroid figcaption { font-size: 12px; }
  .design-d .m.mit-polaroid h3, .design-d .m.mit-polaroid p { padding-right: 104px; }
}
/* Polaroid ist jetzt flacher: nur die Überschrift weicht aus, der Text darunter nutzt wieder die volle Breite */
.design-d .m.mit-polaroid p { padding-right: 0; max-width: 82%; }
@media (max-width: 600px) { .design-d .m.mit-polaroid p { padding-right: 0; } }

/* Schmetterling auf dem letzten Buchstaben eines Wortes in einer Überschrift (z. B. das n von „Eltern“) */
.d-falter-wort { position: relative; white-space: nowrap; }
.d-falter-wort .d-falter-auf { position: absolute; width: .8em; height: auto; right: -.14em; top: .0em; pointer-events: none; }

/* Schmetterling sitzt oben rechts auf der Ecke einer Karte (z. B. „Teamstärkung“) */
.design-d .mit-falter { position: relative; overflow: visible; }
.d-falter-platz.d-falter-ecke { width: 40px; right: 2px; top: -15px; }

/* Polaroid: feine Kontur, damit der weiße Rahmen auch auf hellem Grund (z. B. vor der Kachel darüber) sichtbar bleibt */
.d-polaroid { border: 1px solid #e3dccf; box-shadow: 0 22px 44px -20px rgba(66, 87, 113, .5), 0 2px 6px rgba(66, 87, 113, .14); }

/* Hausseiten: Zwerg sitzt auf der Oberkante des großen Hausfotos (vorher halb dahinter verdeckt) und schaut nach links zum Text */
.design-d .phero:has(+ section .heroimg) .zw { bottom: -40px; height: 220px; }
.design-d .phero:has(+ section .heroimg) .zw[src$="Zwerg_Junge_sitzend.png"] { transform: scaleX(-1); }

/* Hinweise (.note): statt gelber Randleiste dezent – Weiß mit feiner warmer Kontur */
.design-d .note { box-shadow: none; border: 1px solid #ece3d4; padding: 16px 22px; }

/* Hausseiten, Tagesablauf: Liste mit Innenabstand; Polaroid mit Alltagssituation unter dem Hinweis */
.design-d .day.card { padding: 10px 28px; }
.d-polaroid.im-tag { position: relative; right: auto; top: auto; width: min(300px, 80%); margin: 44px auto 0; transform: rotate(-3deg); }
.d-polaroid.im-tag::before { background: rgba(177, 200, 181, .6); }
.d-polaroid.im-tag figcaption { font-size: 14px; }
@media (max-width: 980px) { .d-polaroid.im-tag { margin-top: 30px; } }

/* Hausseiten: Welle unter dem großen Hausfoto über die ganze Breite (der Abschnitt selbst ist schmal) */
.design-d .wrap.mit-welle > .d-welle { left: 50%; right: auto; width: 100vw; margin-left: -50vw; }

/* ---------- Barrierefreiheit: Sehen & Farben (Kontrast nach WCAG 2.1 AA gemessen) ---------- */
body.design-d {
  --gelb-dunkel: #8f6510;      /* Schrift auf Gelb-hell 4,7 : 1 (vorher 3,0) */
  --gruen-dunkel: #48694f;     /* 5,3 : 1 (vorher 4,2) */
  --flieder-dunkel: #5a5799;   /* 5,6 : 1 (vorher 4,1) */
  --rot-schrift: #D9583A;      /* große Schrift in Rot, 3,9 : 1 */
  --rot-klein: #C2492E;        /* kleine Schrift in Rot, 4,9 : 1 */
}
/* Knöpfe: sanftes Rot, nachtblaue Schrift jetzt 4,7 : 1 (vorher 3,8) */
.design-d .btn-p, .design-d .btn-y { background: #F9C0B2; color: var(--nacht); }
.design-d .btn-p:hover, .design-d .btn-y:hover { background: #FAC6B9; color: var(--nacht); }
.design-d .lb .x { background: #F9C0B2; }
/* Rot als Schrift: Überschriften-Akzente etwas kräftiger, kleine rote Schrift dunkler */
.design-d .akzent, .design-d .rot-word, .design-d .claim, .design-d [style*="color:var(--rot)"] { color: var(--rot-schrift) !important; }
.design-d .job[style*="--c:var(--rot)"] small, .design-d .req { color: var(--rot-klein); }
.design-d .job[style*="--c:var(--gelb)"] small { color: var(--gelb-dunkel); }
/* große Zahlen (4 · 0–6 · seit 2013): Gelb und Rot als Schrift lesbar */
.design-d .band div[style*="--c:var(--gelb)"] b { color: #B57F00; }
.design-d .band div[style*="--c:var(--rot)"] b { color: var(--rot-schrift); }
/* Videos: Play-Knopf mit kräftigerem Rot, damit das weiße Dreieck gut sichtbar ist */
.design-d .player .big, .design-d .vlink i { background: #D9583A; }
/* Fuß: hellgraue Zeile (2,9 : 1) auf das normale Grau */
.design-d .legal { color: var(--grau); }
/* Mindestgröße für Kleinschrift: 13 px */
.design-d .consent, .design-d .tag, .design-d .job small, .design-d .m .play, .design-d .player .ds, .design-d .ph span,
.design-d .price thead th, .design-d .vitem small, .design-d .d-polaroid figcaption { font-size: 13px; }
.design-d .consent { font-size: 13.5px; }
@media (max-width: 600px) { .design-d .d-polaroid figcaption { font-size: 13px; } }
/* Links im Fließtext nicht nur über Farbe erkennbar: dezent unterstrichen */
.design-d .prose p a:not(.btn), .design-d .card p a:not(.btn), .design-d .note a, .design-d .lead a, .design-d .sec-h p a,
.design-d .consent a, .design-d main p a:not(.btn):not(.go) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Barrierefreiheit: Bedienung ohne Maus ---------- */
/* deutlicher Fokusring – nur bei Tastaturbedienung, nicht beim Klicken */
.design-d :focus-visible { outline: 3px solid var(--himmel); outline-offset: 3px; }
.design-d .btn:focus-visible, .design-d .subnav a:focus-visible, .design-d .vtabs button:focus-visible { outline-offset: 4px; }
.design-d .player:focus-visible, .design-d .vitem:focus-visible, .design-d .place:focus-visible, .design-d .strip a:focus-visible,
.design-d .insta-kachel:focus-visible { outline: 3px solid var(--himmel); outline-offset: 4px; }
.design-d .lb button:focus-visible { outline: 3px solid var(--nacht); outline-offset: 3px; }
.design-d section[tabindex="-1"]:focus { outline: none; }
/* „Zum Inhalt springen“ */
.d-sprung { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--nacht); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-weight: 700; font-size: 15px; transition: top .2s; }
.d-sprung:focus { top: 14px; }

/* ---------- Handy-Prüfung (07.11.) ---------- */
/* Heilbronn-Silhouette (am Handy breiter als der Bildschirm) darf die Seite nicht seitlich verschieben */
.design-d .d-heilbronn, .design-d .places { overflow-x: clip; }
/* lange Wörter (z. B. „Anerkennungspraktikant*innen“, „Datenschutzhinweise“) umbrechen statt überlaufen */
.design-d h1, .design-d h2, .design-d h3, .design-d h4 { overflow-wrap: break-word; hyphens: auto; }

/* ---------- Karriere: Benefits (neuer Aufbau nach Vorlage, 09.11.) ---------- */
.vorteile-kopf { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; margin-bottom: 40px; }
.vorteile-kopf .eyebrow { background: none; padding: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--nacht); }
.vorteile-kopf h2 { margin: 8px 0 14px; }
.vorteile-kopf p { max-width: 640px; color: var(--grau); }
.vorteile-zwerg { width: 92px; height: auto; transform: scaleX(-1); margin: 0 30px 0 0; }
.vorteile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vorteil { position: relative; border-radius: 18px; padding: 26px 22px 28px; background: var(--vb); }
.vorteil .vorteil-icon { width: 20px; height: 20px; color: var(--vi); display: block; margin-bottom: 18px; }
.vorteil h3 { font-size: 17px; font-weight: 500; color: var(--nacht); margin: 0 0 10px; }
.vorteil p { font-size: 14px; line-height: 1.7; color: var(--grau); margin: 0; }
.vorteil.v0 { --vb: var(--flieder-hell); --vi: var(--flieder); }
.vorteil.v1 { --vb: var(--gelb-hell); --vi: var(--gelb); }
.vorteil.v2 { --vb: var(--gruen-hell); --vi: var(--gruen-dunkel); }
.vorteil.v3 { --vb: var(--himmel-hell); --vi: var(--himmel); }
.vorteil.v4 { --vb: var(--rot-hell); --vi: var(--rot); }
.vorteil.v5 { --vb: var(--flieder-hell); --vi: var(--flieder-dunkel); }
.vorteile-hinweis { font-size: 13px; color: var(--grau); margin: 26px 0 0; max-width: 860px; }
.vorteile-knoepfe { margin: 34px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.vorteile-link { font-size: 15px; color: var(--nacht); }
.vorteile-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) { .vorteile { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .vorteile { grid-template-columns: 1fr; }
  .vorteile-kopf { grid-template-columns: 1fr; }
  .vorteile-zwerg { display: none; }
}

/* ---------- Zwerge stehen/sitzen statt zu schweben: weicher Bodenschatten (09.11.) ----------
   Der Schatten ist der Hintergrund des Bildes im unteren Innenabstand; der negative Außenabstand
   gleicht den Abstand aus, damit der Zwerg an derselben Stelle bleibt. */
.design-d .d-zeigt, .design-d .phero .zw:not([src$=".svg"]), .design-d #platz .ask img.d-finger-zwerg,
.design-d .vorteile-zwerg, .design-d #initiativ .ask img, .fest-hase img {
  box-sizing: content-box; padding-bottom: 12px; margin-bottom: -12px;
  background: radial-gradient(closest-side, rgba(66, 87, 113, .24), rgba(66, 87, 113, 0)) center bottom / 82% 22px no-repeat;
}
.design-d .vorteile-zwerg, .design-d #initiativ .ask img { background-size: 66% 20px; }
.design-d #initiativ .ask img { background-position: 76% bottom; background-size: 46% 20px; } /* Luftballon links im Bild: Schatten unter die Füße */

/* ---------- Rückmeldung 11.11.: ruhigere Typografie ---------- */
/* Zeilenumbrüche aus den Texten übernehmen (Einstieg und Moment-Foto) */
.design-d .d-lead, .design-d .d-detail figcaption { white-space: pre-line; }
.design-d .d-lead { max-width: 560px; }
.design-d .d-detail figcaption { line-height: 1.45; }
/* Überschriften nicht mit Bindestrich trennen („im-mer“); nur überlange Einzelwörter umbrechen */
.design-d h1, .design-d h2, .design-d h3, .design-d h4 { hyphens: manual; }
/* Akzentwörter in Überschriften: Poppins Light in sanftem Korall statt kräftigem Rot */
.design-d .rot-word, .design-d .akzent, .design-d h1 [style*="color:var(--rot)"], .design-d h2 [style*="color:var(--rot)"] {
  font-weight: 300; color: #D9775F !important; }
/* Neun Momente: „Mehr steckt“ ruhig in Medium, das Wort danach in Light und den Farben des Designs */
.design-d .mgrid .m h3 { font-weight: 500; }
.design-d .mgrid .m h3 b { font-weight: 300; }
.design-d .mgrid .m:nth-child(-n+3) { --c: #A9761C !important; }
.design-d .mgrid .m:nth-child(n+4):nth-child(-n+6) { --c: #57836A !important; }
.design-d .mgrid .m:nth-child(n+7) { --c: #6D6AB0 !important; }
/* Häuserkacheln: Zwerg kleiner und dezent in der Ecke, damit das Foto im Vordergrund steht */
.design-d .place .top img:not(.bg) { height: 72px; right: 10px; bottom: -4px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.18)); }
@media (max-width: 600px) { .design-d .place .top img:not(.bg) { height: 64px; } }

/* Aufzählungen (Jahreszahlen, Punkte, Chips): reduzierte Farben wie beim Knopf statt Vollfarben */
.design-d .timeline b { background: color-mix(in srgb, var(--c) 38%, #fff); color: var(--nacht); font-weight: 600; }
.design-d .dot-list li::before, .design-d .chip i, .design-d .benefit h3 i { background: color-mix(in srgb, var(--c, var(--gelb)) 55%, #fff); }

/* Karriere „Initiativbewerbung“: kleine Überschrift, Herzzwerg ohne Viertelkreis */
.design-d #initiativ .ask .eyebrow { background: none; padding: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--nacht); font-weight: 500; }
.design-d #initiativ .ask h2 { margin-top: 10px; }
.design-d #initiativ .ask .qc { display: none; }
.design-d #initiativ .ask img[src$="Zwerg_Herz.png"] { width: min(150px, 100%); background-position: center bottom; background-size: 70% 18px; }
/* Betreuungsmodelle: längere Namen („Betreuungsmodell Premium“) laufen nicht unter den Viertelkreis */
.design-d .price h3 { font-size: 18px; line-height: 1.3; width: min-content; } /* „Betreuungsmodell“ / Name: alle drei gleich zweizeilig */
/* Breite 981–1200 px (kleine Laptops, Tablet quer): Menü und Knopf ohne Zeilenumbruch */
.design-d nav a, .design-d .head > .btn { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1200px) { .design-d nav { gap: 16px; font-size: 14px; } .design-d .head > .btn { padding: 11px 18px; font-size: 14px; } }

/* ---------- Webseite 39: Foto mit Polaroid / kleine Polaroids (wie im Einstieg der Startseite) ---------- */
.d-fotopaar { position: relative; margin: 0 0 54px 0; }
.d-fotopaar-gross { width: 100%; height: 300px; object-fit: cover; border-radius: 28px; display: block; box-shadow: 0 20px 50px rgba(62, 86, 116, .12); }
.d-fotopaar .d-detail { left: auto; right: -18px; bottom: -40px; width: 200px; transform: rotate(3deg); }
.d-fotopaar .d-detail img, .d-polaroids .d-detail img { height: 130px; }
.d-polaroids { display: flex; justify-content: center; gap: 26px; margin: 0 0 30px; }
.d-polaroids .d-detail { position: relative; left: auto; bottom: auto; width: 190px; margin: 0; transform: rotate(-3deg); }
.d-polaroids .d-detail:nth-child(2) { transform: rotate(3.5deg); margin-top: 18px; }
.d-polaroids.unter-videos { margin: 40px 0 0; }
@media (max-width: 980px) {
  .d-fotopaar { margin-top: 10px; }
  .d-fotopaar .d-detail { right: 10px; }
}
@media (max-width: 600px) {
  .d-fotopaar-gross { height: 230px; }
  .d-fotopaar .d-detail { width: 150px; bottom: -34px; }
  .d-fotopaar .d-detail img, .d-polaroids .d-detail img { height: 98px; }
  .d-polaroids .d-detail { width: 145px; }
  .d-polaroids { gap: 14px; }
}
/* lange Wörter in Kartentexten (z. B. „Kinderbetreuungsfinanzierung“) umbrechen */
.design-d .card p { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 1200px) { .d-fotopaar .d-detail { right: 8px; } }

/* Webseite 40: Betreuung – Foto unter dem Text; Über uns – Karten nebeneinander unter dem Abschnitt */
.d-fotopaar.unter-text { margin-top: 30px; }
/* Webseite 95: Fotopaar wandert beim Scrollen neben langen Kastenlisten mit (Spalte so hoch wie die Kästen; nur breite Bildschirme) */
@media (min-width: 981px) {
  .design-d .d-spalte-voll { align-self: stretch; }
  .design-d .d-mitwandern { position: sticky; top: 140px; }
}
.anliegen-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 46px; } /* Webseite 75: 2 oder 3 Karten nebeneinander */
.anliegen-karten .card { margin: 0; }
@media (max-width: 760px) { .anliegen-karten { grid-template-columns: 1fr; margin-top: 30px; } }
