@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/InstrumentSerif-Latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/InstrumentSerif-LatinExt.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  src: url('/assets/fonts/public-sans-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbf8f3;
  --paper-2: #f4eee4;
  --paper-3: #ece3d4;
  --ink: #17130f;
  --ink-2: #5c5248;
  --ink-3: #857a6d;
  --line: #e4dacb;
  --line-strong: #d3c5b0;
  --copper: #a4571f;
  --copper-dark: #7e4114;
  --copper-tint: rgba(164, 87, 31, 0.09);

  --sans: 'Public Sans', 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;

  --t-xs: clamp(0.75rem, 0.735rem + 0.07vw, 0.8125rem);
  --t-sm: clamp(0.875rem, 0.855rem + 0.1vw, 0.9375rem);
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-lead: clamp(1.0625rem, 1rem + 0.31vw, 1.1875rem);
  --t-h4: clamp(1.0625rem, 1.02rem + 0.23vw, 1.125rem);
  --t-h3: clamp(1.1875rem, 1.09rem + 0.47vw, 1.375rem);
  --t-h2: clamp(1.75rem, 1.32rem + 2.15vw, 2.625rem);
  --t-h1: clamp(2.5rem, 1.44rem + 5.3vw, 4.75rem);
  --t-brand: clamp(1.5rem, 1.32rem + 0.9vw, 1.875rem);
  --t-read: clamp(2rem, 1.5rem + 2.5vw, 2.875rem);

  --sp-1: clamp(0.375rem, 0.35rem + 0.13vw, 0.5rem);
  --sp-2: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  --sp-3: clamp(0.75rem, 0.66rem + 0.44vw, 1.125rem);
  --sp-4: clamp(1rem, 0.85rem + 0.75vw, 1.625rem);
  --sp-5: clamp(1.5rem, 1.24rem + 1.3vw, 2.5rem);
  --sp-6: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --sp-7: clamp(2.75rem, 1.9rem + 4.25vw, 6rem);

  --wrap: 73.75rem;
  --gutter: clamp(1rem, 0.7rem + 1.5vw, 1.5rem);
  --radius: 0.25rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--copper-dark); text-underline-offset: 0.125rem; }
a:hover { color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-text { max-width: 62rem; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-2) var(--sp-4);
  z-index: 20;
}
.skip:focus { left: 0; }

/* Kopf */

.site-head {
  border-bottom: 0.0625rem solid var(--line);
  background: var(--paper);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 4.5rem;
}
.brand {
  font-family: var(--serif);
  font-size: var(--t-brand);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.brand span {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem var(--sp-3);
  min-height: 2.75rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: var(--paper-3);
  color: var(--ink);
}

/* Hero */

.hero {
  border-bottom: 0.0625rem solid var(--line);
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  padding: var(--sp-6) 0 var(--sp-7);
}
.hero-grid {
  display: grid;
  gap: var(--sp-6);
  align-items: start;
}
.hero-kicker {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 var(--sp-4);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-h1);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
}
.hero h1 b {
  font-weight: 400;
  color: var(--copper);
  font-style: italic;
}
.hero-lead {
  font-size: var(--t-lead);
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 var(--sp-5);
}
.hero-facts {
  display: grid;
  border-top: 0.0625rem solid var(--line-strong);
  max-width: 46ch;
}
.hero-facts div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 0.0625rem solid var(--line);
  font-size: var(--t-sm);
}
.hero-facts span:first-child { color: var(--ink-2); }
.hero-facts b { font-weight: 600; }

