/* Pint and Pencil look A, chosen by the owner 2026-11-14: white page, dark ink, bottle-green accent (#1F5A44, same as
   the icons and share image from scripts/icons.py), pale stone bands. Icon/share image also use cream #F4EFE3 and
   gold #E3B04B with Crimson Text Bold lettering.
   Font: Inter (Fontsource latin subset, self-hosted, SIL OFL 1.1 – static/fonts/OFL_inter.txt). */
@font-face { font-family: "Crimson Text"; src: url("../fonts/CrimsonText-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("../fonts/CrimsonText-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: #F1F0EC; --line: #DAD8D2; --field: #A9ADB5; --input: #F5F5F2;
  --accent: #1F5A44; --accent-d: #17473A; --ink: #1B1F2A; --ink-soft: #5B6270; --error: #A3271C;
  --serif: "Crimson Text", Georgia, serif; --gold: #E3B04B; --gold-d: #9A6B12; --cream: #F4EFE3;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(27, 31, 42, .08), 0 8px 22px rgba(27, 31, 42, .10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-d); }
h1, h2, h3 { line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(28px, 4vw, 40px); margin: .1em 0 .4em; max-width: 860px; }
h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 1.6em 0 .5em; }
h2:first-child { margin-top: 0; }
h3 { font-size: 18px; margin: 1.4em 0 .3em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin: .35em 0; }
[hidden] { display: none !important; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }

/* header, footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; flex-wrap: wrap; }
.logo { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 19px; }
.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(--accent); }
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; gap: 14px 28px; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

/* page sections */
.hero { padding: 34px 0 52px; }
.crumbs { font-size: 14px; margin: 0 0 12px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.lede { font-size: 17px; max-width: 760px; }
.band { padding: 48px 0; }
.tint { background: var(--tint); }
.stand { font-size: 13px; color: var(--ink-soft); margin: 0; padding: 4px 0 28px; }

/* tool: form left, preview right */
.tool-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 44px; align-items: start; margin-top: 26px; }
.tool-form label { display: block; font-weight: 600; margin: 14px 0 4px; font-size: 15px; }
.tool-form label:first-child { margin-top: 0; }
textarea, input[type=text], input[type=number], select { width: 100%; font: 16px var(--sans); padding: 10px 12px; border: 1px solid var(--field); border-radius: 6px; background: var(--input); color: var(--ink); }
textarea { resize: vertical; line-height: 1.45; min-height: 190px; }
textarea:focus, input:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
.row-even { grid-template-columns: 1fr 1fr; }
select { max-width: 150px; }
fieldset { border: 0; padding: 0; margin: 14px 0 0; }
legend { font-weight: 600; font-size: 15px; padding: 0; }
.tool-form label.check { font-weight: 400; display: flex; gap: 10px; align-items: center; margin: 0; min-height: 40px; }
label.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.hint { font-size: 13px; color: var(--ink-soft); margin: 6px 0 0; }
.error { color: var(--error); font-weight: 600; margin: 0 0 12px; }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); 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(--accent-d); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--field); }
.btn-quiet:hover { background: var(--tint); color: var(--ink); }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

.tool-preview { margin: 0; text-align: center; position: sticky; top: 20px; }
.sheet { display: block; margin: 0 auto; width: 100%; max-width: 420px; background: #fff; border-radius: 2px; box-shadow: var(--shadow); }
.sheet.loading { opacity: .45; }
.sheet-empty { aspect-ratio: 210 / 297; display: grid; place-items: center; padding: 12%; }
.mini-grid { width: 100%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(5, 1fr); border: 2px solid var(--line); }
.mini-grid span { border: 1px solid var(--line); }
.mini-lines { width: 100%; display: grid; gap: 14px; }
.mini-lines span { border-bottom: 2px solid var(--line); height: 8px; }
.tool-preview .hint { margin-top: 14px; }

/* question pages */
.dl-box { margin: 22px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.dl-box .hint { flex-basis: 100%; }
.rounds h2 { padding-top: 14px; border-top: 1px solid var(--line); }
.rounds h2:first-child { border-top: 0; padding-top: 0; }
.questions { font-size: 17px; }
.questions li { margin: .55em 0; padding-left: 4px; }
.answers { margin: 14px 0 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--tint); }
.answers summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--accent); }
.answers ol { margin: 0; padding: 4px 16px 14px 40px; }
.answers .src { font-size: 13px; color: var(--ink-soft); margin-left: 6px; }

