/*
 * Gestaltung nur für erstehilfekind.soft-aid.de.
 *
 * Wird nach gemeinsam/style.css geladen und sticht sie. Die gemeinsame Vorlage
 * ist hier eine Kopie (Stand 12.10.2026) aus SoftAcademy/public-seiten/ –
 * Seitenspezifisches gehört hierher, nicht dorthin.
 *
 * Aufbau und Haltung wie sanitaetsdienst.soft-aid.de (12.10.2026): Kontakt-
 * leiste, Foto über die ganze Breite, Eckdaten als Leiste darunter, Fotokacheln,
 * Bild mit Liste, Über uns, dunkler Abschluss. Das Türkis aus dem Logo trägt
 * die Seite; der Beerenton dieser Seite markiert nur, was knapp wird.
 */

[data-seite='erstehilfekind'] {
  --akzent: #026c7e;
  --akzent-dunkel: #01505d;
  --akzent-hell: #e6f1f3;
  --akzent-mittel: #84b6be;   /* der helle Ton aus dem Pixelkreuz */
  --signal: #a8437a;
  --signal-hell: #f8ebf2;
  --text: #13232a;
  --text-schwach: #51636b;
  --tief: #0b2f36;
  --tief-rgb: 8, 37, 43;      /* für Verläufe über Fotos */
  --flaeche-still: #f4f7f8;
  --linie: #dfe6e9;
  --rundung: 8px;
}

/* Sonst sticht `display: grid/flex` von .termin und .knopf das hidden-Attribut. */
[hidden] { display: none !important; }

/* Symbole ------------------------------------------------------------------ */

.symbole { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Kontaktleiste über dem Kopf ------------------------------------------------ */

.leiste { background: var(--tief); color: #b9cdd1; font-size: .84rem; }
.leiste-inhalt { display: flex; align-items: center; gap: 1.8rem; min-height: 38px; }
.leiste-text { margin-right: auto; }
.leiste a {
  display: inline-flex; align-items: center; gap: .45rem;
  color: #fff; text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums;
}
.leiste a .ico { color: var(--akzent-mittel); }
.leiste a:hover { text-decoration: underline; }

/* Kopf ----------------------------------------------------------------------- */

/* Deckend weiß: Das Logo ist ein Bild mit weißem Grund und soll nicht als
   Kästchen auf durchscheinendem Hintergrund stehen. */
.kopf { background: #fff; backdrop-filter: none; }
.kopf-inhalt { min-height: 76px; }

.marke img { height: 52px; width: auto; }
.marke-zusatz {
  font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--text-schwach); padding-left: .9rem;
}

.kopf-nav { gap: 2rem; }
.kopf-nav a { color: var(--text); font-weight: 500; }

.kopf-knopf { margin-left: .5rem; padding: .6rem 1.15rem; font-size: .95rem; }

/* Knöpfe ---------------------------------------------------------------------- */

.knopf { border-radius: 6px; font-weight: 600; padding: .85rem 1.5rem; }

/* Auf dem Foto der Bühne: hell gefüllt und hell umrandet. */
.knopf-hell { background: #fff; border-color: #fff; color: var(--akzent-dunkel); }
.knopf-hell:hover { background: var(--akzent-hell); border-color: var(--akzent-hell); }

.knopf-glas { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); color: #fff; }
.knopf-glas:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

/* Bühne: Foto über die ganze Breite ---------------------------------------------
   Das Foto liegt in .bühne-bild, darüber ein Verlauf aus dem tiefen Türkis,
   damit der Text links immer lesbar bleibt – egal, wie das Foto ausfällt. */

.bühne {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  min-height: clamp(30rem, 68vh, 38rem);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 calc(clamp(3.5rem, 8vw, 5.5rem) + 3rem);
  background: var(--tief); color: #fff; border-bottom: 0;
}

.bühne-bild { position: absolute; inset: 0; z-index: -2; background: var(--tief); }
.bühne-bild img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 22%;
}

.bühne::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--tief-rgb), .94) 0%, rgba(var(--tief-rgb), .84) 36%,
                    rgba(var(--tief-rgb), .32) 66%, rgba(var(--tief-rgb), .08) 100%),
    linear-gradient(0deg, rgba(var(--tief-rgb), .5) 0%, rgba(var(--tief-rgb), 0) 40%);
}

