/* Rauhnachtlicht site. Palette "Mitternacht & Zimt" (2026-11-13, after a Gemini design review of screenshots;
   replaces palette A "Winternacht", whose cool grey-blue read as SaaS/dashboard): white page (2026-11-13, owner's choice after a
   side-by-side preview), stone-grey bands, night-blue ink and links, cinnamon terracotta buttons. No white cards on tinted
   backgrounds, soft input fields, custom checkboxes, light shadows, small radii. Serif (Lora) headings, Inter body
   (both self-hosted). No uppercase labels, no tilted cards. Byline sits at the end of the page, not under the H1. */
/* Fonts: Lora (headings, italic notes) + Inter (body, UI), Fontsource 5.2.8 latin subset, self-hosted, SIL OFL 1.1
   (static/fonts/OFL_lora.txt, OFL_inter.txt). Downloaded 2026-11-13 on the owner's OK; no Google Fonts CDN. */
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #FFFFFF; --tint: #ECE9E4; --white: #FFFFFF; --creme: #FAF8F4; --line: #DCD8D1; --field: #B9B2A7;
  --input: #F2F0EC;
  --blau-hell: #DCE1E7; --blau-mid: #6E7F92; --blau: #24425E; --blau-d: #1A3249;
  --terra: #A65B32; --terra-d: #8C4A27;
  --ink: #1E2530; --ink-soft: #545B64;
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(30, 37, 48, .06), 0 8px 20px rgba(30, 37, 48, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.68 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--blau); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blau-d); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(30px, 4vw, 44px); margin: .1em 0 .3em; }
h2 { font-size: clamp(24px, 2.8vw, 30px); margin: 1.6em 0 .45em; }
h3 { font-size: 20px; margin: 1.3em 0 .3em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin: .3em 0; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 21px var(--serif); }
.logo img { border-radius: 8px; }
.logo:hover { color: var(--ink); }
.logo em { font-style: normal; color: var(--terra); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 10px 12px; font-size: 15px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--terra); }

