/* teamsocks.de – main.css
   Aufbau: 1 Fonts · 2 Tokens · 3 Base · 4 Layout · 5 Komponenten · 6 Seiten · 7 Designer · 8 Utilities/Motion */

/* 1 ─ Fonts (selbst gehostet, OFL) */
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-latin.woff2") format("woff2"); font-weight: 500 900; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* 2 ─ Tokens */
:root {
  --ground: #F3F6FA;
  --surface: #FFFFFF;
  --surface-2: #E8EEF5;
  --ink: #0B1633;
  --muted: #50607A;
  --line: #D3DCE8;
  --field-line: #7C8AA1;   /* Rand von Eingabefeldern: 3,5:1 auf Weiß */
  --brand: #00558C;
  --brand-ink: #FFFFFF;
  --brand-soft: #DCEAF4;
  --accent: #F5B300;
  --accent-hover: #E0A200;
  --accent-ink: #1A1300;
  --ok: #16794C;
  --warn: #A35C00;
  --err: #B42318;
  --band: #00558C;
  --band-ink: #FFFFFF;
  --band-muted: #CFE2F1;
  --stitch: rgb(11 22 51 / .06);
  --shadow-stage: 0 1px 2px rgb(11 22 51 / .06), 0 12px 40px -12px rgb(11 22 51 / .18);

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-display: clamp(2.4rem, 5vw, 4.4rem);
  --t-h1: clamp(2.2rem, 4.4vw, 3.8rem);
  --t-h2: clamp(1.7rem, 3vw, 2.6rem);
  --t-h3: 1.25rem;
  --t-lead: 1.1875rem;
  --t-body: 1rem;
  --t-small: .875rem;
  --t-label: .75rem;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --section: clamp(64px, 9vw, 120px);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --r-s: 6px; --r-m: 12px; --r-l: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0A1122; --surface: #111B33; --surface-2: #17233F; --ink: #E8EEF7; --muted: #9AA9C2;
    --line: #26344F; --field-line: #5C6F92; --brand: #4DA3E0; --brand-ink: #06101F; --brand-soft: #14304F; --accent: #FFC53D;
    --accent-hover: #FFD470; --ok: #4CC38A; --warn: #F0A544; --err: #F97066;
    --band: #0F2A4D; --band-ink: #E8EEF7; --band-muted: #A9C4DE; --stitch: rgb(255 255 255 / .05);
    --shadow-stage: 0 1px 2px rgb(0 0 0 / .4), 0 16px 48px -16px rgb(0 0 0 / .6);
  }
}
:root[data-theme="dark"] {
  --ground: #0A1122; --surface: #111B33; --surface-2: #17233F; --ink: #E8EEF7; --muted: #9AA9C2;
  --line: #26344F; --field-line: #5C6F92; --brand: #4DA3E0; --brand-ink: #06101F; --brand-soft: #14304F; --accent: #FFC53D;
  --accent-hover: #FFD470; --ok: #4CC38A; --warn: #F0A544; --err: #F97066;
  --band: #0F2A4D; --band-ink: #E8EEF7; --band-muted: #A9C4DE; --stitch: rgb(255 255 255 / .05);
  --shadow-stage: 0 1px 2px rgb(0 0 0 / .4), 0 16px 48px -16px rgb(0 0 0 / .6);
}

/* 3 ─ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
::placeholder { color: var(--muted); opacity: 1; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.grid > *, .designer-page > * { min-width: 0; }
h1, h2 { font-family: var(--f-display); font-stretch: 118%; letter-spacing: -.01em; }
h1 { font-size: var(--t-h1); line-height: 1; font-weight: 820; }
h2 { font-size: var(--t-h2); line-height: 1.05; font-weight: 800; }
h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 700; }
.h3like { font: 700 var(--t-h3)/1.25 var(--f-text); letter-spacing: 0; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

/* 4 ─ Layout */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: var(--s5); }
.section-head { display: grid; gap: var(--s4); max-width: 44rem; margin-bottom: var(--s7); }
.section-head p { color: var(--muted); font-size: var(--t-lead); line-height: 1.55; }
.section-head .eyebrow { font-size: var(--t-label); color: var(--brand); line-height: 1.2; }
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.prose { max-width: 65ch; }
.prose h2 { font-size: 1.4rem; margin: 2em 0 .5em; font-stretch: 110%; }
.prose p, .prose ul { color: var(--muted); }
.prose a { color: var(--brand); }

/* 5 ─ Komponenten */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }

.eyebrow {
  font: 500 var(--t-label)/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 6px; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px); }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--muted); max-width: 40rem; }
