/* Malmärli – Grundlagen */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --bg: #fff8ee; --fg: #2b2a33; --accent: #1f6f63; --accent-fg: #ffffff;
  --cta: #c7402f; --cta-fg: #ffffff;
  --muted: #5d5a55; --line: #ece2d2; --card: #ffffff; --soft: #e6f3ee; --error: #b3261e;
  --sun: #ffc94d; --sun-soft: #fff0c7; --sky: #a8d8ea; --sky-soft: #e4f3f9; --peach-soft: #ffe6dc;
  --ink: #2b2a33;
  --radius: 18px;
  --shadow: 0 2px 0 rgba(43,42,51,.06), 0 10px 30px -12px rgba(43,42,51,.18);
  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a20; --fg: #efece6; --accent: #8fd1c1; --accent-fg: #10201b;
    --cta: #ff8a73; --cta-fg: #2a0f0a;
    --muted: #b0aca4; --line: #3a3842; --card: #25242b; --soft: #1f2e2a; --error: #f2b8b5;
    --sun-soft: #3a3220; --sky-soft: #1d2a31; --peach-soft: #36241f;
    --shadow: 0 10px 30px -12px rgba(0,0,0,.6);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 42rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
main.home { max-width: none; padding: 0; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); }
h1, h2, h3, legend, .logo, .amount { font-family: var(--font-head); }
h1, h2, h3 { line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); margin: 0 0 1rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 1.5rem; }
h3 { font-size: 1.2rem; }
img { max-width: 100%; }

/* Kopf */
header.site { max-width: 64rem; margin: 0 auto; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.6rem; font-weight: 600; text-decoration: none; color: var(--fg); letter-spacing: -.01em; }
.logo img { width: 2.6rem; height: 2.6rem; }
.logo .a { color: var(--cta); }

/* Fuss */
footer { border-top: 2px dashed var(--line); margin-top: 2rem; }
footer .wrap { padding-top: 1.5rem; padding-bottom: 3rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: .92rem; color: var(--muted); }
footer .logo { font-size: 1.2rem; }
footer .logo img { width: 1.8rem; height: 1.8rem; }
footer p { margin: 0; }

/* Knöpfe */
.btn { display: inline-block; background: var(--cta); color: var(--cta-fg); border: 0; border-radius: 999px;
  padding: .85rem 1.6rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--cta) 60%, #000); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 color-mix(in srgb, var(--cta) 60%, #000); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--cta) 60%, #000); }
.btn.secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.small { padding: .55rem 1.1rem; font-size: .95rem; box-shadow: 0 3px 0 color-mix(in srgb, var(--cta) 60%, #000); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Startbereich */
.hero-band { position: relative; overflow: hidden; padding: 1.5rem 0 3.5rem; }
.hero-band::before, .hero-band::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.hero-band::before { width: 34rem; height: 34rem; right: -10rem; top: -6rem; background: var(--sun-soft); }
.hero-band::after { width: 18rem; height: 18rem; left: -7rem; bottom: -6rem; background: var(--sky-soft); }
.hero-band { isolation: isolate; }
.hero { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.05fr 1fr; } }
.hero .eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 500; color: var(--accent); background: var(--soft);
  padding: .3rem .9rem; border-radius: 999px; margin: 0 0 1rem; font-size: .95rem; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.5rem 0 1rem; }
.hero .hint { font-size: .92rem; }
.scribble { background: url("img/unterstrich.svg") no-repeat left bottom / 100% .5em; padding-bottom: .12em; white-space: nowrap; }
.hero .art { position: relative; background: var(--card); border-radius: var(--radius); padding: .6rem; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero .art::before { content: ""; position: absolute; top: -.8rem; left: 50%; width: 6rem; height: 1.6rem; transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, var(--sun) 70%, transparent); border-radius: 3px; z-index: 2; }
.hero .art.photo { margin: 0; }
.hero .art.photo .track { border-radius: calc(var(--radius) - 6px); }
.hero .art.photo img { display: block; width: 100%; height: auto; aspect-ratio: 1184 / 880; object-fit: cover; } /* fixed ratio: the 1 px placeholder of slides 2 and 3 must not make the track taller */
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 1.25rem 0 0; color: var(--muted); font-size: .95rem; }
.trust li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: .4rem; }

