/* AH-Treuhand GmbH – Entwurf Seetalwebsites
   Idee: die Seite eines Schweizer Kassabuchs. Papier, blaue Linien,
   rote Randlinie, Zahlen in Schreibmaschinenschrift, rote Revisions-Häkchen.
   Rot nur für Linien, Häkchen und Stempel, nie für Zahlen (rote Zahlen = Verlust). */

:root {
  --papier: #f4f1e8;
  --papier-2: #ebe6d8;
  --weiss: #fbfaf6;
  --linie: #c7d3df;
  --linie-2: #dde4ea;
  --tinte: #1c2f3f;
  --tinte-2: #46586a;
  --nacht: #132330;
  --rot: #b3362c;
  --rot-hell: #e58a77;
  --hell: #f4f1e8;
  --hell-2: #b7c4cf;

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --rahmen: 1180px;
  --rand: clamp(16px, 4vw, 40px);
  --zeile: 34px;
  --ease: cubic-bezier(.22, .61, .2, 1);
  --ease-aus: cubic-bezier(.16, 1, .3, 1);
  --kopf-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--kopf-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* feines Papierkorn über allem */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ol, ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--linie); color: var(--tinte); }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--tinte);
  color: var(--hell);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.rahmen {
  width: 100%;
  max-width: calc(var(--rahmen) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* ---------- Schrift-Bausteine ---------- */

.etikett {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.1rem;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tinte-2);
}
.etikett::before {
  content: "";
  width: 22px;
  height: 5px;
  border-block: 1.5px solid var(--rot);
}
.etikett-hell { color: var(--hell-2); }
.etikett-hell::before { border-color: var(--rot-hell); }

.titel-2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}

/* Doppelt unterstrichen wie eine Summe im Kassabuch.
   Einzeilig (Einstieg, Fuss): Linien zeichnen sich von links.
   Titel mit Umbruch: echte doppelte Unterstreichung, die sich einblendet. */
.titel-2 em {
  font-style: italic;
  font-weight: 300;
  text-decoration-line: underline;
  text-decoration-style: double;
  text-decoration-color: var(--rot);
  text-decoration-thickness: 1.5px;
  text-decoration-skip-ink: none;
  text-underline-offset: .16em;
  transition: text-decoration-color .9s var(--ease) .45s, text-underline-offset 1.1s var(--ease-aus) .45s;
}
.js .zeige .titel-2 em { text-decoration-color: transparent; text-underline-offset: .55em; }
.js .zeige.sichtbar .titel-2 em { text-decoration-color: var(--rot); text-underline-offset: .16em; }
.weg .titel-2 em,
.js .weg .zeige.sichtbar .titel-2 em { text-decoration-color: var(--rot-hell); }

.summe,
.fuss-satz em {
  font-style: italic;
  font-weight: 300;
  padding-bottom: .1em;
  --dick: 2px;
  --abstand: 5px;
  background:
    linear-gradient(var(--rot), var(--rot)) 0 100% / var(--breite, 100%) var(--dick) no-repeat,
    linear-gradient(var(--rot), var(--rot)) 0 calc(100% - var(--abstand)) / var(--breite, 100%) var(--dick) no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 1s var(--ease-aus) .45s;
}
.fuss-satz em { background-image: linear-gradient(var(--rot-hell), var(--rot-hell)), linear-gradient(var(--rot-hell), var(--rot-hell)); }

/* ---------- Knöpfe ---------- */

.knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .85rem 1.4rem;
  border: 1.5px solid var(--tinte);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.knopf svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.knopf-voll { background: var(--tinte); color: var(--hell); }
.knopf-voll:hover { background: var(--nacht); transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(19, 35, 48, .6); }
.knopf-rand { background: transparent; color: var(--tinte); }
.knopf-rand:hover { background: var(--tinte); color: var(--hell); }
.knopf-klein { min-height: 42px; padding: .55rem 1.05rem; font-size: .92rem; }
.knopf:active { transform: translateY(0); }

