@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..700;1,6..96,400..700&family=Hanken+Grotesk:ital,wght@0,400..700;1,400..700&display=swap");

/* ==========================================================================
   Schwarzlicht Tattoo Collective — theme.css
   Leitidee: Vorlage → Linie → Fläche.
   Gestrichelt violett = Vorlage · 1–2 px schwarz = Fineline · 14 px / Fläche
   schwarz = Blackwork · Schwarz mit fliederner Strichelung = Cover-up.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --papier: #ffffff;
  --pause: #edebf5;
  --tinte: #000000;
  --graphit: #57555f;
  --schablone: #4a2fa6;
  --schablone-hell: #b9a9f0;
  --korrektur: #a4231c;
  --haarlinie: #c9c6d6;
  --korrektur-grund: #f8ecec;

  /* Schrift */
  --font-display: "Bodoni Moda", "Bodoni 72", "Didot", "Libre Bodoni", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  /* Skala */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.25rem, 1.2rem + 5vw, 6.25rem);

  /* Striche — die Stärke kodiert den Zustand */
  --line-fine: 1px;
  --line-ink: 2px;
  --line-needle: 6px;
  --line-solid: 14px;
  --dash: 7px;
  --dash-gap: 5px;
  --stencil-x: repeating-linear-gradient(90deg, var(--schablone) 0 var(--dash), transparent var(--dash) calc(var(--dash) + var(--dash-gap)));
  --stencil-y: repeating-linear-gradient(180deg, var(--schablone) 0 var(--dash), transparent var(--dash) calc(var(--dash) + var(--dash-gap)));
  --ghost-x: repeating-linear-gradient(90deg, var(--schablone-hell) 0 var(--dash), transparent var(--dash) calc(var(--dash) + var(--dash-gap)));

  /* Raum */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-section: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --sheet: 82rem;
  --measure: 36rem;
  --measure-prose: 42rem;

  --radius-control: 3px;
  --focus-ring: 3px solid var(--schablone);
  --ease: cubic-bezier(0.6, 0, 0.2, 1);
  --z-header: 20;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
h1, h2, h3, h4,
p, ul, ol, dl, dd,
figure, blockquote, address, fieldset {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}

address {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   3. Grundtypografie
   -------------------------------------------------------------------------- */
body {
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  font-kerning: normal;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  line-height: 0.98;
}

h2 {
  font-size: var(--step-3);
  line-height: 1.04;
}

h3 {
  font-family: var(--font-text);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p {
  max-width: var(--measure);
}

strong {
  font-weight: 600;
}

a {
  color: var(--schablone);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

::selection {
  background: var(--schablone);
  color: var(--papier);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* --------------------------------------------------------------------------
   4. Hilfsklassen
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--tinte);
  color: var(--papier);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline-color: var(--schablone-hell);
}

.wrap {
  width: 100%;
  max-width: var(--sheet);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Der einzige Ort für Abstände zwischen Abschnitten. */
main > section {
  padding-block: var(--section-pad, var(--space-section));
}

/* --------------------------------------------------------------------------
   5. Kopfzeile, Wortmarke, Navigation
   -------------------------------------------------------------------------- */
.masthead {
  position: relative;
  z-index: var(--z-header);
  background: var(--papier);
}

/* Perforation der Schablone: Die Seite beginnt als Vorlage. */
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--stencil-x);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 4.75rem;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  padding-block: 0.5rem;
  color: var(--tinte);
  line-height: 1;
  text-decoration: none;
}

.wordmark__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.wordmark__sub {
  margin-top: 0.35rem;
  color: var(--graphit);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
}

.nav__link {
  display: inline-block;
  padding-block: 0.75rem;
  color: var(--tinte);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 0.5rem) / 0 1px no-repeat;
  transition: background-size 0.18s var(--ease);
}

.nav__link:hover {
  background-size: 100% 1px;
}

.nav__link[aria-current="page"] {
  background-size: 100% 2px;
}

.nav__link--request {
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-control);
  background: var(--tinte);
  color: var(--papier);
  transition: background-color 0.18s;
}