.mono { font-family: var(--f-mono); font-size: var(--t-small); letter-spacing: .02em; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .18s var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover svg { transform: translateX(3px); } }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-2px); } }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn--secondary:hover { background: var(--ink); color: var(--ground); } }
.btn--brand { background: var(--brand); color: var(--brand-ink); }
@media (hover: hover) and (pointer: fine) { .btn--brand:hover { color: var(--brand-ink); filter: brightness(1.08); transform: translateY(-2px); } }
.btn--ghost { background: none; padding-inline: 4px; color: var(--ink); min-height: 44px; }
.btn--ghost:hover { color: var(--brand); }
.btn--sm { --bh: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
/* Druck-Rückmeldung: sofort, klein, auf allen Geräten */
.btn { transition: transform .14s var(--ease), background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), filter .15s var(--ease); }
.btn:active, .icon-btn:active, .option:active, .seg button:active, .viewsides button:active, .yarn:active, .stepper-input button:active,
.zone:active, .yarnfam:active, .preset:active, .langpick > summary:active { transform: scale(.97); }
.icon-btn, .option, .seg button, .viewsides button, .stepper-input button, .zone, .yarnfam, .preset, .langpick > summary {
  transition: transform .12s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease);
}
.yarn { transition: transform .12s var(--ease), box-shadow .15s var(--ease); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* Hinweis „nur für Organisationen“ über dem Kopf – auf jeder Seite, gut lesbar, scrollt mit weg */
.b2b-bar { margin: 0; background: var(--ink); color: var(--ground); font-size: var(--t-small); line-height: 1.4; text-align: center; }
.b2b-bar .wrap { display: block; padding-block: 8px; }
.b2b-bar a { color: inherit; font-weight: 650; text-underline-offset: 3px; white-space: nowrap; }
.b2b-lead { margin: 0 0 var(--s3); color: var(--muted); font-size: .9375rem; }
.b2b-proof { display: grid; gap: var(--s4); padding: var(--s4); border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 var(--r-s) var(--r-s) 0; }
.b2b-proof .b2b-public { margin: 0; }
.mono-input { font-family: var(--f-mono); letter-spacing: .02em; }
@media print { .b2b-bar { display: none; } }
/* Dunkelmodus: der Hinweisstreifen bleibt dunkel statt zur hellsten Fläche der Seite zu werden */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b2b-bar { background: var(--band); color: var(--band-ink); } }
:root[data-theme="dark"] .b2b-bar { background: var(--band); color: var(--band-ink); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
/* Die Unschärfe liegt auf einer eigenen Ebene. Direkt am Kopf würde sie das fest stehende
   mobile Menü auf die Höhe des Kopfes einsperren (ein Filter macht sein Element zum Bezugsrahmen). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--ground);
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: var(--s5); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 30px; height: 30px; }
.lm-a { fill: var(--brand); } .lm-b { fill: var(--accent); } .lm-c { stroke: var(--ground); fill: none; }
.logo span { font: 850 1.3rem/1 var(--f-display); font-stretch: 125%; letter-spacing: -.02em; }
.logo span b { color: var(--brand); font-weight: inherit; }
.nav { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 550; font-size: .9375rem; color: var(--ink); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface-2); color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: var(--s3); }
.lang { font: 500 var(--t-label)/1 var(--f-mono); letter-spacing: .08em; text-decoration: none; padding: 10px; border-radius: 999px; border: 1px solid var(--line); }
.lang:hover { border-color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s var(--ease), background-color .1s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--s5) var(--gutter) calc(var(--s7) + env(safe-area-inset-bottom, 0px));
    background: var(--ground); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .14s var(--ease), transform .14s var(--ease), visibility 0s .14s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s; }
  .nav .nav-cta { border-radius: 999px; }
  .nav a { font: 800 1.9rem/1.1 var(--f-display); font-stretch: 115%; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a[aria-current="page"] { background: none; box-shadow: none; color: var(--brand); }
  .nav .nav-cta { display: flex; margin-top: var(--s5); border: 0; font: 650 1rem/1.2 var(--f-text); padding: 0 26px; }
  .header-actions { margin-left: auto; }
}
@media (min-width: 1024px) { .nav .nav-cta { display: none; } .nav { margin-right: var(--s3); } }
/* 1024–1199 px: Navigation passt nur ohne den gelben Kopf-Knopf in eine Zeile (der Designer steht ohnehin in der Navigation) */
@media (min-width: 1024px) and (max-width: 1199px) { .header-cta { display: none; } .nav { gap: 0; } .nav a { padding-inline: 10px; } }

/* Sehr schmale Telefone: Kopf darf nicht über den Rand laufen */
@media (max-width: 420px) {
  /* Lange Komposita (Finnisch, Niederländisch) dürfen die Seite nicht breiter machen */
  :root { --t-h1: clamp(1.9rem, 8.6vw, 2.6rem); }
  h1, h2 { overflow-wrap: anywhere; }
  .header-inner { gap: var(--s3); }
  .logo { gap: 7px; }
  .logo svg { width: 26px; height: 26px; }
  .logo span { font-size: 1.1rem; }
  .header-actions { gap: 6px; }
}
body.menu-open { overflow: hidden; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: var(--s8) var(--s6); margin-top: auto; }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1.4fr repeat(4, 1fr); }
.footer-grid h2 { font: 500 var(--t-label)/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s4); }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand p { color: var(--muted); margin-top: var(--s4); max-width: 22rem; }
.footer-bottom { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); color: var(--muted); font-size: var(--t-small); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* Karten */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; display: flex; flex-direction: column; gap: var(--s3); }
.card p { color: var(--muted); }
.card .icon { width: 40px; height: 40px; color: var(--brand); margin-bottom: var(--s2); }