.vorzeile {
  display: block; margin: 0 0 .9rem;
  font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--akzent);
}
.bühne .vorzeile { color: var(--akzent-mittel); }

.bühne h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.06;
  margin-bottom: 1.1rem; max-width: 14ch; color: #fff;
}

.bühne .führung { font-size: 1.15rem; max-width: 42ch; color: #d3e3e6; }

.knopfreihe { gap: .8rem; margin-top: 1.8rem; }

/* Nächster Termin unter den Knöpfen – kommt aus termine.js. */
.naechster {
  position: relative; margin: 1.4rem 0 0; padding-left: 1.15rem;
  font-size: .95rem; line-height: 1.5; color: #d3e3e6;
}
.naechster::before {
  content: ''; position: absolute; left: 0; top: .5em;
  width: .5rem; height: .5rem; border-radius: 50%;
  background: #7fd1a8; box-shadow: 0 0 0 4px rgba(127, 209, 168, .2);
}
.naechster strong { color: #fff; font-weight: 600; }

/* Eckdaten: eine weiße Leiste, die unten in die Bühne hineinragt. ---------------- */

.eck { position: relative; z-index: 2; margin-top: -3rem; }

.eckdaten {
  margin: 0; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--rundung);
  box-shadow: 0 22px 44px -30px rgba(var(--tief-rgb), .5);
}
.eckdaten li {
  flex-direction: row; align-items: center; gap: .85rem;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 1.25rem 1.4rem;
}
.eckdaten li + li { border-left: 1px solid var(--linie); }
.eckdaten li > .ico {
  width: 2.5rem; height: 2.5rem; padding: .6rem; border-radius: 50%;
  background: var(--akzent-hell); color: var(--akzent);
}
.eckdaten div { display: flex; flex-direction: column; line-height: 1.4; }
.eckdaten strong { font-size: 1rem; font-weight: 600; color: var(--text); }
.eckdaten span { font-size: .88rem; }

/* Abschnitte -------------------------------------------------------------------- */

.abschnitt { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.abschnitt-tief { background: var(--flaeche-still); border-block: 1px solid var(--linie); }
.abschnitt h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.02em; margin-bottom: 1.5rem; }
.abschnitt .führung { margin-top: -.6rem; }

.karte-ico { display: block; color: var(--akzent); }
.karte-ico .ico { width: 1.4rem; height: 1.4rem; }

/* Für wen: vier Fotos, unten der Name. --------------------------------------------- */

.anlässe {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.anlass {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end;
  aspect-ratio: 4 / 5; border-radius: var(--rundung);
  background: var(--tief);
}
.anlass img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
}
.anlass::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(var(--tief-rgb), 0) 50%, rgba(var(--tief-rgb), .85) 100%);
}
.anlass span {
  padding: 1rem 1.15rem;
  color: #fff; font-weight: 600; font-size: 1.05rem; line-height: 1.3;
  -webkit-hyphens: auto; hyphens: auto;
}

/* Bildausschnitte: wer im Bild ist, bleibt im Rahmen. */
.anlass-eltern img { object-position: 50% 40%; }
.anlass-werdend img { object-position: 55% 50%; }
.anlass-gross img { object-position: 40% 45%; }
.anlass-sitter img { object-position: 52% 50%; }

#fuer-wen .fussnote { margin-bottom: 0; }

/* Inhalte: Foto links, die Themen rechts in zwei Spalten. ------------------------- */

.leistung-raster {
  display: grid; grid-template-columns: 1fr 1.45fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.leistung-bild {
  position: relative; overflow: hidden; min-height: 20rem;
  border-radius: var(--rundung); background: var(--tief);
}
.leistung-bild img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 66% 50%;   /* Kopf der Puppe im Rahmen */
}

.leistungen {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
}
.leistungen li {
  display: flex; align-items: flex-start; gap: .8rem;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--rundung);
  padding: .95rem 1rem;
}
.leistungen li > .ico {
  width: 2.2rem; height: 2.2rem; padding: .5rem; border-radius: 50%;
  background: var(--akzent-hell); color: var(--akzent);
}
.leistungen div { display: flex; flex-direction: column; line-height: 1.4; }
.leistungen strong { font-weight: 600; font-size: .98rem; margin-top: .1rem; }
.leistungen span { font-size: .88rem; color: var(--text-schwach); margin-top: .15rem; }

