/* Werkstattbuch, Website für werkstattbuch.niresh.de (aus Entwurf 1 und 2 vom 21.11.2026).
   Idee: „Die Farbkarte deiner Unterlagen: für jeden Schritt eine Garnprobe. Du entscheidest, das Werkstattbuch hält
   es fest.“ Farben, Proben und Bewegung wie in der App (ce-handmade/DESIGN.md, Farbkarte): Pflaume für Kopf und
   Handlung, Ocker nur als Markierung, sieben Garnfarben nur in den Proben, kein Grün, kein Häkchen, Systemschrift.
   Abstände 8/16/32/64 px, dazu 24 und 48 innerhalb großer Flächen. */

:root {
  --grund: #F4F1F4;
  --flaeche: #FFFFFF;
  --kopf: #3A1E3F;
  --handlung: #5B2A5F;
  --hauch: #F1E9F1;
  --ocker: #D4A017;
  --ocker-hell: #F3E3A8;
  --tinte: #2A1B2C;
  --leise: #66556A;
  --linie: #E2D8E3;
  --rahmenfarbe: #8C7A8D;
  --kopftext: #EADFEB;
  --f1: #D4A017; --f2: #B5283E; --f3: #7B3A78; --f4: #B8743A; --f5: #D88C9A; --f6: #2C4373; --f7: #4A4550;
  --schatten: 0 1px 2px rgb(58 30 63 / .07), 0 4px 14px rgb(58 30 63 / .06);
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 18px/1.55 var(--schrift); text-wrap: pretty; }
::selection { background: var(--ocker-hell); color: var(--tinte); }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
a { color: var(--handlung); text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--handlung); border-radius: 6px; }

.rahmen { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 760px) { .rahmen { padding-inline: 32px; } }

/* Kopf: hell, damit der erste Bildschirm der Karte gehört */
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--kopf); text-decoration: none;
  font-size: 19px; font-weight: 800; letter-spacing: -0.01em; min-height: 44px; }
.logo-knaeuel { width: 28px; height: 28px; color: var(--ocker); }
.kopf-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; font-weight: 650; }

/* Weiße Fläche wie in der App */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; box-shadow: var(--schatten); }

/* Garnprobe: Loch, gezwirnter Faden, Nummer. Größe über --b (Breite), --h (Länge), --loch, --t (Zwirnung). */
.probe { --b: 13px; --h: 52px; --loch: 11px; --t: 1px; display: grid; justify-items: center; gap: 6px; }
.probe::before { content: ""; position: relative; z-index: 0; width: var(--loch); height: var(--loch); border-radius: 50%;
  background: var(--grund); box-shadow: inset 0 1px 2px rgb(58 30 63 / .35); }
.probe i { position: relative; z-index: 1; display: block; width: var(--b); height: var(--h);
  margin-top: calc(var(--loch) * -0.8); border-radius: calc(var(--b) / 2) calc(var(--b) / 2) 3px 3px;
  background-color: var(--f);
  background-image: repeating-linear-gradient(-58deg, transparent 0 calc(var(--t) * 3.5),
    rgb(0 0 0 / .2) calc(var(--t) * 3.5) calc(var(--t) * 5), rgb(255 255 255 / .2) calc(var(--t) * 5) calc(var(--t) * 6.5));
  box-shadow: inset -2px 0 0 rgb(0 0 0 / .14), 0 1px 2px rgb(40 20 40 / .2); }