.nav__link--request:hover,
.nav__link--request[aria-current="page"] {
  background: var(--schablone);
}

.nav-toggle {
  display: none;
}

@media (max-width: 55.99em) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0 0.25rem;
    border: 0;
    background: none;
    color: var(--tinte);
    font-weight: 600;
    cursor: pointer;
  }

  .nav-toggle__lines {
    position: relative;
    width: 26px;
    height: 10px;
  }

  .nav-toggle__lines::before,
  .nav-toggle__lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.2s var(--ease), top 0.2s var(--ease);
  }

  .nav-toggle__lines::before {
    top: 0;
  }

  .nav-toggle__lines::after {
    top: calc(100% - 1.5px);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__lines::before {
    top: calc(50% - 0.75px);
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__lines::after {
    top: calc(50% - 0.75px);
    transform: rotate(-45deg);
  }

  #site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--space-2) var(--gutter) var(--space-5);
    background: var(--papier);
    border-bottom: var(--line-fine) solid var(--tinte);
  }

  #site-nav[data-open="true"] {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding-block: 0.7rem;
    border-bottom: var(--line-fine) solid var(--pause);
    background: none;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.2;
  }

  .nav__link[aria-current="page"] {
    border-bottom-color: var(--tinte);
  }

  .nav__link--request {
    margin-top: var(--space-3);
    padding: 1rem;
    border-bottom: 0;
    background: var(--tinte);
    font-family: var(--font-text);
    font-size: var(--step-0);
    font-weight: 600;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   6. Knöpfe und Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border: var(--line-ink) solid var(--tinte);
  border-radius: var(--radius-control);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}

.btn--ink {
  background: var(--tinte);
  color: var(--papier);
}

.btn--ink:hover {
  background: var(--schablone);
  border-color: var(--schablone);
}

.btn--line {
  background: transparent;
  color: var(--tinte);
}

.btn--line:hover {
  background: var(--tinte);
  color: var(--papier);
}

.btn--paper {
  background: var(--papier);
  border-color: var(--papier);
  color: var(--tinte);
}

