/* Papierheld Steuererklärung – Produktseite.
   Gesetzt nach Fassung 5 der Markenregeln von papierheld.com („gesetzt wie ein Prospekt“):
   ein Raster mit Abschnittsmarke links und Inhalt rechts, feine Linien, weißes Papier, eine Schriftfarbe,
   Grün nur für Verweise und den einen Hauptknopf, Radius höchstens 8 px, keine Verläufe, keine Zierbilder.
   Schriften: Gabarito und Geist, selbst gehostet. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('geist-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('geist-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('Gabarito-VF.woff2') format('woff2');
}

:root {
  --papier: #ffffff;
  --sand: #f6f4ef;
  --linie: #dfe2dc;
  --linie-fein: #eceee9;
  --text: #17201b;
  --text-2: #4d5852;
  --text-3: #7a857e;
  --gruen: #1f5f4a;
  --gruen-d: #174838;
  --gold: #e0a63a;
  --schrift: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --schrift-titel: 'Gabarito', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --breite: 1200px;
  --seitenrand: clamp(20px, 4.5vw, 48px);
  --marke-spalte: 188px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.rahmen-seite {
  width: min(100% - 2 * var(--seitenrand), var(--breite));
  margin-inline: auto;
}
.sprung {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--gold);
  font-weight: 600;
}
.sprung:focus {
  top: 12px;
}
.entwurf {
  padding: 8px var(--seitenrand);
  background: var(--sand);
  border-bottom: 1px solid var(--linie);
  color: var(--text-2);
  font-size: 0.875rem;
}

/* ---------- Schrift ---------- */
.titel1,
.titel2,
h3,
.marke {
  font-family: var(--schrift-titel);
  font-feature-settings: normal;
}
.titel1 {
  max-width: 16em;
  font-weight: 600;
  font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.titel2 {
  max-width: 20em;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.fliess {
  max-width: 38em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--text-2);
  text-wrap: pretty;
}
.klein {
  margin-top: 20px;
  max-width: 46em;
  font-size: 0.9375rem;
  color: var(--text-3);
}
.verweis {
  color: var(--gruen);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgb(31 95 74 / 0.35);
  transition: text-decoration-color 0.15s;
}
.verweis:hover {
  text-decoration-color: currentColor;
}

/* ---------- Knöpfe: Rechteck mit kleinem Radius, ohne Schatten und Pfeil ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.6em 1.25em;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.knopf-gruen {
  background: var(--gruen);
  color: #fff;
}
.knopf-gruen:hover {
  background: var(--gruen-d);
}
.knopf-linie {
  border-color: var(--linie);
}
.knopf-linie:hover {
  border-color: var(--text);
}
.knopf-klein {
  min-height: 40px;
  padding: 0.45em 1em;
  border-radius: 7px;
  font-size: 0.9375rem;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.marke b {
  font-weight: 500;
  color: var(--text-2);
}
.marke .kurz {
  display: none;
}
.kopf-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.kopf-nav a {
  padding: 8px 14px;
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--text-2);
}
.kopf-nav a:hover {
  color: var(--text);
}
.kopf-innen > .knopf {
  margin-left: auto;
}
.kopf-nav + .knopf {
  margin-left: 8px;
}

/* ---------- Aufmacher: Überschrift, eine Zeile mit Text und Knöpfen, darunter das erklärte Bild ---------- */
.auf {
  padding-block: clamp(40px, 6vw, 84px) clamp(48px, 6vw, 88px);
}
.pfad {
  margin-bottom: 20px;
  font-size: 0.9375rem;
  color: var(--text-3);
}
.pfad a:hover {
  color: var(--text);
}
.pfad span {
  margin-inline: 0.55em;
}
.auf-zeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px clamp(32px, 6vw, 96px);
  margin-top: clamp(20px, 2.4vw, 30px);
}
.auf-text {
  max-width: 34em;
  font-size: clamp(1.125rem, 1.05rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.auf-tun,
.ende-tun {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

/* Programmfenster */
.fenster {
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.fenster-leiste {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--linie-fein);
  background: #f7f7f4;
}
.fenster-leiste i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d7d1;
}
.fenster img {
  width: 100%;
}

/* Erklärtes Bild: Punkte auf dem Bildschirmfoto, Legende darunter */
.schaubild {
  margin-top: clamp(36px, 5vw, 64px);
}
.schaubild .fenster {
  box-shadow: 0 30px 60px -44px rgb(16 32 27 / 0.35);
}
.schaubild-flaeche {
  position: relative;
}
.punkte li {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 3px #fff;
}
.legende {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px clamp(20px, 3vw, 40px);
  margin-top: clamp(22px, 2.6vw, 32px);
}
.legende li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.9875rem;
  line-height: 1.5;
  color: var(--text-2);
}
.legende b {
  display: block;
  color: var(--text);
  font-weight: 600;
}
.legende-nr {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}
.schaubild-unterzeile {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--text-3);
}

