/* INFO-SEITEN (seiten.js) - Bauer C.
   Umbau nach Felix' PDF (28.10.2026): Versand & Zahlung,
   FAQ, Kontakt, "Seite nicht gefunden" und die TODO-Kaesten (SPEC §7.4, §9).

   ============================================================================
   FUNDAMENT - bitte stehen lassen (Huelle aus index.html, keine eigene Datei
   in SPEC §2): Fusszeile in vier Spalten (§8), .nur-vorleser, Fokus auf
   #ansicht, Meldungen ohne Skript / bei Fehlern, Platzhalter-Grundstil.
   ============================================================================ */

/* Fuer Vorleser da, sonst unsichtbar. */
.nur-vorleser {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Nach einem Seitenwechsel setzt der Router den Fokus auf die Ueberschrift
   (Vorleser sagen die neue Seite an) - ohne sichtbaren Rahmen. */
#ansicht { display: block; min-height: 50vh; }
#ansicht:focus, #ansicht h1:focus { outline: none; }

.ohne-skript, .ansicht-fehler { max-width: 760px; margin: 0 auto; padding: 56px 24px; }

/* Fusszeile: Shop, Hilfe, Rechtliches, Cardpoint (Grund und Farben aus
   styles.css, footer.site). */
.fuss-spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 32px 40px; }
.fuss-titel {
  margin: 0 0 10px; font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hell);
}
.fuss-links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.fuss-links a {
  display: inline-flex; align-items: center; min-height: 32px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.88); text-decoration: none;
}
.fuss-links a:hover { color: var(--gold-hell); text-decoration: underline; text-underline-offset: 5px; }
.fuss-marke { max-width: none; }
@media (max-width: 900px) {
  .fuss-spalten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fuss-marke { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .fuss-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .fuss-links a { min-height: 44px; }
}

/* Grundstil der Platzhalter-Ansichten des Fundaments. */
.platzhalter-seite { max-width: var(--page-width); margin: 0 auto; padding: 36px 24px 72px; }
.platzhalter-seite h1 {
  margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-stretch: 105%; font-size: 36px;
  line-height: 1.1; letter-spacing: -0.03em; color: var(--navy); overflow-wrap: anywhere;
}
.platzhalter-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 16px 0; padding: 0; list-style: none; }
.platzhalter-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.platzhalter-suche { display: flex; gap: 8px; max-width: 480px; margin: 20px 0; }
.platzhalter-suche input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--field-border); border-radius: 8px;
  font: inherit; font-size: 15px;
}
.platzhalter-suche button {
  height: 44px; padding: 0 18px; border: none; border-radius: 8px; cursor: pointer;
  font: inherit; font-weight: 700; color: #fff; background: var(--navy);
}
.ladefehler { padding: 24px 0; color: var(--text-soft); }
@media (max-width: 640px) {
  .platzhalter-seite { padding: 24px 16px 56px; }
  .platzhalter-seite h1 { font-size: 28px; }
}

/* Warenkorb-Schublade, schmale Handys: styles.css macht die Mengenknoepfe
   bis 640 px 44 px gross, bei 320 px drueckte die Zeile sie aber auf 42 px
   (Pruefung 29.10.2026; SPEC §2: Tippflaechen >= 44 px). Hier statt in
   styles.css, weil styles.css in Phase 1+2 unveraendert bleibt - die
   Schublade gibt es nur in index.html. Etwas weniger Abstand, damit die drei
   Teile trotzdem in die Zeile passen. */
@media (max-width: 640px) {
  .drawer .qty button { flex-shrink: 0; }
}
@media (max-width: 360px) {
  .drawer .qty { gap: 6px; }
}

/* ============================== Ende FUNDAMENT ============================== */

/* INFO-SEITEN mit Inhalt (29.10.2026): schmale Lesespalte, oben die Eckdaten
   als Kacheln, Abschnitte mit Navy-Ueberschrift, die FAQ als aufklappbare
   Zeilen, Kontaktwege als grosse Flaechen, ein Navy-Kasten als Hinweis.
   Ruhig und kompakt (Felix). */
.info-seite { max-width: 880px; }
.info-lead { max-width: 640px; margin: 0 0 24px; font-size: 17px; line-height: 1.55; color: var(--text-soft); }
.info-seite h2 {
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px;
  line-height: 1.2; letter-spacing: -0.02em; color: var(--navy);
}
.info-seite p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.info-seite .info-klein { font-size: 14px; color: var(--text-soft); }
.info-seite a:not(.info-knopf):not(.kontakt-weg) {
  font-weight: 600; color: var(--cta); text-decoration: underline; text-underline-offset: 3px;
}
.info-abschnitt { margin: 0 0 30px; }