/* tables, cards, related links */
table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; border-bottom: 2px solid var(--ink); }
td:first-child { font-weight: 600; width: 30%; }
table.wide td:first-child { width: auto; white-space: nowrap; }
.cards, .related-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cards li, .related-list li { margin: 0; }
.cards a, .related-list a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.cards a:hover, .related-list a:hover { border-color: var(--accent); }
.cards b, .related-list b { display: block; font-size: 18px; color: var(--accent); margin-bottom: 4px; }
.cards span, .related-list span { color: var(--ink-soft); font-size: 15px; }
.related { padding-bottom: 28px; }
.operator { font-style: normal; margin: 0 0 1em; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--tint); }
.related-list { margin-top: 14px; }

@media (max-width: 820px) {
  .tool-grid { grid-template-columns: 1fr; gap: 30px; }
  .tool-preview { position: static; }
  .hero { padding: 24px 0 40px; }
  .band { padding: 38px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  td:first-child { width: 36%; }
  th, td { padding: 9px 7px; }
  .btn { width: 100%; }
}


/* ---------------------------------------------------------------- look v2 (2026-11-14, owner: "follow the German site")
   Layout patterns copied from E:\Rauhnachte\网站\static\css\site.css and recoloured for look A: serif headings
   (Crimson Text Bold, same as the logo), logo icon in the header, hero = text left + Unsplash photo right with the
   real PDF page laid over it, wide photo band on the home page, related links with page thumbnails, dark footer.
   Fonts: Crimson Text woff2 copied from E:\Rauhnachte (SIL OFL 1.1, static/fonts/OFL_crimsontext.txt). */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.12; }
h2 { font-size: clamp(26px, 3vw, 32px); }
h3 { font-size: 21px; }
.site-header .wrap { min-height: 66px; flex-wrap: nowrap; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 23px var(--serif); }
.logo img { border-radius: 7px; }
.logo em { font-style: normal; color: var(--gold-d); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.hero { border-bottom: 1px solid var(--line); padding: 40px 0 60px; }
.band-tint { background: var(--tint); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero-foto-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 52px; align-items: start; }
.hero-foto-grid .hero-text { max-width: 640px; }
.hero-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-visual { margin: 8px 0 30px; }
.scene { position: relative; width: 100%; max-width: 440px; margin: 0 0 0 auto; }
.scene-foto { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.scene-tall { max-width: 460px; }
.scene-tall .scene-foto { aspect-ratio: 4 / 5; }
.scene-page { position: absolute; right: -28px; bottom: -30px; width: 38%; background: #fff; border-radius: 2px; box-shadow: var(--shadow); }
.tool-preview .scene { margin: 0 auto 30px; }
.tool-preview .scene + .hint, .tool-preview #preview-cap { margin-top: 40px; }

.foto-band { margin: 0; background: var(--tint); padding: 0 0 52px; }
.foto-band img { display: block; width: 100%; height: clamp(170px, 24vw, 300px); object-fit: cover; border-radius: 4px; }

.cards a { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-color: transparent; }
.cards img, .related-list img { flex: none; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.cards b { font-family: var(--serif); font-size: 21px; }
.cards span span { display: block; }
.related { background: var(--tint); padding: 44px 0 52px; }
.related h2 { margin-top: 0; }
.related-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.related-list a { display: flex; gap: 12px; align-items: center; background: var(--paper); border-color: transparent; padding: 10px; border-radius: 4px; min-height: 84px; }
.related-list b { font-size: 16px; color: var(--ink); font-family: var(--sans); font-weight: 600; margin: 0; }
.related-list span span { display: block; font-size: 14px; color: var(--ink-soft); }
.related-list a:hover { border-color: var(--accent); }
.stand { padding: 18px 0 28px; }

.site-footer { background: var(--ink); color: #D9D7CF; border-top: 0; padding: 32px 0 44px; }
.site-footer .wrap { display: grid; gap: 14px; justify-content: start; }
.site-footer a { color: #D9D7CF; }
.site-footer a:hover { color: #fff; }

.notice { background: var(--tint); border-left: 3px solid var(--accent); padding: 16px 20px 4px; margin: 0 0 18px; }
.muster { font-size: 15px; background: var(--tint); padding: 16px 20px; }

@media (max-width: 960px) {
  .hero-grid, .hero-foto-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .scene { max-width: 400px; margin: 0 auto; }
  .hero-visual { margin-bottom: 36px; }
}
@media (max-width: 700px) {
  .hide-sm { display: none; }
  .logo span { display: none; }
  .nav a { padding: 10px 7px; font-size: 14px; }
  .scene-page { right: -6px; bottom: -24px; width: 36%; }
  .foto-band { padding-bottom: 38px; }
}
@media (max-width: 700px) {
  .site-header .wrap { gap: 6px; }
  .nav { flex-wrap: nowrap; gap: 0; }
  .nav a { padding: 10px 6px; font-size: 14px; white-space: nowrap; }
}