/* ---------- Das Raster: Abschnittsmarke am Rand, Inhalt rechts, feine Linie darüber ---------- */
.teil {
  border-top: 1px solid var(--linie);
  padding-block: clamp(44px, 5.5vw, 84px);
}
.teil-sand {
  background: var(--sand);
}
.teil-raster {
  display: grid;
  grid-template-columns: var(--marke-spalte) minmax(0, 1fr);
  gap: 24px 32px;
  align-items: start;
}
.teil-marke {
  position: sticky;
  top: 92px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}
.teil-inhalt > .titel2 {
  margin-bottom: clamp(24px, 3vw, 40px);
}
.teil-inhalt > .titel2 + .fliess {
  margin-top: calc(-1 * clamp(10px, 1.6vw, 22px));
  margin-bottom: clamp(24px, 3vw, 36px);
}
.frist {
  font-size: 1.125rem;
  font-weight: 500;
}

/* Bildschirmfotos mit Unterzeile */
.bilder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 44px) clamp(20px, 2.6vw, 32px);
}
.bilder figcaption {
  margin-top: 12px;
  font-size: 0.9875rem;
  line-height: 1.5;
  color: var(--text-2);
}
.bilder figcaption b {
  color: var(--text);
  font-weight: 600;
}

/* Leistungen als Tabelle */
.leistungen {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.leistungen th,
.leistungen td {
  padding: 15px 0;
  border-top: 1px solid var(--linie);
  vertical-align: top;
}
.leistungen tr:last-child th,
.leistungen tr:last-child td {
  border-bottom: 1px solid var(--linie);
}
.leistungen th {
  width: 30%;
  padding-right: 24px;
  font-weight: 600;
}
.leistungen td {
  color: var(--text-2);
  text-wrap: pretty;
}

/* Was das Programm nicht macht */
.grenzen li {
  display: grid;
  grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 15px 0;
  border-top: 1px solid var(--linie);
  color: var(--text-2);
}
.grenzen li:last-child {
  border-bottom: 1px solid var(--linie);
}
.grenzen b {
  color: var(--text);
  font-weight: 600;
}

/* Drei Aussagen nebeneinander */
.dreier {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3.4vw, 48px);
}
.dreier > div {
  padding-top: 16px;
  border-top: 1px solid var(--text);
}
.dreier dt {
  font-weight: 600;
}
.dreier dd {
  margin-top: 4px;
  color: var(--text-2);
  text-wrap: pretty;
}
.preis-fuss {
  margin-top: 28px;
  font-size: 0.9375rem;
  color: var(--text-3);
}

/* Vergleich */
.tabelle-rahmen {
  overflow-x: auto;
}
.tabelle {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}
.tabelle th,
.tabelle td {
  padding: 14px 16px 14px 0;
  vertical-align: top;
  border-top: 1px solid var(--linie);
}
.tabelle thead th,
.tabelle thead td {
  border-top: 0;
  padding-top: 0;
  font-family: var(--schrift-titel);
  font-feature-settings: normal;
  font-size: 1.0625rem;
  font-weight: 600;
}
.tabelle tbody tr:last-child > * {
  border-bottom: 1px solid var(--linie);
}
.tabelle tbody th {
  width: 26%;
  font-weight: 600;
}
.tabelle td {
  color: var(--text-2);
}
.tabelle td:nth-child(2) {
  color: var(--text);
  font-weight: 500;
}
.tabelle small {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-3);
}