/* ---------- Kopfzeile ---------- */

.kopf {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--kopf-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
}
.kopf.gescrollt {
  background: rgba(244, 241, 232, .9);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom-color: var(--linie);
}
.kopf-innen { display: flex; align-items: center; gap: 2rem; }

.marke { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.marke-stempel { width: 44px; height: 44px; color: var(--tinte); transition: transform .6s var(--ease-aus); }
.marke:hover .marke-stempel { transform: rotate(-12deg); }
.marke-name { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; font-weight: 500; }
.marke-zusatz { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-2); }

.nav { display: flex; gap: 1.6rem; }
.nav a {
  position: relative;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  padding: .3rem 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--rot);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 1020px) { .nav { display: none; } }
@media (max-width: 640px) {
  :root { --kopf-h: 66px; }
  .kopf-knopf { display: none; }
  .marke-stempel { width: 38px; height: 38px; }
}

/* ---------- 1 · Einstieg ---------- */

.held {
  position: relative;
  padding: calc(var(--kopf-h) + clamp(2.5rem, 7vh, 5rem)) 0 clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.held-papier { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.held-linien {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--zeile) - 1px), var(--linie-2) calc(var(--zeile) - 1px) var(--zeile));
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
/* drei Betragsspalten rechts, wie im Kassabuch */
.held-spalten {
  position: absolute;
  top: 0; bottom: 0;
  right: max(var(--rand), calc((100vw - var(--rahmen)) / 2 - 10px));
  width: min(34vw, 420px);
  background:
    linear-gradient(var(--linie), var(--linie)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--linie), var(--linie)) 33.3% 0 / 1px 100% no-repeat,
    linear-gradient(var(--linie), var(--linie)) 66.6% 0 / 1px 100% no-repeat,
    linear-gradient(var(--linie), var(--linie)) 100% 0 / 1px 100% no-repeat;
  opacity: .7;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
/* rote Doppel-Randlinie links */
.held-rand {
  position: absolute;
  top: 0; bottom: 0;
  left: max(6px, calc((100vw - var(--rahmen)) / 2 - 30px));
  width: 6px;
  border-inline: 1.5px solid var(--rot);
  opacity: .75;
  transform-origin: top;
}

.held-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: min(68vh, 640px);
}

.held-titel {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 7.2vw, 6.1rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  margin: 0 0 1.6rem;
}
.held-titel .zeile { display: block; overflow: hidden; padding-bottom: .34em; margin-bottom: -.3em; }
.held-titel .zeile > span { display: block; }
.summe { --dick: max(2px, .035em); --abstand: .1em; padding-bottom: .06em; }

.held-lead { max-width: 34rem; font-size: 1.22rem; color: var(--tinte-2); margin-bottom: 2rem; }

.held-beleg { position: relative; display: flex; justify-content: center; padding: 2rem 0 1rem; }
.held-jahr {
  position: absolute;
  top: -.15em;
  right: -.06em;
  z-index: -1;
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(5.5rem, 15vw, 13.5rem);
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--linie);
  opacity: .8;
  user-select: none;
}

.beleg {
  position: relative;
  margin: 0;
  width: min(100%, 380px);
  padding: 14px 14px 12px;
  background: var(--weiss);
  box-shadow: 0 1px 1px rgba(19, 35, 48, .05), 0 24px 50px -22px rgba(19, 35, 48, .45);
  transform: rotate(-2.5deg);
}
.beleg img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 60%;
  filter: sepia(.12) saturate(.9) contrast(.98);
}
.beleg figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tinte-2);
}
.klammer {
  position: absolute;
  top: -34px;
  left: 40px;
  width: 30px;
  height: 76px;
  fill: none;
  stroke: #7d8891;
  stroke-width: 1.8;
  stroke-linecap: round;
  transform: rotate(6deg);
  filter: drop-shadow(1px 2px 1px rgba(19, 35, 48, .18));
  z-index: 2;
}