/* Über uns: kurzer Text, daneben die Zahlen. ---------------------------------------- */

.ueber-raster {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.ueber-raster .führung { margin: 0; max-width: 54ch; }

.zahlen {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2rem;
}
.zahlen li { display: flex; flex-direction: column; padding-top: .9rem; border-top: 2px solid var(--akzent); }
.zahlen strong {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem); font-weight: 700; line-height: 1.1;
  letter-spacing: -.02em; color: var(--akzent-dunkel); font-variant-numeric: tabular-nums;
}
.zahlen span { font-size: .92rem; color: var(--text-schwach); }

/* Gruppen und Schwesterseiten. */
.angebote-titel {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem; font-size: .8rem; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-schwach);
}
.angebote { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.angebot {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.3rem; border: 1px solid var(--linie); border-radius: var(--rundung);
  background: #fff; color: var(--text); text-decoration: none;
  transition: border-color .15s;
}
.angebot:hover { border-color: var(--akzent); }
.angebot:hover .angebot-pfeil { color: var(--akzent); }
.angebot-ico {
  display: grid; place-items: center; flex: none;
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--akzent-hell); color: var(--akzent);
}
.angebot-ico .ico { width: 1.35rem; height: 1.35rem; }
.angebot-text { display: flex; flex-direction: column; line-height: 1.4; }
.angebot-text strong { font-weight: 600; font-size: 1.02rem; }
.angebot-text span { font-size: .9rem; color: var(--text-schwach); }
.angebot-pfeil { margin-left: auto; width: 1.25rem; height: 1.25rem; color: var(--text-schwach); }

/* Fragen: links der Titel, rechts die Antworten zum Aufklappen. --------------------- */

.fragen-raster {
  display: grid; grid-template-columns: 1fr 1.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.fragen-kontakt { margin: 0; color: var(--text-schwach); font-size: .95rem; line-height: 1.8; }
.fragen-kontakt a { font-weight: 600; text-decoration: none; }
.fragen-kontakt a:hover { text-decoration: underline; }

.fragen {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--rundung);
  padding: .25rem 1.4rem;
}
.fragen details + details { border-top: 1px solid var(--linie); }
.fragen summary {
  cursor: pointer; list-style: none; padding: 1.05rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 600;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: ''; flex: none; width: .6rem; height: .6rem; margin-right: .2rem;
  border-right: 2px solid var(--akzent); border-bottom: 2px solid var(--akzent);
  transform: translateY(-25%) rotate(45deg); transition: transform .15s;
}
.fragen details[open] summary::after { transform: translateY(15%) rotate(-135deg); }
.fragen summary:hover { color: var(--akzent-dunkel); }
.fragen details p { margin: -.3rem 0 1.1rem; color: var(--text-schwach); }

/* Termine: Liste auf dunkler Fläche ------------------------------------------------- */

