@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/archivo.woff2") format("woff2-variations");
}

:root {
  --ink: #1A2633;
  --ink-2: #4A5866;
  --paper: #F3F5F7;
  --white: #FFFFFF;
  --line: #CDD5DD;
  --frueh: #F5C518;
  --frueh-soft: #FDF3CC;
  --spaet: #13706A;
  --spaet-soft: #DDEFEC;
  --nacht: #2F3A86;
  --nacht-soft: #E2E5F4;
  --warn: #9A3412;
  --warn-soft: #FDEBDD;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--spaet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--frueh); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 {
  font-stretch: 75%;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 1.8em; }
h3 { font-size: 1.3rem; font-stretch: 87.5%; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.prose { max-width: var(--measure); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }

/* Kopfzeile */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-size: 1.45rem; font-stretch: 70%; font-weight: 800; letter-spacing: .005em; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 1rem; font-stretch: 87.5%; font-weight: 600; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--frueh); }

/* Schaltflächen */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-size: 1rem; font-stretch: 87.5%; font-weight: 650; text-decoration: none; padding: .75rem 1.15rem; border-radius: 6px; border: 2px solid var(--ink); cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #2B3B4C; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--white); }

/* Startseite: Kopfbereich */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero-lead { font-size: 1.25rem; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Stempelkarte */
.punchcard {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.4rem 1.6rem 1.6rem;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(26, 38, 51, .45);
}
.punchcard::before {
  content: "";
  position: absolute;
  top: .9rem; left: 1.6rem; right: 1.6rem;
  height: 8px;
  background: radial-gradient(circle at 4px 4px, var(--paper) 3.2px, transparent 3.6px) 0 0 / 22px 8px repeat-x;
}
.punchcard-title { font-size: 1rem; font-stretch: 87.5%; font-weight: 700; margin: 0 0 1rem; color: var(--ink-2); }
.punch-rows { display: grid; grid-template-columns: 1fr auto; margin: 0; border-top: 1px solid var(--line); }
.punch-rows dt, .punch-rows dd { margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.punch-rows dd { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.punch-result { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.stamp {
  display: inline-block;
  background: var(--frueh);
  color: var(--ink);
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
  padding: .3rem .7rem .35rem;
  border-radius: 6px;
  transform: rotate(-2deg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stamp-sub { margin: 0; color: var(--ink-2); font-size: 1rem; }
.punchcard-link { display: inline-block; margin-top: 1.1rem; font-weight: 600; }

/* Themenbereiche */
.topics { padding: 1rem 0 4rem; }
.topics-intro { max-width: var(--measure); color: var(--ink-2); }
.topic { border-top: 4px solid var(--c, var(--ink)); padding-top: 1.25rem; margin-top: 2.75rem; display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; }
.topic--frueh { --c: var(--frueh); }
.topic--spaet { --c: var(--spaet); }
.topic--nacht { --c: var(--nacht); }
.topic h2 { margin: 0 0 .5rem; font-size: 1.8rem; }
.topic-desc { color: var(--ink-2); font-size: 1rem; margin: 0; }
.entries { list-style: none; margin: 0; padding: 0; }
.entries li { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.entries li:first-child { padding-top: 0; }
.entry-title { font-size: 1.15rem; font-stretch: 87.5%; font-weight: 700; color: var(--ink); text-decoration: none; }
a.entry-title:hover { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; }
.entry-text { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: 1rem; }
.entry-kind { font-size: .9rem; font-stretch: 87.5%; font-weight: 600; color: var(--ink-2); align-self: start; }
.entries li.is-planned .entry-title { color: var(--ink-2); font-weight: 600; }
.entries li.is-planned .entry-kind { color: #7A8794; }

.principles { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3rem 0; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.principles h2 { margin-top: 0; }
.principles h3 { margin-top: 0; }
.principles p { color: var(--ink-2); font-size: 1rem; }

/* Seitenkopf Unterseiten */
.page-head { padding: clamp(1.5rem, 4vw, 2.75rem) 0 1rem; }
.crumbs { font-size: .95rem; color: var(--ink-2); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-2); }
.page-head h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); max-width: 28ch; }
.page-lead { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
.meta-line { font-size: .95rem; color: var(--ink-2); }

/* Rechner */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; margin: 1rem 0 3rem; }
.calc-panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }
.modes { display: inline-flex; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; margin-bottom: 1.4rem; }
.modes button { font: inherit; font-size: 1rem; font-stretch: 87.5%; font-weight: 650; background: var(--white); color: var(--ink); border: 0; padding: .55rem 1rem; cursor: pointer; }
.modes button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.field label { display: block; font-size: .95rem; font-stretch: 87.5%; font-weight: 650; margin-bottom: .35rem; }
.field input, .week input {
  width: 100%;
  font: inherit;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  padding: .6rem .7rem;
  border: 1.5px solid #9AA6B2;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .week input:focus { border-color: var(--ink); outline: 3px solid var(--frueh); outline-offset: 0; }
.hint { font-size: .95rem; color: var(--ink-2); margin: 1rem 0 0; }
.week { width: 100%; border-collapse: collapse; }
.week th { text-align: left; font-size: .9rem; font-stretch: 87.5%; font-weight: 650; padding: 0 .35rem .4rem; }
.week td { padding: .25rem .35rem; }
.week td:first-child { font-weight: 650; font-stretch: 87.5%; width: 3rem; }
.week input { font-size: 1rem; padding: .45rem .5rem; }
.week th:nth-child(4), .week td:nth-child(4) { width: 5.5rem; }
.week .day-sum { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; font-weight: 600; }
.soll { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.soll label { font-size: .95rem; font-stretch: 87.5%; font-weight: 650; }
.soll input { width: 6.5rem; font: inherit; font-size: 1.05rem; padding: .45rem .5rem; border: 1.5px solid #9AA6B2; border-radius: 6px; }
.calc-result .punchcard { position: sticky; top: 1rem; }
.result-lines { margin: .9rem 0 0; padding: 0; list-style: none; font-size: 1rem; }
.result-lines li { padding: .2rem 0; }
.checks { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.checks li { font-size: .97rem; padding: .55rem .75rem; border-radius: 6px; background: var(--spaet-soft); }
.checks li.warn { background: var(--warn-soft); color: var(--warn); }
.checks li.info { background: var(--nacht-soft); }
.result-actions { display: flex; gap: .6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.result-actions .btn { font-size: .95rem; padding: .55rem .9rem; }
.stamp.is-new { animation: stamp-in .32s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes stamp-in {
  from { transform: rotate(-7deg) scale(1.18); opacity: .25; }
  to { transform: rotate(-2deg) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .stamp.is-new { animation: none; }
}

/* Artikel */
.article { padding-bottom: 3rem; }
.article .prose h2:first-child { margin-top: 0; }
.data-table { width: 100%; max-width: var(--measure); border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 1rem; background: var(--white); }
.data-table th, .data-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-stretch: 87.5%; font-weight: 700; background: var(--paper); }
.data-table td.num { font-variant-numeric: tabular-nums; }
.callout { max-width: var(--measure); background: var(--white); border-left: 5px solid var(--spaet); padding: 1.25rem 1.4rem; margin: 2rem 0; }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.faq { max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-size: 1.15rem; font-stretch: 87.5%; font-weight: 700; }
.faq details p { margin: .75rem 0 0; }
.sources { font-size: .95rem; color: var(--ink-2); max-width: var(--measure); }
.sources ul { padding-left: 1.2rem; }

/* Inhaltsverzeichnis, Kurzfazit, Hinweise */
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.25rem; max-width: var(--measure); margin: 0 0 2rem; font-size: 1rem; }
.toc p { margin: 0 0 .4rem; font-stretch: 87.5%; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { break-inside: avoid; padding: .1rem 0; }
.verdict { max-width: var(--measure); background: var(--frueh-soft); border-left: 5px solid var(--frueh); padding: 1.2rem 1.4rem; margin: 0 0 2rem; }
.verdict h2 { margin: 0 0 .6rem; font-size: 1.45rem; }
.verdict ul { margin: 0; padding-left: 1.2rem; }
.verdict li { margin: .3rem 0; }
.verdict p:last-child { margin-bottom: 0; }
.note { font-size: .95rem; color: var(--ink-2); max-width: var(--measure); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }

/* Vergleichstabelle */
.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .97rem; }
.cmp-table th, .cmp-table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table thead th { background: var(--ink); color: var(--white); font-stretch: 87.5%; font-weight: 700; position: sticky; top: 0; }
.cmp-table tbody th { font-stretch: 87.5%; font-weight: 700; white-space: nowrap; }
.cmp-table tr:last-child td, .cmp-table tr:last-child th { border-bottom: 0; }
.cmp-table td.yes { white-space: nowrap; }
.cmp-table td.yes::before { content: "✓ "; color: var(--spaet); font-weight: 700; }
.cmp-table td.no { color: #7A8794; }
.cmp-table td.part { color: var(--ink-2); }

/* Anbieterkarten */
.vendors { display: grid; gap: 1.5rem; margin: 1.5rem 0 2.5rem; max-width: 52rem; }
.vendor { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--ink)); border-radius: 8px; padding: 1.4rem 1.5rem 1.5rem; }
.vendor--frueh { --c: var(--frueh); } .vendor--spaet { --c: var(--spaet); } .vendor--nacht { --c: var(--nacht); }
.vendor-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; }
.vendor h3 { margin: 0; font-size: 1.55rem; font-stretch: 75%; font-weight: 760; }
.vendor-rank { font-stretch: 75%; font-weight: 800; color: var(--ink-2); margin-right: .35rem; }
.tag { display: inline-block; font-size: .85rem; font-stretch: 87.5%; font-weight: 650; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .65rem; }
.vendor-price { margin: .75rem 0 .9rem; font-size: 1rem; }
.vendor-price strong { font-size: 1.15rem; }
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; font-size: 1rem; }
.procon h4 { margin: 0 0 .35rem; font-size: .95rem; font-stretch: 87.5%; }
.procon ul { margin: 0; padding-left: 1.1rem; }
.procon li { margin: .2rem 0; }
.vendor .btn { margin-top: 1.1rem; }
.vendor-fit { font-size: 1rem; color: var(--ink-2); margin: .9rem 0 0; }

/* Download-Kasten */
.download { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--spaet); border-radius: 8px; padding: 1.25rem 1.4rem; max-width: 52rem; margin: 1.5rem 0 2rem; }
.download-icon { width: 3.2rem; height: 3.2rem; border-radius: 8px; background: var(--spaet-soft); display: grid; place-items: center; font-stretch: 75%; font-weight: 800; color: var(--spaet); font-size: 1rem; }
.download h2, .download h3 { margin: 0 0 .25rem; font-size: 1.3rem; }
.download p { margin: 0 0 .75rem; font-size: 1rem; color: var(--ink-2); }
.download .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.download .btn { font-size: .95rem; padding: .6rem 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; }

/* Schritte */
.steps { counter-reset: s; list-style: none; padding: 0; max-width: var(--measure); }
.steps > li { counter-increment: s; position: relative; padding: 0 0 1.1rem 3rem; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2rem; height: 2rem; border-radius: 6px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 800; font-stretch: 75%; }
.steps h3 { margin: 0 0 .3rem; font-size: 1.2rem; }

@media (max-width: 700px) {
  .procon { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .download { grid-template-columns: 1fr; }
}

/* Fußzeile */
.site-footer { background: var(--ink); color: #D9E0E7; padding: 2.5rem 0 2rem; }
.footer-claim { font-size: 1.2rem; font-stretch: 87.5%; font-weight: 650; color: var(--white); }
.footer-note { font-size: .95rem; max-width: 70ch; }
.footer-links { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: 1.25rem 0; }
.footer-links a { color: var(--white); }
.footer-copy { font-size: .9rem; margin: 0; color: #A9B4BF; }

@media (max-width: 900px) {
  .hero-grid, .calc, .topic, .principles-grid { grid-template-columns: 1fr; }
  .topic { gap: 1rem; }
  .calc-result .punchcard { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .field:last-child { grid-column: 1 / -1; }
  .week th:nth-child(4), .week td:nth-child(4) { width: 4.5rem; }
  .header-inner { gap: .25rem; padding: .6rem 0; }
  .site-nav { width: 100%; overflow-x: auto; }
  .site-nav ul { flex-wrap: nowrap; gap: 1.1rem; white-space: nowrap; }
}
