/* Lichtratgeber Schweiz - Pilot-Miniwebsite. Nur lokale Ressourcen: keine Fonts, Skripte oder Bilder von Dritten. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1f2430;
  --ink-2: #4a5160;
  --muted: #6f7686;
  --line: #e6e2d8;
  --accent: #b7791f;
  --accent-ink: #8a5a12;
  --accent-soft: #fbf1df;
  --warm: #f4e7cf;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 36, 48, .06), 0 8px 24px rgba(31, 36, 48, .06);
  --max: 1100px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 750; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 19px; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.prose { max-width: 72ch; }

/* ---- Prototyp-Banner: wird vor der Veroeffentlichung entfernt ---- */
.proto {
  background: #1f2430; color: #f3efe6; font-size: 13px; text-align: center; padding: 6px 12px;
}
.proto b { color: #ffd98a; }

/* ---- Kopf ---- */
header.site {
  background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); text-decoration: none; font-size: 18px; }
.brand .mark { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--accent); color: #fff; }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 550; font-size: 15px; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }

/* ---- Werbehinweis (Pflicht auf Seiten mit Affiliate-Links) ---- */
.ad-note {
  background: var(--warm); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
}
.ad-note .wrap { padding-top: 8px; padding-bottom: 8px; }

/* ---- Hero ---- */
.hero { padding: 56px 0 36px; }
.hero .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.hero .lead { font-size: 20px; color: var(--ink-2); max-width: 60ch; }
.hero .art { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }

/* ---- Karten ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 20px 0 8px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 4px 0 0; font-size: 20px; }
.card p { color: var(--ink-2); margin: 0; }
.card .more { margin-top: auto; font-weight: 650; text-decoration: none; }
.card .more::after { content: " →"; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-ink); }

/* ---- Artikel ---- */
article.guide { padding: 40px 0 24px; }
article.guide .meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
article.guide .lead { font-size: 19px; color: var(--ink-2); }
.box {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px;
  padding: 14px 18px; margin: 22px 0;
}
.box.tip { border-left-color: #2f855a; }
.box h3 { margin-top: 0; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.facts { width: 100%; border-collapse: collapse; margin: 16px 0 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 15.5px; }
table.facts th, table.facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts th { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
table.facts tr:last-child td { border-bottom: 0; }
ul.check { padding-left: 1.2em; }
ul.check li { margin: 6px 0; }

/* ---- Affiliate-Aufruf (Link erst nach Programmfreigabe) ---- */
.cta {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; margin: 32px 0; display: grid; gap: 10px;
}
.cta .label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cta .btn {
  display: inline-block; justify-self: start; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 18px; border-radius: 10px;
}
.cta .btn:hover { background: var(--accent-ink); }
.cta .btn.pending { background: #e9e4d8; color: #6f7686; cursor: not-allowed; pointer-events: none; }
.cta .fine { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---- Rechtliches ---- */
.legal { padding: 40px 0; }
.legal .placeholder { background: #fff4d6; border: 1px dashed #d8a443; padding: 2px 6px; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }

/* ---- Fuss ---- */
footer.site { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
footer.site nav { display: flex; gap: 14px; flex-wrap: wrap; }
footer.site a { color: var(--ink-2); }

/* ---- Schmale Bildschirme ---- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  header.site .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  nav.main { width: 100%; }
  .hero { padding: 32px 0 20px; }
  .hero .grid { grid-template-columns: 1fr; gap: 20px; }
  footer.site .wrap { grid-template-columns: 1fr; }
}

/* ---- Vorabversion (Zustand A): wird vom Build-Skript in den Fuss eingesetzt ---- */
footer.site .prenote { grid-column: 1 / -1; background: var(--warm); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--ink-2); }