/* Fragen und Grundsätze: offen lesbar in zwei Spalten */
.fragenliste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 64px);
}
.fragenliste > div {
  padding: 18px 0 22px;
  border-top: 1px solid var(--linie);
}
.fragenliste dt {
  font-family: var(--schrift-titel);
  font-feature-settings: normal;
  font-weight: 600;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.3;
}
.fragenliste dd {
  margin-top: 6px;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Verzeichnis: nummerierte Zeilen */
.verzeichnis-zeile {
  display: grid;
  grid-template-columns: 3rem minmax(9rem, 16rem) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--linie);
}
.verzeichnis-zeile:last-child {
  border-bottom: 1px solid var(--linie);
}
.verzeichnis-nr {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.verzeichnis-name {
  font-family: var(--schrift-titel);
  font-feature-settings: normal;
  font-weight: 600;
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.verzeichnis-satz {
  color: var(--text-2);
}
.verzeichnis-ziel {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gruen);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: rgb(31 95 74 / 0.35);
  text-underline-offset: 0.22em;
}
.verzeichnis-ziel:hover {
  text-decoration-color: currentColor;
}
.verzeichnis-ziel.still {
  color: var(--text-3);
  text-decoration: none;
}

/* Abschluss: eine Zeile */
.ende {
  border-top: 1px solid var(--linie);
  padding-block: clamp(36px, 4.5vw, 60px);
}
.ende-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.ende-zeile > p {
  font-family: var(--schrift-titel);
  font-feature-settings: normal;
  font-weight: 600;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Fuß: hell, mit Linie */
.abspann {
  border-top: 1px solid var(--linie);
  padding-block: clamp(36px, 4.5vw, 56px) 28px;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.abspann-raster {
  display: grid;
  grid-template-columns: var(--marke-spalte) repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}
.abspann-marke {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--linie-fein);
}
.abspann-marke .marke {
  color: var(--text);
  font-size: 1.125rem;
}
.abspann-marke a,
.abspann-unten a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.abspann-raster > nav:first-of-type {
  grid-column: 2;
}
.abspann h3 {
  margin-bottom: 8px;
  font-family: var(--schrift);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}
.abspann li {
  padding: 3px 0;
}
.abspann a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.abspann-unten {
  display: grid;
  gap: 6px;
  margin-top: 32px;
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ---------- Rechtsseiten ---------- */
.text-seite {
  width: min(100% - 2 * var(--seitenrand), 760px);
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 80px);
}
.text-seite h1 {
  font-family: var(--schrift-titel);
  font-feature-settings: normal;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.text-seite h2 {
  font-family: var(--schrift-titel);
  font-feature-settings: normal;
  font-size: 1.375rem;
  font-weight: 600;
  margin: 36px 0 10px;
}
.text-seite p,
.text-seite li {
  color: var(--text-2);
  margin-bottom: 12px;
}
.text-seite ul,
.text-seite ol {
  padding-left: 1.2em;
  list-style: revert;
}
.text-seite a {
  color: var(--gruen);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.platzhalter {
  padding: 12px 0 12px 16px;
  border-left: 2px solid var(--gold);
}

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1023px) {
  .kopf-nav {
    display: none;
  }
  .legende {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teil-raster {
    grid-template-columns: minmax(0, 1fr);
  }
  .teil-marke {
    position: static;
  }
  .abspann-raster {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .abspann-raster > nav:first-of-type {
    grid-column: auto;
  }
}
@media (max-width: 767px) {
  .auf-zeile {
    grid-template-columns: minmax(0, 1fr);
  }
  .verzeichnis-zeile {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  }
  .verzeichnis-satz {
    grid-column: 2 / -1;
    grid-row: 2;
  }
  .dreier,
  .fragenliste,
  .bilder {
    grid-template-columns: minmax(0, 1fr);
  }
  .dreier > div {
    padding-bottom: 16px;
  }
  .leistungen th,
  .leistungen td {
    display: block;
    width: auto;
  }
  .leistungen th {
    padding-bottom: 0;
  }
  .leistungen td {
    border-top: 0;
    padding-top: 4px;
  }
  .leistungen tr:last-child th {
    border-bottom: 0;
  }
  .grenzen li {
    grid-template-columns: minmax(0, 1fr);
  }
  .abspann-raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 699px) {
  body {
    font-size: 1rem;
  }
  .kopf-innen {
    height: 60px;
    gap: 12px;
  }
  .marke .lang {
    display: none;
  }
  .marke .kurz {
    display: inline;
  }
  /* Am Handy zeigt das erklärte Bild die Handy-Ansicht; die Punkte passen dort nicht, die Legende steht ohne Nummern */
  .punkte,
  .legende-nr {
    display: none;
  }
  .legende li {
    grid-template-columns: minmax(0, 1fr);
  }
  .schaubild-flaeche img {
    aspect-ratio: 780 / 1180;
    object-fit: cover;
    object-position: top;
  }
  .legende {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .auf-tun .knopf,
  .ende-tun .knopf {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