.probe b { font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.probe.offen::before { z-index: 2; }
.probe.offen i { background: none; border: 1.5px dashed var(--rahmenfarbe); box-shadow: none; }
.probe.offen b { color: var(--leise); font-weight: 600; }
.f1 { --f: var(--f1); } .f2 { --f: var(--f2); } .f3 { --f: var(--f3); } .f4 { --f: var(--f4); }
.f5 { --f: var(--f5); } .f6 { --f: var(--f6); } .f7 { --f: var(--f7); }

/* Die eine Bewegung der App: Die Probe gleitet durchs Loch nach unten, bis sie hängt. */
@media (prefers-reduced-motion: no-preference) {
  .probe.neu i { animation: einknuepfen 900ms cubic-bezier(.16, 1, .3, 1) var(--verzug, 0ms) backwards; }
}
@keyframes einknuepfen {
  from { transform: translateY(-100%); clip-path: inset(100% 0 0 0); }
  to { transform: none; clip-path: inset(0); }
}

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border: 2px solid var(--handlung); border-radius: 12px; background: var(--handlung); color: #FFFFFF;
  font-weight: 700; text-decoration: none; box-shadow: 0 2px 6px rgb(58 30 63 / .22); text-align: center; }
.knopf:hover { background: var(--kopf); border-color: var(--kopf); }
.knopf--gross { min-height: 60px; padding: 0 28px; font-size: 19px; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.leise { color: var(--leise); }

/* Handwerk: Fotos mit Steppnaht, die App im Handy-Rahmen. Die Naht ist die gestrichelte Linie innen am Rand,
   wie eine abgesteppte Kante; sie kommt nur an Fotos und an den Anhänger der Testrunde. */
.foto { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--hauch);
  box-shadow: 0 2px 4px rgb(58 30 63 / .10), 0 10px 28px rgb(58 30 63 / .14); }
.foto img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.foto::after { content: ""; position: absolute; inset: 8px; border: 2px dashed rgb(255 255 255 / .8);
  border-radius: 9px; pointer-events: none; }
.telefon { position: relative; overflow: hidden; border: 7px solid var(--tinte); border-radius: 30px;
  background: var(--tinte); box-shadow: 0 4px 8px rgb(42 27 44 / .18), 0 18px 40px rgb(42 27 44 / .26); }
.telefon img, .telefon video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 23px;
  background: var(--kopf); }

/* Erster Bildschirm. Am Handy zuerst Aussage und Knopf (der Knopf soll ohne Scrollen sichtbar sein), danach das Bild. */
.held { padding-top: 8px; }
.held-karte { padding: 0 20px 48px; }
.held-proben { display: grid; grid-template-columns: repeat(7, 1fr); max-width: 300px; padding-top: 16px; }
.held-proben .probe { --b: 10px; --h: 26px; --loch: 9px; --t: .9px; gap: 2px; }
.held-proben .probe b { font-size: 14px; }
.held h1 { margin-top: 16px; font-size: clamp(34px, 9vw, 88px); font-weight: 800; line-height: 1.02;
  letter-spacing: -0.03em; color: var(--kopf); max-width: 13ch; }
.held-text { margin-top: 16px; max-width: 60ch; font-size: clamp(18px, 2.2vw, 20px); }
.held-text--leise { margin-top: 24px; color: var(--leise); }
.held-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 24px; }
@media (max-width: 479px) { .held-knoepfe .knopf { width: 100%; } }
/* Bild: Foto vom Stück in Arbeit, das Handy mit der App unten rechts darüber */
.held-bild { position: relative; max-width: 420px; margin: 40px 0 0; padding-bottom: 32px; }
.held-foto { width: 84%; transform: rotate(-1.5deg); }
.held-telefon { position: absolute; right: 0; bottom: 0; width: 40%; }
@media (min-width: 760px) {
  .held-karte { padding: 0 48px 56px; }
  .held-proben { max-width: none; grid-template-columns: repeat(7, 56px); padding-top: 24px; }
  .held-proben .probe { --b: 16px; --h: 72px; --loch: 14px; --t: 1.3px; }
  .held h1 { margin-top: 28px; }
}
/* Breiter Bildschirm: links Aussage und Knopf, rechts das Bild */
@media (min-width: 1000px) {
  .held-karte { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 56px; align-items: center;
    padding: 48px 56px 56px; }
  .held-proben { padding-top: 0; }
  .held h1 { font-size: clamp(40px, 4vw, 52px); max-width: none; }
  /* Jeder Satz beginnt eine eigene Zeile; „Das Werkstattbuch“ bleibt zusammen */
  .held h1 span { display: block; }
  .held-bild { margin: 0; max-width: none; }
}