/* Spec-Leiste */
.specbar { border-block: 1px solid var(--line); background: var(--surface); }
.specbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); justify-content: space-between; padding-block: var(--s5); }
.specbar li { font: 500 var(--t-label)/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.specbar li::before { content: ""; width: 8px; height: 8px; background: var(--brand); transform: rotate(45deg); }

/* Schritte */
.steps { list-style: none; display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding-top: var(--s5); border-top: 2px solid var(--ink); display: grid; gap: var(--s2); align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 850 2.6rem/1 var(--f-display); font-stretch: 125%; color: var(--brand); font-variant-numeric: tabular-nums; }
.steps p { color: var(--muted); }
.steps--large li { grid-template-columns: auto 1fr; column-gap: var(--s6); border-top-width: 1px; padding-block: var(--s6); }
.steps--large li::before { grid-row: span 2; font-size: clamp(3rem, 6vw, 4.5rem); }
.steps--large { grid-template-columns: 1fr; gap: 0; }
.steps--large h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.steps--large p { max-width: 60ch; font-size: 1.0625rem; }

/* Laufband mit den Kernzusagen (nur bestehende Textbausteine) */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); }
.marquee-track { display: flex; width: max-content; animation: ts-marquee 42s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: var(--s4); padding: 14px var(--s4) 14px 0;
  font: 500 var(--t-label)/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.marquee-track i { color: var(--brand); font-style: normal; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes ts-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: 100%; }
  .marquee-track span + span { display: none; }
  .marquee-track span { white-space: normal; flex-wrap: wrap; }
}

/* Zielgruppen-Karten */
.group-cards { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.group-card { position: relative; display: grid; gap: var(--s3); align-content: start; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s6) var(--s5) var(--s5);
  transition: border-color .18s var(--ease), transform .18s var(--ease); }
@media (hover: hover) and (pointer: fine) { .group-card:hover { border-color: var(--ink); transform: translateY(-2px); } }
.group-no { font: 500 var(--t-label)/1 var(--f-mono); letter-spacing: .1em; color: var(--brand); }
.group-card h3 { font: 800 clamp(1.25rem, 2.2vw, 1.6rem)/1.15 var(--f-display); font-stretch: 115%; }
.group-card p { color: var(--muted); }
.group-more { font: 650 .9375rem/1.2 var(--f-text); color: var(--brand); }
.card--link { text-decoration: none; color: var(--ink); display: block; transition: border-color .18s var(--ease); }
.card--link:hover { border-color: var(--ink); }
.target-visual { display: grid; gap: var(--s3); align-content: start; }
.target-visual svg { width: 100%; height: auto; }

/* Entwurf neben Foto */
.made-tabs { max-width: 22rem; }
.made-grid { display: grid; gap: var(--s5); grid-template-columns: 1.15fr .85fr; align-items: stretch; }
.made-model .sock3d { aspect-ratio: 1 / 1; max-height: 32rem; }
.made-model { margin: 0; }
.made-photo { margin: 0; display: grid; gap: var(--s3); align-content: start; }
.made-photo img { width: 100%; height: auto; max-height: 34rem; object-fit: cover; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 800px) { .made-grid { grid-template-columns: 1fr; } .made-photo img { max-height: 26rem; } }

