/* kompassordner.de — Stylesheet V1.0 · folgt DESIGN.md */

@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #1F3A5F; --navy-deep: #17304F;
  --copper: #B86B45; --copper-deep: #8F4F30;
  --sand: #F3EDE3; --sand-deep: #E6DCCB; --paper: #FFFFFF;
  --ink: #2A2A2A; --ink-soft: #4F5560; --line: #D6CBB8;
  --ok: #2E6B4F; --warn: #8A5A00; --error: #9B2C2C;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --w: 1120px; --measure: 68ch;
  --r1: 4px; --r2: 8px;
  --shadow-doc: 0 24px 40px -28px rgba(31,58,95,.35);
  --t: 120ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem; line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt";
  border-top: 4px solid var(--copper);
}

/* Typografie */
h1, h2, h3 { color: var(--navy); margin: 0 0 var(--s4); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.375rem; line-height: 1.25; }
p, ul, ol { margin: 0 0 var(--s4); max-width: var(--measure); }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.small, small { font-size: 1rem; line-height: 1.5; }
.soft { color: var(--ink-soft); }
.tnum { font-variant-numeric: tabular-nums; }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color var(--t); }
a:hover { color: var(--copper-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: var(--r1); }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s7) 0; }

/* Layout */
.wrap { width: min(var(--w), 100% - 2 * var(--s5)); margin-inline: auto; }
.section { padding-block: var(--s8); }
@media (min-width: 768px) { .section { padding-block: var(--s9); } }
.section--navy { background: var(--navy); color: var(--sand); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--paper); }
.section--navy a { color: var(--sand); }
.section--navy a:hover { color: #F0C9B3; }
.section--deep { background: var(--sand-deep); }
.grid { display: grid; gap: var(--s6); }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--5-7 { grid-template-columns: 5fr 7fr; align-items: start; }
  .grid--7-5 { grid-template-columns: 7fr 5fr; align-items: start; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Skip-Link */
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--navy); color: var(--sand); padding: var(--s3) var(--s4); border-radius: var(--r1); z-index: 100; }
.skip:focus { top: var(--s4); }

/* Kopf */
.site-head { padding-block: var(--s5); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { height: 48px; width: 48px; display: block; }
.brand .word { font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.brand .word span { color: var(--copper); }
.brand:hover { color: var(--navy); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s5); max-width: none; }
.nav a { display: inline-block; padding: var(--s2) var(--s1); min-height: 44px; line-height: 28px; text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--copper-deep); }
.nav a[aria-current="page"] { border-bottom-color: var(--copper); color: var(--navy); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: var(--s3) var(--s6); border-radius: var(--r1); font-weight: 600; font-size: 1.0625rem; text-decoration: none; border: 2px solid var(--navy); cursor: pointer; transition: background var(--t), color var(--t), border-color var(--t); }
.btn--primary { background: var(--navy); color: var(--sand); }
.btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--paper); }
.btn--secondary { background: transparent; color: var(--navy); }
.btn--secondary:hover { background: rgba(31,58,95,.08); color: var(--navy); }
.section--navy .btn--primary { background: var(--sand); color: var(--navy); border-color: var(--sand); }
.section--navy .btn--primary:hover { background: var(--paper); border-color: var(--paper); color: var(--navy); }
.section--navy .btn--secondary { color: var(--sand); border-color: var(--sand); }
.section--navy .btn--secondary:hover { background: rgba(243,237,227,.12); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); margin-top: var(--s5); }