/* ---------------------------------------------------------------- hero */
.hero { background: var(--paper); color: var(--ink); padding: 40px 0 60px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 820px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--blau); margin: 0 0 4px; }
.byline { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
.stand { font-size: 13px; color: var(--ink-soft); margin: 0; padding: 18px 0 28px; }
.crumbs { font-size: 14px; margin: 0 0 14px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.lede { font-size: 17px; }
.hero .lede { max-width: 600px; }
.kurz { max-width: 760px; }
.kurz-label { display: block; font-size: 15px; font-weight: 600; color: var(--blau); }
.kurz p { margin: 2px 0 0; font-size: 17px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.hero-grid:has(.hero-visual) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.hero-sheet { margin: 0; position: sticky; top: 24px; text-align: center; }
.sheet { background: #fff; border-radius: 2px; box-shadow: var(--shadow); width: 100%; max-width: 440px; }
.sheet.loading { opacity: .45; }
.sheet-note { font-size: 14px; color: var(--ink-soft); margin-top: 16px; }
.form-card label.check { font-size: 14px; line-height: 1.45; }

/* home hero visual: one large stock photo with the real wish-slip page laid over its lower right corner */
.hero-visual { margin: 0; text-align: center; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.scene { position: relative; margin: 0 0 0 auto; width: 100%; max-width: 460px; }
.scene-foto { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.scene-page { position: absolute; right: -36px; bottom: -28px; width: 40%; background: #fff; border-radius: 3px; box-shadow: var(--shadow); }
.hero-visual .sheet-note { margin: 44px 0 0 auto; max-width: 460px; }
.hero-visual .sheet { margin: 0 auto; display: block; }

/* sub-page hero: text left, stock photo right (photos: Unsplash, see 素材/照片/来源.md) */
.hero-foto-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; }
.hero-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* dusk photo between the steps and the product teaser (Gemini ranked it first of 4, 2026-11-13; warm grade baked in): a contained picture with hard edges on the stone-grey band.
   (A full-bleed strip with fades into the light page looked like grey fog – removed 2026-11-13.) */
.foto-band { margin: 0; background: var(--tint); padding: 4px 0 0; }
.foto-band img { display: block; width: 100%; height: clamp(180px, 24vw, 300px); object-fit: cover; object-position: 50% 50%; border-radius: 4px; }
[hidden] { display: none !important; }
.anchor { position: relative; top: -90px; display: block; }

/* the form sits directly on the page (no white card) */
.form-card { color: var(--ink); margin-top: 26px; max-width: 560px; }

/* ---------------------------------------------------------------- forms, buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--terra); color: #fff; border: 0; border-radius: 6px; padding: 12px 22px; font: 600 16px var(--sans); cursor: pointer; text-decoration: none; min-height: 48px; }
.btn:hover { background: var(--terra-d); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--field); }
.btn-quiet:hover { background: var(--tint); color: var(--ink); }
.btn-block { display: flex; width: 100%; }
label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: 15px; }
input:not([type]), input[type=text], input[type=email] { width: 100%; font: 16px var(--sans); padding: 11px 12px 9px; border: 0; border-bottom: 1.5px solid var(--field); border-radius: 6px 6px 0 0; background: var(--input); color: var(--ink); }
input:focus { outline: none; border-bottom-color: var(--terra); background: #F6F4F1; }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
label.check { font-weight: 400; display: flex; gap: 10px; align-items: center; font-size: 15px; line-height: 1.45; min-height: 44px; color: var(--ink-soft); }
label.check input { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; flex: none; margin: 0;
  border: 1.5px solid var(--field); border-radius: 4px; background: var(--white); display: grid; place-content: center; cursor: pointer; }
label.check input[type=radio] { border-radius: 50%; }
label.check input:checked { border-color: var(--terra); background: var(--terra); }
label.check input[type=checkbox]:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
label.check input[type=radio]:checked { background: var(--white); }
label.check input[type=radio]:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--terra); }
.hint { font-size: 13px; color: var(--ink-soft); margin: 4px 0 8px; }
fieldset { border: 0; padding: 0; margin: 10px 0; }
legend { font-weight: 600; font-size: 15px; }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.price { font-size: 20px; font-weight: 600; color: var(--ink); margin: 14px 0 4px; }

/* ---------------------------------------------------------------- bands */
.band { padding: 60px 0; }
.band-tint { background: var(--tint); }
.band > .wrap > h2:first-child, .band-title { margin-top: 0; }
.narrow-text { max-width: 720px; }
/* short first-person editorial note ("wir"): only true statements about what we did or decided */
.wir { font: italic 18px/1.6 var(--serif); color: var(--ink); margin: 0 0 1.4em; max-width: 680px; }

/* three steps with illustrations */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 28px 0 0; counter-reset: step; }
.steps li { counter-increment: step; margin: 0; }
.steps img { width: 150px; border-radius: 4px; }
.steps h3 { margin: 14px 0 6px; }
.steps h3::before { content: counter(step) ". "; color: var(--terra); }
.steps p { font-size: 16px; color: var(--ink-soft); }

/* product teaser with two pages side by side */
.teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.teaser h2 { margin-top: 0; }
.page-stack { position: relative; min-height: 430px; }
.page-stack img { position: absolute; width: 60%; background: #fff; box-shadow: var(--shadow); border-radius: 3px; }
.page-stack img:nth-child(1) { left: 0; top: 8%; }
.page-stack img:nth-child(2) { right: 0; top: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { position: relative; padding-left: 28px; margin: .45em 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 13px; height: 7px; border-left: 2px solid var(--blau); border-bottom: 2px solid var(--blau); transform: rotate(-45deg); }

/* ---------------------------------------------------------------- article + side card */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.content { max-width: 700px; }
.content > h2:first-child, .content > section:first-child > h2 { margin-top: 0; }
.side { position: sticky; top: 24px; }
.side-card { border: 0; border-radius: 4px; padding: 24px 22px; text-align: center; background: var(--tint); }
.side-card img { border-radius: 2px; margin-bottom: 8px; }
.side-title { font: 600 20px/1.25 var(--serif); margin: 6px 0 6px; }
.side-text { color: var(--ink-soft); font-size: 15px; }
.page-shadow { box-shadow: var(--shadow); }

/* tables (real <table>, a lead sentence before each one) */
table.facts { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 10px; }
table.facts th, table.facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts th { color: var(--blau); font-weight: 600; border-bottom: 2px solid var(--blau-hell); }
table.facts td:first-child { font-weight: 600; }
table.facts.small { font-size: 14px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; font-weight: 600; padding: 10px 0; min-height: 44px; list-style-position: outside; }
details.faq p { color: var(--ink-soft); }
.sources { font-size: 14px; color: var(--ink-soft); margin-top: 32px; }
.sources h2 { font-size: 21px; }
figure.illu { text-align: center; margin: 24px 0; }
figure.illu img { border-radius: 12px; }
.more { margin-top: 24px; }
.num-list li { margin: .5em 0; }

/* examples page */
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.examples h3 { color: var(--blau); }
.examples ol { font-size: 16px; }

/* guide page: one block per night */
.night { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.night h3 { margin-top: 0; }
.night p { margin: .3em 0; }
.night img { border-radius: 4px; }

/* product page thumbnails */
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; justify-content: center; }
.thumbs img { width: 64px; border: 2px solid transparent; border-radius: 4px; cursor: pointer; background: #fff; }
.thumbs img.on { border-color: var(--terra); }

/* ---------------------------------------------------------------- related + footer */
.related { background: var(--tint); padding: 44px 0 52px; }
.related h2 { margin-top: 0; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.related-list li { margin: 0; }
.related-list a { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid transparent; border-radius: 4px; padding: 10px; text-decoration: none; color: var(--ink); min-height: 84px; }
.related-list a:hover { border-color: var(--blau-mid); }
.related-list img { border-radius: 8px; flex: none; }
.related-list b { display: block; font-weight: 600; }
.related-list span span { font-size: 14px; color: var(--ink-soft); }
.site-footer { background: var(--ink); color: #D9D7CF; padding: 32px 0 44px; font-size: 14px; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: #D9D7CF; }
.site-footer a:hover { color: #fff; }

/* ---------------------------------------------------------------- tablets and phones */
@media (max-width: 960px) {
  .article { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .side { position: static; max-width: 420px; }
  .hero-grid, .hero-grid:has(.hero-visual), .teaser, .hero-foto-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-foto { aspect-ratio: 16 / 9; max-height: 280px; }
  .hero-sheet, .hero-visual { position: static; }
  .scene { max-width: 380px; margin: 0 auto; }
  .hero-visual .sheet-note { margin: 40px auto 0; max-width: 380px; }
  .sheet { max-width: 360px; }
  .page-stack { min-height: 340px; max-width: 480px; }
}
@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .nav a { padding: 10px 7px; font-size: 14px; }
  .logo span { display: none; }
  .hero { padding: 26px 0 40px; }
  .band { padding: 40px 0; }
  .form-card { padding: 0; }
  .steps, .examples { grid-template-columns: 1fr; gap: 26px; }
  .night { grid-template-columns: 72px 1fr; gap: 12px; }
  .night img { width: 72px; }
  .page-stack { min-height: 0; aspect-ratio: 100 / 95; }   /* two pages at 60% width, A4 ratio */
  .scene-page { right: -6px; bottom: -22px; width: 38%; }
}

/* order form + order page */
.err { color: #A03A2A; font-size: 14px; min-height: 0; }
.err:not(:empty) { margin: 2px 0 8px; }
.price-note { display: block; font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.order-page { max-width: 720px; padding: 48px 24px 64px; }
.order-downloads { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 22px; }
.muted { color: var(--ink-soft); font-size: 15px; }
.test-note { background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Row of real PDF pages (home page, "Was ist in der Vorlage?") */
.seiten-reihe { margin: 24px 0 8px; }
.seiten-reihe > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.seiten-reihe img { width: 100%; height: auto; background: #fff; border-radius: 2px; box-shadow: var(--shadow); }
.seiten-reihe figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }
@media (max-width: 560px) { .seiten-reihe > div { gap: 8px; } }

/* Free printables (2026-11-14): download box inside articles, cards on the hub page */
.seiten-reihe.zwei > div { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
.dl-box { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center; background: var(--tint); border-radius: 4px; padding: 22px; margin: 28px 0; }
.dl-box img { width: 100%; height: auto; background: #fff; border-radius: 2px; box-shadow: var(--shadow); }
.dl-box p { margin: 0 0 10px; font-size: 16px; }
.dl-box .btn { margin-top: 4px; }
.dl-kicker { font-size: 13px !important; color: var(--ink-soft); letter-spacing: .02em; margin-bottom: 4px !important; }
.dl-title { font-family: var(--serif, "Lora", Georgia, serif); font-weight: 600; font-size: 20px !important; line-height: 1.3; margin-bottom: 6px !important; }
.vorlagen-liste { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 36px; }
.vorlagen-liste li { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; margin: 0; }
.vorlagen-liste img { width: 100%; height: auto; background: #fff; border-radius: 2px; box-shadow: var(--shadow); display: block; }
.vorlagen-liste h3 { margin: 0 0 4px; }
.vorlagen-liste p { font-size: 16px; margin: 0 0 10px; }
.vl-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px !important; }
.vl-links a:not(.btn) { font-size: 15px; }
.side-more { font-size: 14px; margin: 12px 0 0; }
@media (max-width: 960px) { .vorlagen-liste { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .dl-box { grid-template-columns: 84px 1fr; gap: 14px; padding: 16px; }
  .vorlagen-liste li { grid-template-columns: 96px 1fr; gap: 14px; }
}
