:root { --tinte: #1f1d1a; --papier: #faf8f3; --rand: #d9d2c5; --akzent: #8b2e2e; --akzent-hell: #f3e3e3; --grau: #6b665e; --gruen: #2f6b3a; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--tinte); background: var(--papier); }
header { border-bottom: 1px solid var(--rand); background: #fff; }
header .innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.innen { max-width: 960px; margin: 0 auto; padding: 12px 16px; }
main.innen { padding-top: 24px; padding-bottom: 48px; }
nav a, nav button { margin-left: 14px; color: var(--tinte); text-decoration: none; font-weight: 500; background: none; border: 0; font: inherit; cursor: pointer; }
nav a:hover { text-decoration: underline; }
nav form { display: inline; }
.marke { font-family: Georgia, "Times New Roman", serif; font-size: 22px; text-decoration: none; color: var(--akzent); display: inline-flex; align-items: center; gap: 10px; }
.marke img { height: 40px; width: auto; }
.held { display: flex; gap: 28px; align-items: flex-start; }
.held .logo-gross { width: 104px; height: auto; flex: none; margin: 0 23px; }
@media (max-width: 640px) { .held { flex-direction: column; } .held .logo-gross { width: 70px; margin: 0; } }
h1 { font-family: Georgia, serif; font-weight: normal; font-size: 32px; margin: 0 0 12px; }
h2 { font-family: Georgia, serif; font-weight: normal; font-size: 22px; margin: 28px 0 8px; }
h3 { font-size: 16px; margin: 18px 0 6px; }
p.lead { font-size: 18px; color: var(--grau); }
.meldung { padding: 10px 14px; border-radius: 6px; margin: 0 0 16px; background: #e6efe8; border: 1px solid #b9d3bf; overflow-wrap: anywhere; }
.meldung.fehler { background: var(--akzent-hell); border-color: #d9a8a8; }
.karte { background: #fff; border: 1px solid var(--rand); border-radius: 8px; padding: 16px 18px; margin: 12px 0; }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
table { border-collapse: collapse; width: 100%; margin: 8px 0 16px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rand); vertical-align: top; font-size: 15px; }
th { color: var(--grau); font-weight: 600; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
td.vorformatiert { white-space: pre-wrap; }
form.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
form.formular .breit { grid-column: 1 / -1; }
form.schmal { max-width: 520px; }
form.inline { display: inline; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
label small { font-weight: normal; color: var(--grau); }
label.wahl { font-weight: normal; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--rand); border-radius: 6px; font: inherit; background: #fff; }
textarea { min-height: 80px; }
.knopf { display: inline-block; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--akzent); background: var(--akzent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.knopf.leise { background: #fff; color: var(--akzent); }
.knopf.klein { padding: 5px 10px; font-size: 14px; }
.preis { font-family: Georgia, serif; font-size: 30px; }
.preisbox { background: #fff; border: 2px solid var(--akzent); border-radius: 8px; padding: 14px 18px; }
/* Farbakzente für Schritte und Stufen */
:root { --rot: #8b2e2e; --rot-hell: #f6e6e4; --gold: #a6761d; --gold-hell: #f7eedc; --gruen-akz: #2f6b3a; --gruen-hell: #e3efe4; }
.rot { --akz: var(--rot); --akz-hell: var(--rot-hell); }
.gold { --akz: var(--gold); --akz-hell: var(--gold-hell); }
.gruen { --akz: var(--gruen-akz); --akz-hell: var(--gruen-hell); }
h2.mitte { text-align: center; margin-top: 36px; }
ol.schritte { list-style: none; margin: 8px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
/* Verbindung zwischen den Schritten: dicke gestrichelte Linie in der Farbe des Schritts, die langsam nach rechts
   läuft. Sie liegt in der Lücke zwischen zwei Karten, auf Höhe der Symbole. */
.schritt:not(:last-child)::after { content: ""; position: absolute; left: calc(100% + 4px); top: 50px; width: 32px; height: 5px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--akz) 0 9px, transparent 9px 17px); background-size: 17px 100%;
  animation: schritt-lauf 1.8s linear infinite; }
@keyframes schritt-lauf { to { background-position: 17px 0; } }
@media (prefers-reduced-motion: reduce) { .schritt:not(:last-child)::after { animation: none; } }
.schritt { position: relative; background: #fff; border: 1px solid var(--rand); border-top: 4px solid var(--akz); border-radius: 10px; padding: 22px 20px 20px; box-shadow: 0 1px 2px rgba(31, 29, 26, 0.04); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.schritt:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(31, 29, 26, 0.10); }
.schritt .nr { position: absolute; top: 10px; right: 14px; font-family: Georgia, serif; font-size: 48px; line-height: 1; color: var(--akz-hell); font-weight: bold; }
.schritt .ikon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--akz-hell); color: var(--akz); margin-bottom: 10px; position: relative; z-index: 1; }
.schritt h3 { font-family: Georgia, serif; font-weight: normal; font-size: 20px; margin: 4px 0 8px; color: var(--akz); }
.schritt p { margin: 0 0 12px; font-size: 15px; }
.schritt ul, .stufe ul { margin: 0 0 12px; padding-left: 0; list-style: none; }
.schritt li, .stufe li { padding: 3px 0 3px 22px; position: relative; font-size: 15px; }
.schritt li::before, .stufe li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--akz); }
p.mitte { text-align: center; }
table.preise { max-width: 520px; margin: 8px auto 6px; }
.knoepfe { margin-top: 14px; }
.tinte { --akz: var(--tinte); --akz-hell: #e9e5dc; }
ul.gruende { list-style: none; margin: 26px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
ul.gruende li { background: #fff; border: 1px solid var(--rand); border-radius: 10px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 4px; }
ul.gruende .ikon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--akz-hell); color: var(--akz); margin-bottom: 6px; }
ul.gruende strong { font-family: Georgia, serif; font-weight: normal; font-size: 17px; color: var(--akz); }
ul.gruende span:last-child { font-size: 14px; color: var(--grau); }
.autoren { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--akz-hell); border: 1px solid var(--rand); border-left: 6px solid var(--akz); border-radius: 10px; padding: 18px 22px; margin: 30px 0 10px; }
.autoren h2 { margin: 0 0 6px; color: var(--akz); font-size: 22px; }
.autoren p { margin: 0; }
.autoren-preis { text-align: center; flex: none; }
.autoren-preis .preis { display: block; color: var(--akz); margin-bottom: 8px; }
.seiten { display: flex; justify-content: center; gap: 18px; margin: 8px 0 4px; }
.seiten img { width: 300px; max-width: 45%; height: auto; border: 1px solid var(--rand); border-radius: 4px; box-shadow: 0 6px 18px rgba(31, 29, 26, 0.12); background: #fff; }
@media (max-width: 760px) { ul.gruende { grid-template-columns: 1fr 1fr; } .autoren { flex-direction: column; align-items: flex-start; } }
@media (max-width: 520px) { ul.gruende { grid-template-columns: 1fr; } }
.chip { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 13px; background: var(--akz-hell); color: var(--akz); font-weight: 600; }
.stufen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stufe { border: 1px solid var(--rand); border-left: 5px solid var(--akz, var(--akzent)); border-radius: 10px; padding: 14px 16px; background: #fff; }
.stufe h3 { color: var(--akz, var(--akzent)); font-family: Georgia, serif; font-weight: normal; font-size: 19px; margin: 2px 0 6px; }
.stufe input { margin-right: 6px; }
.status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 13px; background: #eee; }
.status.laeuft, .status.bereit { background: #fff3cd; }
.status.fertig { background: #d8ecd8; }
.status.fehler { background: var(--akzent-hell); }
.status.wartet_auswahl { background: #dbe8f7; }
ol.etappen { padding-left: 20px; }
ol.etappen li { padding: 2px 0; color: var(--grau); }
ol.etappen li.erledigt { color: var(--gruen); }
ol.etappen li.aktiv { color: var(--tinte); font-weight: 600; }
.stueck { font-family: Georgia, serif; }
/* Karten einer Reihe gleich hoch, der Knopf steht immer unten */
.karten > .karte.stueck { display: flex; flex-direction: column; margin: 0; }
.karten > .karte.stueck > p:last-child { margin-top: auto; padding-top: 8px; margin-bottom: 0; }
.werkstatt { border-color: var(--akzent); }
.werkstatt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.phase { font-family: Georgia, serif; font-size: 22px; }
.balken { height: 10px; background: #eee6d8; border-radius: 5px; margin: 10px 0 14px; overflow: hidden; }
.balken-fuellung { height: 100%; width: 2%; background: var(--akzent); border-radius: 5px; transition: width 1.2s ease; }
.meldung-werkstatt { font-size: 18px; margin: 6px 0 10px; min-height: 2.6em; transition: opacity 0.35s ease; }
.meldung-werkstatt.wechsel { opacity: 0; }
.klein { font-size: 14px; color: var(--grau); }
.vorformatiert { white-space: pre-wrap; }
footer { border-top: 1px solid var(--rand); color: var(--grau); font-size: 14px; }
@media (max-width: 760px) { ol.schritte { grid-template-columns: 1fr; gap: 18px; } .schritt::after { display: none !important; } }
@media (max-width: 640px) { form.formular, .stufen { grid-template-columns: 1fr; } h1 { font-size: 26px; } }

/* Leseprobe zum Blättern: Doppelseite wie im aufgeschlagenen Heft, auf schmalen Bildschirmen Einzelseite; kein Download */
body.breit main.innen { max-width: 1400px; }
.lp-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.lp-kopf h1 { margin: 0; }
.lp-kopf p { margin: 4px 0 0; }
.lp-vollbild { padding: 4px 0 8px; }
.lp-buch { --h: min(calc(100vh - 225px), calc((min(100vw, 1400px) - 190px) / 2 * 1.4189)); display: flex; align-items: center;
  justify-content: center; gap: 12px; min-height: 340px; }
.lp-buch.einzel { --h: min(calc(100vh - 225px), calc((100vw - 120px) * 1.4189)); }
.lp-aufschlag { display: flex; }
.lp-blatt { position: relative; height: var(--h); aspect-ratio: 148 / 210; background: #fff no-repeat center / contain;
  box-shadow: 0 3px 16px rgba(31, 29, 26, 0.22); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.lp-blatt.leer { background: transparent; box-shadow: none; cursor: default; }
.lp-blatt.links::after, .lp-blatt.rechts::after { content: ""; position: absolute; top: 0; bottom: 0; width: 7%; pointer-events: none; }
.lp-blatt.links::after { right: 0; background: linear-gradient(to left, rgba(31, 29, 26, 0.16), transparent); }
.lp-blatt.rechts::after { left: 0; background: linear-gradient(to right, rgba(31, 29, 26, 0.16), transparent); }
.lp-blatt:not(.fertig):not(.leer) { background-color: #f0ece3; }
.lp-pfeil { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rand); background: #fff; color: var(--akzent);
  font-size: 30px; line-height: 1; cursor: pointer; padding: 0 0 4px; box-shadow: 0 1px 4px rgba(31, 29, 26, 0.12); }
.lp-pfeil:hover:not(:disabled) { background: var(--akzent); color: #fff; }
.lp-pfeil:disabled { opacity: 0.3; cursor: default; }
.lp-fuss { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 12px; }
.lp-zaehler { font-size: 14px; color: var(--grau); }
.wechsel-vor { animation: lp-vor 0.28s ease; }
.wechsel-zurueck { animation: lp-zurueck 0.28s ease; }
@keyframes lp-vor { from { opacity: 0.2; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes lp-zurueck { from { opacity: 0.2; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wechsel-vor, .wechsel-zurueck { animation: none; } }
@media (max-width: 899px) { .lp-pfeil { width: 36px; height: 36px; font-size: 24px; } .lp-buch { gap: 6px; } }
.lp-vollbild:fullscreen { display: flex; flex-direction: column; justify-content: center; background: #1f1d1a; padding: 8px; }
.lp-vollbild:fullscreen .lp-buch { --h: min(calc(100vh - 90px), calc((100vw - 190px) / 2 * 1.4189)); }
.lp-vollbild:fullscreen .lp-buch.einzel { --h: min(calc(100vh - 90px), calc((100vw - 120px) * 1.4189)); }
.lp-vollbild:fullscreen .lp-zaehler { color: #ddd; }
@media print { .lp-vollbild { display: none; } main.innen::after { content: "Die Leseprobe kann nicht gedruckt werden."; } }
.hinweis-dauer { background: var(--gold-hell); border: 1px solid var(--rand); border-left: 6px solid var(--gold); border-radius: 10px; padding: 14px 18px; margin: 14px 0; }
.hinweis-dauer p { margin: 6px 0; }
.hinweis-dauer ul { margin: 6px 0; padding-left: 20px; }
.autoren.funke { margin-top: 26px; }
.autoren-preis .chip { display: block; margin: 0 auto 10px; width: fit-content; }
.stufe .chip { margin-top: 4px; }
.preise td.dauer { white-space: nowrap; color: var(--grau); }
.genre-text { margin: 6px 0 0; }
#preis_fehler { color: var(--akzent); font-weight: 600; }
/* Handy: Knöpfe, die umbrechen, stossen nicht aneinander; Navigation als klar getrennte, fingergrosse Knöpfe */
.knopf { margin-block: 4px; vertical-align: middle; }
@media (max-width: 640px) {
  header .innen { gap: 8px; }
  nav { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; padding-bottom: 4px; }
  nav a, nav button { margin-left: 0; padding: 8px 14px; border: 1px solid var(--rand); border-radius: 20px; background: var(--papier); font-size: 15px; line-height: 1.3; }
  nav form { display: block; margin-left: auto; }
  nav form button { color: var(--grau); background: #fff; }
  .knopf:not(.klein) { padding: 11px 18px; }
  body.betreiber main table { display: block; overflow-x: auto; }
}
.erwartung { max-width: 720px; margin: 24px auto; }

/* Desktop: Kopf bleibt beim Scrollen oben. Auf der Startseite steht oben kein Logo im Kopf; beim Scrollen wandert
   das grosse Logo in den Kopf (app.js setzt --p von 0 bis 1 und führt das fliegende Logo). */
@media (min-width: 900px) {
  header { position: sticky; top: 0; z-index: 50; }
  body.morph .marke img { width: calc(var(--p, 0) * var(--kopf-b, 24px)); opacity: 0; }
  body.morph .marke { gap: calc(var(--p, 0) * 10px); }
  body.morph.angekommen .marke img { opacity: 1; }
  #logo-flug { position: fixed; z-index: 60; pointer-events: none; display: none; }
}
.karte-bild { display: block; margin: -16px -18px 12px; }
.karte-bild img { display: block; width: 100%; aspect-ratio: 210 / 230; object-fit: cover; object-position: top; border-radius: 8px 8px 0 0; }
/* Bedingungen und Datenschutz: klein, Blocksatz, mit Silbentrennung */
.rechtstext { font-size: 11.5px; line-height: 1.45; text-align: justify; hyphens: auto; -webkit-hyphens: auto; color: #3a3833; }
.rechtstext h1 { font-size: 20px; text-align: left; }
.rechtstext h2 { font-size: 12.5px; font-family: inherit; font-weight: 700; margin: 14px 0 4px; text-align: left; }
.rechtstext p, .rechtstext li { margin: 0 0 6px; }
.rechtstext ul { padding-left: 18px; margin: 0 0 6px; }