.buchung {
  display: grid;
  grid-template-columns: .6fr 1.4fr 1fr 1fr;
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  border-top: 1.5px solid var(--tinte);
  border-bottom: 4px double var(--tinte);
}
.buchung > div { padding: .9rem 1.2rem .95rem 0; }
.buchung > div + div { padding-left: 1.2rem; border-left: 1px solid var(--linie); }
.buchung dt {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tinte-2);
}
.buchung dd { margin: .15rem 0 0; font-family: var(--serif); font-size: 1.2rem; }

/* Einstieg: Bewegung beim Laden */
.js .held-linien { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease-aus) .1s; }
.js .held-spalten { transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease-aus) .5s; }
.js .held-rand { transform: scaleY(0); transition: transform 1.5s var(--ease-aus) .25s; }
.js .held-titel .zeile > span { transform: translateY(108%); transition: transform 1.15s var(--ease-aus); }
.js .held-titel .zeile:nth-child(2) > span { transition-delay: .12s; }
.js .summe { --breite: 0%; transition: background-size 1s var(--ease-aus) 1.05s; }
.js .held-teil { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1s var(--ease-aus); }
.js .held-text .held-teil:first-child { transition-delay: .05s; }
.js .held-lead { transition-delay: .45s; }
.js .held .knoepfe { transition-delay: .6s; }
.js .buchung { transition-delay: .85s; }
.js .beleg { opacity: 0; transform: translateY(46px) rotate(-9deg); transition: opacity .8s var(--ease) .35s, transform 1.4s var(--ease-aus) .35s; }
.js .held-jahr { opacity: 0; transform: translateX(30px); transition: opacity 1.4s var(--ease) .6s, transform 1.6s var(--ease-aus) .6s; }

.bereit .held-linien { clip-path: inset(0 0 0 0); }
.bereit .held-spalten,
.bereit .held-rand { transform: none; }
.bereit .held-titel .zeile > span { transform: none; }
.bereit .summe { --breite: 100%; }
.bereit .held-teil { opacity: 1; transform: none; }
.bereit .beleg { opacity: 1; transform: rotate(-2.5deg); }
.bereit .held-jahr { opacity: .8; transform: none; }

/* ---------- Einblenden beim Scrollen ---------- */

.js .zeige {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease-aus) var(--d, 0s);
}
.js .zeige.sichtbar { opacity: 1; transform: none; }

/* ---------- Abschnitte allgemein ---------- */

section { position: relative; }
.seit, .leistungen, .ablauf, .ich, .kontakt { padding: clamp(4.5rem, 11vw, 8.5rem) 0; }

.abschnitt-kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.abschnitt-lead { color: var(--tinte-2); max-width: 32rem; margin: 1.2rem 0 0; }
.abschnitt-kopf .abschnitt-lead { margin: 0 0 .4rem; }

/* ---------- 2 · Strichliste ---------- */

.seit { background: var(--papier-2); border-block: 1px solid var(--linie); }
.seit-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.seit-lead { color: var(--tinte-2); margin-top: 1.4rem; max-width: 31rem; }