.btn--paper:hover {
  background: var(--schablone-hell);
  border-color: var(--schablone-hell);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.textlink {
  color: var(--tinte);
  font-weight: 600;
  text-decoration-color: var(--schablone);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.textlink:hover {
  color: var(--schablone);
}

/* --------------------------------------------------------------------------
   7. Abschnittskopf
   -------------------------------------------------------------------------- */
.section-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.section-head h2 {
  max-width: 16ch;
}

.section-head p {
  color: var(--graphit);
  font-size: var(--step-1);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   8. Hero und Drei-Zustände-Streifen
   -------------------------------------------------------------------------- */
.hero {
  --section-pad: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) var(--space-section);
}

.hero__grid {
  display: grid;
  gap: var(--space-4);
}

.hero h1 {
  max-width: 12ch;
}

.hero__aside {
  display: grid;
  gap: var(--space-3);
}

.hero__lead {
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.strip {
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.strip__art {
  width: 100%;
  height: clamp(10rem, 30vw, 24rem);
}

.strip__field {
  fill: var(--tinte);
}

.strip__vorlage {
  color: var(--schablone);
  fill: none;
  stroke: var(--schablone);
  stroke-width: 2;
  stroke-dasharray: 7 5;
  stroke-linecap: round;
}

.strip__linie {
  color: var(--tinte);
  fill: none;
  stroke: var(--tinte);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.strip__negativ {
  color: var(--tinte);
  fill: var(--papier);
  stroke: var(--papier);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.strip__wipe {
  transform-box: fill-box;
  transform-origin: 0 50%;
}

.strip__legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strip__zone {
  display: grid;
  gap: 0.2rem;
  padding: var(--space-2) var(--space-2) 0 var(--gutter);
  font-size: var(--step--1);
  line-height: 1.45;
}

.strip__zone + .strip__zone {
  padding-left: var(--space-2);
}

.strip__zone strong {
  font-size: var(--step-0);
}

.strip__zone span {
  display: none;
  color: var(--graphit);
}

/* --------------------------------------------------------------------------
   9. Signaturlinie (kompakter Streifen für Seitenköpfe)
   -------------------------------------------------------------------------- */
.signature {
  height: var(--line-solid);
  background:
    repeating-linear-gradient(90deg, var(--schablone) 0 var(--dash), transparent var(--dash) calc(var(--dash) + var(--dash-gap))) 0 50% / 33.34% 2px no-repeat,
    linear-gradient(var(--tinte), var(--tinte)) 50% 50% / 33.34% 1px no-repeat,
    linear-gradient(var(--tinte), var(--tinte)) 100% 50% / 33.34% 100% no-repeat;
}

.page-head {
  --section-pad: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--space-5);
}

.page-head h1 {
  max-width: 14ch;
}

.page-head__lead {
  margin-top: var(--space-3);
  color: var(--graphit);
  font-size: var(--step-1);
  line-height: 1.55;
}

.page-head .signature {
  margin-top: var(--space-5);
}

/* --------------------------------------------------------------------------
   10. Technik-Zeilen (Leistungen)
   -------------------------------------------------------------------------- */
.techniques {
  display: grid;
  gap: var(--space-5);
}

.technique {
  --rule-h: var(--line-fine);
  --rule-bg: var(--tinte);
  position: relative;
  display: grid;
  gap: var(--space-2) var(--space-5);
  padding-top: calc(var(--rule-h) + var(--space-4));
}

.technique::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--rule-h);
  background: var(--rule-bg);
}

.technique[data-stroke="fine"] {
  --rule-h: var(--line-fine);
}

.technique[data-stroke="solid"] {
  --rule-h: var(--line-solid);
}

.technique[data-stroke="cover"] {
  --rule-h: var(--line-solid);
  --rule-bg: var(--ghost-x) 0 50% / 100% 2px no-repeat, var(--tinte);
}

.technique[data-stroke="stencil"] {
  --rule-h: var(--line-ink);
  --rule-bg: var(--stencil-x);
}

.technique__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
}

.technique__body {
  display: grid;
  gap: var(--space-2);
}

.technique__fit {
  color: var(--graphit);
  font-size: var(--step--1);
  line-height: 1.5;
}

.technique__fit p {
  margin-bottom: 0.4rem;
  color: var(--tinte);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. Listen
   -------------------------------------------------------------------------- */
.lines {
  display: grid;
  gap: 0.6rem;
}

.lines > li {
  position: relative;
  padding-left: 1.75rem;
}

.lines > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 1rem;
  height: var(--line-fine);
  background: var(--tinte);
}

.technique__fit .lines {
  gap: 0.25rem;
}

.technique__fit .lines > li {
  padding-left: 1.25rem;
}

.technique__fit .lines > li::before {
  width: 0.7rem;
  top: 0.75em;
}

/* --------------------------------------------------------------------------
   12. Cover-up: vorher / nachher
   -------------------------------------------------------------------------- */
.cover {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.cover__figure svg {
  width: 100%;
  height: auto;
}

.cover__panel {
  fill: var(--pause);
}

.cover__alt {
  fill: none;
  stroke: var(--graphit);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}

.cover__neu {
  fill: var(--tinte);
}

.cover__ader {
  fill: none;
  stroke: var(--papier);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.cover__geist {
  fill: none;
  stroke: var(--schablone-hell);
  stroke-width: 1.6;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
}

.cover__caption {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-2);
  color: var(--graphit);
  font-size: var(--step--1);
  line-height: 1.45;
}

.cover__caption strong {
  display: block;
  color: var(--tinte);
}

.cover__text {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

/* --------------------------------------------------------------------------
   13. Hinweis
   -------------------------------------------------------------------------- */
.notice {
  position: relative;
  display: grid;
  gap: var(--space-3);
  max-width: 60rem;
  padding-left: calc(var(--line-solid) + var(--space-4));
}

.notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: var(--line-solid);
  background: var(--tinte);
}

.notice__statement {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.04;
}

.notice--stencil {
  padding-left: calc(var(--line-ink) + var(--space-3));
}

.notice--stencil::before {
  top: 0;
  bottom: 0;
  width: var(--line-ink);
  background: var(--stencil-y);
}

/* --------------------------------------------------------------------------
   14. Anfrage-Angaben
   -------------------------------------------------------------------------- */
.request {
  display: grid;
  gap: var(--space-5);
}

.request__item {
  position: relative;
  display: grid;
  gap: var(--space-2);
  align-content: start;
  padding-top: var(--space-4);
}

.request__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--line-ink);
  background: var(--stencil-x);
}

.request__mark {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-1);
  color: var(--schablone);
}

