/* =========================================================
   LEISTUNGSSEITEN in Richtung Tinte (Muster: onlineshop-erstellen-lassen)
   Gleiche Klassen wie leistung.css, damit die anderen drei Seiten nur
   das Stylesheet wechseln muessen. Tinte ist die Grundflaeche, Beleg und
   Kontakt stehen auf Papier (.flaeche-papier), wie auf der Startseite.
   Tokens und Schriften kommen aus tokens.css.
   ========================================================= */

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

:root { --bg: var(--ink); --fg: var(--paper); --linie: var(--fog); --leise: var(--fog); }
.flaeche-papier { --bg: var(--paper); --fg: var(--ink); --linie: var(--ink); --leise: var(--fog-text); }

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

body {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
  border-radius: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
}
.skip-link:focus {
  left: var(--s-4);
  top: var(--s-4);
  background: var(--paper);
  color: var(--ink);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
}

/* ---------- Rahmen ---------- */
.frame {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 6%;
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--s-9) 0;
  border-top: 1px solid var(--linie);
  scroll-margin-top: 84px;
}
/* Helle Flaeche bis an den Bildschirmrand, ohne den Rahmen zu verlassen */
.flaeche-papier {
  background: var(--bg);
  color: var(--fg);
  border-top: 0;
  box-shadow: 0 0 0 100vmax var(--bg);
  clip-path: inset(0 -100vmax);
}
.flaeche-papier + .section { border-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-7);
  align-items: baseline;
  margin-bottom: var(--s-7);
}
.section-filed {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: var(--tr-mono);
  color: var(--leise);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.9;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
/* Inhalt steht in der rechten Spalte unter dem Titel, die Rubrik bleibt links allein */
@media (min-width: 881px) {
  .section > :not(.section-head) { margin-left: calc((100% - var(--s-7)) / 3 + var(--s-7)); }
  /* Kontakt hat keinen Titel: Rubrik links, Text und Knopf rechts */
  .section.cta-block { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-7); align-items: baseline; }
  .section.cta-block > * { margin-left: 0; margin-top: 0; }
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: 56px;
  padding: 0 var(--s-5);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--fg);
  border-radius: 0;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary::after {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--rust);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='6' stroke-linecap='square' stroke-linejoin='miter'><path d='M8 32 L52 32'/><path d='M36 16 L52 32 L36 48'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='6' stroke-linecap='square' stroke-linejoin='miter'><path d='M8 32 L52 32'/><path d='M36 16 L52 32 L36 48'/></svg>") center / contain no-repeat;
}
.btn-primary:hover { background: color-mix(in srgb, var(--fg) 92%, var(--bg)); }
.btn-sm { height: 44px; min-height: 44px; font-size: 19px; padding: 0 var(--s-4); gap: var(--s-3); }
.btn-sm::after { width: 16px; height: 16px; }

.cta-note {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--leise);
  margin-top: var(--s-3);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--ink);
  border-bottom: 1px solid var(--fog);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-5);
  min-height: 64px;
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
}
.header-name {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.header-nav { display: flex; gap: var(--s-6); }
.header-nav a {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--fog);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid transparent;
}
.header-nav a:hover { color: var(--paper); border-bottom-color: var(--paper); }
.header-cta { justify-self: end; }

/* ---------- Seitenkopf: grosse Zeile, darunter Text links und Termin rechts ---------- */
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 0 var(--s-7);
  padding: var(--s-7) 0 var(--s-9);
}
.hero-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-7);
}
.hero-meta a,
.hero-meta span {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--leise);
}
.hero-meta a { color: var(--fg); text-underline-offset: 3px; }
.hero-headline {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--linie);
  margin-bottom: var(--s-7);
}
.hero-text { max-width: 62ch; }
.hero-lede {
  font-family: var(--font-body);
  font-size: var(--t-lede);
  line-height: 1.55;
}
.hero-lede + .hero-lede { margin-top: var(--s-4); }
.hero-cta { align-self: start; justify-self: end; }
/* Wer hier baut: kleines Portrait ueber dem Knopf, auch mobil */
.hero-person { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.hero-person img { width: 56px; height: 56px; border-radius: 50%; background: var(--bone); }
.hero-person span {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  line-height: 1.6;
}
/* Kurzer Beleg unter dem Knopf, nur Text: das Stufen-Abzeichen gibt Shopify erst ab Silver frei */
.hero-beleg {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--linie);
}

/* ---------- Fliesstext ---------- */
.fliess {
  font-size: var(--t-lede);
  line-height: 1.6;
  max-width: 62ch;
}
.fliess + .fliess,
.fliess + .karten,
.karten + .fliess,
.fliess + .schritte,
.schritte + .fliess { margin-top: var(--s-5); }
.fliess + .karten { margin-top: var(--s-7); }