.strichliste {
  position: relative;
  padding: 1.6rem 1.8rem 1.3rem;
  background:
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--zeile) - 1px), var(--linie-2) calc(var(--zeile) - 1px) var(--zeile)),
    var(--weiss);
  box-shadow: 0 1px 1px rgba(19, 35, 48, .05), 0 22px 44px -26px rgba(19, 35, 48, .4);
}
.strichliste::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 1rem;
  width: 5px;
  border-inline: 1px solid var(--rot);
  opacity: .5;
}
.strich-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-left: .8rem; }
.strich-etikett,
.strich-fuss {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tinte-2);
}
.strich-jahr {
  font-family: var(--mono);
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.striche {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  padding: 1.4rem 0 1.2rem .8rem;
  min-height: 150px;
}
.gruppe { width: 60px; height: 68px; overflow: visible; }
.strich {
  fill: none;
  stroke: var(--tinte);
  stroke-width: 2.6;
  stroke-linecap: round;
}
.strich.quer { stroke: var(--rot); stroke-width: 2.4; }
.js .strich { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .zeichnen .strich { stroke-dashoffset: 0; transition: stroke-dashoffset .26s var(--ease) calc(var(--i) * 62ms); }
.strich-fuss { display: flex; justify-content: space-between; margin: 0; padding: .6rem 0 0 .8rem; border-top: 4px double var(--tinte); font-variant-numeric: tabular-nums; }

.chronik { margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1.5px solid var(--tinte); }
.chronik li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--linie);
}
.chronik-jahr { font-family: var(--mono); font-size: 1.05rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.chronik-text { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; }
.chronik-beleg { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-2); white-space: nowrap; }

/* ---------- 3 · Leistungen als Kontenblatt ---------- */