.request__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
}

.request__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-5);
}

.request__foot p {
  color: var(--graphit);
}

.request__foot a[href^="tel:"] {
  color: var(--tinte);
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   15. Ablauf
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--space-4);
}

.step {
  --rule-w: var(--line-fine);
  --rule-style: solid;
  --rule-c: var(--tinte);
  position: relative;
  display: grid;
  gap: var(--space-1);
  align-content: start;
  padding-left: calc(var(--line-needle) + var(--space-3));
}

/* Die Linie zwischen den Stationen: mobil senkrecht, ab 56em waagerecht. */
.step::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: calc(-1 * var(--space-4));
  left: calc((var(--line-needle) - var(--rule-w)) / 2);
  border-left: var(--rule-w) var(--rule-style) var(--rule-c);
}

.step:last-child::before {
  bottom: 0;
}

.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc((var(--line-needle) - 13px) / 2);
  width: 13px;
  height: 13px;
  border: var(--line-ink) solid var(--tinte);
  border-radius: 50%;
  background: var(--papier);
}

.step[data-phase="plan"] {
  --rule-w: var(--line-ink);
  --rule-style: dashed;
  --rule-c: var(--schablone);
}

.step[data-phase="ink"] {
  --rule-w: var(--line-needle);
}

.step[data-phase="care"] {
  --rule-w: var(--line-fine);
}

.step__num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
}

.step__title {
  margin-top: var(--space-1);
}

.step p {
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   16. Paare, Prosa, Kacheln
   -------------------------------------------------------------------------- */
.pair {
  display: grid;
  gap: var(--space-4) var(--space-5);
}

.prose {
  max-width: var(--measure-prose);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose p {
  max-width: none;
}

.prose > h2 {
  margin-top: 1.6em;
}

.prose > h3 {
  margin-top: 1.9em;
}

.prose > h2 + *,
.prose > h3 + * {
  margin-top: 0.6em;
}

.prose ul:not([class]),
.prose ol:not([class]) {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.4rem;
}

.prose ul:not([class]) > li::marker {
  content: "– ";
}

.prose ol:not([class]) > li::marker {
  font-family: var(--font-display);
}

.prose__lead {
  font-size: var(--step-1);
  line-height: 1.55;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-5) var(--space-4);
}

.tile {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  padding-top: var(--space-3);
  border-top: var(--line-fine) solid var(--tinte);
}

.tile--sheet {
  padding: var(--space-4);
  border-top: 0;
  background: var(--pause);
}

/* --------------------------------------------------------------------------
   17. Tabelle
   -------------------------------------------------------------------------- */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.table caption {
  margin-bottom: var(--space-2);
  color: var(--graphit);
  font-size: var(--step--1);
  text-align: left;
}

.table th,
.table td {
  padding: 0.85rem 1rem 0.85rem 0;
  text-align: left;
  vertical-align: top;
}

.table thead th {
  border-bottom: var(--line-ink) solid var(--tinte);
  font-weight: 600;
}

.table tbody th {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
}

.table tbody tr {
  border-bottom: var(--line-fine) solid var(--haarlinie);
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq {
  max-width: 52rem;
  border-top: var(--line-fine) solid var(--tinte);
}

.faq__item {
  border-bottom: var(--line-fine) solid var(--tinte);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 44px;
  padding-block: 1.2rem;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex: 0 0 16px;
  height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}

.faq__item[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}

.faq__answer {
  display: grid;
  gap: 0.8rem;
  padding-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   19. CTA-Band (Unterseiten) und Flächen
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--tinte);
  color: var(--papier);
}

.cta-band__inner {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.cta-band h2 {
  max-width: 18ch;
}

.cta-band p {
  color: var(--haarlinie);
  font-size: var(--step-1);
  line-height: 1.55;
}

.cta-band a:not(.btn) {
  color: var(--papier);
  text-decoration-color: var(--schablone-hell);
}

.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--schablone-hell);
}

