/* ShopGlanz – gemeinsames Stylesheet (Website + Berichte)
   Keine externen Ressourcen: Systemschriften, keine CDNs, keine Tracker. */
:root {
  --gold: #B8923A;          /* Gold (Flächen, Linien, Akzente) */
  --accent: #8A6A22;        /* Gold dunkel (Buttons, kleine Akzenttexte; Kontrast ≥ 4.5:1) */
  --accent-dark: #6F5419;   /* Links, Hover */
  --accent-soft: #F5ECD8;
  --text: #211E1A;
  --muted: #6B645A;
  --line: #E8E0D0;
  --bg: #FBF8F2;
  --card: #ffffff;
  --bg-soft: #F4EEE2;
  --warn-soft: #FBF3DF;
  --warn-line: #E6CF95;
  --excel: #1D6F42;
  --pdf: #C0392B;
  --radius: 14px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
body { overflow-wrap: break-word; }
.legal { hyphens: auto; -webkit-hyphens: auto; }
.legal p, .legal li { overflow-wrap: anywhere; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Header / Footer */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: 0 1px 12px rgba(60,45,15,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 38px; width: auto; }
.nav { display: flex; gap: 20px; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent-dark); }
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 80px; padding: 32px 0; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 8px rgba(110,84,25,.18); text-decoration: none; font-weight: 600; padding: 14px 26px; border-radius: 999px; font-size: 1.05rem; transition: background .15s; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent-dark); border: 1.5px solid var(--gold); box-shadow: none; }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Sections */
section.block { padding: 72px 0; }
section.block.soft { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

.hero { padding: 88px 0 72px; }
.hero h1 { max-width: 760px; }
.hero .price { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 24px; flex-wrap: wrap; }
.hero .price strong { font-size: 2.6rem; letter-spacing: -0.03em; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .fine { margin-top: 18px; font-size: .92rem; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; margin-bottom: 14px; }
.card.not { background: transparent; border-style: dashed; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 1.1rem; }
.steps li p { color: var(--muted); margin: 0; }

.preview { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.preview-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 10px 30px rgba(60,45,15,.08); padding: 22px; font-size: .95rem; }

.guarantee { background: var(--accent-soft); border: 1px solid #EADBB5; border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.guarantee .seal { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--gold); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 2rem; }
.guarantee p:last-child { margin-bottom: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 1.1em; }

/* Rechtstexte */
.legal-page { padding: 56px 0; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal ul { padding-left: 1.3em; }
.draft-note { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 10px; padding: 14px 18px; font-size: .95rem; }
.legal .guarantee-clause { background: var(--accent-soft); border-radius: 10px; padding: 4px 18px 8px; }

/* ================= Bericht ================= */
.report { padding: 48px 0; }
.report-banner { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 10px; padding: 12px 18px; font-weight: 600; margin-bottom: 28px; }
.report-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: .3em; }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .95rem; color: var(--muted); margin: 18px 0 8px; }
.meta dt { font-weight: 600; color: var(--text); }
.meta dd { margin: 0; }
.report h2 { margin-top: 2.4em; padding-top: .6em; border-top: 2px solid var(--line); }
.report h2 .num { color: var(--accent); margin-right: .3em; }
.summary-box { background: var(--bg-soft); border-radius: var(--radius); padding: 24px 26px; margin: 20px 0; }
.counts { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .97rem; }
.counts th, .counts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.counts th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.counts td.n { text-align: right; font-weight: 700; white-space: nowrap; }
.counts td.n.zero { color: var(--accent); }
.top3 { padding-left: 1.3em; }
.top3 li { margin-bottom: .4em; }
.finding { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 18px 22px; margin: 18px 0; background: var(--card); break-inside: avoid; }
.finding.watch { border-left-color: #BDB6AA; }
.finding.hint { border-left-color: #7C8794; }
.finding h3 { margin: 0 0 12px; font-size: 1.08rem; }
.finding h3 .id { display: inline-block; min-width: 1.9em; padding: 1px 7px; margin-right: 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); font-size: .9rem; text-align: center; }
.finding.watch h3 .id { background: #EEEAE3; color: #5A544B; }
.finding.hint h3 .id { background: #E9EDF1; color: #46505B; }
.finding dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 0; font-size: .96rem; }
.finding dt { font-weight: 600; color: var(--muted); }
.finding dd { margin: 0; }
.path { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-soft); padding: 1px 6px; border-radius: 5px; word-break: break-all; }
.typos-wrap { overflow-x: auto; }
table.typos { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 620px; }
table.typos th, table.typos td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1px solid var(--line); }
table.typos th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-soft); }
table.typos td:first-child { width: 30%; }
.ok-list { padding-left: 0; list-style: none; }
.ok-list li { padding-left: 28px; position: relative; margin-bottom: .5em; }
.ok-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.none { background: var(--accent-soft); border-radius: 10px; padding: 14px 18px; }
.disclaimer { margin-top: 40px; background: var(--bg-soft); border-left: 4px solid var(--muted); border-radius: 8px; padding: 18px 22px; font-size: .94rem; }

