/* RettungRheinNeckar
   Hell und ruhig wie die App: weiße Fläche, graue Karten im iOS-Stil,
   Rettungsrot als Akzent. Systemschriften, nichts wird nachgeladen.
   Kontraste auf WCAG 2.2 AA geprüft. Das Orange der App (#DB8500) hat auf
   Weiß nur 2,9:1 und steht deshalb nie als Textfarbe, nur als Linie. */

:root {
  --rot: #d51e2a;
  --rot-dunkel: #a80d1c;
  --warn: #db8500;
  --warn-grund: #fff6e8;
  --text: #1c1c1e;
  --leise: #6e6e73;
  --grund: #ffffff;
  --flaeche: #f2f2f7;
  --linie: #e5e5ea;
  --radius: 1.25rem;
  --spalte: 64rem;
  --lese: 40rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--text);
  font: 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--rot); text-underline-offset: .2em; }
a:hover { color: var(--rot-dunkel); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 4px; }

.sprung-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--text); color: var(--grund);
  padding: .6rem 1rem; border-radius: .5rem; font-weight: 600;
}
.sprung-link:focus { top: 1rem; }

.spalte { width: 100%; max-width: var(--spalte); margin: 0 auto; padding: 0 1rem; }
.lese { max-width: var(--lese); }

main { flex: 1; }

/* Kopf */
.kopf { padding: .9rem 0; border-bottom: 1px solid var(--linie); }
.kopf .spalte { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marke { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; }
.marke:hover { color: var(--text); }
.kopf nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: .4rem .2rem; }
.kopf nav a:hover { color: var(--rot); }

/* App-Icon: app-icon-gerundet aus dem Paket, mit iOS-Ecken und
   transparentem Rand. Flach wie in der App, ohne Schatten. */
.icon { display: block; flex: none; width: 2rem; height: 2rem; }
.icon--gross { width: 5.5rem; height: 5.5rem; }

/* Hero */
.hero { padding: 3rem 0 3.5rem; }
.hero .spalte { display: grid; gap: 2.5rem; align-items: center; }
.hero__name { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.5rem; font-weight: 700; font-size: 1.15rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 1rem; text-wrap: balance; }
.zusammen { white-space: nowrap; }
.hero__unterzeile { font-size: 1.2rem; color: var(--leise); margin: 0 0 2rem; max-width: 34rem; }

/* Platzhalter für das offizielle Badge von Apple. Bis zur Veröffentlichung
   ohne Link, danach durch das unveränderte deutsche Badge ersetzen. */
.badge-platz {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 10rem; height: 3.25rem; padding: 0 1rem;
  border: 2px dashed var(--leise); border-radius: .6rem;
  color: var(--leise); font-size: .95rem;
}

/* iPhone-Rahmen für die Screenshots (1320 × 2868, also 0,46:1) */
.telefon {
  width: min(16rem, 70vw);
  margin: 0 auto;
  padding: .55rem;
  border-radius: 2.6rem;
  background: #1c1c1e;
  box-shadow: 0 20px 50px rgba(28, 28, 30, .18);
}
.telefon__bild {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1320 / 2868;
  border-radius: 2.1rem;
  overflow: hidden;
  background: var(--flaeche);
  text-align: center; padding: 1rem; font-size: .9rem; color: var(--leise);
}
.telefon__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.telefon__bild:has(img) { padding: 0; }

/* Abschnitte */
.abschnitt { padding: 3.5rem 0; }
.abschnitt--grau { background: var(--flaeche); }
.abschnitt h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 1rem; }
.vorspann { color: var(--leise); font-size: 1.1rem; margin: 0 0 2rem; max-width: var(--lese); }

/* Funktionen: Text und Screenshot, ab Tablet nebeneinander */
.funktion { display: grid; gap: 2rem; align-items: center; padding: 2.5rem 0; }
.funktion + .funktion { border-top: 1px solid var(--linie); }
.funktion h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.5rem; margin: 0 0 .75rem; letter-spacing: -.015em; }
.funktion h3 svg { width: 1.6rem; height: 1.6rem; color: var(--rot); flex: none; }
.funktion p { margin: 0 0 1rem; }

.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.liste li { position: relative; padding-left: 1.5rem; }
.liste li::before {
  content: ""; position: absolute; left: .2rem; top: .6em;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--rot);
}

/* Karten wie in iOS */
.karten { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.karte { background: var(--grund); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.abschnitt:not(.abschnitt--grau) .karte { background: var(--flaeche); }
.karte strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.karte p { margin: 0; color: var(--leise); }

/* Datenquellen */
.quellen { display: grid; gap: .75rem; margin: 0; }
.quellen div { background: var(--flaeche); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.quellen dt { font-weight: 700; }
.quellen dd { margin: .2rem 0 0; color: var(--leise); }
.quellen .stand { display: inline-block; margin-top: .4rem; font-size: .9rem; font-weight: 600; color: var(--text); }

/* Hinweis: sichtbar, aber nicht alarmierend */
.hinweis {
  max-width: var(--lese);
  display: flex; gap: .9rem;
  background: var(--warn-grund);
  border-left: 4px solid var(--warn);
  border-radius: .75rem;
  padding: 1.1rem 1.25rem;
}
.hinweis svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--warn); margin-top: .1rem; }
.hinweis p { margin: 0; }
.hinweis p + p { margin-top: .5rem; }
.text .hinweis { margin: 0 0 1rem; }
.text .hinweis p { margin: 0; }

/* Textseiten */
.text { padding: 2.5rem 0 3.5rem; }
.text h1 { font-size: clamp(1.8rem, 5vw, 2.3rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 1.5rem; }
.text h2 { font-size: 1.2rem; margin: 2.25rem 0 .5rem; }
.text h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
.text p, .text ul { margin: 0 0 1rem; }
.text ul { padding-left: 1.25rem; }
.klein { font-size: .9rem; color: var(--leise); }

.kontakt { background: var(--flaeche); border-radius: var(--radius); padding: 1.25rem; margin: 0 0 1.5rem; }
.kontakt h2:first-child { margin-top: 0; }
.kontakt p:last-child { margin-bottom: 0; }

/* FAQ ohne Skript */
.faq { display: grid; gap: .6rem; margin-top: 1rem; }
.faq details { background: var(--flaeche); border-radius: 1rem; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1rem 2.75rem 1rem 1.25rem; position: relative;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%;
  width: .55rem; height: .55rem; margin-top: -.4rem;
  border-right: 2px solid var(--leise); border-bottom: 2px solid var(--leise);
  transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -.1rem; }
.faq details > div { padding: 0 1.25rem 1rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Fuß */
.fuss { padding: 2rem 0; border-top: 1px solid var(--linie); color: var(--leise); font-size: .95rem; }
.fuss .spalte { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.fuss p { margin: 0; }
.fuss nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.fuss a { color: var(--leise); padding: .25rem 0; }
.fuss a:hover { color: var(--text); }

/* Platzhalter: sichtbar, damit nichts Unbestätigtes durchrutscht */
.fehlt { background: #ffe066; color: #1a1a1a; padding: 0 .3em; border-radius: .2em; font-weight: 600; }

@media (min-width: 48rem) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero .spalte { grid-template-columns: 1.3fr 1fr; gap: 3rem; }
  .funktion { grid-template-columns: 1.2fr 1fr; gap: 4rem; padding: 3.5rem 0; }
  .funktion:nth-child(even) .funktion__text { order: 2; }
  .karten { grid-template-columns: repeat(2, 1fr); }
  .quellen { grid-template-columns: repeat(3, 1fr); }
  .abschnitt { padding: 5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}