/* --------------------------------------------------------------------------
   20. Kontaktfakten und Karte
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  gap: var(--space-5);
}

.facts__address {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.04;
}

.facts__list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.facts__list div {
  display: grid;
  gap: 0.15rem;
  padding-top: var(--space-2);
  border-top: var(--line-fine) solid var(--tinte);
}

.facts__list dt {
  color: var(--graphit);
  font-size: var(--step--1);
}

.facts__list dd {
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.facts__list dd a {
  color: var(--tinte);
  text-decoration-color: var(--schablone);
}

.facts__note {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  justify-items: start;
}

.map {
  aspect-ratio: 4 / 3;
  border: var(--line-fine) solid var(--tinte);
  background: var(--pause);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1);
}

/* --------------------------------------------------------------------------
   21. Formular
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--space-4);
  max-width: 44rem;
}

.form__group {
  display: grid;
  gap: var(--space-3);
}

.form__group legend {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
}

.form__row {
  display: grid;
  gap: var(--space-3);
}

.form__field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.form__label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.form__label span {
  color: var(--graphit);
  font-weight: 400;
}

.form__hint {
  color: var(--graphit);
  font-size: var(--step--1);
  line-height: 1.45;
}

.form__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 0;
  border-bottom: var(--line-ink) solid var(--tinte);
  border-radius: var(--radius-control) var(--radius-control) 0 0;
  background: var(--pause);
  font-size: 1rem;
  line-height: 1.4;
}

.form__input::placeholder {
  color: var(--graphit);
  opacity: 1;
}

.form__input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-bottom-color: var(--schablone);
}

textarea.form__input {
  min-height: 9rem;
  resize: vertical;
}

select.form__input {
  appearance: none;
  padding-right: 2.75rem;
  background:
    linear-gradient(45deg, transparent 50%, var(--tinte) 50%) calc(100% - 1.35rem) 50% / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--tinte) 50%) calc(100% - 0.97rem) 50% / 6px 6px no-repeat,
    var(--pause);
  cursor: pointer;
}

.form__input[aria-invalid="true"] {
  border-bottom-color: var(--korrektur);
  background-color: var(--korrektur-grund);
}

.form__error {
  color: var(--korrektur);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.4;
}

.form__error:empty {
  display: none;
}

.form__check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form__check input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.1rem 0 0;
  accent-color: var(--tinte);
  cursor: pointer;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.form__status {
  max-width: 44rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form__status:empty {
  display: none;
}

/* Wartend = noch Vorlage (gestrichelt), gesendet = gestochen (Fläche). */
.form__status[data-state="pending"] {
  padding: 1rem 1.25rem;
  border: var(--line-ink) dashed var(--schablone);
  color: var(--schablone);
}

.form__status[data-state="success"] {
  padding: 1rem 1.25rem 1rem calc(var(--line-solid) + 1.25rem);
  background: linear-gradient(var(--tinte), var(--tinte)) left / var(--line-solid) 100% no-repeat, var(--pause);
  font-weight: 500;
}

.form__status[data-state="error"] {
  padding: 1rem 1.25rem 1rem calc(var(--line-solid) + 1.25rem);
  background: linear-gradient(var(--korrektur), var(--korrektur)) left / var(--line-solid) 100% no-repeat, var(--korrektur-grund);
  color: var(--korrektur);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   22. Rechtstexte
   -------------------------------------------------------------------------- */
.legal {
  max-width: 46rem;
}

.legal > * + * {
  margin-top: 1em;
}

.legal p {
  max-width: none;
}

.legal h2 {
  margin-top: 2.2em;
  font-size: var(--step-2);
  line-height: 1.15;
}

.legal h3 {
  margin-top: 1.6em;
  font-size: var(--step-0);
}

.legal ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.3rem;
}

