/* ============================================================
   quartiero — Anleitungen (gemeinsames Aussehen)

   Seit v1.3.774 an EINER Stelle. Vorher trug jede Anleitung ihr
   eigenes Stylesheet im Dokument — sechs Dateien mit fast gleichem
   Inhalt, und jede Änderung musste sechsmal gemacht werden.

   Neue Anleitung: HTML-Datei anlegen, dieses Stylesheet einbinden,
   Eintrag in anleitungen.json ergänzen. Sonst nichts.
   ============================================================ */

:root { --gruen: #0c5a49; --gold: #c9a961; --cream: #faf6ef; --tinte: #16211d; --grau: #6b7671; --linie: #e2ddd2; --warn: #9a5b1e; --warn-bg: #fdf3e3; --rot: #b03c2d; --rot-bg: #fbeeec; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--tinte); font-family: Poppins, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
header { background: var(--gruen); color: #fff; padding: 48px 20px 44px; }
header .in { max-width: 760px; margin: 0 auto; }
.marke { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
header h1 { font-size: clamp(27px, 5.2vw, 40px); line-height: 1.14; margin: 0 0 14px; font-weight: 600; letter-spacing: -.015em; }
header p { margin: 0; color: #cfe0d9; max-width: 52ch; }
.dauer { display: inline-block; margin-top: 22px; padding: 7px 15px; border: 1px solid rgba(201,169,97,.45); border-radius: 999px; font-size: 13.5px; color: var(--gold); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px 90px; }
.box { background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: 20px 22px; margin: 30px 0; }
.box h2 { font-size: 16.5px; margin: 0 0 10px; font-weight: 600; }
.box ul { margin: 0; padding-left: 20px; color: var(--grau); font-size: 16px; }
.box li { margin-bottom: 6px; }
.schritt { display: grid; grid-template-columns: 42px 1fr; gap: 0 20px; padding-top: 40px; }
.nr { grid-row: 1 / span 99; position: relative; }
.nr span { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gruen); color: #fff; font-family: "IBM Plex Mono", monospace; font-size: 16px; }
.nr::after { content: ""; position: absolute; left: 21px; top: 54px; bottom: -8px; width: 1px; background: var(--linie); }
.schritt:last-of-type .nr::after { display: none; }
.schritt h2 { margin: 7px 0 10px; font-size: 20px; font-weight: 600; }
.schritt p { margin: 0 0 12px; }
ol.klicks { counter-reset:k; list-style:none; margin:0 0 16px; padding:0; }
ol.klicks li { counter-increment:k; position:relative; padding:8px 0 8px 34px; border-bottom:1px dashed var(--linie); font-size:16px; }
ol.klicks li:last-child { border-bottom:none; }
ol.klicks li::before { content:counter(k); position:absolute; left:0; top:9px; width:22px; height:22px; border-radius:50%; background:#d6e5dd; color:var(--gruen); font-size:12.5px; font-weight:600; display:flex; align-items:center; justify-content:center; }
.tipp { display: block; margin-top: 3px; font-size: 14.5px; color: var(--grau); }
code { font-family: "IBM Plex Mono", monospace; font-size: .88em; background: #eef2ef; padding: 2px 6px; border-radius: 5px; color: #08402f; overflow-wrap: anywhere; }
.hinweis { border-left: 3px solid var(--gold); background: #fff; padding: 14px 18px; margin: 16px 0; border-radius: 0 10px 10px 0; font-size: 16px; }
.hinweis strong { color: var(--gruen); }
.hinweis.achtung { border-left-color:var(--warn); background:var(--warn-bg); }
.hinweis.achtung strong { color:var(--warn); }
.hinweis.stopp { border-left-color:var(--rot); background:var(--rot-bg); }
.hinweis.stopp strong { color:var(--rot); }
.hilfe { margin-top: 60px; }
.hilfe h2 { font-size: 23px; margin: 0 0 6px; padding-top: 28px; border-top: 1px solid var(--linie); font-weight: 600; }
.hilfe > p { color: var(--grau); margin: 0 0 20px; }
details { background: #fff; border: 1px solid var(--linie); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 20px; }
details[open] summary::after { content: "–"; }
details[open] summary { border-bottom: 1px solid var(--linie); }
.antwort { padding: 14px 18px 18px; font-size: 16px; }
.antwort p { margin: 0 0 9px; }
.antwort p:last-child { margin-bottom: 0; }
footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--linie); font-size: 14.5px; color: var(--grau); }
footer .logo { color: var(--gruen); font-weight: 600; }
footer .logo em { font-style: normal; color: var(--gold); }
/* v1.3.711: Screenshots in den Anleitungen */
  .bild { margin: 18px 0 4px; }
.bild img { display: block; width: 100%; height: auto; border: 1px solid var(--linie, #e0dbd0); border-radius: 12px; background: #fff; }
.bild figcaption { margin-top: 7px; font-size: 13px; color: var(--muted, #5a6a66); line-height: 1.5; }
.klicks { counter-reset:k; list-style:none; margin:0 0 14px; padding:0; }
.klicks li { counter-increment: k; position: relative; padding: 7px 0 7px 34px; border-bottom: 1px dashed var(--linie); }
.klicks li:last-child { border-bottom: none; }
.klicks li::before { content: counter(k); position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: #eef2ef; color: var(--gruen); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.feldliste { margin:14px 0; }
.feldliste div { padding:9px 0; border-bottom:1px solid var(--linie); font-size:16px; }
.feldliste div:last-child { border-bottom:0; }
pre { background:#fff; border:1px solid var(--linie); border-left:3px solid var(--gold); border-radius:0 10px 10px 0; padding:16px 18px; overflow:auto; font-family:"IBM Plex Mono",monospace; font-size:13.5px; line-height:1.7; white-space:pre-wrap; word-break:break-word; }
figure { margin: 18px 0 6px; }
figure.breit img { max-width:100%; }
figure.breit figcaption { max-width:none; }
figure img { display: block; width: 100%; max-width: 340px; border: 1px solid var(--linie); border-radius: 14px; background: #fff; }
figcaption { margin-top: 8px; font-size: 14.5px; color: var(--grau); max-width: 340px; line-height: 1.5; }
.achtung { border-left-color: var(--warn); background: var(--warn-bg); }
.achtung strong { color: var(--warn); }
/* v1.3.745: Beispiel vorher/nachher und Platzhalter-Listen */
  .beispiel { margin-top: 14px; }
.beispiel__vorher, .beispiel__nachher { padding: 14px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.65; }
.beispiel__vorher { background: #f4f1ea; border: 1px solid var(--linie); }
.beispiel__nachher { background: var(--gruen-hell); border: 1px solid #cfe0da; }
.beispiel__label { display: block; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.beispiel__pfeil { text-align: center; font-size: 20px; color: var(--gold); padding: 6px 0; }
.liste { line-height: 2.2; }
.liste code { margin-right: 4px; }
h3 { font-size: 15px; color: var(--gruen); margin: 20px 0 6px; }
/* v1.3.767: Aufbau-Diagramme */
  .aufbau { margin: 14px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--linie); }
.aufbau--gut { background: var(--gruen-hell); border-color: #cfe0da; }
.aufbau--schlecht { background: #fdecec; border-color: #f0b4b4; }
.aufbau__titel { margin-bottom: 4px; }
.aufbau--gut .aufbau__titel { color: var(--gruen); }
.aufbau--schlecht .aufbau__titel { color: #b03030; }
.aufbau { margin: 16px 0; }
.aufbau svg { width: 100%; height: auto; display: block; }
.box h3 { font-size:16px;margin:22px 0 6px;color:var(--gruen) }
.box h3:first-of-type { margin-top:18px }
/* Klick-Liste: jeder einzelne Handgriff */
  .klicks { counter-reset: k; list-style: none; margin: 0 0 14px; padding: 0; }
.paar { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0 6px; }
.paar figure { margin: 0; flex: 1 1 240px; }
.paar figure img { max-width: 100%; }
.paar figcaption { max-width: none; }
.ja { color: var(--gruen); font-weight: 600; }
.nein { color: var(--rot); font-weight: 600; }
.stopp { border-left-color: var(--rot); background: var(--rot-bg); }
.stopp strong { color: var(--rot); }
/* v1.3.723 — Umschalter iPhone / iPad
     Die Einrichtung ist auf beiden Geräten fast gleich; sie unterscheidet sich
     an wenigen Stellen: Auf dem iPad liegt die Aktionsliste dauerhaft RECHTS,
     auf dem iPhone klappt sie UNTEN auf. Statt zwei getrennter Anleitungen,
     die auseinanderlaufen, steht der gemeinsame Text einmal da — abweichende
     Passagen werden umgeschaltet. */
  .geraetewahl { display: flex; gap: 8px; margin: 0 0 22px; padding: 6px; background: var(--gruen-hell, #eef5f2); border-radius: 999px; width: fit-content; }
.geraetewahl button { border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted, #5a6a66); padding: 8px 20px; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.geraetewahl button[aria-pressed="true"] { background: var(--gruen, #0c5a49); color: #fff; }
body[data-geraet="iphone"] .nur-ipad { display: none; }
body[data-geraet="ipad"] .nur-iphone { display: none; }
/* Inline-Varianten sollen den Textfluss nicht brechen */
  span.nur-iphone, span.nur-ipad { display: inline; }
body[data-geraet="iphone"] span.nur-ipad,
  body[data-geraet="ipad"] span.nur-iphone { display: none; }

@media (max-width:640px) {
  .schritt { grid-template-columns:34px 1fr; gap:0 14px; }
  .nr span { width:34px; height:34px; font-size:14px; }
  .nr::after { left:17px; top:44px; }
}

@media print {
  body { background: #fff; }
  header { background: #fff; color: var(--tinte); border-bottom: 2px solid var(--gruen); }
  header p, .dauer { color:var(--grau); }
  .dauer { border-color:var(--linie); }
  .wrap { padding:0; }
  .schritt, details, .hinweis { break-inside:avoid; }
  details { border:1px solid var(--linie); }
  details .antwort { display:block !important; }
  header p { color: var(--grau); }
  details > .antwort { display: block !important; }
  .schritt, details { break-inside: avoid; }
}

@media (max-width: 700px) {
  .bild { margin: 14px 0 2px; }
}

@media (max-width:560px) {
  body { font-size:16.5px; }
  .schritt { grid-template-columns:34px 1fr; gap:0 14px; }
  .nr span { width:34px; height:34px; font-size:14px; }
  .nr::after { left:17px; top:44px; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .schritt { grid-template-columns: 34px 1fr; gap: 0 14px; }
  .nr span { width: 34px; height: 34px; font-size: 14px; }
  .nr::after { left: 17px; top: 44px; }
  .paar { flex-direction: column; }
}

/* ============================================================
   Übersichtsseite (/hilfe/) — Suche und Kartenliste
   ============================================================ */
.uebersicht-suche { margin-top: 22px; max-width: 560px; }
/* Das Suchfeld steht im dunkelgrünen Kopfbereich — helle Schrift auf
   durchscheinendem Grund, sonst wäre es dort ein weißer Klotz. */
.uebersicht-suche input {
  width: 100%; box-sizing: border-box;
  padding: 14px 18px;
  font-family: inherit; font-size: 15.5px; color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 4px;
  transition: border-color .18s ease, background .18s ease;
}
.uebersicht-suche input::placeholder { color: rgba(255, 255, 255, .5); }
.uebersicht-suche input:focus {
  outline: none; border-color: var(--gold);
  background: rgba(255, 255, 255, .16);
}
.uebersicht-thema { margin-bottom: 34px; }
.uebersicht-thema h2 {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--linie);
}
.uebersicht-liste { display: grid; gap: 12px; }
.uebersicht-karte {
  display: block; text-decoration: none; background: #fff;
  border: 1px solid var(--linie); border-radius: 4px;
  padding: 20px 22px; transition: border-color .18s ease;
}
.uebersicht-karte:hover { border-color: var(--gruen); }
.uebersicht-karte-dauer {
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 6px;
}
.uebersicht-karte h3 {
  margin: 0 0 7px; font-size: 18px; font-weight: 600;
  color: var(--tinte); line-height: 1.3;
}
.uebersicht-karte p {
  margin: 0 0 12px; font-size: 14.5px; line-height: 1.65; color: var(--grau);
}
.uebersicht-karte-mehr { font-size: 13px; font-weight: 600; color: var(--gruen); }
.uebersicht-karte mark {
  background: rgba(201, 169, 97, .3); color: inherit;
  padding: 0 3px; border-radius: 2px;
}
.uebersicht-treffer { margin-bottom: 26px; }

@media (min-width: 720px) {
  .uebersicht-liste { grid-template-columns: 1fr 1fr; }
}