.reveal {
  opacity: 0;
  transform: translateY(0.875rem);
  animation: rise 0.7s var(--ease) forwards;
}
.reveal-2 { animation-delay: 0.08s; }
.reveal-3 { animation-delay: 0.16s; }
.reveal-4 { animation-delay: 0.24s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* Rechner */

.calc {
  background: var(--paper);
  border: 0.0625rem solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 1.125rem 2.5rem -1.75rem rgba(89, 61, 32, 0.55);
  overflow: hidden;
}
.calc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 0.0625rem solid var(--line);
  background: var(--paper-2);
}
.calc-head h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.calc-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-4);
}
.calc-fields { display: grid; gap: var(--sp-3); }
.calc-field label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--sp-1);
}
.calc-row { display: flex; gap: var(--sp-2); }
.calc-row input,
.calc-row select {
  font-family: var(--sans);
  font-size: var(--t-lead);
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 0.0625rem solid var(--line-strong);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
  min-height: 3.25rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.calc-row select {
  width: auto;
  min-width: 8.5rem;
  font-size: var(--t-sm);
  font-weight: 500;
}
.calc-row input:focus,
.calc-row select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 0.1875rem var(--copper-tint);
}
.calc-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  min-height: 3.25rem;
  padding: 0.625rem var(--sp-3);
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: var(--copper);
  border: 0.0625rem solid var(--copper-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.calc-swap:hover { background: var(--copper-dark); }
.calc-swap:active { transform: translateY(0.0625rem); }
.calc-swap:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.1875rem var(--copper-tint);
}

.gauge {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: var(--sp-3);
  align-items: end;
}
.gauge-tube {
  position: relative;
  height: clamp(8.5rem, 6rem + 9vw, 12rem);
  border: 0.125rem solid var(--line-strong);
  border-top: none;
  border-radius: 0 0 0.75rem 0.75rem;
  background: var(--paper-2);
  overflow: hidden;
}
.gauge-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #c2803c 0%, var(--copper) 55%, var(--copper-dark) 100%);
  transform-origin: bottom center;
  transform: scaleY(var(--fill, 0.4));
  transition: transform 0.5s var(--ease);
}
.gauge-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(100deg, rgba(255, 255, 255, 0.28) 0 18%, transparent 18% 100%),
    repeating-linear-gradient(180deg, rgba(23, 19, 15, 0.16) 0 0.0625rem, transparent 0.0625rem 10%);
}
.gauge-read { align-self: end; }
.gauge-read strong {
  display: block;
  font-family: var(--serif);
  font-size: var(--t-read);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.gauge-read span {
  display: block;
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin-top: var(--sp-1);
}

.calc-out {
  border-top: 0.0625rem solid var(--line);
  background: var(--paper-2);
  padding: var(--sp-3) var(--sp-4);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0 var(--sp-4);
}
.calc-out div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-1) 0;
  font-size: var(--t-sm);
  border-bottom: 0.0625rem dotted var(--line-strong);
}
.calc-out span { color: var(--ink-2); }
.calc-out b { font-weight: 600; }

/* Inhalt */

.section {
  padding: var(--sp-7) 0;
  border-bottom: 0.0625rem solid var(--line);
}
.section:last-of-type { border-bottom: none; }
.section-head { max-width: 62ch; margin-bottom: var(--sp-5); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-3);
}
.prose h2 { margin-top: var(--sp-6); }
.prose h2:first-child { margin-top: 0; }
h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: var(--sp-6) 0 var(--sp-2);
}
h4 {
  font-size: var(--t-h4);
  font-weight: 700;
  margin: var(--sp-5) 0 var(--sp-1);
}
p { margin: 0 0 var(--sp-3); max-width: 68ch; }
.prose li { max-width: 66ch; margin-bottom: var(--sp-1); }
.lead { font-size: var(--t-lead); color: var(--ink-2); }

.note {
  border-left: 0.1875rem solid var(--copper);
  background: var(--paper-2);
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-5) 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { font-weight: 700; }

/* Tabellen */

.table-scroll {
  overflow-x: auto;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin: var(--sp-5) 0;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}