.termine-abschnitt { background: var(--tief); color: #fff; }
.termine-abschnitt .vorzeile { color: var(--akzent-mittel); }
.termine-abschnitt h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); margin-bottom: .5em; }
.termine-abschnitt .führung { margin-top: 0; color: #bcd3d7; }

.termine-adresse {
  display: flex; align-items: center; gap: .5rem; margin: -.4rem 0 1rem;
  color: #fff; font-weight: 500;
}
.termine-adresse .ico { color: var(--akzent-mittel); }
.termine-info { color: #bcd3d7; font-size: .95rem; }

.direkt {
  display: flex; gap: .8rem; align-items: center; margin-top: 1.4rem;
  padding: 1rem 0 0; border-top: 1px solid rgba(255, 255, 255, .14);
}
.direkt .karte-ico { margin: 0; flex: none; color: var(--akzent-mittel); }
.direkt p { margin: 0; color: #bcd3d7; font-size: .95rem; }
.direkt a { color: #fff; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.direkt a:hover { text-decoration: underline; }

.termine-karte {
  background: #fff; color: var(--text); border-radius: var(--rundung);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .55);
  padding: clamp(1.25rem, 3vw, 1.9rem);
}
.termine-karte h3 { font-size: 1.25rem; margin-bottom: .6rem; }

.termine { display: grid; }

.termin {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: .5rem 1rem; align-items: center;
  padding: .9rem 0;
}
.termin + .termin { border-top: 1px solid var(--linie); }

/* Kalenderblatt: Tag groß, Monat klein. */
.termin-tag {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 3.3rem; height: 3.5rem; border-radius: 6px;
  background: var(--akzent-hell); color: var(--akzent-dunkel); line-height: 1;
}
.termin-tag strong { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.termin-tag span { margin-top: .25rem; font-size: .72rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }

.termin-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.termin-text strong { font-weight: 600; }
.termin-text span { font-size: .9rem; color: var(--text-schwach); }

.termin-preis { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; white-space: nowrap; }
.termin-preis strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.termin-preis span { font-size: .82rem; color: var(--text-schwach); }

.termin-knapp {
  margin-top: .3rem; font-size: .75rem !important; font-weight: 650;
  color: var(--signal) !important; background: var(--signal-hell);
  padding: .1rem .5rem; border-radius: 999px;
}

.termin .knopf { padding: .6rem 1.1rem; font-size: .95rem; }

.termine-hinweis { margin: .4rem 0; color: var(--text-schwach); }
.termine-mehr { margin-top: .8rem; width: 100%; }

/* Fuß ---------------------------------------------------------------------------- */

.fuss { padding: 2rem 0 1.75rem; background: #08252b; border-top: 1px solid rgba(255, 255, 255, .08); }

/* Schmale Bildschirme --------------------------------------------------------------- */

@media (max-width: 1000px) {
  .eckdaten { grid-template-columns: repeat(2, 1fr); }
  .eckdaten li:nth-child(odd) { border-left: 0; }
  .eckdaten li:nth-child(n+3) { border-top: 1px solid var(--linie); }
  .anlässe { grid-template-columns: repeat(2, 1fr); }
  .anlass { aspect-ratio: 3 / 2; }
  .anlass-eltern img, .anlass-gross img { object-position: 50% 30%; }
  .leistung-raster { grid-template-columns: 1fr; }
  .leistung-bild { min-height: 0; aspect-ratio: 16 / 7; order: 1; }
}

@media (max-width: 900px) {
  .leiste-text { display: none; }
  .leiste-inhalt { justify-content: flex-end; }
  .kopf-knopf { margin-left: auto; }
  .bühne h1 { max-width: none; }
  .bühne::before {
    background: linear-gradient(180deg, rgba(var(--tief-rgb), .62) 0%, rgba(var(--tief-rgb), .9) 100%);
  }
  .ueber-raster, .fragen-raster { grid-template-columns: 1fr; }
  .fragen-raster { gap: 1.5rem; }
  .fragen-raster h2 { margin-bottom: .6rem; }
  .angebote { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .leiste-inhalt { justify-content: space-between; gap: 1rem; }
  .kopf-inhalt { min-height: 66px; gap: 1rem; }
  .marke img { height: 42px; }
  .marke-zusatz { display: none; }
  .kopf-knopf { padding: .5rem .9rem; font-size: .9rem; }
  .bühne { min-height: 0; }
  .knopfreihe .knopf { flex: 1 1 100%; text-align: center; }
  .eckdaten { grid-template-columns: 1fr; }
  .eckdaten li { padding: 1rem 1.1rem; }
  .eckdaten li + li { border-left: 0; border-top: 1px solid var(--linie); }
  .anlässe { gap: .6rem; }
  .anlass { aspect-ratio: 4 / 5; }
  .anlass span { padding: .8rem .85rem; font-size: .95rem; }
  .leistungen { grid-template-columns: 1fr; gap: .5rem; }
  .leistungen li { padding: .8rem .85rem; }
  .zahlen { gap: 1.2rem 1.2rem; }
  .angebot { padding: 1rem; }
  .fragen { padding: .1rem 1.05rem; }

  /* Termin: Kalenderblatt und Text oben, Preis und Knopf darunter. */
  .termin { grid-template-columns: auto 1fr auto; gap: .7rem .9rem; }
  .termin-text { grid-column: 2 / 4; }
  .termin-preis {
    grid-column: 1 / 3; grid-row: 2;
    flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; white-space: normal;
  }
  .termin-knapp { margin-top: 0; }
  .termin .knopf { grid-column: 3; grid-row: 2; }
}

@media (max-width: 400px) {
  .leiste a[href^='mailto'] { display: none; }
}