.konto-kopf,
.konto-zeile {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) 15rem;
  gap: 1.5rem;
}
.konto-kopf {
  padding-bottom: .7rem;
  border-bottom: 1.5px solid var(--tinte);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tinte-2);
}
.konto-kopf span:last-child { text-align: right; }
.konto-zeile {
  position: relative;
  padding: 1.7rem 0 1.8rem;
  align-items: baseline;
}
.konto-zeile::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--linie);
  transform-origin: left;
  transition: transform 1.2s var(--ease-aus) calc(var(--d, 0s) + .2s);
}
.js .konto-zeile:not(.sichtbar)::after { transform: scaleX(0); }
.konto-zeile:last-child::after { height: 4px; background: none; border-block: 1px solid var(--tinte); }
.konto-nr { font-family: var(--mono); font-size: 1rem; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.konto-inhalt h3 { font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; margin-bottom: .45rem; }
.konto-inhalt p { margin: 0; color: var(--tinte-2); max-width: 38rem; }
.konto-wer { font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; text-align: right; color: var(--tinte-2); }

/* Leuchtstift beim Überfahren */
.marker {
  background: linear-gradient(transparent 58%, rgba(170, 196, 219, .75) 58%, rgba(170, 196, 219, .75) 90%, transparent 90%) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .55s var(--ease);
}
.konto-zeile:hover .marker { background-size: 100% 100%; }

/* ---------- 4 · Wegweiser ---------- */

.weg {
  background: var(--tinte);
  color: var(--hell);
  padding: clamp(4.5rem, 11vw, 8.5rem) 0;
  overflow: hidden;
}
.weg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--zeile) - 1px), rgba(244, 241, 232, .045) calc(var(--zeile) - 1px) var(--zeile));
  pointer-events: none;
}
.weg-raster {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.weg-lead { color: var(--hell-2); margin-top: 1.2rem; max-width: 30rem; }
@media (min-width: 941px) { .weg-text { position: sticky; top: calc(var(--kopf-h) + 2rem); } }

.weg-wahl { margin-top: 2.4rem; display: grid; gap: 2rem; }
.weg-wahl fieldset { border: 0; margin: 0; padding: 0; }
.weg-wahl legend {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .9rem;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hell-2);
}
.legend-nr {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 1px solid rgba(244, 241, 232, .4);
  border-radius: 50%;
  font-size: .75rem;
  letter-spacing: 0;
  color: var(--hell);
}
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 48px;
  padding: .65rem 1.1rem;
  border: 1px solid rgba(244, 241, 232, .32);
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip span::before {
  content: "";
  width: 14px; height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  opacity: .6;
  transition: background-color .25s, border-color .25s, opacity .25s;
}
.chip:hover span { border-color: rgba(244, 241, 232, .7); }
.chip input:checked + span { background: var(--hell); color: var(--tinte); border-color: var(--hell); }
.chip input:checked + span::before {
  opacity: 1;
  border-color: var(--rot);
  background: var(--rot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.6 2.6L11 4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.chip input:focus-visible + span { outline: 2.5px solid var(--rot-hell); outline-offset: 3px; }

/* Drucker und Kassenzettel */
.weg-drucker { position: relative; max-width: 400px; width: 100%; justify-self: center; }
.drucker {
  position: relative;
  z-index: 2;
  height: 46px;
  margin: 0 -18px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(#0d1922, #0a141b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 24px -10px rgba(0, 0, 0, .6);
}
.drucker-schlitz {
  position: absolute;
  left: 14px; right: 14px; bottom: 9px;
  height: 5px;
  border-radius: 3px;
  background: #02070a;
}
.drucker-licht {
  position: absolute;
  top: 12px; right: 20px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6fbf8e;
  box-shadow: 0 0 8px #6fbf8e;
}
.druckt .drucker-licht,
.weg-drucker.druckt .drucker-licht { animation: blinken .35s steps(2) 4; }
@keyframes blinken { 50% { opacity: .25; } }

.zettel-huelle { position: relative; margin-top: -9px; overflow: hidden; padding: 0 0 30px; }
.zettel {
  --zacke: 9px;
  position: relative;
  margin: 0 8px;
  padding: 1.6rem 1.5rem calc(1.4rem + var(--zacke));
  background: var(--weiss);
  color: #24323d;
  font-family: var(--mono);
  font-size: .86rem;
  line-height: 1.55;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .55);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zacke)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zacke)) 100%;
}
.js .weg-drucker:not(.druckt) .zettel { transform: translateY(-100%); }
.weg-drucker.druckt .zettel { animation: drucken 1.5s cubic-bezier(.45, .05, .3, 1) both; }
@keyframes drucken {
  from { transform: translateY(-100%); }
  to { transform: none; }
}
.zettel-kopf { display: grid; justify-items: center; gap: .1rem; padding-bottom: .9rem; border-bottom: 1px dashed #9aa6b1; text-align: center; }
.zettel-kopf strong { font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; }
.zettel-kopf span { font-size: .78rem; color: #5a6874; }
.zettel-daten { margin: .8rem 0 0; padding-bottom: .8rem; border-bottom: 1px dashed #9aa6b1; }
.zettel-daten div { display: flex; justify-content: space-between; gap: 1rem; }
.zettel-daten dt { color: #5a6874; }
.zettel-daten dd { margin: 0; text-align: right; font-weight: 500; }
.zettel-titel {
  margin: 1rem 0 .45rem;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5a6874;
}
.zettel-liste li { position: relative; padding-left: 1.5rem; margin-bottom: .25rem; }
.zettel-ueber li::before { content: "✓"; position: absolute; left: 0; color: var(--rot); font-weight: 500; }
.zettel-mit li::before { content: ""; position: absolute; left: .1rem; top: .38em; width: .72em; height: .72em; border: 1.2px solid #24323d; border-radius: 1px; }
.zettel-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0 0;
  padding: .55rem 0;
  border-block: 1px solid #24323d;
  box-shadow: 0 3px 0 -2px #24323d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.zettel-fuss { margin: 1rem 0 .9rem; text-align: center; font-size: .72rem; color: #5a6874; }
.zettel-fuss::before {
  content: "";
  display: block;
  height: 34px;
  margin-bottom: .6rem;
  background: repeating-linear-gradient(90deg, #24323d 0 2px, transparent 2px 4px, #24323d 4px 5px, transparent 5px 8px, #24323d 8px 11px, transparent 11px 12px, #24323d 12px 13px, transparent 13px 16px);
  opacity: .85;
}
.zettel-knopf {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  min-height: 48px;
  background: var(--tinte);
  color: var(--hell);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color .25s var(--ease);
}
.zettel-knopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.zettel-knopf:hover { background: var(--nacht); }
.zettel-knopf:hover svg { transform: translateX(4px); }

/* ---------- 5 · So läuft's ---------- */

.ablauf-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.haken-liste { margin-top: 2.6rem; }
.haken-schritt {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.3rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--linie);
}
.haken-schritt:first-child { border-top: 1px solid var(--linie); }
.haken-box {
  position: relative;
  width: 44px; height: 44px;
  margin-top: .15rem;
  border: 1.5px solid var(--tinte);
  border-radius: 2px;
  transform: rotate(-2deg);
}
.haken-box svg { position: absolute; left: -4px; top: -12px; width: 56px; height: 56px; overflow: visible; }
.haken-strich { fill: none; stroke: var(--rot); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.js .haken-strich { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s cubic-bezier(.6, 0, .3, 1) .15s; }
.js .erreicht .haken-strich { stroke-dashoffset: 0; }
.haken-schritt h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; margin-bottom: .3rem; }
.haken-schritt p { margin: 0; color: var(--tinte-2); }

.eingeklebt {
  position: relative;
  margin: 0;
  padding: 12px 12px 14px;
  background: var(--weiss);
  box-shadow: 0 1px 1px rgba(19, 35, 48, .05), 0 24px 44px -24px rgba(19, 35, 48, .45);
  transform: rotate(1.6deg);
}
.js .eingeklebt.sichtbar { transform: rotate(1.6deg); }
.eingeklebt img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 58% 50%; filter: sepia(.18) saturate(.85) contrast(.97); }
.eingeklebt figcaption { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--tinte-2); }
.klebband {
  position: absolute;
  z-index: 2;
  width: 110px; height: 30px;
  background: rgba(214, 205, 180, .62);
  box-shadow: 0 1px 2px rgba(19, 35, 48, .12);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
}
.klebband-1 { top: -12px; left: -20px; transform: rotate(-32deg); }
.klebband-2 { bottom: -10px; right: -22px; transform: rotate(-28deg); }

/* ---------- 6 · Über mich ---------- */

.ich { background: var(--papier-2); border-top: 1px solid var(--linie); }
.ich-raster {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.portrait { margin: 0; }
.portrait-platz {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  aspect-ratio: 4 / 5;
  border: 1.5px dashed var(--tinte-2);
  background:
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--zeile) - 1px), var(--linie-2) calc(var(--zeile) - 1px) var(--zeile)),
    var(--weiss);
  color: var(--tinte-2);
}
.portrait-platz svg { width: 96px; height: 96px; color: var(--tinte); opacity: .8; }
.portrait-platz span { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.ich-text > p:not(.etikett) { color: var(--tinte-2); max-width: 36rem; }
.ich-text .titel-2 { margin-bottom: 1.5rem; }
.ich-zitat {
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 6px double var(--rot);
}
.ich-zitat p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; color: var(--tinte); }
.ich-fakten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1.5px solid var(--tinte);
}
.ich-fakten li { padding: 1rem 1rem 0 0; }
.ich-fakten li + li { padding-left: 1rem; border-left: 1px solid var(--linie); }
.ich-fakten strong { display: block; font-family: var(--mono); font-weight: 500; font-size: 1.4rem; letter-spacing: -.02em; }
.ich-fakten span { font-size: .92rem; color: var(--tinte-2); line-height: 1.35; display: block; margin-top: .2rem; }