.info-fakten {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin: 0 0 36px; padding: 0; list-style: none;
}
.info-fakt {
  display: flex; gap: 12px; align-items: flex-start; min-width: 0; padding: 16px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card);
}
.info-fakt-zeichen {
  display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%;
  color: var(--navy); background: var(--gold-soft);
}
.info-fakt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-fakt-text strong { font-size: 15.5px; line-height: 1.3; color: var(--navy); }
.info-fakt-text small { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Versandkosten als zwei Zeilen: links der Warenwert, rechts der Preis. */
.info-tabelle { margin: 0 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.info-tabelle div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.info-tabelle div + div { border-top: 1px solid var(--border); }
.info-tabelle dt { color: var(--text-soft); }
.info-tabelle dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }

.info-liste { margin: 0 0 12px; padding-left: 20px; }
.info-liste li { margin: 0 0 6px; font-size: 15.5px; line-height: 1.55; }

/* Ablauf als nummerierte Schritte: Ziffer im Navy-Kreis. */
.info-schritte { margin: 0; padding: 0; list-style: none; counter-reset: schritt; display: grid; gap: 12px; }
.info-schritte li {
  position: relative; padding: 2px 0 0 44px; min-height: 32px; font-size: 15.5px; line-height: 1.55;
  counter-increment: schritt;
}
.info-schritte li::before {
  content: counter(schritt); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-size: 14px; font-weight: 800; color: var(--gold-hell); background: var(--navy);
}

/* FAQ: eine Zeile je Frage, Pfeil dreht beim Aufklappen. */
.faq-gruppe { margin: 0 0 28px; }
.faq-gruppe h2 { margin-bottom: 4px; }
.faq { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 12px 0; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; color: var(--muted); transition: rotate .2s ease; }
.faq[open] summary svg { rotate: 180deg; }
.faq summary:hover span { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.faq summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.faq-antwort { padding: 0 0 14px; }
.faq-antwort p { color: var(--text-soft); }
.faq-zustaende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 12px; padding: 0; list-style: none; }
.faq-zustaende li { display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 700; color: var(--navy); }

/* Kontakt: E-Mail und Telefon als grosse Flaechen (ein Tipp genuegt). */
.kontakt-wege { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 32px; }
.kontakt-weg {
  display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 44px; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  color: var(--navy); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.kontakt-weg:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.kontakt-weg-zeichen {
  display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 50%;
  color: var(--gold-hell); background: var(--navy);
}
.kontakt-weg-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kontakt-weg-text strong { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kontakt-weg-text span { font-size: 16.5px; font-weight: 700; overflow-wrap: anywhere; }
.info-seite address { margin: 0 0 10px; font-style: normal; font-size: 15.5px; line-height: 1.6; color: var(--text); }

/* Hinweis-Kasten in Navy mit goldenem Knopf (FAQ: "nicht dabei?", Kontakt:
   "Karte gesucht?"). */
.info-hinweis { margin: 0 0 30px; padding: 22px 24px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.info-seite .info-hinweis h2 { color: #fff; }
.info-seite .info-hinweis p { color: rgba(255, 255, 255, .8); }
.info-knopf {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; margin-top: 4px;
  border-radius: 8px; font-weight: 700; color: var(--navy); background: var(--gold); text-decoration: none;
  transition: background-color .2s ease;
}
.info-knopf:hover { background: var(--gold-hell); }
.info-knopf:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.info-hinweis .info-knopf:focus-visible { outline-color: #fff; }

/* Weitere Hilfe unten: Links in einer Reihe, rechts der Weg ins Sortiment. */
.info-weiter {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border);
}
.info-weiter ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.info-weiter li a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; }

@media (max-width: 760px) {
  .info-fakten { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 28px; }
  .info-fakt { padding: 12px 14px; align-items: center; }
  .kontakt-wege { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .info-lead { font-size: 16px; }
  .info-seite h2 { font-size: 19px; }
  .info-hinweis { padding: 18px 16px; }
  .info-tabelle div { padding: 12px 14px; }
}

/* TODO-Kasten (SPEC §9): gestrichelter Rahmen, helles Gelb, "TODO" fett.
   Bauer C gestaltet ihn fertig. */
.todo {
  margin: 20px 0; padding: 14px 16px; border: 2px dashed #b08a00; border-radius: 8px;
  background: #fff8d6; color: #4a3b00; font-size: 14px; line-height: 1.5;
}