/* Hero */
.hero { padding-block: var(--s8); }
@media (min-width: 768px) { .hero { padding-block: var(--s9) var(--s10); } }
.hero .lead { max-width: 52ch; margin-top: var(--s4); color: #E7E1D6; }
.hero-doc { position: relative; margin-top: var(--s6); display: flex; justify-content: center; }
@media (min-width: 768px) { .hero-doc { margin-top: 0; } }
.doc { display: block; width: 100%; height: auto; background: var(--paper); border-radius: var(--r2); box-shadow: var(--shadow-doc), 0 0 0 1px var(--line); }
.section--navy .doc { box-shadow: 0 24px 40px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(243,237,227,.45); }
/* Produktbilder stehen auf einer eigenen Papierfläche, damit sie sich vom Sand abheben */
.shelf { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2); padding: 24px; }
.shelf .doc { box-shadow: var(--shadow-doc), 0 0 0 1px var(--line); }
.section--deep .shelf { border-color: #CFC2AD; }
.doc-stack { position: relative; isolation: isolate; max-width: 440px; padding: 0 9% 9% 0; }
.doc-stack .doc:first-child { position: relative; z-index: 1; }
.doc-stack .doc + .doc { position: absolute; top: 9%; left: 9%; width: calc(100% - 9%); z-index: 0; filter: brightness(.97); }

/* Register (Trennblätter) */
.register { list-style: none; margin: var(--s5) 0 0; padding: 0; max-width: none; border-top: 1px solid var(--line); }
.register li { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.register .tab { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 40px; background: var(--sand-deep); color: var(--copper-deep); border-radius: var(--r1) var(--r1) var(--r1) 0; font-weight: 600; font-size: .9375rem; letter-spacing: .04em; border-left: 3px solid var(--copper); }
.register .pages { color: var(--ink-soft); font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.section--navy .register { border-color: rgba(243,237,227,.25); }
.section--navy .register li { border-color: rgba(243,237,227,.25); }
.section--navy .register .pages { color: #CFC7BA; }

/* Produktblock */
.product { padding-block: var(--s7); border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; padding-top: 0; }
.product .price { font-size: 1.25rem; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; margin: var(--s4) 0 var(--s2); }
.product .price s { color: var(--ink-soft); font-weight: 400; }
.product .price small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 1rem; }
.product figure { margin: 0; }
.product figcaption { margin-top: var(--s3); font-size: 1rem; color: var(--ink-soft); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s3); }
.thumbs img { width: 100%; height: auto; display: block; border-radius: var(--r1); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 8px 16px -12px rgba(31,58,95,.35); }

/* Checkliste */
.check { list-style: none; padding: 0; margin: var(--s4) 0; }
.check li { position: relative; padding-left: 36px; margin-bottom: var(--s2); }
.check li::before { content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%232E6B4F'/><path d='M7 12.5l3 3 7-7' stroke='%23F3EDE3' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; }

.check--big li { font-size: 1.25rem; margin-bottom: var(--s3); padding-left: 40px; }
.check--big li::before { width: 26px; height: 26px; top: .15em; }

/* Schritte (echte Reihenfolge) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s5) 0 0; max-width: none; display: grid; gap: var(--s5); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding-top: var(--s4); border-top: 3px solid var(--copper); }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r1) var(--r1) var(--r1) 0; background: var(--paper); border-left: 3px solid var(--copper); color: var(--copper-deep); font-weight: 600; margin-bottom: var(--s3); }
.steps h3 { margin-bottom: var(--s2); }
.steps p { margin: 0; }

/* Hinweisbox */
.note { background: var(--sand-deep); border-left: 4px solid var(--copper); padding: var(--s4) var(--s5); border-radius: 0 var(--r1) var(--r1) 0; max-width: var(--measure); margin: var(--s5) 0; }
.note p:last-child { margin-bottom: 0; }

/* Prose (Rechtstexte) */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--s7); font-size: 1.625rem; }
.prose h3 { margin-top: var(--s6); font-size: 1.25rem; }
.prose address { font-style: normal; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; margin: var(--s4) 0 var(--s5); }
.prose th, .prose td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--navy); font-weight: 600; }

/* Details (FAQ) */
details { border-top: 1px solid var(--line); max-width: var(--measure); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: var(--s4) 0; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: var(--s4); min-height: 48px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--copper); flex: none; width: 32px; text-align: center; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: var(--s4); }

/* Kontakt-Karte */
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s5); }
.contact-card p { margin-bottom: var(--s3); }
.contact-card .mail { font-size: 1.25rem; font-weight: 600; word-break: break-all; }

/* Fußzeile */
.site-foot { background: var(--navy); color: #D8D2C6; padding-block: var(--s8) var(--s6); margin-top: var(--s8); font-size: 1rem; }
.site-foot .cols { display: grid; gap: var(--s6); }
@media (min-width: 768px) { .site-foot .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-foot h2 { color: var(--paper); font-size: 1rem; letter-spacing: 0; margin-bottom: var(--s3); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: var(--s2); }
.site-foot a { color: var(--sand); text-decoration: none; display: inline-block; padding-block: 4px; }
.site-foot a:hover { color: #F0C9B3; text-decoration: underline; }
.site-foot .brand { color: var(--paper); } .site-foot .brand img { height: 40px; width: 40px; } .site-foot .brand .word { font-size: 1.25rem; }
.site-foot .legal { border-top: 1px solid rgba(243,237,227,.2); margin-top: var(--s6); padding-top: var(--s4); font-size: .9375rem; color: #B9B1A3; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Farbreihe */
.farben { list-style: none; padding: 0; margin: var(--s5) 0 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s4); }
.farben li { text-align: center; font-size: 1rem; color: var(--ink-soft); }
.farben img { width: 100%; height: auto; display: block; border-radius: var(--r1); box-shadow: 0 10px 18px -14px rgba(31,58,95,.45), 0 0 0 1px var(--line); background: var(--paper); margin-bottom: var(--s2); }