/* Kurzvideo im Handy-Rahmen, daneben was zu sehen ist */
.film { padding-top: 64px; }
.film-raster { display: grid; gap: 32px; }
.film h2 { font-size: clamp(30px, 5.6vw, 48px); font-weight: 800; letter-spacing: -0.02em; color: var(--kopf); }
.film-telefon { width: min(300px, 82vw); }
.film-ablauf { margin: 24px 0 0; padding-left: 24px; max-width: 52ch; }
.film-ablauf li { padding-left: 4px; }
.film-ablauf li + li { margin-top: 8px; }
.film-ablauf li::marker { font-weight: 750; color: var(--handlung); }
.film-hinweis { margin-top: 16px; color: var(--leise); font-size: 16px; }
@media (min-width: 760px) {
  .film-raster { grid-template-columns: 300px minmax(0, 1fr); column-gap: 56px; align-items: center; }
  .film-telefon { width: 300px; }
}

/* Kernaussage auf Pflaume */
.band { margin-top: 64px; padding: 64px 0; background: var(--kopf); color: #FFFFFF; }
.band h2 { font-size: clamp(34px, 7vw, 64px); font-weight: 800; letter-spacing: -0.025em; }
.band h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 16px; background: var(--ocker); }
.band-text { margin-top: 24px; max-width: 58ch; color: var(--kopftext); font-size: 19px; }
.rolle { display: grid; gap: 32px; margin-top: 48px; }
.rolle h3 { font-size: 20px; font-weight: 750; }
.rolle ul { margin: 12px 0 0; padding: 0; list-style: none; }
.rolle li { padding: 12px 0; border-top: 1px solid rgb(234 223 235 / .22); color: var(--kopftext); }
.rolle li:last-child { border-bottom: 1px solid rgb(234 223 235 / .22); }
@media (min-width: 760px) { .rolle { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* Sieben Schritte mit mitlaufender Karte */
.schritte-teil { padding: 64px 0; }
.schritte-teil h2, .schneller h2, .testrunde h2, .wk h2 { font-size: clamp(30px, 5.6vw, 48px); font-weight: 800;
  letter-spacing: -0.02em; color: var(--kopf); }
.einleitung { margin-top: 16px; max-width: 60ch; }
.schritte-raster { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
.mit-karte { position: sticky; top: 0; z-index: 2; padding: 8px 0; background: var(--grund); }
.mit-karte-innen { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
/* Am Handy schrumpfen die Spalten bis 16 px, damit die Karte auch bei 320 px in die Breite passt */
.mit-proben { display: grid; grid-template-columns: repeat(7, minmax(16px, 24px)); gap: 4px; flex: 0 1 192px; min-width: 0; }
.mit-stand { flex: none; }
.mit-proben .probe { --b: 8px; --h: 30px; --loch: 8px; --t: .8px; gap: 2px; }
.mit-proben .probe b { font-size: 14px; }
.mit-stand { display: grid; text-align: right; font-size: 14px; color: var(--leise); line-height: 1.3; }
.mit-zahl { font-size: 18px; color: var(--tinte); font-variant-numeric: tabular-nums; }
.schritte { margin: 16px 0 0; padding: 0; list-style: none; }
.schritt { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 16px; padding: 24px 0;
  border-top: 1px solid var(--linie); }
.schritt:last-child { border-bottom: 1px solid var(--linie); }
.schritt h3, .schritt p { grid-column: 2; }
.schritt h3 { font-size: 21px; font-weight: 750; line-height: 1.25; }
.schritt .nr { font-variant-numeric: tabular-nums; color: var(--leise); margin-right: 4px; }
.schritt p { margin-top: 8px; max-width: 58ch; }
/* Liegende Mini-Probe vor jedem Schritt (wie die Schrittliste der App) */
.mini { grid-row: 1 / span 2; width: 24px; height: 9px; margin-top: 8px; border-radius: 5px 2px 2px 5px;
  background-color: var(--f);
  background-image: repeating-linear-gradient(32deg, transparent 0 3.5px, rgb(0 0 0 / .2) 3.5px 5px,
    rgb(255 255 255 / .2) 5px 6.5px); }
.ohne { display: grid; gap: 24px; margin-top: 32px; padding: 24px; max-width: 760px; }
.ohne-foto { max-width: 280px; }
@media (min-width: 760px) {
  .ohne { grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: center; padding: 32px; }
  .ohne-foto { transform: rotate(1.5deg); }
}
.ohne h3 { font-size: 21px; font-weight: 750; color: var(--kopf); }
.ohne p { margin-top: 8px; }
@media (min-width: 960px) {
  .schritte-raster { grid-template-columns: 360px minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .mit-karte { top: 32px; padding: 0; background: none; }
  .mit-karte-innen { display: grid; justify-content: stretch; gap: 16px; padding: 24px; }
  .mit-proben { grid-template-columns: repeat(7, 1fr); gap: 0; }
  .mit-proben .probe { --b: 14px; --h: 64px; --loch: 12px; --t: 1.1px; gap: 6px; }
  .mit-proben .probe b { font-size: 14px; }
  .mit-stand { text-align: left; font-size: 16px; padding-top: 16px; border-top: 1px solid var(--linie); }
  .mit-zahl { font-size: 22px; }
  .schritte { margin-top: 0; }
  .schritt { padding: 40px 0; min-height: 34vh; align-content: start; }
}

/* Weniger tippen: drei gleichrangige Punkte, durch Linien getrennt */
.schneller { padding-top: 32px; padding-bottom: 64px; }
.schneller-liste { display: grid; margin-top: 32px; }
.schneller-liste > div { padding: 24px 0; border-top: 1px solid var(--linie); }
.schneller-liste > div:last-child { border-bottom: 1px solid var(--linie); }
.schneller h3 { font-size: 21px; font-weight: 750; line-height: 1.25; }
.schneller p { margin-top: 8px; max-width: 46ch; }
@media (min-width: 900px) {
  .schneller-liste { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linie);
    border-bottom: 1px solid var(--linie); }
  .schneller-liste > div { padding: 32px 32px 32px 0; border: 0; }
  .schneller-liste > div + div { padding-left: 32px; border-left: 1px solid var(--linie); }
  .schneller-liste > div:last-child { border-bottom: 0; }
}

/* Testrunde */
/* Die Karte ist ein Anhänger: Loch oben, Faden nach oben, Naht innen am Rand */
.testrunde { padding-top: 48px; padding-bottom: 64px; }
.testrunde-karte { position: relative; padding: 72px 28px 44px; display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 16px; justify-items: start;
  outline: 2px dashed #D3C3D4; outline-offset: -10px; }
.testrunde-karte::before { content: ""; position: absolute; top: 24px; left: 50%; width: 20px; height: 20px;
  margin-left: -10px; border-radius: 50%; background: var(--grund); box-shadow: inset 0 1px 3px rgb(58 30 63 / .4); }
.testrunde-karte::after { content: ""; position: absolute; top: -44px; left: 50%; width: 3px; height: 78px;
  margin-left: -1.5px; border-radius: 2px; background: var(--ocker);
  background-image: repeating-linear-gradient(170deg, transparent 0 4px, rgb(0 0 0 / .18) 4px 6px); }
.testrunde-karte > p:first-of-type { max-width: 58ch; }
.fakten { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
/* Fester Radius statt 999px: Bricht ein Punkt bei 320 px um, wird er ein abgerundetes Kästchen, keine Blase */
.fakten li { padding: 8px 14px; border-radius: 20px; background: var(--hauch); color: var(--kopf); font-size: 15px;
  font-weight: 650; }
.testrunde-karte .knopf { margin-top: 8px; }
/* Die Adresse ist ein langes Wort: am Handy etwas kleiner, im Notfall umbrechen statt über die Naht laufen */
.testrunde-karte .leise { font-size: 16px; overflow-wrap: anywhere; }
@media (max-width: 479px) { .testrunde-karte .knopf { width: 100%; } }
@media (min-width: 760px) { .testrunde-karte { padding: 80px 48px 48px; } }

/* Werkstatt: die eigenen Worte des Gründers, darunter drei Fotos wie angeheftet */
.wk { padding-bottom: 64px; }
.wk-text { margin-top: 16px; max-width: 62ch; display: grid; gap: 16px; font-size: 19px; line-height: 1.6; }
.wk-text strong { font-weight: 800; }
.wk-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px;
  max-width: 1056px; }
.wk-fotos .foto::after { inset: 5px; border-width: 1.5px; border-radius: 10px; }
.wk-fotos .foto:nth-child(1) { transform: rotate(-1.5deg); }
.wk-fotos .foto:nth-child(2) { transform: rotate(1deg) translateY(12px); }
.wk-fotos .foto:nth-child(3) { transform: rotate(-0.5deg); }
@media (min-width: 760px) {
  .wk-fotos { gap: 32px; }
  .wk-fotos .foto::after { inset: 8px; border-width: 2px; border-radius: 9px; }
}

/* Fuß */
.fuss { background: var(--kopf); color: var(--kopftext); padding: 32px 0 40px; font-size: 15px; }
.fuss-innen { display: grid; gap: 16px; }
.fuss-satz { max-width: 70ch; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.fuss a { color: #FFFFFF; display: inline-flex; align-items: center; min-height: 44px; }
.fuss :focus-visible { box-shadow: 0 0 0 3px var(--ocker); }

/* Rechtliche Seiten (Impressum, Datenschutz): schmale weiße Fläche, Lesetext. Klassen mit „rt-“, damit nichts mit
   den Abschnitten der Startseite zusammenfällt. */
/* Nur oben und unten: Die Kurzform „padding: … 0 …“ hob den Seitenrand von .rahmen auf, die Karte klebte am Rand. */
.rt-seite { padding-top: 8px; padding-bottom: 64px; }
.rt-karte { max-width: 760px; padding: 32px 20px; }
@media (min-width: 760px) { .rt-karte { padding: 48px; } }
.rt-karte h1 { font-size: clamp(32px, 6vw, 48px); font-weight: 800; letter-spacing: -0.02em; color: var(--kopf); }
.rt-lede { margin-top: 12px; color: var(--leise); }
.rt-abschnitt { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--linie); }
.rt-abschnitt h2 { font-size: 21px; font-weight: 750; color: var(--kopf); }
.rt-abschnitt h3 { margin-top: 16px; font-size: 18px; font-weight: 750; }
.rt-abschnitt p, .rt-abschnitt address, .rt-abschnitt ul { margin-top: 8px; max-width: 65ch; }
.rt-abschnitt address { font-style: normal; }
.rt-abschnitt ul { padding-left: 24px; }
.rt-abschnitt li + li { margin-top: 6px; }
.rt-kasten { margin-top: 16px; padding: 16px 20px; border-left: 4px solid var(--handlung); background: var(--hauch);
  border-radius: 0 10px 10px 0; }
.rt-kasten h3 { margin-top: 0; }
.rt-zurueck { margin-top: 32px; }
/* Sichtbarer Platzhalter für eine fehlende Angabe; sperrt die Veröffentlichung (10-dateien.sh, 90-pruefung.sh) */
.rt-fehlt { padding: 2px 6px; border-radius: 4px; background: var(--ocker-hell); color: var(--tinte); font-weight: 650;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Externe Links (Regel des Nutzers 21.11.2026: neuer Tab, mit Symbol; wie templates.link_extern der App). Das Symbol
   steht mit dem letzten Wort ohne Umbruch, sonst rutscht es am Handy allein in eine Zeile. Der Hinweis für
   Bildschirmleser (.vorlesen) ist unsichtbar, bleibt aber vorlesbar. */
.rt-extern-ende { white-space: nowrap; }
.rt-extern-zeichen { width: 0.85em; height: 0.85em; margin-left: 0.2em; vertical-align: -0.08em; }
.vorlesen { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