mark.gap {
  padding: 0 0.3em;
  border: var(--line-fine) dashed var(--korrektur);
  background: none;
  color: var(--korrektur);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   23. Fusszeile — die Seite endet in Fläche
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-block: var(--space-6) var(--space-4);
  background: var(--tinte);
  color: var(--papier);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ghost-x);
}

.site-footer a {
  color: var(--papier);
  text-decoration-color: var(--schablone-hell);
}

.footer__grid {
  display: grid;
  gap: var(--space-5);
}

.footer__name {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
}

.footer__grid p,
.footer__grid address {
  color: var(--haarlinie);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer__grid p + p {
  margin-top: var(--space-2);
}

.footer__nav ul {
  display: grid;
  gap: 0.35rem;
}

.footer__nav a {
  text-decoration: none;
}

.footer__nav a:hover {
  text-decoration: underline;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: var(--line-fine) solid #3a3940;
  color: var(--haarlinie);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   24. Styleguide-Hilfen
   -------------------------------------------------------------------------- */
.sg-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--space-4) var(--space-3);
}

.sg-swatch {
  display: grid;
  gap: 0.2rem;
  font-size: var(--step--1);
}

.sg-swatch::before {
  content: "";
  height: 6rem;
  margin-bottom: var(--space-1);
  border: var(--line-fine) solid var(--tinte);
  background: var(--sw);
}

.sg-swatch strong {
  font-size: var(--step-0);
}

.sg-scale {
  display: grid;
  gap: var(--space-4);
}

.sg-scale > div {
  display: grid;
  gap: 0.35rem;
  padding-top: var(--space-2);
  border-top: var(--line-fine) solid var(--haarlinie);
}

.sg-scale small {
  color: var(--graphit);
  font-size: var(--step--1);
}

.sg-sample-4 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.sg-sample-3 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.04;
}

.sg-sample-2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.1;
}

.sg-sample-1 {
  font-size: var(--step-1);
  font-weight: 600;
}

.sg-sample-small {
  font-size: var(--step--1);
  color: var(--graphit);
}

.sg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.sg-ink {
  padding: var(--space-4);
  background: var(--tinte);
  color: var(--papier);
}

.pair + .wrap,
.sg-block + .sg-block {
  margin-top: var(--space-5);
}

.sg-block > h3 {
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   25. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 36em) {
  .strip__zone span {
    display: block;
  }

  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3) var(--space-4);
  }
}

@media (min-width: 56em) {
  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: var(--space-5);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: end;
    column-gap: var(--space-5);
  }

  .hero__aside {
    padding-bottom: 0.6rem;
  }

  .technique {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 3fr);
    align-items: start;
  }

  .cover {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--space-6);
  }

  .request {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 var(--space-4);
  }

  .step {
    padding-left: 0;
    padding-top: calc(13px + var(--space-3));
  }

  .step::before {
    top: calc((13px - var(--rule-w)) / 2);
    bottom: auto;
    left: 0;
    right: calc(-1 * var(--space-4));
    border-left: 0;
    border-top: var(--rule-w) var(--rule-style) var(--rule-c);
  }

  .step:last-child::before {
    right: 0;
  }

  .step::after {
    left: 0;
  }

  .pair {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .facts {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--space-6);
  }

  .facts__note {
    padding-top: 0.6rem;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  }
}

@media (min-width: 80em) {
  .hero__grid {
    grid-template-columns: minmax(0, 9fr) minmax(0, 3.4fr);
  }

  .technique {
    grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr);
    column-gap: var(--space-6);
  }

  .strip__zone {
    padding-top: var(--space-3);
  }
}

/* --------------------------------------------------------------------------
   26. Bewegung — ein einziger Moment: die Nadel zieht den Zweig
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .strip__wipe {
    animation: nadel 2.8s var(--ease) 0.2s both;
  }
}

@keyframes nadel {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   27. Druck
   -------------------------------------------------------------------------- */