/* Bänder */
.band { padding: 3.5rem 0; }
.band.tint { background: var(--card); }
.band .intro { max-width: 40rem; color: var(--muted); margin: -1rem 0 2rem; }

/* Schritte */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; background: var(--bg); border-radius: var(--radius); padding: 1.4rem 1.25rem 1.25rem; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-bottom: .75rem; border: 2px solid var(--ink); }
.steps li:nth-child(1)::before { background: var(--sun); }
.steps li:nth-child(2)::before { background: var(--sky); }
.steps li:nth-child(3)::before { background: #ffb4a2; }
.steps li:nth-child(4)::before { background: #b5e3c9; }
.steps strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: .3rem; }
.steps span { color: var(--muted); }

/* Für wen */
.occasions { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.occasions li { background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font-weight: 500; }

/* Preise */
.prices { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.price h3 { margin: 0 0 .5rem; }
.price .amount { font-size: 2rem; font-weight: 600; color: var(--fg); margin-bottom: .5rem; }
.price .amount small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price p { color: var(--muted); margin: 0; }
.price.featured { border-color: var(--cta); background: var(--peach-soft); }
.price .badge { position: absolute; top: -.85rem; left: 1.4rem; background: var(--cta); color: var(--cta-fg); font-family: var(--font-head); font-weight: 600;
  font-size: .85rem; padding: .2rem .8rem; border-radius: 999px; }
.price.closed { border-color: var(--line); border-style: dashed; background: var(--bg); }
.price.closed .badge { background: var(--accent); color: var(--accent-fg); }
.price.closed h3, .price.closed .amount { color: var(--muted); }
.center { text-align: center; margin-top: 2rem; }

/* Abo (bald erhältlich) */
.abo { position: relative; margin-top: 3rem; border: 2px dashed var(--accent); border-radius: var(--radius); background: var(--sky-soft); padding: 1.75rem 1.4rem 1.4rem; }
.abo .soon { position: absolute; top: -.85rem; left: 1.4rem; background: var(--accent); color: var(--accent-fg); font-family: var(--font-head); font-weight: 600;
  font-size: .85rem; padding: .2rem .8rem; border-radius: 999px; }
.abo h3 { margin: 0 0 .5rem; }
.abo > p { color: var(--muted); margin: 0; max-width: 46rem; }
.abo-options { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 1.25rem 0 1rem; }
.abo-options > div { display: flex; flex-direction: column; gap: .2rem; background: var(--bg); border-radius: 14px; padding: 1rem 1.1rem; }
.abo-options strong { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.abo-options .amount { font-size: 1.5rem; font-weight: 600; }
.abo-options .amount small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.abo-options span:last-child { color: var(--muted); font-size: .95rem; }
.abo .abo-note { font-size: .92rem; }

/* Datenschutz-Versprechen */
.promises { display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.promises li { position: relative; padding-left: 2.6rem; }
.promises li::before { content: "✓"; position: absolute; left: 0; top: .1rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--soft); color: var(--accent); font-weight: 700; }
.promises strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.promises span { color: var(--muted); }
.band .more { margin: 1.75rem 0 0; }
.trust a { color: inherit; }

/* Fragen */
.faq > * { max-width: 46rem; }
details { background: var(--card); border-radius: 14px; padding: 0 1.25rem; margin-bottom: .75rem; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 600; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-head); font-size: 1.4rem; line-height: 1; color: var(--cta); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 1rem; color: var(--muted); }

/* Schlussaufruf */
.cta-box { background: var(--accent); color: var(--accent-fg); border-radius: 28px; padding: 2.5rem 1.5rem; text-align: center; }
.cta-box h2 { margin-bottom: .5rem; }
.cta-box p { margin: 0 0 1.5rem; opacity: .9; }

/* Formular */
.progress { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 2rem; font-size: .9rem; }
.progress li { flex: 1; border-top: 4px solid var(--line); padding-top: .4rem; color: var(--muted); }
.progress li.active, .progress li.done { border-color: var(--accent); color: var(--fg); }
.progress li.active { font-weight: 600; }

fieldset { border: 0; padding: 0; margin: 0; }
fieldset[hidden] { display: none; }
legend { font-size: 1.5rem; font-weight: 700; margin-bottom: .25rem; padding: 0; }
.hint { color: var(--muted); font-size: .92rem; margin: .25rem 0 0; }

.field { margin: 1.25rem 0; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: .65rem .8rem; }
textarea { min-height: 5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row.two { grid-template-columns: 1fr 1fr; } .row.three { grid-template-columns: 2fr 1fr 2fr; } }

.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0; }
.box h3 { margin: 0; font-size: 1.15rem; }
.toggle { display: flex; gap: .6rem; align-items: center; font-weight: 600; cursor: pointer; }
.toggle input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; user-select: none; }
.chips input:checked + span { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.chips input:disabled + span { opacity: .45; cursor: not-allowed; }

.options { display: grid; gap: .75rem; }
.option { display: flex; gap: .8rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.option input { margin-top: .3rem; accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
.option strong { display: block; }
.option.closed { cursor: default; border-style: dashed; color: var(--muted); }
.option.closed .amount { color: var(--muted); }
.soon-tag { display: inline-block; font-style: normal; font-size: .8rem; font-weight: 600; background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 0 .6rem; margin-left: .2rem; }
.option .amount { margin-left: auto; font-weight: 700; color: var(--accent); white-space: nowrap; }

.field > label.check { font-weight: 400; margin-bottom: 0; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: .75rem 0; }
.check input { margin-top: .35rem; accent-color: var(--accent); width: 1.1rem; height: 1.1rem; flex: none; }

.upload { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; background: var(--bg); }
.upload.dragover { border-color: var(--accent); background: var(--soft); }
.upload input[type=file] { display: block; margin: .5rem auto 0; max-width: 100%; }
.upload .preview { display: flex; align-items: center; gap: .75rem; justify-content: center; margin-top: .75rem; }
.upload .preview img { width: 6rem; height: 6rem; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

.error { color: var(--error); font-size: .92rem; margin: .35rem 0 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.form-error { background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error); border-radius: 10px; padding: .75rem 1rem; }

.nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.nav .spacer { flex: 1; }

.summary dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.notice { background: var(--soft); border-radius: var(--radius); padding: 1rem 1.25rem; }

/* Figuren */
@media (min-width: 560px) { .row.three-eq { grid-template-columns: 1fr 1fr 1fr; } }
.check.tight { margin: .2rem 0; }
.chips.count span { min-width: 2.8rem; text-align: center; font-weight: 600; }
.figure h3 { margin-bottom: .25rem; }
.add-row { display: flex; gap: .5rem; align-items: center; }
.add-row input { flex: 1; min-width: 0; }
.chips label.custom span::after { content: " ×"; }

/* Karussell im Startbereich */
.carousel { position: relative; }
.carousel .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .track:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.carousel .slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.carousel .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85); color: #1d1d1b; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.carousel .nav:hover { background: #fff; }
.carousel .nav:focus-visible { outline: 3px solid var(--accent); }
.carousel .prev { left: .6rem; }
.carousel .next { right: .6rem; }
.carousel .dots { position: absolute; left: 0; right: 0; bottom: .2rem; display: flex; justify-content: center; gap: 0; }
/* tap area 24 x 24 px, the visible dot is the pseudo-element */
.carousel .dots button { position: relative; width: 1.5rem; height: 1.5rem; min-width: 24px; min-height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.carousel .dots button::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: .75rem; height: .75rem; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.25); }
.carousel .dots button[aria-current="true"]::before { background: #fff; }
.carousel .dots button:focus-visible { outline: 3px solid var(--accent); border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .carousel .track { scroll-behavior: auto; } }

.cta-box .btn { background: var(--sun); color: #2b2a33; box-shadow: 0 4px 0 #c99a1e; }
header.site .btn { white-space: nowrap; }
@media (max-width: 420px) { .logo { font-size: 1.3rem; } .logo img { width: 2.1rem; height: 2.1rem; } }
@media (prefers-color-scheme: dark) { .logo img { background: #fff8ee; border-radius: 10px; padding: 2px; } }

/* Beispielbuch */
.books { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.books li { margin: 0; }
.books .cover img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); transition: transform .2s; }
.books li:nth-child(odd) .cover img { transform: rotate(-1.5deg); }
.books li:nth-child(even) .cover img { transform: rotate(1.5deg); }
.books .cover:hover img, .books .cover:focus-visible img { transform: rotate(0) scale(1.02); }
.books .tags { font-size: .85rem; color: var(--accent); font-weight: 600; margin: 1.1rem 0 .3rem; }
.books h3 { margin: 0 0 .4rem; font-size: 1.3rem; }
.books h3 a { color: inherit; text-decoration: none; }
.books p { margin: 0 0 .6rem; color: var(--muted); line-height: 1.45; }
.books .links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .books .cover img { transition: none; } }
.sample { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .sample { grid-template-columns: 1.2fr 1fr; } }
.sample-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.sample-pages li { margin: 0; }
.sample-pages img, .book-cover img, .story img { display: block; width: 100%; height: auto; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.sample-pages li:nth-child(1) { transform: rotate(-2deg); }
.sample-pages li:nth-child(3) { transform: rotate(2deg); }
.sample-pages p { font-size: .88rem; color: var(--muted); margin: .6rem 0 0; line-height: 1.4; }
.sample .actions, .book-intro .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.sample .actions .hint, .book-intro .hint { margin: 0; }
.book-intro { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 720px) { .book-intro { grid-template-columns: 18rem 1fr; } }
.book-cover { margin: 0; max-width: 18rem; transform: rotate(-1.5deg); }
.book-intro .eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 500; color: var(--accent); background: var(--soft);
  padding: .3rem .9rem; border-radius: 999px; margin: 0 0 1rem; font-size: .95rem; }
.book-intro h1 .name { color: var(--cta); }
.book-intro .lead { font-size: 1.1rem; color: var(--muted); }
.story { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.story p { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.4; margin: .9rem 0 0; display: flex; gap: .6rem; }
.story .num { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: .95rem; font-weight: 600; }
.chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 3rem; }
.chapters li { display: grid; gap: 1.2rem 2.2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .chapters li { grid-template-columns: 16rem 1fr; } .chapters li:nth-child(even) { grid-template-columns: 1fr 16rem; } .chapters li:nth-child(even) img { order: 2; } }
.chapters img { display: block; width: 100%; max-width: 20rem; height: auto; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.chapters .day { display: inline-block; font-family: var(--font-head); font-weight: 600; background: var(--sun); color: var(--ink); border-radius: 999px; padding: .15rem .8rem; margin: 0 0 .4rem; font-size: .9rem; }
.chapters h3 { margin: 0 0 .7rem; font-size: 1.45rem; }
.chapters p { line-height: 1.6; margin: 0 0 .7rem; max-width: 40rem; }
.chapters .mal { background: var(--sun-soft); border-radius: 12px; padding: .7rem 1rem; margin-top: 1rem; }
.chapters .mal strong { color: var(--cta); }
.chapters .pic-todo { display: grid; place-items: center; width: 100%; max-width: 20rem; aspect-ratio: 3 / 4; border: 3px dashed #c9c2b6; border-radius: 12px; color: #8a8378; font-family: var(--font-head); background: #fff; }
@media (min-width: 760px) { .chapters li:nth-child(even) .pic-todo { order: 2; } }

/* Spam-Falle im Bestellformular */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Bestellseite (auftrag.html) */
.facts { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: .75rem 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.testnote { background: var(--sun-soft); border-radius: 10px; padding: .6rem .8rem; font-size: .95rem; }
.variants { border: 0; padding: 0; margin: 1.25rem 0; }
.variants legend { font-weight: 600; margin-bottom: .5rem; }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .75rem; }
.variant { position: relative; display: block; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; text-align: center; }
.variant input { position: absolute; opacity: 0; inset: 0; }
.variant img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; }
.variant span { display: block; padding: .3rem; font-size: .9rem; color: #2b2a33; }
.variant:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.variant:has(input:checked) span { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.variant:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); }
#figform .variants { border-top: 1px solid var(--line); padding-top: 1rem; }
.fig-choice { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: .6rem; }
.fig-choice .check { margin: .4rem 0; }
.fig-done .variant-grid { max-width: 10rem; }
#figform figure.variant { margin: 0; cursor: default; }
#figform figure.variant figcaption { padding: .3rem; font-size: .9rem; background: #bfe8c4; font-weight: 600; }
.badge-ok { display: inline-block; background: #bfe8c4; border-radius: 999px; padding: 0 .55rem; font-size: .85rem; font-weight: 600; margin-left: .3rem; }
.change summary, #refund summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.demo { border: 2px dashed var(--sun); background: var(--sun-soft); }
.demo .mail { margin: .4rem 0; }
.demo .mail summary { cursor: pointer; }
.demo .mail summary span { color: var(--muted); font-size: .85rem; }
.demo pre { white-space: pre-wrap; font: .9rem/1.45 system-ui, sans-serif; background: var(--card); border-radius: 10px; padding: .75rem; }

/* Order page: preview of the generated book */
.preview { display: grid; grid-template-columns: minmax(0, 14rem) 1fr; gap: 1.25rem; align-items: start; margin: .75rem 0 1rem; }
.preview figure, .preview-page { margin: 0; }
.preview img, .preview-page img { display: block; width: 100%; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.preview figcaption, .preview-page figcaption { font-size: .85rem; color: var(--muted); margin-top: .3rem; text-align: center; }
.preview h4, .preview-chapter h4 { margin: .2rem 0 .5rem; }
.preview .chapters { display: block; margin: 0; padding-left: 1.4rem; line-height: 1.5; list-style: decimal; }
.preview .chapters li { display: list-item; gap: 0; }
.preview-dedication { margin: .5rem 0 0; font-style: italic; }
.preview-chapter { border-top: 2px dashed var(--line); padding-top: .9rem; margin-top: .9rem; }
.preview-chapter p { line-height: 1.6; }
.preview-page { max-width: 22rem; margin: .5rem auto 0; }
@media (max-width: 560px) { .preview { grid-template-columns: 1fr; } .preview figure { max-width: 16rem; margin: 0 auto; } }

/* Check page for Alexis (pruefen.html) */
.pruefen h2 { margin-top: 0; }
.pruefen .fig { border-top: 2px dashed var(--line); padding-top: .8rem; margin-top: .8rem; }
.pruefen .fig:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.pruefen figure.variant { margin: 0; cursor: default; }
.pruefen figure.variant figcaption { padding: .3rem; font-size: .9rem; }
.pruefen figure.chosen { border-color: var(--accent); }
.pruefen .book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .6rem; margin: .8rem 0; }
.pruefen .page-thumb { margin: 0; }
.pruefen .page-thumb img, .pruefen .variant img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; border-radius: 10px; }
.pruefen .page-thumb figcaption { font-size: .8rem; color: var(--muted); text-align: center; }
.pruefen .todo-img { aspect-ratio: 3 / 4; display: grid; place-items: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 10px; font-size: .85rem; }
.pruefen .story-short { background: #fff8e1; border-radius: 10px; padding: .6rem .9rem; margin: .8rem 0; }
.pruefen .story-short h3 { margin: 0 0 .3rem; }
.pruefen .story-short ol { margin: .4rem 0 0; padding-left: 1.4rem; }
.pruefen .story-short li { margin: .15rem 0; }
.pruefen .chapter-text { border-top: 1px solid var(--line); padding: .4rem 0; }
.pruefen .chapter-text summary { cursor: pointer; font-weight: 600; }
.pruefen .actions { border-top: 2px solid var(--line); margin-top: 1rem; padding-top: .8rem; }
.pruefen .badge { display: inline-block; background: #ffc94d; border-radius: 999px; padding: 0 .5rem; font-size: .85rem; margin-left: .3rem; }
.pruefen .badge.ok { background: #bfe8c4; }
.pruefen .badge.warn { background: #ffd0c4; margin-left: 0; border-radius: .6rem; white-space: normal; }
.pruefen .fig-decision { margin-top: .6rem; }
.pruefen .fig-decision p { margin: .3rem 0; }
.pruefen .fig.decided-ok .variant-grid { opacity: .75; }
.pruefen .btn.small { padding: .3rem .8rem; font-size: .9rem; }
.pruefen .btn[disabled] { opacity: .5; cursor: not-allowed; }
.pruefen label.check { display: flex; gap: .4rem; align-items: center; margin: .3rem 0 .6rem; }

/* Reviews: form on the order page, list on the home page */
#bewerten fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
#bewerten legend { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.sterne span, span.sterne, .bewertung .sterne { color: #d49a00; letter-spacing: .08em; font-size: 1.15rem; }
.bewertungen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.bewertung { margin: 0; }
.bewertung p { margin: .4rem 0; }
.bewertung blockquote { margin: .4rem 0; padding: 0; }
.bewertung .wer { color: var(--muted); font-size: .9rem; margin-top: .8rem; }
#bewertungen .bewertungen + .hint { margin-top: 1rem; }
.bewertung-foto { width: 100%; max-height: 16rem; object-fit: cover; border-radius: 10px; margin: .4rem 0; }

/* Language switch (globe + EN/DE) in the header */
.header-right { display: flex; align-items: center; gap: .75rem; }
a.lang { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 600; letter-spacing: .03em; }
a.lang:hover, a.lang:focus-visible { color: var(--accent); border-color: var(--accent); }
@media (max-width: 420px) {
  header.site { padding-left: .9rem; padding-right: .9rem; gap: .5rem; }
  .header-right { gap: .45rem; }
  a.lang { padding: .25rem .45rem; }
  header.site .btn.small { padding-left: .8rem; padding-right: .8rem; }
}
/* header button: short label on phones, so it fits next to logo and language switch */
.btn-short { display: none; }
@media (max-width: 559px) { .btn-long { display: none; } .btn-short { display: inline; } }
.code-row { display: flex; gap: .5rem; align-items: center; }
.code-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.option .amount s { color: var(--muted); font-weight: 500; margin-right: .35rem; }

/* Order form: draft note, upload text, photo confirmation */
.draft-note { background: var(--soft); border-radius: 10px; padding: .6rem .9rem; margin: 0 0 1.25rem; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.upload .when-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .upload .when-mouse { display: inline; } .upload .when-touch { display: none; } }

.price-note { text-align: center; color: var(--muted); margin: 1rem 0; font-weight: 600; }

/* Phone: picture straight after the headline, shorter intro, so picture and order button are in the first screen */
@media (max-width: 819px) {
  .hero-band { padding-top: .75rem; padding-bottom: 2.5rem; }
  .hero { gap: .9rem; }
  .hero > div:first-child { display: contents; }
  .hero .eyebrow { order: 1; justify-self: start; margin: 0; }
  .hero h1 { order: 2; margin: 0; font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero .art { order: 3; margin-top: .4rem; }
  .hero p.lead { order: 4; font-size: 1.05rem; margin: .4rem 0 0; }
  .hero .lead-more { display: none; }
  .hero .actions { order: 5; margin: .5rem 0 0; }
  .hero .trust { order: 6; margin-top: .5rem; }
}
