/*
 * Gestaltung nur für sanitaetsdienst.soft-aid.de.
 *
 * Wird nach der gemeinsamen Vorlage (/gemeinsam/style.css) geladen und sticht
 * sie. Alles, was nur diese Seite betreffen soll, gehört hierher – nicht in
 * gemeinsam/style.css, die gehört allen öffentlichen Seiten von SoftAid.
 *
 * Farbe: das Türkis aus dem Logo (#026c7e) trägt die Seite. Statt eines
 * eigenen Signaltons nimmt diese Seite den Markenton auch als Signal; nur
 * Fehlermeldungen bleiben rot.
 *
 * Haltung: ruhig und sachlich. Kleine Rundungen, keine Schwebeeffekte,
 * Schatten nur dort, wo etwas wirklich über der Fläche liegt (das Formular).
 */

/* Das Formular trägt selbst data-seite und bekäme sonst den alten Signalton. */
html[data-seite='sanitaetsdienst'],
html[data-seite='sanitaetsdienst'] [data-seite] {
  --akzent: #026c7e;
  --akzent-dunkel: #01505d;
  --akzent-hell: #e6f1f3;
  --akzent-mittel: #84b6be;   /* der helle Ton aus dem Pixelkreuz */
  --signal: #026c7e;
  --signal-hell: #e6f1f3;
  --text: #13232a;
  --text-schwach: #51636b;
  --tief: #0b2f36;
  --flaeche-still: #f4f7f8;
  --linie: #dfe6e9;
  --rundung: 8px;
}

/* 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; }
.knopf .ico { margin-right: .55rem; vertical-align: -.2em; }

.knopf-rahmen { background: #fff; color: var(--akzent-dunkel); border-color: #b9ccd1; }
.knopf-rahmen:hover { background: #fff; border-color: var(--akzent); color: var(--akzent); }


.knopf-voll { width: 100%; padding: .95rem 1.5rem; }

/* Bühne ------------------------------------------------------------------------ */

.bühne {
  background: linear-gradient(180deg, var(--flaeche-still) 0%, #fff 100%);
  padding: clamp(2.25rem, 5vw, 3.75rem) 0;
  border-bottom: 1px solid var(--linie);
}

.bühne-raster { grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }

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

.bühne h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.1;
  margin-bottom: 1rem; max-width: 16ch;
}

.bühne .führung { font-size: 1.12rem; max-width: 52ch; }

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

/* Fotos ---------------------------------------------------------------------
   Solange kein Bild da ist, zeigt die Fläche, was hinein soll. Ein <img>
   in der figure füllt sie später ganz aus. */
.foto {
  position: relative; margin: 0; overflow: hidden;
  display: grid; place-content: center; justify-items: center; gap: .5rem;
  aspect-ratio: 4 / 3; border-radius: var(--rundung);
  background: var(--akzent-hell); border: 1px dashed var(--akzent-mittel);
  color: var(--akzent); text-align: center;
}
.foto > .ico { width: 2rem; height: 2rem; opacity: .7; }
.foto figcaption { font-size: .85rem; font-weight: 500; color: var(--akzent-dunkel); padding: 0 1rem; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto:has(img) { border: 0; }

.foto-bühne { aspect-ratio: 5 / 4; }

.fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: .75rem; }

/* Eckdaten: eine Zeile unter der Bühne. */
.eckdaten {
  margin-top: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.eckdaten li {
  flex-direction: row; align-items: flex-start; gap: .8rem;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 1rem 0 0; border-top: 1px solid var(--linie);
}
.eckdaten li > .ico { width: 1.35rem; height: 1.35rem; margin-top: .1rem; 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(2.5rem, 5vw, 3.75rem) 0; }
.abschnitt-tief { background: var(--flaeche-still); border-block: 1px solid var(--linie); }


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

/* Leistungen: nur die Namen, in einem Raster. */
.abschnitt-tief h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; margin-bottom: 1.4rem; }
.leistungen {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem;
}
.leistungen li {
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--rundung);
  padding: .9rem 1rem; font-weight: 550; font-size: .98rem;
}
.leistungen .ico { width: 1.3rem; height: 1.3rem; color: var(--akzent); }

/* Anfrage: Formular auf dunkler Fläche ---------------------------------------------- */

.anfrage { background: var(--tief); color: #fff; }
.anfrage .vorzeile { color: var(--akzent-mittel); }
.anfrage h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); letter-spacing: -.02em; }
.anfrage .führung { color: #bcd3d7; }

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

.formular {
  color: var(--text); border: 0; border-radius: var(--rundung);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .55);
  padding: clamp(1.5rem, 3.5vw, 2.3rem);
}
.formular h3 { font-size: 1.25rem; }
.formular input, .formular textarea, .formular select {
  border-radius: 6px; background: #fff; border-color: #cfdade;
}
.formular select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351636b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem;
  padding-right: 2.4rem;
}
.meldung.fehler { color: #b42318; }

/* 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); }
  .leistungen { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .leiste-text { display: none; }
  .leiste-inhalt { justify-content: flex-end; }
  .kopf-knopf { margin-left: auto; }
  .bühne-raster { grid-template-columns: 1fr; }
  .bühne h1 { max-width: none; }
}

@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; }
  .knopfreihe .knopf { flex: 1 1 100%; text-align: center; }
  .leistungen, .fotos { gap: .5rem; }
  .fotos { grid-template-columns: 1fr 1fr; }
  .fotos .foto:last-child { display: none; }
  .eckdaten { grid-template-columns: 1fr; gap: 0; }
  .eckdaten li { padding-bottom: .9rem; }
  .leistungen li { padding: .75rem .8rem; font-size: .92rem; }
}

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