@media print {
  .masthead,
  .nav-toggle,
  .strip,
  .site-footer::before {
    display: none;
  }

  .site-footer,
  .cta-band {
    background: none;
    color: var(--tinte);
  }
}

/* ==========================================================================
   28. Ergänzungen für die Unterseiten
   Nur neue Regeln mit den vorhandenen Tokens; nichts oben wird verändert.
   ========================================================================== */

/* === leistungen: technik-vertiefung === */
/* Unter der .technique-Zeile folgt ein .pair auf demselben Raster wie die
   Zeile: links das Musterfeld, rechts die Prosa über Mittel- und Randspalte. */
.pair--technique {
  margin-top: var(--space-5);
}

@media (min-width: 56em) {
  .pair--technique {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 3fr);
  }

  .pair--technique > .prose {
    grid-column: 2 / -1;
  }
}

@media (min-width: 80em) {
  .pair--technique {
    grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr);
    column-gap: var(--space-6);
  }
}

/* === leistungen: musterfeld === */
/* Der Zweig aus dem Hero-Streifen als einzelnes Muster in genau einem Zustand:
   data-stroke="fine" = feine Linie auf Pause, "solid" = ausgespart in Fläche. */
.specimen svg {
  width: 100%;
  height: auto;
}

.specimen__ground {
  fill: var(--pause);
}

.specimen__zweig {
  color: var(--tinte);
  fill: none;
  stroke: var(--tinte);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.specimen[data-stroke="solid"] .specimen__ground {
  fill: var(--tinte);
}

.specimen[data-stroke="solid"] .specimen__zweig {
  fill: var(--papier);
  stroke: var(--papier);
  stroke-width: 2.5;
}

.specimen__caption {
  margin-top: var(--space-2);
  color: var(--graphit);
  font-size: var(--step--1);
  line-height: 1.45;
}

/* === cover-up: vorher-nachher breit === */
/* Die Cover-up-Zeichnung der Startseite über die ganze Bogenbreite; die
   Bildunterschrift steht zweispaltig genau unter den beiden Feldern. */
.cover--wide {
  grid-template-columns: minmax(0, 1fr);
}

.cover--wide .cover__caption {
  column-gap: 6.25%; /* Abstand der Felder in der Zeichnung: 40 von 640 */
  margin-top: var(--space-3);
  font-size: var(--step-0);
}

/* === kontakt: anfrage-pult === */
/* Formular links, Kontaktfakten rechts: zwei Abschnitte auf einem Bogen.
   Weil beide Abschnitte im Pult liegen, trägt das Pult den Abschnittsabstand. */
.desk {
  display: grid;
  gap: var(--space-section) var(--space-6);
  padding-block: var(--space-section);
}

.desk__lead {
  margin-bottom: var(--space-5);
}

/* Zwei Felder mit Hinweis nebeneinander: Der Hinweis nimmt den Höhenunterschied
   auf, damit die Unterlinien beider Felder auf einer Höhe liegen. */
.desk .form__row > .form__field:has(> .form__hint) {
  grid-template-rows: auto 1fr;
}

@media (min-width: 56em) {
  .desk {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .desk .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .desk .facts__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .desk .facts__note {
    padding-top: 0;
  }
}

/* === kontakt: karte mit einwilligung === */
/* Vor dem Laden ist die Karte noch Vorlage: Registrierkreuz, violett
   gestrichelt. Erst der Klick auf „Karte laden“ holt die Karte in den Rahmen
   (Link mit target="karte"), ohne Skript und ohne Verbindung vorher. */
.map-consent {
  display: grid;
  gap: var(--space-3);
}

.map-consent .map {
  position: relative;
}

.map__plan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--schablone);
}

.map-consent .map iframe {
  position: relative;
}

.map-consent__text {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  color: var(--graphit);
  font-size: var(--step--1);
  line-height: 1.5;
}

/* === rechtstexte: seitenkopf === */
/* Seitenkopf ohne Signatur; lange Titel wie „Datenschutzerklärung“ stehen auf
   breiten Schirmen in einer Zeile, auf dem Telefon trennt hyphens: auto. */
.page-head--legal h1 {
  max-width: none;
}