caption {
  text-align: left;
  font-size: var(--t-sm);
  color: var(--ink-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 0.0625rem solid var(--line);
  background: var(--paper-2);
}
th, td {
  padding: var(--sp-2) var(--sp-4);
  text-align: right;
  border-bottom: 0.0625rem solid var(--line);
  white-space: nowrap;
}
th:first-child, td:first-child { text-align: left; }
thead th {
  position: sticky;
  top: 0;
  background: var(--paper-3);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  z-index: 1;
}
tbody tr { transition: background-color 0.15s var(--ease); }
tbody tr:hover { background: var(--paper-3); }
tbody tr:hover td:first-child { box-shadow: inset 0.1875rem 0 0 var(--copper); }
tbody tr:last-child td { border-bottom: none; }
td.wide, th.wide { white-space: normal; min-width: 14rem; text-align: left; }

.table-tall { max-height: 38.75rem; overflow-y: auto; }

/* Karten und Listen */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.0625rem;
  background: var(--line);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: var(--sp-5) 0 0;
}
.link-grid a {
  display: block;
  padding: var(--sp-4) var(--sp-4);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.link-grid a:hover { background: var(--paper-3); }
.link-grid strong {
  display: block;
  font-size: var(--t-base);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}
.link-grid span { font-size: var(--t-sm); color: var(--ink-2); }

.faq { max-width: 74ch; }
.faq details {
  border-bottom: 0.0625rem solid var(--line);
  padding: 0.25rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--sp-3) var(--sp-6) var(--sp-3) 0;
  font-size: var(--t-base);
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--t-h3);
  color: var(--copper);
  line-height: 1;
}
.faq details[open] summary::after { content: '\2212'; }
.faq summary:hover { color: var(--copper-dark); }
.faq details > p { padding-bottom: var(--sp-1); }

.vergleich {
  margin: var(--sp-5) 0;
  max-width: 46rem;
}
.vergleich svg { width: 100%; height: auto; display: block; }
.vergleich-raster line { stroke: var(--line); stroke-width: 1; }
.vergleich-balken rect { fill: var(--copper); }
.vergleich-achse text {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  fill: var(--ink-3);
  text-anchor: middle;
}
.vergleich-label text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  fill: var(--ink);
  text-anchor: end;
}
.vergleich-wert text {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink-2);
}
.vergleich figcaption {
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin-top: var(--sp-2);
  max-width: 62ch;
}

.seitenbild {
  margin: var(--sp-5) 0;
}
.seitenbild img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 0.0625rem solid var(--line);
}
.seitenbild figcaption {
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin-top: var(--sp-2);
  max-width: 62ch;
}
.seitenbild-ki {
  display: block;
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin-top: var(--sp-1);
}

/* Das VG-Wort-Zaehlpixel bleibt im Textfluss. Nicht off-screen schieben und nicht
   auf display:none setzen, sonst laedt der Browser es bei loading="lazy" nie und
   die Zaehlmarke wird nie ausgeloest. */
.vgw {
  display: inline-block;
  width: 1px;
  height: 1px;
  border: 0;
  vertical-align: bottom;
}

.source-list { font-size: var(--t-sm); color: var(--ink-2); }
.source-list li { margin-bottom: var(--sp-2); }

/* Fuss */

.site-foot {
  border-top: 0.0625rem solid var(--line);
  background: var(--paper-2);
  padding: var(--sp-6) 0 var(--sp-5);
}
.foot-inner {
  display: grid;
  gap: var(--sp-5);
  align-items: start;
}
.foot-brand p {
  font-size: var(--t-sm);
  color: var(--ink-2);
  max-width: 42ch;
  margin: var(--sp-3) 0 0;
}
.foot-nav {
  display: grid;
  gap: var(--sp-2);
  align-content: start;
}
.foot-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--t-sm);
}
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 0.0625rem solid var(--line-strong);
}
.foot-legal p {
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin: 0;
  max-width: none;
}

@media (min-width: 56.25rem) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7); }
  .calc-body { grid-template-columns: 1fr 12.5rem; }
  .foot-inner { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (max-width: 35rem) {
  .brand span { display: none; }
  th, td { padding: var(--sp-2) var(--sp-3); }
}
