/* Möbelmontage — «Anleitungsblatt»: weißes Papier, 2-px-Tinte, Karton-Flächen, eine Druckfarbe (Pflaume).
   Schriften selbst gehostet (OFL). Keine Verläufe, keine Schatten, keine externen Ressourcen. */
@font-face { font-family: "Familjen Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/familjen-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Next"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/atkinson-next-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Next"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/atkinson-next-700.woff2") format("woff2"); }
@font-face { font-family: "Fallback Grotesk"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 96%; ascent-override: 92%; descent-override: 24%; }

:root {
  --papier: #ffffff;
  --tinte: #2a211b;
  --tinte-2: #3d322a;
  --karton: #d9b88c;
  --karton-hell: #f1e3cc;
  --pflaume: #6b2d5c;
  --pflaume-tief: #4f1f44;
  --pflaume-hell: color-mix(in srgb, #6b2d5c 10%, #ffffff);
  --zink: #6f757a;
  --strich: 2px;
  --rund: 4px;
  --rand: 20px;
  --max: 1120px;
  --display: "Familjen Grotesk", "Fallback Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Atkinson Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--tinte); font-family: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
@media (min-width: 900px) { body { font-size: 18px; } }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 5vw, 40px); }
h3 { font-size: 21px; line-height: 1.2; }
p { margin: 0 0 12px; }
a { color: var(--pflaume); }
b, strong { font-weight: 700; }
svg { display: block; }
.bogen { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--rand); }
.bogen--schmal { max-width: 760px; }
.hide-sm { display: none; }
@media (min-width: 480px) { .hide-sm { display: inline; } }
:focus-visible { outline: 3px solid var(--pflaume); outline-offset: 3px; }
.top :focus-visible, .fuss :focus-visible, .leiste :focus-visible, .knopf--voll:focus-visible { outline-color: #fff; }

/* ---------- Kopfzeile ---------- */
.top { background: var(--tinte); color: #fff; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.top__tag { margin: 0; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; color: var(--karton); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__tel { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; min-height: 44px; padding: 8px 12px; border: var(--strich) solid var(--karton); border-radius: var(--rund); white-space: nowrap; }
.top__tel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Blätter ---------- */
.blatt { padding: 44px 0; border-top: var(--strich) solid var(--tinte); }
.blatt.titel { border-top: 0; }
.blattkopf { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; }
.blattkopf h2 { font-size: clamp(26px, 5vw, 40px); }
.blattkopf p { margin: 0; color: var(--zink); font-size: 17px; }
.blattkopf p b { color: var(--pflaume); }
@media (min-width: 900px) {
  .blatt { padding: 64px 0; }
  .blattkopf { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px; }
}

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 18px; border: var(--strich) solid var(--pflaume); border-radius: var(--rund); font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; cursor: pointer; font-family: var(--text); background: transparent; color: var(--pflaume); }
.knopf--voll { background: var(--pflaume); color: #fff; }
.knopf--voll:hover { background: var(--pflaume-tief); border-color: var(--pflaume-tief); }
.knopf--leer:hover { background: var(--pflaume-hell); }
.knopf--text { border: 0; min-height: 44px; padding: 4px 0; font-size: 15px; text-decoration: underline; }
.knopf--breit { width: 100%; }
.knopf svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.knopf span { display: flex; flex-direction: column; text-align: left; }
.knopf small { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.knopf b { font-size: 20px; }

/* ---------- Titelblatt ---------- */
.titel { padding-top: 20px; }
.titel__foto { margin: 0 0 20px; }
.titel__foto { position: relative; }
/* Mobil: Kopfzeile → Foto → H1 → Claim → Anruf-Knopf, der Erklärtext kommt nach dem Knopf (Knopf bleibt im ersten Screen) */
.titel__in { display: flex; flex-direction: column; }
.titel__sub { order: 5; margin: 0 0 8px; }
.titel__zusage { order: 6; }
.titel__cta { margin-bottom: 18px; }
.titel__foto img { aspect-ratio: 2 / 1; object-fit: cover; }
.titel__foto { background: transparent; }
.titel__zeile { margin: 0 0 18px; color: var(--zink); font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; }
.titel__h1 { font-size: clamp(38px, 10vw, 76px); line-height: 0.98; margin-bottom: 18px; text-wrap: balance; }
.titel__ort { display: block; color: var(--pflaume); }
.titel__claim { font-size: clamp(20px, 3.4vw, 26px); font-weight: 700; line-height: 1.25; margin-bottom: 12px; max-width: 760px; }
.titel__sub { max-width: 760px; color: var(--tinte-2); margin-bottom: 24px; }
.titel__cta { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.titel__cta .knopf--voll { width: 100%; justify-content: flex-start; padding: 12px 18px; }
.titel__zusage { margin-top: 16px; color: var(--zink); font-size: 15px; max-width: 640px; }
@media (min-width: 900px) {
  .titel { padding-top: 56px; }
  .titel__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; align-items: start; }
  .titel__sub { order: 0; margin-bottom: 24px; }
  .titel__zusage { order: 0; }
  .titel__cta { margin-bottom: 0; }
  .titel__in > * { grid-column: 1; }
  .titel__foto { grid-column: 2; grid-row: 1 / span 6; margin: 6px 0 0; position: sticky; top: 16px; }
  .titel__foto img { aspect-ratio: 1200 / 630; }
  .titel__cta { flex-direction: row; align-items: stretch; max-width: none; }
  .titel__cta .knopf--voll { width: auto; min-width: 360px; }
}

/* ---------- Stückliste ---------- */
.stuecke { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stueck { border: var(--strich) solid var(--tinte); border-radius: var(--rund); padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--papier); }
.stueck h3 { font-size: 17px; }
.stueck p { margin: 0; color: var(--zink); font-size: 14px; line-height: 1.35; min-height: 2.7em; }
.stueck.is-set { border-color: var(--pflaume); background: var(--pflaume-hell); }
.piktogramm { width: 64px; height: 64px; fill: none; stroke: var(--tinte); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 8px; overflow: visible; }
.piktogramm--klein { width: 44px; height: 44px; }
.piktogramm .part { transition: transform 240ms ease; }
.stueck:not(.is-set) .piktogramm .part[data-dx="6"] { transform: translateX(6px); }
.stueck:not(.is-set) .piktogramm .part[data-dx="-6"] { transform: translateX(-6px); }
.stueck:not(.is-set) .piktogramm .part[data-dx="7"] { transform: translateX(7px); }
.stueck:not(.is-set) .piktogramm .part[data-dx="-7"] { transform: translateX(-7px); }
.stueck:not(.is-set) .piktogramm .part[data-dx="9"] { transform: translateX(9px); }
.stueck:not(.is-set) .piktogramm .part[data-dx="-9"] { transform: translateX(-9px); }
.stueck:not(.is-set) .piktogramm .part[data-dx="10"] { transform: translateX(10px); }
.stueck:not(.is-set) .piktogramm .part[data-dy="-6"] { transform: translateY(-6px); }
.stueck:not(.is-set) .piktogramm .part[data-dy="-8"] { transform: translateY(-8px); }
.stueck.is-set .piktogramm { stroke: var(--pflaume); }
.zaehler { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; border: var(--strich) solid var(--tinte); border-radius: var(--rund); overflow: hidden; }
.zaehler button { width: 46px; min-height: 46px; border: 0; background: transparent; color: var(--pflaume); font-size: 26px; font-weight: 700; cursor: pointer; font-family: var(--text); }
.zaehler button:hover { background: var(--pflaume-hell); }
.zaehler button[aria-disabled="true"] { color: var(--zink); cursor: default; }
.zaehler button[aria-disabled="true"]:hover { background: transparent; }
.zaehler__n { font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: center; }
.stueck.is-set .zaehler__n { color: var(--pflaume); }
.zaehler__n.bump { animation: bump 160ms ease; }
@keyframes bump { 50% { transform: scale(1.18); } }
.karton { margin-top: 18px; background: var(--karton-hell); border: var(--strich) solid var(--karton); border-radius: var(--rund); padding: 18px; }
.karton__text { margin: 0 0 14px; font-size: 18px; }
.karton__text b { color: var(--pflaume); }
.karton__aktionen { display: flex; flex-direction: column; gap: 10px; }
.karton__aktionen .knopf--text { align-self: flex-start; }
@media (min-width: 900px) {
  .stueckliste .bogen { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; }
  .stueckliste .blattkopf { grid-column: 1 / -1; }
  .stuecke { grid-template-columns: repeat(4, 1fr); }
  .karton { margin-top: 0; position: sticky; top: 16px; }
}

/* ---------- Anfrage ---------- */
.formular { display: flex; flex-direction: column; gap: 14px; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label { font-weight: 700; font-size: 15px; }
.feld label span { font-weight: 400; color: var(--zink); }
.feld input, .feld textarea { width: 100%; font: inherit; color: var(--tinte); background: var(--papier); border: var(--strich) solid var(--tinte); border-radius: var(--rund); padding: 12px 14px; min-height: 50px; }
.feld textarea { resize: vertical; line-height: 1.45; }
.feld input:focus, .feld textarea:focus { outline: 3px solid var(--pflaume); outline-offset: 1px; border-color: var(--pflaume); }
.feld.is-fehler input, .feld.is-fehler textarea { border-color: #a0121f; }
.feld .knopf--text { align-self: flex-start; }
.formular__hinweis { color: var(--zink); font-size: 14px; margin: 0; }
.formular__status { margin: 0; padding: 14px 16px; border: var(--strich) solid var(--pflaume); border-radius: var(--rund); background: var(--pflaume-hell); font-weight: 700; }
.formular__fehler { margin: 0; padding: 14px 16px; border: var(--strich) solid #a0121f; border-radius: var(--rund); color: #a0121f; font-weight: 700; }
.formular__fehler a { color: inherit; }

/* ---------- Ablauf ---------- */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.schritt { position: relative; border: var(--strich) solid var(--tinte); border-radius: var(--rund); padding: 18px 16px 16px 16px; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 6px; }
.schritt__nr { position: absolute; top: -14px; left: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--tinte); color: #fff; font-family: var(--display); font-size: 16px; display: grid; place-items: center; }
.schritt .piktogramm { grid-row: 1 / span 2; margin: 0; }
.schritt h3 { font-size: 18px; }
.schritt p { margin: 0; color: var(--tinte-2); font-size: 16px; }
@media (min-width: 900px) {
  .schritte { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .schritt { grid-template-columns: 1fr; padding-top: 24px; }
  .schritt .piktogramm { grid-row: auto; margin-bottom: 8px; }
}

/* ---------- Fotos: Rahmen wie im Anleitungsblatt, Bildunterschrift auf Karton ---------- */
.foto { margin: 22px 0 0; border: var(--strich) solid var(--tinte); border-radius: var(--rund); overflow: hidden; background: var(--papier); }
.foto-reihe { display: grid; gap: 14px; margin-top: 22px; }
.foto-reihe .foto { margin: 0; }
.leistung .foto { margin: 0 0 14px; }
.foto--seite { margin: 0; }
.zwei--foto > .foto { grid-column: 1 / -1; }
@media (min-width: 900px) { .foto-reihe { grid-template-columns: 1fr 1fr; gap: 16px; } .foto-reihe--eins { grid-template-columns: minmax(0, 760px); } }
.foto img { display: block; width: 100%; height: auto; }
.foto figcaption { padding: 8px 12px; background: var(--karton-hell); font-size: 14px; color: var(--tinte-2); }

/* ---------- Leistungen ---------- */
.leistung-grid { display: grid; gap: 16px; }
.leistung { border-top: var(--strich) solid var(--tinte); padding-top: 14px; }
.leistung h3 { margin-bottom: 8px; }
.leistung p { color: var(--tinte-2); }
.warnung { display: flex; gap: 10px; align-items: flex-start; border: var(--strich) solid var(--tinte); border-radius: var(--rund); padding: 12px 14px; background: var(--karton-hell); color: var(--tinte); font-size: 15px; }
.warnung svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--tinte); stroke-width: 2; stroke-linejoin: round; }
@media (min-width: 900px) { .leistung-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; } }

/* ---------- Das steht fest ---------- */
.zwei { display: grid; gap: 24px; }
.zwei h3 { margin-bottom: 10px; }
.liste { margin: 0; padding: 0; list-style: none; }
.liste li { padding: 10px 0 10px 30px; border-top: 1px solid var(--karton); position: relative; }
.liste li::before { content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 16px; border: var(--strich) solid var(--pflaume); border-radius: 3px; }
.liste li::after { content: ""; position: absolute; left: 5px; top: 17px; width: 6px; height: 9px; border-right: var(--strich) solid var(--pflaume); border-bottom: var(--strich) solid var(--pflaume); transform: rotate(45deg); }
@media (min-width: 900px) { .zwei { grid-template-columns: 1fr 1fr; gap: 48px; } .zwei--foto { grid-template-columns: 1.1fr 1fr 1fr; gap: 32px; align-items: start; } .zwei--foto > .foto { grid-column: auto; } }

/* ---------- Einsatzgebiet ---------- */
.gebiet__text { max-width: 760px; color: var(--tinte-2); margin-bottom: 18px; }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--karton); }
.ledger li { padding: 8px 4px; border-bottom: 1px solid var(--karton); font-variant-numeric: tabular-nums; font-size: 16px; }
.ledger li.is-active { color: var(--pflaume); font-weight: 700; }
.ledger li.is-active::before { content: "→ "; }
@media (min-width: 900px) { .ledger { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Fragen ---------- */
.faq details { border-top: var(--strich) solid var(--tinte); }
.faq details:last-child { border-bottom: var(--strich) solid var(--tinte); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; font-size: 18px; position: relative; font-family: var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--pflaume); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--tinte-2); max-width: 680px; }

/* ---------- Schluss ---------- */
.schluss { background: var(--karton-hell); }
.schluss h2 { max-width: 760px; margin-bottom: 10px; }
.schluss p { max-width: 640px; color: var(--tinte-2); margin-bottom: 20px; }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: #fff; padding: 32px 0 110px; }
.fuss__in p { margin: 0 0 8px; }
.fuss a { color: #fff; }
.fuss__legal { color: var(--karton); font-size: 15px; }
.fuss__marken { color: var(--zink); font-size: 13px; margin-top: 14px; max-width: 760px; }
@media (min-width: 900px) { .fuss { padding-bottom: 40px; } }

/* ---------- Mobile Leiste (zwei Segmente) ---------- */
.leiste { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; border: var(--strich) solid var(--tinte); border-radius: var(--rund); overflow: hidden; background: var(--papier); transform: translateY(120%); transition: transform 200ms ease; }
.leiste.show { transform: translateY(0); }
.leiste a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; text-decoration: none; font-weight: 700; font-size: 16px; }
.leiste__a { background: var(--pflaume); color: #fff; }
.leiste__a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.leiste__b { color: var(--pflaume); }
@media (min-width: 900px) { .leiste { display: none; } }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .piktogramm .part, .leiste { transition: none; }
  .zaehler__n.bump { animation: none; }
}
