/* Shiftlove – Webseite
   Aufbau: nachtblaues Band oben (Nachtschicht), helle Abschnitte darunter, Rechtstexte als ruhige Leseseiten.
   Farben wie in der App (src/constants/farben.ts), Hell und Dunkel. */

@font-face {
  font-family: 'Fraunces';
  src: url('schrift/fraunces-latin-600-normal.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink: #E8456B;
  --pink-tief: #C9335A;
  --pink-zart: #FDF0F3;
  --pink-rand: #F8D3DD;
  --nacht: #1A1F3D;
  --nacht-hell: #252B52;
  --mond: #F4D58D;
  --grund: #FBF7F5;
  --karte: #FFFFFF;
  --text: #1A1F3D;
  --grau: #5F6480;
  --rand: #E4E5EE;
  --gruen: #2EAD6B;
  --auf-nacht: #C9CCE0;
  --schatten: 0 18px 50px rgba(26, 31, 61, 0.16);

  --titel: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --text-schrift: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --breite: 1080px;
  --lese: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pink: #EF5A7D;
    --pink-tief: #F07A96;
    --pink-zart: #2A1B24;
    --pink-rand: #4A2232;
    --nacht: #161A36;
    --nacht-hell: #232955;
    --grund: #11142A;
    --karte: #1B1F38;
    --text: #EEEFF6;
    --grau: #A3A7BF;
    --rand: #2F3455;
    --gruen: #3CC07C;
    --schatten: 0 18px 50px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --pink: #EF5A7D;
  --pink-tief: #F07A96;
  --pink-zart: #2A1B24;
  --pink-rand: #4A2232;
  --nacht: #161A36;
  --nacht-hell: #232955;
  --grund: #11142A;
  --karte: #1B1F38;
  --text: #EEEFF6;
  --grau: #A3A7BF;
  --rand: #2F3455;
  --gruen: #3CC07C;
  --schatten: 0 18px 50px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--text-schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .knopf:focus-visible {
  outline: 3px solid var(--mond);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3 {
  font-family: var(--titel);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

.innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ===== Kopf ===== */
.kopf { background: var(--nacht); color: #fff; }
.kopf .innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--titel);
  font-weight: 600;
  font-size: 1.45rem;
}
.marke svg { width: 34px; height: 34px; flex: none; }
.kopf nav { display: flex; gap: 20px; flex-wrap: wrap; }
.kopf nav a { color: var(--auf-nacht); text-decoration: none; font-size: 0.95rem; }
.kopf nav a:hover { color: #fff; }
@media (max-width: 640px) { .kopf nav { display: none; } }

/* ===== Startband ===== */
.start { background: var(--nacht); color: #fff; overflow: hidden; }
.start .innen {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding-block: 32px 72px;
}
.start h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -0.01em; }
.start h1 em { font-style: normal; color: var(--pink); }
.start .unterzeile {
  color: var(--auf-nacht);
  font-size: 1.15rem;
  max-width: 34rem;
  margin: 18px 0 28px;
}
.knoepfe { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(232, 69, 107, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.knopf:hover { background: var(--pink-tief); transform: translateY(-1px); }
.knopf svg { width: 20px; height: 20px; }
.hinweis-klein { color: var(--auf-nacht); font-size: 0.9rem; }

/* Dienstplan-Streifen: das Herzstück der Idee */
.plan {
  margin-top: 40px;
  background: var(--nacht-hell);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  max-width: 34rem;
}
.plan-titel {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auf-nacht);
  margin: 0 0 12px;
}
.plan-raster {
  display: grid;
  grid-template-columns: 3.6rem repeat(7, minmax(0, 1fr));
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.plan-raster span {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}
.plan-raster .tag { height: auto; color: var(--auf-nacht); font-weight: 500; font-size: 0.75rem; }
.plan-raster .wer { justify-content: start; height: 34px; color: #fff; font-weight: 500; }
.plan-raster .s { background: rgba(255, 255, 255, 0.07); color: var(--auf-nacht); }
.plan-raster .f { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.22); color: var(--auf-nacht); }
.plan-raster .beide { background: var(--pink); color: #fff; border: 0; }
.plan-fuss {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: #fff;
}
.plan-fuss svg { width: 18px; height: 18px; color: var(--mond); flex: none; }

/* Handy-Rahmen */
.handy {
  border-radius: 34px;
  overflow: hidden;
  border: 8px solid #0C0F22;
  background: #0C0F22;
  box-shadow: var(--schatten);
  width: 100%;
  max-width: 300px;
}
.start .handy { justify-self: center; transform: rotate(2.5deg); }

@media (max-width: 820px) {
  .start .innen { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 20px 56px; }
  .start .handy { max-width: 250px; transform: none; }
}

/* ===== Abschnitte ===== */
.abschnitt .innen { padding-block: 72px; }
.abschnitt h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.einleitung { color: var(--grau); max-width: 40rem; margin: 12px 0 36px; font-size: 1.1rem; }
.ueber { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink); font-weight: 700; margin: 0 0 10px; }

/* Ablauf in drei Schritten */
.schritte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: schritt;
}
.schritte li {
  counter-increment: schritt;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 18px;
  padding: 24px;
}
.schritte li::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink-zart);
  color: var(--pink);
  font-family: var(--titel);
  font-weight: 600;
  margin-bottom: 14px;
}
.schritte h3 { font-size: 1.2rem; margin-bottom: 6px; }
.schritte p { margin: 0; color: var(--grau); }
@media (max-width: 760px) { .schritte { grid-template-columns: minmax(0, 1fr); } }

/* Funktionen */
.funktionen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}
.funktion { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.symbol {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--pink-zart);
  color: var(--pink);
}
.symbol svg { width: 22px; height: 22px; }
.funktion h3 { font-family: var(--text-schrift); font-size: 1.05rem; font-weight: 700; margin: 2px 0 4px; }
.funktion p { margin: 0; color: var(--grau); font-size: 0.98rem; }
@media (max-width: 900px) { .funktionen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .funktionen { grid-template-columns: minmax(0, 1fr); } }

/* Bildschirme */
.bildschirme {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  justify-items: center;
}
.bildschirme figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.bildschirme .handy { aspect-ratio: 640 / 1290; object-fit: contain; object-position: top; background: #FAF7F5; }
.bildschirme figcaption { color: var(--grau); text-align: center; font-size: 0.95rem; max-width: 16rem; }
.bildschirme figcaption strong { display: block; color: var(--text); font-size: 1rem; }
@media (max-width: 760px) {
  .bildschirme {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    justify-items: stretch;
  }
  .bildschirme figure { scroll-snap-align: center; }
}

/* Sicherheit */
.sicher { background: var(--pink-zart); border-block: 1px solid var(--pink-rand); }
.sicher-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 36px;
}
.sicher-liste li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.sicher-liste svg { width: 22px; height: 22px; color: var(--pink); margin-top: 2px; }
.sicher-liste strong { display: block; }
.sicher-liste span { color: var(--grau); }
@media (max-width: 680px) { .sicher-liste { grid-template-columns: minmax(0, 1fr); } }

/* Kostenlos */
.preis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.preis > div { background: var(--karte); border: 1px solid var(--rand); border-radius: 18px; padding: 26px; }
.preis h3 { font-size: 1.35rem; margin-bottom: 10px; }
.preis ul { margin: 0; padding-left: 1.1rem; color: var(--grau); }
.preis li + li { margin-top: 6px; }
.preis .plus { border-color: var(--pink-rand); }
.preis .plus h3 { color: var(--pink); }
@media (max-width: 680px) { .preis { grid-template-columns: minmax(0, 1fr); } }

/* Fragen */
.fragen { max-width: 46rem; display: grid; gap: 12px; }
.fragen details { background: var(--karte); border: 1px solid var(--rand); border-radius: 14px; padding: 4px 20px; }
.fragen summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: '+'; color: var(--pink); font-size: 1.3rem; line-height: 1; }
.fragen details[open] summary::after { content: '–'; }
.fragen details p { margin: 0 0 16px; color: var(--grau); }

/* Schlussband */
.schluss { background: var(--nacht); color: #fff; text-align: center; }
.schluss .innen { padding-block: 64px; display: grid; gap: 22px; justify-items: center; }
.schluss h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); max-width: 30rem; }

