/* MonatsPlus — Startseite.
   Farben und Radien stammen aus der App (public/assets/style.css), damit
   Seite und Anwendung als ein Stueck wirken. Kein Framework, kein Build. */

:root {
  --teal:    #0e7490;
  --teal-d:  #0b5a70;
  --gruen:   #15803d;
  --gruen-h: #22c55e;
  --blau:    #2563eb;
  --bg:      #f6f7f9;
  --surface: #ffffff;
  --border:  #e2e8f0;
  --text:    #0f172a;
  --muted:   #64748b;
  --radius:  12px;
  --shadow:  0 1px 2px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.04);
  --shadow-l:0 12px 40px rgba(15,23,42,.14), 0 2px 8px rgba(15,23,42,.06);
  --breite:  1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--teal); }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 700;
         font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.marke img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
            padding: 9px 13px; border-radius: 9px; }
.topnav a:not(.btn):hover { color: var(--text); background: #eef1f5; }
/* Die Knopffarben muessen die Nav-Regel oben schlagen - sonst gewinnt deren
   hoehere Spezifitaet (.topnav a) und der Knopf bekommt graue Schrift. */
.topnav a.btn { margin-left: 8px; }
.topnav a.btn-primaer { color: #fff; }
.topnav a.btn-sekundaer { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 11px; font-weight: 650; font-size: 16.5px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  /* font-family: inherit ist noetig, seit die App-Knoepfe <button> sind -
     sonst nimmt der Browser seine eigene Schrift und sie fallen auf. */
  font-family: inherit;
}
.btn-primaer { background: linear-gradient(135deg, var(--teal), var(--gruen)); color: #fff;
               box-shadow: 0 4px 14px rgba(14,116,144,.3); }
.btn-primaer:hover { filter: brightness(1.07); }
.btn-sekundaer { background: var(--surface); color: var(--text); border-color: var(--border);
                 box-shadow: var(--shadow); }
.btn-sekundaer:hover { border-color: #cbd5e1; }
.btn-klein { padding: 9px 17px; font-size: 15px; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 316px; gap: 64px; align-items: center; }
.hero h1 {
  margin: 0 0 20px; font-size: 52px; line-height: 1.1; letter-spacing: -.025em; font-weight: 750;
}
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--teal), var(--gruen));
              -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 0 0 30px; font-size: 20px; line-height: 1.55; color: #334155; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-fuss { margin: 22px 0 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Aufnahme im Hero ---------- */
.hero-geraet { width: 300px; margin: 0 auto; }

/* ---------- Abschnitte ---------- */
section.block { padding: 84px 0; }
section.block.hell { background: var(--surface); border-top: 1px solid var(--border);
                     border-bottom: 1px solid var(--border); }
.kopf { max-width: 44rem; margin: 0 0 48px; }
.kopf .ueberschrift-tag { font-size: 13px; font-weight: 700; letter-spacing: .09em;
                          text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
.kopf h2 { margin: 0 0 14px; font-size: 36px; line-height: 1.2; letter-spacing: -.02em; font-weight: 720; }
.kopf p  { margin: 0; font-size: 18.5px; color: #475569; }

.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.karte { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
         padding: 24px 22px; box-shadow: var(--shadow); }
section.hell .karte { background: var(--bg); }
.karte .k-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
                 margin-bottom: 14px; background: #ecfdf5; color: var(--gruen); }
.karte .k-icon svg { width: 21px; height: 21px; }
.karte.i-blau  .k-icon { background: #eff6ff; color: var(--blau); }
.karte.i-teal  .k-icon { background: #ecfeff; color: var(--teal); }
.karte.i-grau  .k-icon { background: #f1f5f9; color: #475569; }
.karte h3 { margin: 0 0 7px; font-size: 18.5px; letter-spacing: -.01em; }
.karte p  { margin: 0; font-size: 15.5px; line-height: 1.6; color: #475569; }

/* ---------- Schritte ---------- */
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.schritt { position: relative; padding-left: 58px; }
.schritt::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--gruen));
}
.schritt h3 { margin: 6px 0 7px; font-size: 18.5px; }
.schritt p  { margin: 0; font-size: 15.5px; color: #475569; line-height: 1.6; }

/* ---------- Ehrlich gesagt ---------- */
.ehrlich { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.ehrlich li { list-style: none; position: relative; padding-left: 30px; margin: 0 0 4px;
              font-size: 16px; color: #334155; line-height: 1.6; }
.ehrlich li::before { content: "—"; position: absolute; left: 0; color: var(--muted); font-weight: 700; }
ul.ehrlich { padding: 0; margin: 0; }

/* ---------- Abschluss ---------- */
.schluss { background: linear-gradient(135deg, var(--teal-d), var(--gruen)); color: #fff; text-align: center; }
.schluss h2 { margin: 0 0 14px; font-size: 34px; letter-spacing: -.02em; }
.schluss p  { margin: 0 auto 28px; font-size: 18.5px; opacity: .92; max-width: 34rem; }
.schluss .btn-primaer { background: #fff; color: var(--teal-d); box-shadow: 0 6px 20px rgba(0,0,0,.18); }

/* ---------- Rechtliches ---------- */
.recht { font-size: 15.5px; color: #475569; }
.recht h3 { font-size: 17px; margin: 26px 0 8px; color: var(--text); }
.recht h3:first-child { margin-top: 0; }
.recht p { margin: 0 0 10px; }
.recht address { font-style: normal; }

/* ---------- Fusszeile ---------- */
footer.seitenfuss { background: var(--surface); border-top: 1px solid var(--border); padding: 30px 0; }
footer.seitenfuss .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center;
                          font-size: 14.5px; color: var(--muted); }
footer.seitenfuss nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
footer.seitenfuss a { color: var(--muted); text-decoration: none; }
footer.seitenfuss a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Schmale Schirme ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 40px; }
  .karten, .schritte { grid-template-columns: 1fr; }
  .ehrlich { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 60px; }
  .hero h1 { font-size: 33px; }
  .hero p.lead { font-size: 18px; }
  .hero-cta .btn { width: 100%; }
  section.block { padding: 60px 0; }
  .kopf h2 { font-size: 28px; }
  .kopf p { font-size: 17px; }
  .topnav a:not(.btn) { display: none; }
  footer.seitenfuss nav { margin-left: 0; width: 100%; }
}

/* ---------- Dunkelmodus ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a; --surface: #1e293b; --border: #334155;
    --text: #f1f5f9; --muted: #94a3b8;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.3);
  }
  .topbar { background: rgba(15,23,42,.88); }
  .topnav a:hover { background: #1e293b; }
  .hero p.lead, .kopf p, .karte p, .schritt p, .ehrlich li, .recht { color: #cbd5e1; }
  .karte .k-icon { background: #14342a; }
  .karte.i-blau .k-icon { background: #172554; }
  .karte.i-teal .k-icon { background: #083344; }
  .karte.i-grau .k-icon { background: #334155; color: #cbd5e1; }
  .schluss h2, .schluss p { color: #fff; }
}

/* ---------- Bildergalerie ----------
   Das Wischen macht scroll-snap selbst. Das Skript ergaenzt nur Pfeile, Punkte
   und die Tastaturbedienung — ohne JavaScript bleibt die Galerie scrollbar. */
.galerie { position: relative; }
.galerie-spur {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 0 8px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.galerie-spur::-webkit-scrollbar { display: none; }
/* margin: 0 ist noetig - <figure> hat im Browser 40px Eigenrand links und
   rechts. Der kaeme zum gap dazu und das naechste Bild lugte nicht mehr
   hervor, womit der Hinweis auf weitere Bilder fehlte. */
.galerie-bild { flex: 0 0 auto; scroll-snap-align: start; width: 268px; margin: 0; }

/* Rahmen um die Aufnahme. Das Bild bringt die Statusleiste schon mit,
   der Rahmen ist deshalb nur ein dunkler Rand mit runden Ecken. */
.geraet {
  border-radius: 34px; background: #0f172a; padding: 8px;
  box-shadow: var(--shadow-l);
}
/* height: auto ist Pflicht - die Bilder tragen width/height als Attribut,
   damit der Platz vor dem Laden reserviert ist. Ohne diese Zeile gilt die
   Attributhoehe (2556px) und reisst das Hero-Raster auseinander. */
.geraet img { display: block; width: 100%; height: auto; border-radius: 27px; }
.galerie-text { margin: 16px 2px 0; }
.galerie-text b { display: block; font-size: 16.5px; margin-bottom: 3px; }
.galerie-text span { font-size: 14.5px; color: #475569; line-height: 1.55; }

.galerie-pfeil {
  position: absolute; top: 40%; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.galerie-pfeil:hover { border-color: #cbd5e1; }
.galerie-pfeil[disabled] { opacity: .35; cursor: default; }
.galerie-pfeil svg { width: 20px; height: 20px; }
.galerie-pfeil.zurueck { left: -14px; }
.galerie-pfeil.vor     { right: -14px; }

.galerie-punkte { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.galerie-punkte button {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%;
  background: #cbd5e1; cursor: pointer;
}
.galerie-punkte button[aria-current="true"] { background: var(--teal); width: 26px; border-radius: 5px; }

@media (max-width: 620px) {
  .galerie-spur { gap: 18px; }
  .galerie-bild { width: 232px; }
  .galerie-pfeil { display: none; }   /* am Handy wird gewischt */
}
@media (prefers-reduced-motion: reduce) {
  .galerie-spur { scroll-behavior: auto; }
}
@media (prefers-color-scheme: dark) {
  .galerie-text span { color: #cbd5e1; }
  .galerie-punkte button { background: #475569; }
  /* Der Rahmen ist im Hellen #0f172a - im Dunkeln ist das die Seitenfarbe,
     das Geraet verschwaende darin. Hier deshalb eine Stufe heller. */
  .geraet { background: #334155; }
}

/* ---------- Hinweis auf die kommenden App-Fassungen ---------- */
.store-hinweis {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 20px 0 0; padding: 7px 14px 7px 11px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 550; color: #334155;
}
.store-hinweis svg { width: 16px; height: 16px; color: var(--teal); flex: none; }
/* Auf dem farbigen Abschlussband steht der Hinweis auf dunklem Grund — und
   unter dem Knopf, nicht daneben: inline-flex allein wuerde ihn als Inline-
   Element in dieselbe Zeile wie den Knopf setzen. */
.store-hinweis.hell {
  display: flex; width: fit-content; margin: 22px auto 0;
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3);
  color: #fff; box-shadow: none;
}
.store-hinweis.hell svg { color: #fff; }

@media (prefers-color-scheme: dark) {
  .store-hinweis { color: #cbd5e1; }
}

/* ---------- Hinweis „Demnächst verfügbar" ---------- */
.bald {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--border); border-radius: 16px; padding: 30px 28px 26px;
  background: var(--surface); color: var(--text); text-align: center;
  box-shadow: 0 20px 60px rgba(15,23,42,.25);
}
.bald::backdrop { background: rgba(15,23,42,.55); }
.bald-zeichen { width: 52px; height: 52px; border-radius: 13px; margin-bottom: 16px; }
.bald h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.01em; }
.bald p  { margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; color: #475569; }
.bald-laeden { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.bald-laeden li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); font-size: 14.5px;
}
.bald-laeden b    { font-weight: 650; }
.bald-laeden span { color: var(--muted); font-size: 13.5px; }
.bald form { margin: 0; }
.bald form .btn { width: 100%; }

@media (prefers-color-scheme: dark) {
  .bald p { color: #cbd5e1; }
}