/* Bericht: Ansicht Excel / PDF (ohne JavaScript) */
.narrow-col { max-width: 780px; margin-left: auto; margin-right: auto; }
.vh { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.switch { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; }
.sw { cursor: pointer; font-weight: 700; font-size: 1rem; padding: 9px 26px; border-radius: 999px; border: 2px solid; background: var(--card); transition: background .15s, color .15s; user-select: none; }
.sw-excel { color: var(--excel); border-color: var(--excel); }
.sw-pdf { color: var(--pdf); border-color: var(--pdf); }
#v-excel:checked ~ .switch .sw-excel { background: var(--excel); color: #fff; }
#v-pdf:checked ~ .switch .sw-pdf { background: var(--pdf); color: #fff; }
#v-excel:focus-visible ~ .switch .sw-excel, #v-pdf:focus-visible ~ .switch .sw-pdf { outline: 3px solid var(--gold); outline-offset: 2px; }
.view { display: none; }
#v-excel:checked ~ .view-excel, #v-pdf:checked ~ .view-pdf { display: block; }
.view-excel .view-bar { align-items: flex-end; }
.view-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.view-bar p { margin: 0; }
.view-title { font-weight: 700; font-size: 1.25rem; }
.dl { display: inline-block; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 20px; border-radius: 8px; }
.dl::before { content: "↓ "; }
.dl-excel { background: var(--excel); }
.dl-pdf { background: var(--pdf); }
.dl:hover { color: #fff; filter: brightness(.9); }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 30px rgba(60,45,15,.08); padding: 40px 48px; }
.print-logo { display: none; }

/* Tabellenansicht im Stil einer Tabellenkalkulation */
.sheet-wrap { overflow: auto; max-height: 75vh; border: 1px solid #c8ccc9; background: #fff; }
table.sheet { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 980px; font-size: .88rem; line-height: 1.45; }
.sheet th, .sheet td { border-right: 1px solid #e1e4e2; border-bottom: 1px solid #e1e4e2; padding: 7px 9px; text-align: left; vertical-align: top; }
.sheet thead th { position: sticky; z-index: 2; }
.sheet tr.cl th { top: 0; height: 26px; padding: 3px 9px; background: #f1f3f2; color: #666; font-weight: 500; font-size: .78rem; text-align: center; }
.sheet tr.hd th { top: 26px; background: #e9f2ec; color: var(--text); font-weight: 700; border-bottom: 2px solid var(--excel); white-space: nowrap; }
.sheet .rn { width: 38px; min-width: 38px; background: #f1f3f2; color: #666; font-weight: 500; font-size: .78rem; text-align: center; }
.sheet td.c { text-align: center; font-weight: 600; white-space: nowrap; }
.sheet td:nth-child(3) { width: 140px; }
.sheet td:nth-child(4) { width: 250px; }
.sheet td:nth-child(7) { width: 96px; }
.sheet tbody tr:hover td { background: #f6faf7; }
.sheet .path { background: none; padding: 0; word-break: normal; overflow-wrap: anywhere; }
.prio { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: .8rem; font-weight: 600; }
.prio-hoch { background: #F6D5D0; color: #8E2A1F; }
.prio-mittel { background: #FBEBC8; color: #6F5419; }
.prio-niedrig, .prio-beobachten { background: #EEEAE3; color: #5A544B; }
.prio-hinweis { background: #E1E7EE; color: #46505B; }
.sheet-tabs { display: flex; gap: 2px; font-size: .82rem; }
.sheet-tabs span { padding: 5px 16px; background: #f1f3f2; color: #666; border: 1px solid #c8ccc9; border-top: 0; }
.sheet-tabs span.on { background: #fff; color: var(--excel); font-weight: 700; border-bottom: 2px solid var(--excel); }

/* Mobil */
@media (max-width: 860px) {
  .grid-3, .grid-2, .preview { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .guarantee { grid-template-columns: 1fr; padding: 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { display: none; }
  .finding dl { grid-template-columns: 1fr; gap: 2px; }
  .finding dd { margin-bottom: 8px; }
  .meta { grid-template-columns: 1fr; gap: 0; }
  .meta dd { margin-bottom: 8px; }
  .btn { width: 100%; text-align: center; }
  .summary-box { padding: 18px 16px; }
  .counts th, .counts td { padding: 9px 6px; }
  .counts td.n { white-space: normal; }
  .legal h1 { font-size: 1.8rem; }
  .doc { padding: 22px 16px; border-radius: 4px; }
  .switch .sw { flex: 1; text-align: center; }
  .logo img { height: 34px; }
}
@page { size: A4; margin: 16mm 15mm; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .site-footer, .switch, .view-excel, .view-bar { display: none !important; }
  body { font-size: 10.5pt; background: #fff; }
  .report { padding: 0; }
  .wrap { padding: 0; }
  .view-pdf { display: block !important; max-width: none; }
  .doc { border: 0; box-shadow: none; padding: 0; }
  .print-logo { display: block; height: 30px; width: auto; margin-bottom: 18px; }
  .report-banner { max-width: none; font-size: 9.5pt; }
  .finding { box-shadow: none; }
  .report h2 { break-after: avoid; }
  table.typos { min-width: 0; }
  a { color: inherit; }
}
