/* WinAhnen – Stylesheet
   Gestaltung: Archiv/Papier-Anmutung, ruhige Typografie, keine externen Schriften (DSGVO). */

:root {
  --paper: #f7f2e7;
  --paper-2: #efe7d6;
  --card: #fffdf8;
  --ink: #1d2420;
  --ink-soft: #4a524c;
  --green: #1f3a2e;
  --green-2: #2d5443;
  --brass: #a4622b;
  --brass-soft: #f1dfc6;
  --line: #d9cfbb;
  --focus: #c27a36;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(29, 36, 32, .04), 0 8px 24px -12px rgba(29, 36, 32, .25);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --w: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--green); line-height: 1.2; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
h4 { font-size: 1.05rem; margin: 1.6em 0 .4em; }
p, ul, ol, dl { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--green); color: #f3ecdc; padding: 1rem 1.2rem; border-radius: var(--radius); overflow-x: auto; }
pre code { background: none; color: inherit; padding: 0; }
.small { font-size: .88rem; color: var(--ink-soft); }
.pixel { position: absolute; width: 1px; height: 1px; opacity: 0; }

.wrap { width: min(100% - 32px, var(--w)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4em;
  background: var(--green); color: #fff; text-decoration: none;
  font: 600 1rem/1 var(--sans); padding: .85em 1.3em; border-radius: 999px;
  border: 2px solid var(--green); transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--green-2); border-color: var(--green-2); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--small { padding: .6em 1em; font-size: .92rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 231, .92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green); text-decoration: none; font: 700 1.35rem/1 var(--serif); }
.brand__mark { width: 30px; height: 30px; color: var(--brass); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .5em .8em; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover { background: var(--paper-2); color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }

@media (max-width: 760px) {
  .site-header__inner { flex-wrap: wrap; gap: 6px 12px; padding: 10px 0 0; }
  .site-header .btn--small { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 -8px; overflow-x: auto; }
  .nav ul { gap: 0; }
  .nav a { white-space: nowrap; font-size: .93rem; padding: .55em .7em; }
}

.crumbs { font-size: .88rem; color: var(--ink-soft); padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); background:
  radial-gradient(1200px 400px at 85% 0%, rgba(164, 98, 43, .10), transparent 60%),
  linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { font: 600 .78rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin: 0 0 .4em; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 .8em; }
.hero__note { font-size: .9rem; color: var(--ink-soft); }
.hero__shot { transform: rotate(.6deg); }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__shot { transform: none; } }

.frame { margin: 0; background: var(--card); padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.frame img { border-radius: 6px; width: 100%; }
.frame figcaption { font-size: .88rem; color: var(--ink-soft); padding: 10px 4px 2px; font-style: italic; }

/* ---------- Facts ---------- */
.facts { background: var(--green); color: #e9e3d4; }
.facts__list { list-style: none; margin: 0 auto; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts strong { display: block; font: 600 1.6rem/1.1 var(--serif); color: #fff; }
.facts li { font-size: .92rem; }
@media (max-width: 760px) { .facts__list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section h2:first-child, .section__head h2 { margin-top: 0; }
.section__head { max-width: 70ch; margin-bottom: 28px; }
.section__head p { color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 16px; position: relative; }
.card::before { content: ""; position: absolute; left: 22px; top: -1px; width: 36px; height: 3px; background: var(--brass); border-radius: 0 0 3px 3px; }
.card h3 { margin: .3em 0 .45em; font-size: 1.18rem; }
.card p { font-size: .97rem; color: var(--ink-soft); }
.card__ref { font-size: .84rem !important; margin: 0; }
.ref { font-family: var(--mono); font-size: .86em; white-space: nowrap; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.split--text { align-items: start; }
.split h2 { margin-top: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: .55em 0 .55em 3em; border-bottom: 1px dashed var(--line); }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: .45em; width: 2em; height: 2em; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font: 600 .9rem/1 var(--sans); }
.steps--long > li { padding-block: .9em; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; }
.price h3 { margin: 0; }
.price__amount { font: 600 2.4rem/1.1 var(--serif); color: var(--green); margin: .3em 0 .5em; }
.price__amount span { font: 400 1rem var(--sans); color: var(--ink-soft); }
.price .btn { margin-top: auto; align-self: flex-start; }
.price--featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.6em; position: relative; margin-bottom: .35em; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brass); font-weight: 700; }
.note { font-size: .92rem; color: var(--ink-soft); margin-top: 20px; max-width: 75ch; }
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }

.quotes { list-style: none; padding: 0; }
.quotes li { font-family: var(--serif); font-size: 1.12rem; padding: .7em 0 .7em 1em; border-left: 3px solid var(--brass); margin-bottom: .6em; background: linear-gradient(90deg, var(--brass-soft), transparent 70%); }
.quotes span { display: block; font: 400 .85rem var(--sans); color: var(--ink-soft); margin-top: .2em; }

.linklist { padding-left: 1.2em; }
.linklist--inline { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; }

/* ---------- Fold / FAQ ---------- */
.fold { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.fold > summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; font-weight: 600; position: relative; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 1.4rem/1 var(--sans); color: var(--brass); }
.fold[open] > summary::after { content: "–"; }
.fold > *:not(summary) { padding-inline: 18px; }
.fold > :last-child { padding-bottom: 14px; margin-bottom: 0; }
.fold ul { padding-left: 2.4em; }

/* ---------- Page head & prose ---------- */
.page-head { padding: clamp(24px, 4vw, 48px) 0 clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.page-head h1 { max-width: 24ch; }

.prose { max-width: 74ch; }
.prose > h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--card); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .6em .8em; border-bottom: 1px solid var(--line); }
.prose th { background: var(--green); color: #fff; font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.2em; }
.table-wrap table { margin: 0; }
table.compact { width: auto; }
.tip { background: var(--brass-soft); border-left: 4px solid var(--brass); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.defs dt { font-weight: 700; color: var(--green); margin-top: .8em; }
.defs dd { margin: .2em 0 0; }
.checklist { padding-left: 1.4em; }
.checklist li::marker { color: var(--brass); font-weight: 700; }
.cta-box { margin-top: 3em; background: var(--green); color: #e9e3d4; border-radius: 14px; padding: 28px; }
.cta-box h2 { color: #fff; margin-top: 0; }
.cta-box .btn { background: #fff; color: var(--green); border-color: #fff; }
.cta-box .btn--ghost { background: transparent; color: #fff; }
.cta-box .btn--ghost:hover { background: #fff; color: var(--green); }
.prose .frame { margin: 1.6em 0; }

/* ---------- Seiten mit Inhaltsverzeichnis ---------- */
.with-toc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: 36px 0 72px; align-items: start; }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; font-size: .93rem; border-left: 2px solid var(--line); padding-left: 16px; }
.toc__title { font: 600 .78rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.toc ol { list-style: none; padding: 0; margin: 0 0 .5em; }
.toc li { margin: 0; }
.toc a { display: block; padding: .28em 0; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--green); }
@media (max-width: 960px) {
  .with-toc { grid-template-columns: 1fr; padding-top: 20px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: var(--card); }
}

/* Befehlsreferenz */
.with-toc--ref { grid-template-columns: 300px minmax(0, 1fr); }
@media (max-width: 960px) { .with-toc--ref { grid-template-columns: 1fr; } .toc--ref { max-height: 60vh; overflow-y: auto; } }
.toc-group { margin-bottom: 4px; }
.toc-group > summary { cursor: pointer; font-weight: 600; color: var(--green); padding: .35em 0; }
.toc-group .count { font: 500 .75rem var(--sans); color: var(--ink-soft); background: var(--paper-2); border-radius: 999px; padding: .1em .55em; margin-left: .3em; }
.toc-group ol { padding-left: .4em; }
.num { font-family: var(--mono); font-size: .78em; color: var(--brass); margin-right: .35em; }
.ref-body h3 { padding-top: 1.2em; border-top: 1px solid var(--line); }
.ref-body h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.ref-body h3 .num { font-size: .7em; display: block; margin-bottom: .2em; }
.ops { display: grid; grid-template-columns: max-content 1fr; gap: .4em 1em; }
.ops dt { font-family: var(--mono); font-weight: 600; color: var(--green); }
.ops dd { margin: 0; }
.filter { margin-top: 1.2em; display: flex; flex-direction: column; gap: 6px; max-width: 460px; }
.filter label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.filter input { font: inherit; padding: .7em 1em; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }

/* ---------- Werbung ---------- */
.ad { width: min(100% - 32px, 760px); margin: 36px auto; text-align: center; min-height: 90px; }
.prose .ad { width: 100%; }
.ad__label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #17271f; color: #c9c2b2; padding: 52px 0 24px; font-size: .95rem; }
.site-footer a { color: #f3ecdc; }
.site-footer a:hover { color: var(--brass-soft); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .35em; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer__brand { font: 700 1.4rem var(--serif); color: #fff; margin: 0 0 .4em; }
.site-footer__head { font: 600 .78rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #d9a46f; }
.site-footer .btn--ghost { color: #fff; border-color: #fff; }
.site-footer .btn--ghost:hover { background: #fff; color: var(--green); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

.totop { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 1.2rem; box-shadow: var(--shadow); opacity: .85; }
.totop:hover { opacity: 1; color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media print {
  .site-header, .site-footer, .ad, .totop, .toc, .filter { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .with-toc { display: block; }
}