/* 3D-Vorschau */
.stage-3d { position: relative; }
.sock3d { position: relative; display: block; width: 100%; aspect-ratio: 650 / 440; cursor: grab; touch-action: pan-y; border-radius: var(--r-s); }
.sock3d.is-dragging { cursor: grabbing; }
.sock3d:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.sock3d-hint { position: absolute; right: 0; top: 0; margin: 0; font-size: var(--t-label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.viewbar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.viewbar .seg { flex: 0 1 auto; grid-template-columns: auto auto; }
.viewbar .seg button { padding: 8px 14px; white-space: nowrap; }
.seg--mini { display: inline-grid; grid-template-columns: auto auto; }
.seg--mini button { padding: 6px 12px; white-space: nowrap; }
.seg--mini[hidden], .viewbar .seg[hidden] { display: none; }
[data-hero-3d] .sock3d { aspect-ratio: 1 / 1; max-height: 30rem; }
.viewsides { display: flex; flex-wrap: wrap; gap: 6px; }
.viewsides button { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 7px 12px; font: 600 .8125rem/1 var(--f-text); cursor: pointer; min-height: 32px; }
.viewsides button:hover { border-color: var(--ink); }
.viewsides button[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); font-weight: 650; }

/* Freie Logo-Platzierung */
.logo-frame { color: var(--brand); pointer-events: none; }
.logo-frame [data-handle], .logo-frame [data-logo-grip], .logo-frame [data-hit] { pointer-events: auto; }
.logo-frame [data-handle="scale"] { cursor: nwse-resize; }
.logo-frame [data-handle="rot"] { cursor: grab; }
.logo-frame [data-logo-grip] { cursor: move; }
.logo-frame [data-logo-grip]:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[data-preview] { touch-action: pan-y; }
.logo-frame [data-handle], .logo-frame [data-logo-grip], .logo-frame [data-hit] { touch-action: none; }
.seg--wrap { flex-wrap: wrap; }
.fine summary { cursor: pointer; }
.fine-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.fine-grid input[type="range"] { width: 100%; accent-color: var(--brand); min-height: 28px; }
.fine-grid .field { display: grid; gap: 2px; align-content: start; min-width: 0; }
.fine-grid .out { font-family: var(--f-mono); font-size: var(--t-label); color: var(--muted); min-height: 1.3em; }
.logo-mm { margin: var(--s3) 0 0; font-weight: 600; }
.keys-hint { display: none; }
@media (hover: hover) and (pointer: fine) { .keys-hint { display: block; } }
.side-labels.is-single span:last-child { visibility: hidden; }
[data-logo-colors] { font-size: var(--t-small); margin: 0; }
.logo-mm:empty { display: none; }
.logo-frame text { font: 700 12.5px/1 var(--f-mono); fill: currentColor; stroke: #fff; stroke-width: 3.5px; paint-order: stroke; }
.logo-preview [data-logo-name] { font-size: var(--t-label); overflow-wrap: anywhere; }

/* Warum die Produktion dauert */
.measure { max-width: 68ch; }
.why-list { list-style: none; display: grid; gap: 0; }
.why-list li { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s5); align-items: start; padding-block: var(--s5); border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-no { font: 500 var(--t-label)/1.6 var(--f-mono); letter-spacing: .08em; color: var(--brand); padding-top: .2em; }
.why-no::before { content: "0"; }
.why-list h3 { font: 700 1.125rem/1.3 var(--f-text); }
.why-list p { color: var(--muted); max-width: 68ch; margin-top: 6px; }
.note { border-left: 3px solid var(--brand); padding-left: var(--s4); color: var(--muted); max-width: 52ch; align-self: start; }

/* Preis-Staffel */
.tiers { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }
.tier { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px 24px; display: grid; gap: var(--s2); align-content: start; }
.tier .qty { font: 500 var(--t-label)/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tier .price { font: 850 clamp(2.4rem, 4vw, 3.2rem)/1 var(--f-display); font-stretch: 112%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tier .price small { font: 500 .9rem var(--f-text); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.tier .gross { color: var(--muted); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.tier--hl { border: 2px solid var(--brand); padding: 25px 23px; }
.tier .badge { position: absolute; top: -11px; left: 22px; }
.tier--quote { background: var(--surface-2); border-style: dashed; }
.tier--quote .price { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.badge { display: inline-block; background: var(--brand); color: var(--brand-ink); font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }
.fineprint { color: var(--muted); font-size: var(--t-small); margin-top: var(--s4); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 20px 0; font-weight: 650; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor 0 0) center/14px 2px no-repeat, linear-gradient(currentColor 0 0) center/2px 14px no-repeat; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 65ch; }
.faq-group + .faq-group { margin-top: var(--s7); }
.faq-group h2 { font-size: 1.5rem; margin-bottom: var(--s4); }

/* Band (einziger Farbblock) */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14'%3E%3Cpath d='M0 0l6 10 6-10' fill='none' stroke='white' stroke-opacity='.08' stroke-width='1.4'/%3E%3C/svg%3E"); pointer-events: none; }
.band .wrap { position: relative; z-index: 1; display: grid; gap: var(--s6); grid-template-columns: 1.3fr 1fr; align-items: center; padding-block: var(--s8); }
.band h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.band p { color: var(--band-muted); font-size: var(--t-lead); margin-top: var(--s4); max-width: 34rem; }
.band .btn-row { justify-content: flex-end; }
.band .btn--secondary { color: var(--band-ink); border-color: var(--band-ink); }
@media (hover: hover) and (pointer: fine) { .band .btn--secondary:hover { background: var(--band-ink); color: var(--band); } }
@media (max-width: 800px) { .band .wrap { grid-template-columns: 1fr; } .band .btn-row { justify-content: flex-start; } }

/* Formulare */
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 600; font-size: .9375rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-s);
  border: 1px solid var(--field-line); background: var(--surface); color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { min-height: 120px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.field.is-invalid .input, .field.is-invalid .textarea, .check.is-invalid { border-color: var(--err); }
.field .hint { color: var(--muted); font-size: var(--t-small); }
.field-err { color: var(--err); font-size: var(--t-small); font-weight: 600; margin: 0; }
.check + .field-err { margin-top: -6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.5; padding: 4px; border: 1px solid transparent; border-radius: var(--r-s); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.check a { color: var(--brand); }
.row-2 { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.notice { border-radius: var(--r-s); padding: 12px 14px; font-size: .9375rem; background: var(--surface-2); }
.notice--ok { background: var(--surface-2); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ink); border-left: 3px solid var(--ok); }
.notice--err { background: var(--surface-2); background: color-mix(in srgb, var(--err) 12%, var(--surface)); border-left: 3px solid var(--err); }
.notice--warn { background: var(--surface-2); background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border-left: 3px solid var(--warn); }
.hp { position: absolute; left: -9999px; }

/* 6 ─ Seiten */
/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) var(--section); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
.hero h1 { font-size: var(--t-display); line-height: .95; font-weight: 870; font-stretch: 125%; letter-spacing: -.025em; margin-top: var(--s5); }
.hero h1 span { display: block; }
.hero h1 .knit { color: var(--brand); }
/* Strichlinie als echte Textunterstreichung: folgt jeder Zeile und jeder Sprache */
.hero h1 .knit i {
  font-style: normal;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--accent);
  text-decoration-thickness: .085em;
  text-underline-offset: .14em;
}
.hero .lead { margin-top: var(--s5); }
.hero .btn-row { margin-top: var(--s6); }
.from { display: flex; align-items: baseline; gap: 8px; margin-top: var(--s5); color: var(--muted); font-size: var(--t-small); }
.from strong { font: 850 1.6rem/1 var(--f-display); font-stretch: 112%; color: var(--ink); font-variant-numeric: tabular-nums; }
.stage {
  position: relative; border-radius: var(--r-l); padding: clamp(20px, 3vw, 36px);
  background-color: var(--surface);
  background-image: linear-gradient(var(--stitch) 1px, transparent 1px), linear-gradient(90deg, var(--stitch) 1px, transparent 1px);
  background-size: 14px 14px; border: 1px solid var(--line); box-shadow: var(--shadow-stage);
}
@media (max-width: 640px) { .hero .stage { padding: 12px; } }
.stage-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px dashed var(--line); }
.stage-foot > * { min-width: 0; }
.stage-foot .mono { color: var(--muted); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .06em; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Try-it */
.try { display: grid; gap: var(--s7); grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
.presets { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.preset { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; }
.preset:hover { border-color: var(--ink); }
.preset[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.preset i { width: 28px; height: 28px; border-radius: 50%; display: block; border: 1px solid rgb(11 22 51 / .15); }
.try .btn { margin-top: var(--s6); }
@media (max-width: 900px) { .try { grid-template-columns: 1fr; } }

/* Einsatzbereiche */
.uses { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.uses > div { background: var(--surface); padding: 32px 28px; display: grid; gap: var(--s3); align-content: start; }
.uses p { color: var(--muted); }
.uses svg { width: 36px; height: 36px; color: var(--brand); }

/* Spezifikation */
.spec { display: grid; gap: var(--s7); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
.spec-list { display: grid; margin-top: var(--s6); }
.spec-list div { display: flex; justify-content: space-between; gap: var(--s4); padding: 14px 0; border-bottom: 1px dashed var(--line); }
.spec-list dt { font: 500 var(--t-label)/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); flex: none; }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }
.spec-visual { max-width: 380px; justify-self: center; width: 100%; }
@media (max-width: 900px) { .spec { grid-template-columns: 1fr; } .spec-visual { max-width: 260px; } }

/* Page-Hero (Unterseiten) */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); }
.page-hero h1 { margin-top: var(--s4); max-width: 18ch; }
.page-hero .lead { margin-top: var(--s5); }
.breadcrumb { font: 500 var(--t-label)/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { text-decoration: none; }

/* Preisrechner */
.calc { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.calc-out { display: grid; gap: 4px; justify-items: end; text-align: right; }
.calc-out strong { font: 850 clamp(2.2rem, 4vw, 3rem)/1 var(--f-display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.calc-out span { color: var(--muted); font-size: var(--t-small); }
.range { width: 100%; accent-color: var(--brand); height: 32px; }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
@media (max-width: 640px) { .calc { grid-template-columns: 1fr; } .calc-out { justify-items: start; text-align: left; } }

/* Mockup-Sheet (So funktioniert's) */
.sheet { background: #fff; color: #0B1633; border: 1px solid #C9D3E0; border-radius: var(--r-m); padding: clamp(16px, 3vw, 28px); font-family: var(--f-mono); font-size: .75rem; }
.sheet-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #C9D3E0; padding-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.sheet-body { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s4); padding-block: var(--s4); align-items: center; }
.sheet-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--s4); border-top: 1px solid #C9D3E0; padding-top: 12px; }
.sheet-legend ul { list-style: none; display: grid; gap: 6px; margin-top: 6px; }
.sheet-legend li { display: flex; align-items: center; gap: 8px; }
.sheet-legend i { width: 14px; height: 14px; border: 1px solid #9AA6B8; display: inline-block; }
.layout-flat { border: 1px dashed #9AA6B8; width: min(100%, 120px); height: 240px; margin-inline: auto; background: #fff; }
.layout-flat svg { width: 100%; height: 100%; }

/* 7 ─ Designer */
.designer-page { padding-block: var(--s6) var(--section); }
.designer-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s4); margin-bottom: var(--s6); }
.designer-head .lead { margin-top: var(--s3); font-size: 1.0625rem; }
.designer { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.designer-stage { position: sticky; top: calc(var(--header-h) + 16px + env(safe-area-inset-top, 0px)); }
.designer-stage .stage { padding: clamp(16px, 2.5vw, 32px); }
.side-labels { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font: 500 var(--t-label)/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: var(--s3); }
.yarn-meter { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--t-label)/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.yarn-meter .dots { display: inline-flex; gap: 3px; }
.yarn-meter .dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); }
.yarn-meter .dots i.on { background: var(--brand); border-color: var(--brand); }
.yarn-meter.is-over .dots i.on { background: var(--err); border-color: var(--err); }
.save-state { color: var(--muted); font: 500 var(--t-label)/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.stepper button { appearance: none; background: none; border: 0; border-right: 1px solid var(--line); padding: 12px 4px 10px; cursor: pointer; display: grid; gap: 4px; justify-items: center; font-size: .75rem; font-weight: 600; color: var(--muted); position: relative; min-height: 56px; }
.stepper button:last-child { border-right: 0; }
.stepper button b { font: 850 1rem/1 var(--f-display); font-stretch: 115%; font-variant-numeric: tabular-nums; }
.stepper button[aria-selected="true"] { color: var(--ink); background: var(--surface-2); }
.stepper button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand); }
.stepper button.is-done b { color: var(--brand); }
.step { padding: clamp(20px, 2.6vw, 30px); display: grid; gap: var(--s5); }
.step h2 { font-size: 1.6rem; }
.step-nav { display: flex; justify-content: space-between; gap: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line); }

.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zone { appearance: none; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-s); padding: 10px; display: grid; gap: 8px; justify-items: start; text-align: left; cursor: pointer; font-size: .8125rem; font-weight: 600; min-height: 64px; }
.zone i { width: 100%; height: 14px; border-radius: 3px; border: 1px solid rgb(11 22 51 / .15); }
.zone:hover { border-color: var(--muted); }
.zone[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.yarns { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; max-height: 15.5rem; overflow-y: auto; padding: 4px; margin: 0 -4px; overscroll-behavior: contain; }
.yarnfams { display: flex; flex-wrap: wrap; gap: 6px; }
.yarnfam { appearance: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 6px 11px; font: 600 .8125rem/1 var(--f-text); cursor: pointer; min-height: 30px; }
.yarnfam i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(11, 22, 51, .18); }
.yarnfam:hover { border-color: var(--ink); }
.yarnfam[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.yarn { appearance: none; width: 100%; aspect-ratio: 1; min-width: 30px; border-radius: 50%; border: 1px solid rgb(11 22 51 / .18); cursor: pointer; position: relative; padding: 0;
  background-image: repeating-linear-gradient(115deg, rgb(255 255 255 / .16) 0 2px, transparent 2px 5px), repeating-linear-gradient(115deg, rgb(0 0 0 / .06) 0 1px, transparent 1px 5px); }
@media (hover: hover) and (pointer: fine) { .yarn:hover { transform: scale(1.08); } }
.yarn[aria-checked="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand); }
.yarn-name { font-size: var(--t-small); color: var(--muted); min-height: 1.4em; }

.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.option { appearance: none; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-s); padding: 8px 8px 10px; cursor: pointer; display: grid; gap: 6px; justify-items: center; font-size: .8125rem; font-weight: 600; }
.option svg { width: 100%; max-width: 64px; height: 56px; }
.option:hover { border-color: var(--muted); }
.option[aria-checked="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.switch input { appearance: none; width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s var(--ease); flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(20px); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-s); padding: 3px; gap: 3px; }
.seg button { appearance: none; border: 0; background: none; border-radius: 4px; padding: 10px; font-weight: 600; font-size: .875rem; cursor: pointer; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 2px var(--brand); }
.dropzone { border: 1.5px dashed var(--line); border-radius: var(--r-m); padding: var(--s5); display: grid; gap: var(--s3); justify-items: start; background: var(--ground); }
.dropzone.is-over { border-color: var(--brand); background: var(--brand-soft); }
.logo-preview { display: flex; align-items: center; gap: var(--s3); }
.logo-preview img { width: 56px; height: 56px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); }

.sizes { display: grid; gap: 8px; }
.size-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s3); padding: 8px 0; border-bottom: 1px solid var(--line); }
.size-row label { font-weight: 650; font-variant-numeric: tabular-nums; }
.size-row label small { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; font-family: var(--f-mono); letter-spacing: .04em; }
.stepper-input { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.stepper-input button { appearance: none; border: 0; background: none; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.stepper-input button:hover { background: var(--surface-2); }
.stepper-input input { width: 64px; border: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; background: transparent; height: 40px; -moz-appearance: textfield; }
.stepper-input input::-webkit-outer-spin-button, .stepper-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--s3); font-weight: 700; }
.size-total strong { font: 850 1.8rem/1 var(--f-display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.tier-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tier-meter span { display: grid; gap: 4px; font: 500 .75rem/1.2 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.tier-meter span::before { content: ""; height: 6px; border-radius: 3px; background: var(--surface-2); }
.tier-meter span.on::before { background: var(--brand); }
.tier-meter span.on { color: var(--ink); }

.summary { display: grid; gap: 0; background: var(--ground); border-radius: var(--r-m); padding: var(--s4) var(--s5); }
.summary div { display: flex; justify-content: space-between; gap: var(--s3); padding: 8px 0; font-variant-numeric: tabular-nums; }
.summary div + div { border-top: 1px dashed var(--line); }
.summary .sum { font-weight: 800; font-size: 1.125rem; }
.summary .sub { color: var(--muted); font-size: var(--t-small); }
.pricebar {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px max(var(--gutter), calc((100% - var(--max)) / 2)) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(11 22 51 / .2);
  justify-content: space-between; align-items: center; gap: var(--s3);
}
.pricebar > div { min-width: 0; flex: 1 1 auto; }
.pricebar strong { font: 800 1.05rem/1.15 var(--f-display); font-stretch: 108%; font-variant-numeric: tabular-nums; display: block; overflow-wrap: anywhere; }
.pricebar span { font-size: .75rem; color: var(--muted); }
.designer-page { padding-bottom: calc(var(--section) + 72px); }
html:has(.pricebar) { scroll-padding-bottom: 96px; }
@media (min-width: 1024px) { .pricebar strong { font-size: 1.25rem; } .pricebar span { font-size: .8125rem; } }
.trust { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--t-small); }
.trust svg { width: 16px; height: 16px; flex: none; }

@media (max-width: 1023px) {
  .designer { grid-template-columns: 1fr; }
  .designer-stage { position: static; }
  .pricebar .btn { flex: 0 1 auto; min-width: 0; max-width: 58%; white-space: normal; text-align: center; padding-inline: 14px; line-height: 1.15; }
}
/* Schmale Bildschirme mit genug Höhe: die Vorschau klebt unter dem Kopf, die Schritte laufen darunter durch */
@media (max-width: 1023px) and (min-height: 620px) {
  .designer-stage { display: contents; }
  .designer-stage > .stage {
    position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 30;
    padding: 8px 12px 10px; margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; border-top: 0;
    box-shadow: 0 10px 22px -18px rgb(11 22 51 / .45);
  }
  .designer > .panel { order: 1; }
  .designer-stage > :not(.stage) { order: 2; }
  .designer-stage > .stage .sock3d { aspect-ratio: auto; height: min(29vh, 240px); }
  .designer-stage > .stage [data-preview] svg { display: block; width: 100%; height: min(29vh, 240px); }
  .designer-stage > .stage .viewbar { margin-bottom: 6px; gap: 6px; }
  .designer-stage > .stage .viewbar .seg button { padding: 7px 10px; font-size: .8125rem; }
  .designer-stage > .stage .viewsides, .designer-stage > .stage .side-labels, .designer-stage > .stage .sock3d-hint,
  .designer-stage > .stage .stage-foot > .mono { display: none; }
  .designer-stage > .stage .stage-foot { margin-top: 6px; padding-top: 6px; justify-content: center; }
  html:has(.designer-stage) { scroll-padding-top: calc(var(--header-h) + min(29vh, 240px) + 110px); }
}
@media (max-width: 480px) {
  .zones, .options { grid-template-columns: repeat(2, 1fr); }
  .stepper button span { display: none; }
  .stepper button { min-height: 48px; }
}

/* 404 / Erfolg */
.center-page { min-height: 60vh; display: grid; align-content: center; gap: var(--s5); padding-block: var(--section); }
.center-page .btn-row { margin-top: var(--s4); }
.timeline { list-style: none; display: grid; gap: 0; margin-top: var(--s5); max-width: 32rem; }
.timeline li { display: flex; gap: var(--s4); align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.timeline li b { font: 850 1.2rem/1 var(--f-display); color: var(--brand); width: 2ch; font-variant-numeric: tabular-nums; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: var(--ground); padding: 10px 18px; border-radius: 999px; font-size: .875rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 60; max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 8 ─ Utilities & Motion */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); } .mt-7 { margin-top: var(--s7); }
.muted { color: var(--muted); }
.draft-flag { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border-left: 3px solid var(--warn); padding: 10px 14px; border-radius: var(--r-s); font-size: var(--t-small); margin-bottom: var(--s6); max-width: 65ch; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }

/* Weniger Bewegung heißt: nichts gleitet, springt oder dreht sich – Ein- und Ausblenden bleibt als Rückmeldung */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .nav, .nav.is-open { transform: none !important; }
  .btn:active, .icon-btn:active, .option:active, .seg button:active, .viewsides button:active, .yarn:active, .stepper-input button:active,
  .zone:active, .yarnfam:active, .preset:active, .langpick > summary:active, .yarn:hover { transform: none !important; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after, .langpick > summary svg { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .pricebar, .band { display: none; }
  body { background: #fff; color: #000; }
}

/* ── 9 ─ v2: Sprachmenü, Theme-Umschalter, Zusagen, Entwürfe, Nachbestellung ── */

/* Theme-Umschalter */
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn { color: var(--ink); }

/* Sprachmenü */
.langpick { position: relative; }
.langpick > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  min-height: 40px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 var(--t-label)/1 var(--f-mono); letter-spacing: .06em;
}
.langpick > summary::-webkit-details-marker { display: none; }
.langpick > summary:hover { border-color: var(--ink); }
.langpick > summary svg { width: 14px; height: 14px; flex: none; transition: transform .18s var(--ease); }
.langpick > summary svg:first-child { width: 18px; height: 18px; margin-right: 2px; }
.langpick[open] > summary svg:last-child { transform: rotate(180deg); }
.langpick .lp-name { font: 600 .9375rem/1 var(--f-text); letter-spacing: 0; }
.langpick .lp-code { display: none; }
@media (max-width: 1199px) {
  .langpick .lp-name { display: none; }
  .langpick .lp-code { display: inline; }
}
/* Sehr schmale Telefone: nur der Globus – das Symbol ist überall als Sprachwahl bekannt */
@media (max-width: 400px) {
  .langpick > summary { width: 40px; padding: 0; justify-content: center; }
  .langpick > summary svg:first-child { margin: 0; }
  .langpick .lp-code, .langpick > summary svg:last-child { display: none; }
}
.langpick ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-stage); padding: 6px; display: grid; gap: 2px; min-width: 200px;
  max-height: 60vh; overflow-y: auto;
}
.langpick[open] ul { transform-origin: top right; animation: lp-in .16s var(--ease); }
@keyframes lp-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
.langpick a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-s);
  text-decoration: none; font-size: .9375rem; white-space: nowrap;
}
.langpick a:hover { background: var(--surface-2); color: var(--ink); }
.langpick a[aria-current="true"] { background: var(--brand-soft); font-weight: 650; }
.langpick a .mono { color: var(--muted); font-size: var(--t-label); letter-spacing: .06em; min-width: 2.2em; }
.footer-langs { columns: 2; column-gap: var(--s4); }

/* Zusagen (Mockup, Versand, Muster) */
.assures { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.assures > div { display: grid; gap: var(--s2); align-content: start; padding-left: 56px; position: relative; min-height: 44px; }
.assures svg { position: absolute; left: 0; top: 0; width: 40px; height: 40px; color: var(--brand); }
.assures p { color: var(--muted); }

/* Entwürfe */
.drafts { list-style: none; display: grid; gap: 8px; }
.drafts li { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s3); align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.drafts .thumb { width: 56px; height: 56px; background: var(--ground); border-radius: var(--r-s); overflow: hidden; display: grid; place-items: center; }
.drafts .thumb svg { width: 100%; height: 100%; }
.drafts b { display: block; font-size: .9375rem; }
.drafts small { color: var(--muted); font-size: var(--t-label); font-family: var(--f-mono); }
.drafts .row { display: flex; gap: 4px; }
.icon-btn--sm { width: 36px; height: 36px; }
.icon-btn--sm svg { width: 15px; height: 15px; }

/* Nachbestellung */
.reorder-grid { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .reorder-grid { grid-template-columns: 1fr; } }
.found { display: grid; gap: var(--s4); }
.found .stage { padding: var(--s4); }
.found dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s4); margin: 0; }
.found dt { color: var(--muted); font: 500 var(--t-label)/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.found dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.code-input { font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.demo-card { border: 1.5px dashed var(--line); border-radius: var(--r-m); padding: var(--s5); display: grid; gap: var(--s3); background: var(--ground); }
.demo-card .badge { justify-self: start; background: var(--accent); color: var(--accent-ink); }

/* Lieferland */
.country-note { margin-top: var(--s2); }

/* Finger statt Maus: alle kleinen Bedienelemente mindestens 44 px */
@media (pointer: coarse) {
  .icon-btn, .langpick > summary { min-width: 44px; min-height: 44px; }
  .langpick a { min-height: 44px; }
  .yarnfam, .viewsides button, .viewbar .seg button, .range { min-height: 44px; }
  .breadcrumb a, .footer-grid a { display: inline-block; padding-block: 6px; }
}
/* Grund, warum Bestellen gerade nicht geht – direkt über den Knöpfen */
.pay-why { margin-bottom: var(--s3); }
.step.is-in { animation: step-in .18s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(var(--dx, 8px)); } }

/* Lieferanten-Abfrage (/lieferant/) */
.lf-main { padding-block: var(--s7) 160px; max-width: 920px; }
.lf-intro p { max-width: 70ch; }
.lf-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s5) 0; }
.lf-nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .875rem; background: var(--surface); }
.lf-nav a span { color: var(--muted); font-variant-numeric: tabular-nums; }
.lf-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s5); margin-bottom: var(--s4); scroll-margin-top: 16px; }
.lf-card h2 { margin-bottom: var(--s2); }
.lf-grid { display: grid; gap: var(--s4) var(--s5); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s4); }
.lf-grid .lf-full { grid-column: 1 / -1; }
.lf-grid .field .hint { display: block; color: var(--muted); font-size: .8125rem; margin-bottom: 4px; }
.lf-grid textarea.input { min-height: 88px; resize: vertical; }
.lf-unit { display: flex; align-items: center; gap: 8px; }
.lf-unit span { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.lf-files { list-style: none; display: grid; gap: 6px; margin-top: var(--s3); padding: 0; }
.lf-files li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-s); overflow-wrap: anywhere; }
.lf-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(11 22 51 / .2); padding-bottom: env(safe-area-inset-bottom, 0px); }
.lf-bar-in { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding-block: 10px; }
.lf-bar p { margin: 0; font-size: .875rem; }
#lf-status[data-s="ok"] { color: var(--ok); } #lf-status[data-s="err"] { color: var(--err); font-weight: 600; }
.req { color: var(--err); }
@media (max-width: 640px) { .lf-grid { grid-template-columns: 1fr; } .lf-card { padding: var(--s4); } }
.lf-main h1 { margin-bottom: var(--s5); }
.lf-card h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