/* ---------- 7 · Band ---------- */

.band {
  position: relative;
  height: clamp(340px, 62vh, 620px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--tinte);
}
.band-bild {
  position: absolute;
  left: 0; top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(.85) contrast(.97);
  will-change: transform;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 35, 48, .72), rgba(19, 35, 48, .1) 55%, transparent);
}
.band-innen { position: relative; z-index: 1; padding-bottom: clamp(2rem, 6vh, 3.5rem); }
.band-satz {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--hell);
}
.band-satz em { font-style: italic; }

/* ---------- 8 · Kontakt ---------- */

.kontakt-raster {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.kontakt-mail {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 2rem 0 1.3rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  text-decoration: none;
  border-bottom: 1.5px solid var(--linie);
  transition: border-color .3s var(--ease);
}
.kontakt-mail:hover { border-color: var(--rot); }
.kontakt-mail svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.kontakt-adresse { font-style: normal; color: var(--tinte-2); line-height: 1.55; margin-bottom: 1rem; }
.link-pfeil {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.link-pfeil svg { width: 20px; height: 20px; fill: none; stroke: var(--rot); stroke-width: 1.7; }
.link-pfeil:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rot); }
.karte { margin-top: 1.4rem; border: 1px solid var(--linie); background: var(--weiss); padding: 8px; }
.karte iframe { display: block; width: 100%; height: 260px; border: 0; filter: saturate(.55) sepia(.12); }

