/* Nestlotse – Infoseite. Eine gemeinsame Stylesheet-Datei, keine Fremdquellen.
   Hausschrift Outfit liegt lokal unter assets/outfit.css (Pfade zeigen von
   dort auf assets/fonts/*.woff2). */
@import "assets/outfit.css";

:root {
  --bg: hsl(40, 45%, 97%);
  --surface: #ffffff;
  --surface-2: hsl(40, 35%, 93%);
  --ink: hsl(205, 25%, 18%);
  --ink-2: hsl(205, 15%, 38%);
  --line: hsl(35, 20%, 86%);
  --lotse: hsl(200, 60%, 32%);
  --lotse-soft: hsl(200, 50%, 92%);
  --nest: hsl(30, 55%, 50%);
  --nest-soft: hsl(32, 60%, 93%);
  --radius: 14px;
}

/* Dunkles Thema ausschliesslich ueber prefers-color-scheme: dark. Keine
   zweite Klasse, kein Umschalter noetig. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(205, 20%, 11%);
    --surface: hsl(205, 18%, 15%);
    /* surface-2 stand nicht im Vertrag; ein Halbschritt zwischen bg und
       surface, damit Wechselabschnitte im Dunkeln sichtbar bleiben. */
    --surface-2: hsl(205, 18%, 19%);
    --ink: hsl(40, 30%, 92%);
    --ink-2: hsl(40, 15%, 75%);
    --line: hsl(205, 12%, 26%);
    --lotse: hsl(200, 55%, 62%);
    --lotse-soft: hsl(200, 30%, 20%);
    --nest: hsl(30, 60%, 60%);
    --nest-soft: hsl(30, 30%, 20%);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em 0;
}

h2 { font-weight: 600; font-size: 1.5rem; }

p { margin: 0 0 1em 0; max-width: 68ch; }

ul.merkmale {
  margin: 0 0 1em 0;
  padding: 0;
  list-style: none;
  max-width: 68ch;
}
ul.merkmale li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.55em;
  color: var(--ink-2);
}
ul.merkmale li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nest);
}

a { color: var(--lotse); }

.wortmarke {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--lotse);
  letter-spacing: -0.01em;
}

/* Buttons/Links, mindestens 44px hoch */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25em;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.btn-primary {
  background: var(--lotse);
  color: #fff;
}
.btn-secondary {
  background: var(--surface);
  color: var(--lotse);
  border: 1px solid var(--line);
}

/* Kopfzeile */
.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.kopf a.wortmarke-link { text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.kopf .marke { width: 30px; height: 30px; flex: none; }

/* Hero */
.hero {
  padding: 2.5rem 1.25rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.hero-text .claim {
  font-size: 1.4rem;
  font-weight: 600;
  max-width: 22ch;
}
.hero-bild { display: flex; justify-content: center; }

/* Schlanker Geraeterahmen, rein in CSS */
.geraet {
  width: min(240px, 62vw);
  border-radius: 32px;
  background: #1b1f22;
  padding: 10px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.35);
}
.geraet::before {
  content: "";
  display: block;
  width: 36%;
  height: 5px;
  border-radius: 3px;
  background: #3a3f43;
  margin: 0 auto 8px;
}
.geraet img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

/* Abschnitte im Wechsel Text/Bild */
.abschnitt {
  padding: 2.5rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.abschnitt:nth-of-type(even) { background: var(--surface-2); }
.abschnitt-bilder {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.abschnitt-bilder .geraet { width: min(200px, 50vw); }

.abschnitt-breit img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Datenschutz-Abschnitt, ohne Bild */
.datenschutz-box {
  background: var(--lotse-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 68ch;
}

/* Abschluss-Abschnitt */
.abschluss {
  padding: 2.5rem 1.25rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.abschluss .kontakt {
  font-size: 1.05rem;
  margin-top: 1rem;
}

footer.fuss {
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
footer.fuss a { color: var(--ink-2); margin: 0 0.4em; }

/* Ab Tablet-Breite: Text/Bild nebeneinander, Reihenfolge wechselt */
@media (min-width: 760px) {
  .hero { flex-direction: row; align-items: center; }
  .hero-text { flex: 1.1; }
  .hero-bild { flex: 1; }

  .abschnitt { flex-direction: row; align-items: center; }
  .abschnitt-text { flex: 1.1; }
  .abschnitt-bilder { flex: 1; }
  .abschnitt.bild-links { flex-direction: row-reverse; }
}

/* Rechtsseiten (impressum.html, datenschutz.html) */
.rechtsseite-inhalt {
  max-width: 68ch;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}
.rechtsseite-inhalt h2 { margin-top: 1.75rem; }
.rechtsseite-inhalt address { font-style: normal; line-height: 1.6; }

/* Touch-Geraete: Fuss-Links (Impressum, Datenschutz), Mail-Kontakt und Logo-Link
   brauchen 44px Tippflaeche wie .btn. Nur auf Geraeten ohne Hover/mit grobem
   Zeiger ODER bis 900px Breite (wie die Sammelregel der App: ein Tablet, das den
   Zeigertyp nicht als grob meldet, faellt sonst durch), Desktop bleibt unveraendert. */
@media (hover: none) and (pointer: coarse), (max-width: 900px) {
  footer.fuss a,
  .abschluss .kontakt a,
  .kopf a.wortmarke-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