.fliess a,
.hero-lede a,
.karte a,
.schritt a,
.cta-lede a,
details.faq-item p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rust);
}

/* Faktenliste "Auf einen Blick" (Shop-Analyse): Begriff links in Mono, Aussage rechts */
.fakten { max-width: 78ch; border-bottom: 1px solid var(--linie); }
.fakten > div { display: grid; grid-template-columns: 160px 1fr; gap: var(--s-2) var(--s-5); padding: var(--s-4) 0; border-top: 1px solid var(--linie); }
.fakten dt { font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--leise); padding-top: 6px; }
.fakten dd { margin: 0; font-size: var(--t-lede); line-height: 1.45; min-width: 0; }
.fakten dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rust); }
@media (max-width: 720px) { .fakten > div { grid-template-columns: 1fr; gap: var(--s-1); } .fakten dt { padding-top: 0; } }

/* Leistungen als Zeilen wie auf der Startseite, die Ziffer zaehlt das Stylesheet */
.karten { counter-reset: karte; border-bottom: 1px solid var(--linie); }
.karte {
  counter-increment: karte;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-3) var(--s-5);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--linie);
}
.karte::before {
  content: counter(karte, decimal-leading-zero);
  grid-row: 1 / span 3;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tr-mono);
  color: var(--rust);
  padding-top: 8px;
}
.karte > * { grid-column: 2; }
.karte h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1;
  text-transform: uppercase;
}
.karte p { line-height: 1.6; max-width: 62ch; }

/* Ablauf: Zeilen an einer Massleiste, Striche alle 12 px, ein Rost-Strich pro Schritt */
.schritte { list-style: none; position: relative; padding-left: 28px; max-width: 78ch; border-bottom: 1px solid var(--linie); }
.schritte::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; border-left: 1px solid var(--linie);
  background-image: repeating-linear-gradient(to bottom, var(--linie) 0 1px, transparent 1px 12px), repeating-linear-gradient(to bottom, var(--linie) 0 1px, transparent 1px 120px);
  background-size: 6px 100%, 12px 100%; background-repeat: no-repeat;
}
.schritt {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--linie);
}
.schritt::before { content: ""; position: absolute; left: -28px; top: calc(var(--s-5) + 14px); width: 18px; height: 2px; background: var(--rust); }
.schritt-nr {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tr-mono);
  color: var(--rust);
  padding-top: 6px;
}
.schritt h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.schritt p { line-height: 1.6; max-width: 62ch; }

/* Preisvergleich mit Quelle: die Tabelle scrollt auf dem Handy in ihrem eigenen Rahmen */
.tabelle-rollen { overflow-x: auto; max-width: 78ch; margin-top: var(--s-5); }
.preis-tabelle { width: 100%; min-width: 440px; border-collapse: collapse; border-bottom: 1px solid var(--linie); }
.preis-tabelle th,
.preis-tabelle td { text-align: left; padding: var(--s-4) var(--s-5) var(--s-4) 0; border-top: 1px solid var(--linie); vertical-align: baseline; }
.preis-tabelle thead th {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--leise);
  border-top: 0;
  padding-top: 0;
}
.preis-tabelle tbody th { font-weight: 600; }
.preis-tabelle td { font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); line-height: 1.05; text-transform: uppercase; }
.fliess.quelle-zeile {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--leise);
  margin-top: var(--s-3);
}
.fliess.quelle-zeile a { color: var(--leise); }

/* Beleg-Bild im hellen Abschnitt */
.beleg-bild { border: 1px solid var(--linie); margin-bottom: var(--s-6); max-width: 78ch; }
.beleg-bild img { width: 100%; height: auto; }

/* ---------- FAQ ---------- */
details.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 44px;
}
details.faq-item > summary::-webkit-details-marker { display: none; }
.toggle-arrow {
  width: 18px; height: 18px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='6' stroke-linecap='square' stroke-linejoin='miter'><path d='M8 32 L52 32'/><path d='M36 16 L52 32 L36 48'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='6' stroke-linecap='square' stroke-linejoin='miter'><path d='M8 32 L52 32'/><path d='M36 16 L52 32 L36 48'/></svg>") center / contain no-repeat;
  transform: rotate(90deg);
  transition: transform var(--dur-base) var(--ease-out);
}
details[open] .toggle-arrow { transform: rotate(-90deg); }