.formular {
  position: relative;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  background: var(--weiss);
  box-shadow: 0 1px 1px rgba(19, 35, 48, .05), 0 26px 50px -28px rgba(19, 35, 48, .45);
  border-top: 5px double var(--tinte);
}
.formular-titel { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 1.4rem; }
.feld { display: grid; gap: .3rem; margin-bottom: 1.3rem; }
.feld-reihe { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 1.2rem; }
.feld label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tinte-2);
}
.feld input,
.feld select,
.feld textarea {
  width: 100%;
  min-height: 46px;
  padding: .45rem 0;
  border: 0;
  border-bottom: 1.5px solid var(--linie);
  border-radius: 0;
  background: transparent;
  color: var(--tinte);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color .25s var(--ease);
}
.feld select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231c2f3f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") right center / 18px no-repeat;
  cursor: pointer;
}
.feld textarea {
  resize: vertical;
  line-height: 32px;
  padding: 0;
  border-bottom: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 31px, var(--linie) 31px 32px);
}
.feld input:focus,
.feld select:focus { outline: none; border-bottom-color: var(--tinte); }
.feld textarea:focus { outline: none; background: repeating-linear-gradient(to bottom, transparent 0 31px, var(--tinte-2) 31px 32px); }
.feld .fehlt { border-bottom-color: var(--rot); }
.formular-hinweis { font-size: .92rem; color: var(--tinte-2); }
.formular .knopf { width: 100%; }
.formular-danke {
  margin: 1.2rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 6px double var(--rot);
  background: var(--papier);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.stempel {
  position: absolute;
  top: 1.4rem;
  right: 1.3rem;
  padding: .35rem .75rem;
  border: 3px double var(--rot);
  border-radius: 4px;
  color: var(--rot);
  font-family: var(--mono);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  transform: rotate(-9deg);
  opacity: .82;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.js .formular .stempel { opacity: 0; transform: rotate(-9deg) scale(1.9); }
.js .formular.sichtbar .stempel { animation: stempeln .5s cubic-bezier(.3, 1.5, .5, 1) .7s both; }
@keyframes stempeln {
  0% { opacity: 0; transform: rotate(-4deg) scale(1.9); }
  60% { opacity: .9; }
  100% { opacity: .82; transform: rotate(-9deg) scale(1); }
}

/* ---------- Fuss ---------- */

.fuss { background: var(--nacht); color: var(--hell); padding: clamp(3.5rem, 8vw, 5.5rem) 0 2rem; }
.fuss-oben {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244, 241, 232, .16);
}
.fuss-satz { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4.5vw, 3.3rem); line-height: 1.1; }
.fuss-links { display: grid; gap: .3rem; text-align: right; color: var(--hell-2); }
.fuss-links a { color: var(--hell); text-decoration: none; }
.fuss-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fuss-unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 2rem;
  padding-top: 1.4rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--hell-2);
}

/* ---------- Handy-Leiste ---------- */

.handy-leiste { display: none; }

/* ---------- Tablet ---------- */