/* ===== Fuß ===== */
.fuss { background: var(--grund); border-top: 1px solid var(--rand); font-size: 0.95rem; }
.fuss .innen {
  padding-block: 32px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  justify-content: space-between;
}
.fuss nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.fuss a { color: var(--text); text-decoration: none; }
.fuss a:hover { color: var(--pink); }
.fuss .klein { color: var(--grau); margin: 0; }

/* ===== Rechtstexte ===== */
.rechtskopf { background: var(--nacht); color: #fff; }
.rechtskopf .innen { padding-block: 8px 44px; }
.rechtskopf h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); max-width: var(--lese); }
.zurueck { color: var(--auf-nacht); text-decoration: none; display: inline-block; margin-bottom: 18px; font-size: 0.95rem; }
.zurueck:hover { color: #fff; }
.rechtstext .innen { padding-block: 40px 72px; }
.rechtstext article { max-width: var(--lese); }
.rechtstext h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rand);
}
.rechtstext article > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rechtstext p { margin: 0 0 14px; }
.rechtstext ul, .rechtstext ol { margin: 0 0 16px; padding-left: 1.3rem; }
.rechtstext li { margin-bottom: 8px; }
.rechtstext li::marker { color: var(--pink); }
.rechtstext .kurz {
  background: var(--pink-zart);
  border: 1px solid var(--pink-rand);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 8px;
}
.rechtstext .kurz h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 1.15rem; }
.rechtstext .kurz p:last-child { margin-bottom: 0; }
.rechtstext a { word-break: break-word; }