.faq-list { border-top: 1px solid var(--linie); max-width: 78ch; }
details.faq-item { border-bottom: 1px solid var(--linie); }
details.faq-item > summary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-body);
  line-height: 1.4;
  padding: var(--s-4) 0;
}
details.faq-item > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
details.faq-item p {
  line-height: 1.65;
  max-width: 62ch;
  padding-bottom: var(--s-5);
  color: var(--fg);
}
details.faq-item p.quelle {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--leise);
  margin-top: calc(-1 * var(--s-3));
}
details.faq-item p.quelle a { color: var(--leise); text-decoration: underline; text-underline-offset: 3px; }
.karte p.quelle {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--leise);
}
.karte p.quelle a { color: var(--leise); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Abschluss-CTA ---------- */
.cta-block .cta-inner { margin-top: var(--s-5); max-width: 62ch; }
.cta-lede {
  font-family: var(--font-body);
  font-size: var(--t-lede);
  line-height: 1.55;
}
.cta-action { margin-top: var(--s-6); }

/* ---------- Weiter: Zeilen mit Pfeil ---------- */
.weiter { list-style: none; border-bottom: 1px solid var(--linie); max-width: 78ch; }
.weiter li { border-top: 1px solid var(--linie); }
.weiter a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 72px;
  padding: var(--s-4) 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
.weiter a::after {
  content: ""; width: 20px; height: 20px; flex-shrink: 0; margin-left: auto; background: var(--rust);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='6' stroke-linecap='square' stroke-linejoin='miter'><path d='M8 32 L52 32'/><path d='M36 16 L52 32 L36 48'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='6' stroke-linecap='square' stroke-linejoin='miter'><path d='M8 32 L52 32'/><path d='M36 16 L52 32 L36 48'/></svg>") center / contain no-repeat;
  transition: transform var(--dur-base) var(--ease-out);
}
.weiter a:hover::after { transform: translateX(5px); }
.weiter-pfeil { color: var(--rust); }
@media (prefers-reduced-motion: reduce) { .weiter a::after { transition: none; } .weiter a:hover::after { transform: none; } }

/* ---------- Footer ---------- */
footer.foot {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-8) 0;
  border-top: 1px solid var(--fog);
}
.foot-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--s-7);
  align-items: end;
}
.foot-col h2 {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: var(--tr-mono);
  color: var(--fog);
  margin-bottom: var(--s-4);
  font-weight: 400;
  line-height: var(--lh-mono);
}
.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: var(--t-body);
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot-col a:hover { text-decoration-thickness: 2px; }
.foot-col .t-caption { color: var(--bone); }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; }
.foot-signature {
  color: var(--paper);
  justify-self: end;
  display: inline-block;
}
footer.foot a:focus-visible { outline-color: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-nav { gap: var(--s-5); }
}
@media (max-width: 960px) {
  .section { padding: var(--s-8) 0; }
  .hero { grid-template-columns: 1fr; padding: var(--s-6) 0 var(--s-8); }
  /* Mobil loest sich der Termin-Block auf, damit das Portrait direkt unter der Ueberschrift steht */
  .hero-cta { display: contents; }
  .hero-meta { order: 1; } .hero-headline { order: 2; } .hero-person { order: 3; } .hero-text { order: 4; }
  .hero-cta > :not(.hero-person) { order: 5; justify-self: start; }
  .hero-cta .btn { margin-top: var(--s-7); }
  .header-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: var(--s-4); margin-bottom: var(--s-6); }
  .foot-inner { grid-template-columns: 1fr; }
  footer.foot { padding: var(--s-7) 0; }
  .foot-signature { justify-self: start; }
}
@media (max-width: 720px) {
  body { font-size: var(--t-body-mobile); }
  p, .fliess, .hero-lede, .cta-lede, .karte p, .schritt p,
  details.faq-item > summary, details.faq-item p { font-size: var(--t-body-mobile); }
  details.faq-item p.quelle, .karte p.quelle, .fliess.quelle-zeile { font-size: var(--t-mono); }
  .preis-tabelle { min-width: 0; }
  .preis-tabelle th, .preis-tabelle td { padding-right: var(--s-3); }
  .preis-tabelle td { font-size: 18px; }
  .section { padding: var(--s-7) 0; }
  .hero-meta, .hero-headline { margin-bottom: var(--s-6); }
  .hero-headline { padding-bottom: var(--s-6); }
  .karte { grid-template-columns: 36px 1fr; gap: var(--s-3); padding: var(--s-5) 0; }
  .schritt { grid-template-columns: 28px 1fr; gap: var(--s-3); }
  .hero-cta .btn, .hero-cta .hero-beleg, .cta-action .btn { width: 100%; }
}