@media (max-width: 940px) {
  .held-raster,
  .seit-raster,
  .weg-raster,
  .ablauf-raster,
  .ich-raster,
  .kontakt-raster { grid-template-columns: minmax(0, 1fr); }
  .abschnitt-kopf { grid-template-columns: minmax(0, 1fr); }
  .held-raster { min-height: 0; }
  .held-beleg { justify-content: flex-end; padding: 1rem 1.5rem 0 0; }
  .beleg { width: min(76%, 340px); }
  .held-spalten { width: 46vw; }
  .buchung { grid-template-columns: 1fr 1fr; }
  .buchung > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .buchung > div:nth-child(n+3) { border-top: 1px solid var(--linie); }
  .eingeklebt { max-width: 460px; justify-self: center; }
  .portrait { max-width: 360px; }
  .weg-drucker { justify-self: stretch; margin-inline: auto; }
}

/* ---------- Handy ---------- */

@media (max-width: 640px) {
  body { font-size: 1.125rem; padding-bottom: 72px; }
  .held { padding-top: calc(var(--kopf-h) + 2rem); }
  .held-rand { display: none; }
  .held-lead { font-size: 1.1rem; }
  .etikett { font-size: .7rem; letter-spacing: .1em; }
  .knoepfe .knopf { width: 100%; }
  .held-beleg { justify-content: center; padding: 1.5rem 0 0; }
  .beleg { width: min(82%, 300px); }
  .held-jahr { font-size: 6.5rem; right: 0; top: 0; }
  .buchung > div { padding: .75rem .8rem .8rem 0; }
  .buchung > div + div { padding-left: .8rem; }
  .buchung > div:nth-child(3) { padding-left: 0; }
  .buchung dd { font-size: 1.05rem; }

  .strichliste { padding: 1.3rem 1.1rem 1.1rem; }
  .strichliste::before { left: .55rem; }
  .striche { gap: .4rem .6rem; }
  .gruppe { width: 50px; height: 58px; }

  .chronik li { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .chronik-text { font-size: 1.15rem; }

  .konto-kopf { display: none; }
  .konto-zeile { grid-template-columns: 2.6rem minmax(0, 1fr); gap: .9rem; padding: 1.4rem 0 1.5rem; }
  .konto-wer { grid-column: 2; text-align: left; margin-top: .4rem; }

  .weg-wahl { gap: 1.6rem; }
  .chip span { font-size: .95rem; padding: .55rem .9rem; }
  .drucker { margin: 0 -8px; }
  .zettel { padding-inline: 1.1rem; font-size: .8rem; }

  .haken-schritt { grid-template-columns: 46px minmax(0, 1fr); gap: 1rem; }
  .haken-box { width: 38px; height: 38px; }
  .haken-box svg { width: 50px; height: 50px; }
  .haken-schritt h3 { font-size: 1.35rem; }

  .ich-fakten { grid-template-columns: minmax(0, 1fr); }
  .ich-fakten li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--linie); }
  .ich-fakten li { padding: .8rem 0; display: flex; align-items: baseline; gap: 1rem; }
  .ich-fakten strong { min-width: 4.5rem; font-size: 1.2rem; }
  .ich-fakten span { margin: 0; }

  .feld-reihe { grid-template-columns: minmax(0, 1fr); }
  .stempel { top: .9rem; right: .8rem; font-size: .72rem; }
  .fuss-links { text-align: left; }

  .handy-leiste {
    position: fixed;
    left: 10px; right: 10px; bottom: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6px;
    padding: 6px;
    background: rgba(19, 35, 48, .96);
    border-radius: 8px;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55);
    transform: translateY(140%);
    transition: transform .5s var(--ease-aus);
  }
  .handy-leiste.zeigen { transform: none; }
  .handy-leiste a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    border-radius: 5px;
    color: var(--hell);
    font-weight: 600;
    font-size: .98rem;
    text-decoration: none;
  }
  .handy-leiste svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .handy-leiste-haupt { background: var(--hell); color: var(--tinte) !important; }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .band-bild { transform: none !important; }
}
