/* TMA Studio — the cutting table: pattern paper, chalk, cloth, measuring tape. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/BricolageGrotesque-500.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/BricolageGrotesque-700.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/BricolageGrotesque-800.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/HankenGrotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/HankenGrotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Spline Sans Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/SplineSansMono-500.woff2') format('woff2'); }

:root {
  --paper: #efe9dc;
  --paper-2: #e6dfcf;
  --paper-hi: #f7f3ea;
  --grid: rgba(30, 42, 58, .07);
  --grid-strong: rgba(30, 42, 58, .13);
  --navy: #1e2a3a;
  --navy-2: #283648;
  --ink-2: #4c5562;
  --chalk: #b9352b;
  --chalk-hi: #d4473b;
  --chalk-light: #f1d9d2;
  --tape: #f2c94c;
  --cream: #f4efe4;
  --cream-2: #c9cfd8;

  --f-display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --f-text: 'Hanken Grotesk', system-ui, sans-serif;
  --f-mono: 'Spline Sans Mono', ui-monospace, monospace;

  --pad-x: clamp(16px, 5vw, 88px);
  --sec-y: clamp(88px, 11vw, 168px);
  --top-h: 72px;
  --tape-h: 26px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-color: var(--navy) var(--paper-2); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; color: var(--navy);
  font-family: var(--f-text); font-size: clamp(1.0625rem, .3vw + 1rem, 1.1875rem); line-height: 1.55;
  -webkit-font-smoothing: antialiased; caret-color: var(--chalk);
  /* pattern paper: a printed centimetre grid with a stronger line every five */
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
}
::selection { background: var(--tape); color: var(--navy); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--chalk-hi); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
svg { flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--navy); color: var(--cream); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

.mono { font-family: var(--f-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); line-height: .98; letter-spacing: -.025em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 24px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; text-decoration: none;
  border: 0; border-radius: 4px; cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--chalk { background: var(--chalk); color: #fff; }
.btn--chalk:hover { background: #a42d24; }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 1rem; }
.btn[disabled] { opacity: .75; cursor: progress; }
.link { font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; text-decoration: underline; text-decoration-color: var(--chalk); text-decoration-thickness: 2px; }
.link:hover { color: var(--chalk); }
.link--light { color: var(--cream); text-decoration-color: var(--tape); }
.link--light:hover { color: var(--tape); }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px);
  padding: 0 var(--pad-x);
  background: var(--paper);
  transition: transform .4s var(--ease-out);
}
.top.is-hidden { transform: translateY(calc(-100% - var(--tape-h))); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 84px; height: auto; mix-blend-mode: multiply; }
.brand span { font-family: var(--f-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding-top: 14px; }
.top__nav { display: flex; gap: clamp(14px, 2.2vw, 30px); margin-left: auto; font-family: var(--f-display); font-weight: 700; font-size: 1.0625rem; }
.top__nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(var(--chalk), var(--chalk)) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease-out); }
.top__nav a:hover { background-size: 100% 2px; }
.top__toggle { display: none; }

.menu { position: fixed; inset: 0; z-index: 38; background: var(--paper); padding: calc(var(--top-h) + var(--tape-h) + 24px) var(--pad-x) 32px; }
.menu nav { display: flex; flex-direction: column; }
.menu a { font-family: var(--f-display); font-weight: 800; font-size: 2.25rem; line-height: 1.1; text-decoration: none; padding: 14px 0; border-bottom: 2px dashed var(--grid-strong); }
.menu .menu__cta { color: var(--chalk); border-bottom: 0; }

/* ---------- measuring tape ---------- */
.tape {
  position: fixed; left: 0; right: 0; top: var(--top-h); z-index: 39; height: var(--tape-h);
  background: var(--tape); box-shadow: 0 1px 0 rgba(30, 42, 58, .25), 0 3px 8px rgba(30, 42, 58, .08);
  transition: transform .4s var(--ease-out);
}
.tape.is-hidden .tape__mark b { opacity: 0; }
.tape.is-hidden { transform: translateY(calc(-1 * (var(--top-h) + var(--tape-h)))); }
.tape__scale { position: absolute; inset: 0; width: 100%; height: 100%; }
.tape__scale line { stroke: var(--navy); stroke-width: 1; }
.tape__scale text { font-family: var(--f-mono); font-size: 9px; fill: var(--navy); }
.tape__mark { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--chalk); will-change: transform; }
.tape__mark b {
  position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  background: var(--chalk); color: #fff; padding: 2px 6px; border-radius: 3px; white-space: nowrap;
  font-family: var(--f-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .04em;
  transition: opacity .2s var(--ease-out);
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: center;
  padding: calc(var(--top-h) + var(--tape-h) + clamp(48px, 7vw, 96px)) var(--pad-x) clamp(56px, 7vw, 96px);
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__cut { position: relative; align-self: flex-start; padding: clamp(18px, 2.4vw, 34px) clamp(22px, 3vw, 44px); margin-left: calc(-1 * clamp(22px, 3vw, 44px)); }
.chalk { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.chalk__line { fill: none; stroke: var(--chalk-hi); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hero__title { font-size: clamp(3.25rem, 7.6vw, 7.25rem); line-height: .9; letter-spacing: -.035em; }
.hero__title .line { display: block; overflow: clip; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:last-child { color: var(--chalk); }
.hero__lead { max-width: 40ch; font-size: clamp(1.1875rem, .6vw + 1.05rem, 1.4375rem); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--f-mono); font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta li::before { content: ""; width: 14px; height: 2px; background: var(--chalk); }

/* ---------- pattern pieces ---------- */
.piece { position: relative; }
.piece__label { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 12px; font-family: var(--f-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.piece__label span:first-child { color: var(--chalk); }
.piece__label span:nth-child(2) { color: var(--navy); }
.piece__cloth {
  position: relative; display: block; padding: 4.5%; background: var(--navy); text-decoration: none; color: var(--cream);
  clip-path: polygon(5% 0, 95% 0, 100% 7%, 100% 93%, 95% 100%, 5% 100%, 0 93%, 0 7%);
}
.piece__cloth img { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; clip-path: polygon(3% 0, 97% 0, 100% 5%, 100% 95%, 97% 100%, 3% 100%, 0 95%, 0 5%); }
.piece__seam { position: absolute; inset: 1.6%; width: 96.8%; height: 96.8%; z-index: 1; pointer-events: none; }
.piece__seam polygon { fill: none; stroke: rgba(244, 239, 228, .55); stroke-width: 1.2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.piece__grain { position: absolute; right: -18px; top: 18%; bottom: 18%; width: 2px; background: var(--navy); }
.piece__grain::before, .piece__grain::after { content: ""; position: absolute; left: -5px; border: 6px solid transparent; }
.piece__grain::before { top: -10px; border-bottom: 9px solid var(--navy); border-top: 0; }
.piece__grain::after { bottom: -10px; border-top: 9px solid var(--navy); border-bottom: 0; }
.piece--hero { transform: rotate(1.5deg); }

/* ---------- anprobe ---------- */
.anprobe { padding: calc(var(--sec-y) * .5) 0 0; }
.anprobe .h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); }
.anprobe__steps li { padding: 8px 14px; font-size: 1rem; }
.anprobe__steps b { font-size: 1.125rem; }
.anprobe__pin {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center;
  padding: calc(var(--top-h) + var(--tape-h) + 24px) var(--pad-x) 40px;
}
.anprobe__text { display: flex; flex-direction: column; gap: 22px; }
.anprobe__steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.anprobe__steps li { padding: 12px 16px; border-radius: 4px; color: var(--ink-2); transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }
.anprobe__steps b { display: block; font-family: var(--f-display); font-size: 1.25rem; color: var(--navy); }
.anprobe__steps li.is-active { background: var(--paper-hi); color: var(--navy); box-shadow: inset 0 0 0 2px var(--chalk); }
.anprobe__stage { position: relative; aspect-ratio: 16 / 10; }
.frame {
  position: absolute; inset: 0; overflow: hidden; border-radius: 4px; background: var(--navy);
  box-shadow: 0 2px 0 rgba(30, 42, 58, .2), 0 18px 40px -18px rgba(30, 42, 58, .45);
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.frame--template { background: #d9d6d0; }
.tpl { position: absolute; inset: 0; padding: 4% 6%; display: grid; grid-template-rows: auto 1fr auto; gap: 6%; }
.tpl i { display: block; background: #b9b5ad; border-radius: 3px; }
.tpl__nav { display: flex; gap: 4%; justify-content: flex-end; }
.tpl__nav i { width: 9%; height: 10px; }
.tpl__nav i:first-child { margin-right: auto; width: 14%; height: 18px; }
.tpl__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: center; }
.tpl__hero > div { display: grid; gap: 12px; }
.tpl__h { height: 26px; width: 90%; }
.tpl__h--short { width: 60%; }
.tpl__p { height: 40px; width: 80%; opacity: .7; }
.tpl__btn { height: 30px; width: 34%; background: #9d998f !important; }
.tpl__img { height: 100%; min-height: 120px; }
.tpl__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.tpl__cards i { height: 56px; }
.anprobe__cutline { position: absolute; top: -12px; bottom: -12px; left: 0; width: 3px; background: var(--chalk-hi); opacity: 0; z-index: 5; border-radius: 2px; }

/* ---------- arbeiten ---------- */
.arbeiten, .pakete, .ablauf, .fragen { padding: var(--sec-y) var(--pad-x); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 88px); row-gap: 14px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head .mono { grid-column: 1 / -1; }
.sec-head__note { color: var(--ink-2); max-width: 46ch; }
.pieces { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 48px); align-items: start; }
.piece--a { grid-column: 1 / 8; transform: rotate(-1deg); }
.piece--b { grid-column: 8 / 13; margin-top: 12%; transform: rotate(1.2deg); }
.piece--c { grid-column: 1 / 6; transform: rotate(.8deg); }
.piece--d { grid-column: 6 / 10; margin-top: 8%; transform: rotate(-1.4deg); }
.piece--e { grid-column: 10 / 13; transform: rotate(2deg); }
.piece--e .piece__cloth img { aspect-ratio: 390 / 600; }
.piece__cloth img { transition: filter .4s var(--ease-out); }
.piece__cloth:hover img { filter: brightness(.85); }
.piece__open {
  position: absolute; left: 50%; bottom: 9%; z-index: 2; transform: translate(-50%, 10px); opacity: 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 4px;
  background: var(--chalk); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1rem; white-space: nowrap;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.piece__open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.piece__cloth:hover .piece__open, .piece__cloth:focus-visible .piece__open { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .piece__open { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- pakete ---------- */
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.size {
  position: relative; display: flex; flex-direction: column; gap: 24px;
  padding: clamp(24px, 3vw, 40px); background: var(--paper-hi); border: 2px solid var(--navy); border-radius: 4px;
}
.size::before { /* the punched hole of a size tag */
  content: ""; position: absolute; top: 16px; right: 18px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--navy);
}
.size header { display: grid; gap: 8px; }
.size__tag { color: var(--chalk); }
.size h3 { font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1; letter-spacing: -.02em; }
.size__for { color: var(--ink-2); }
.size__price { margin-top: 8px; display: flex; align-items: baseline; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 2.25rem; line-height: 1; font-variant-numeric: tabular-nums; }
.todo-price { padding: 0 10px; border: 2px dashed currentColor; border-radius: 4px; opacity: .6; letter-spacing: .1em; }
.size__list { list-style: none; margin: 0; padding: 18px 0 0; border-top: 2px dashed var(--grid-strong); display: grid; gap: 10px; }
.size__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.size__list li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; background: no-repeat center / contain; }
.size__list .yes::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23b9352b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E"); }
.size__list .no { color: var(--ink-2); }
.size__list .no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234c5562' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 10h10'/%3E%3C/svg%3E"); }
.size--main { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.size--main::before { background: var(--navy); box-shadow: inset 0 0 0 2px var(--cream); }
.size--main .size__tag { color: var(--tape); }
.size--main .size__price .mono { color: var(--cream-2); }
.size--main .size__for, .size--main .size__list .no { color: var(--cream-2); }
.size--main .size__list { border-top-color: rgba(244, 239, 228, .25); }
.size--main .size__list .yes::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23f2c94c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E"); }
.size--main .size__list .no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c9cfd8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 10h10'/%3E%3C/svg%3E"); }
.pakete__note { margin-top: 24px; color: var(--ink-2); font-size: 1rem; }

/* ---------- ablauf ---------- */
.fitting { position: relative; padding-top: 56px; }
.fitting__tape {
  position: absolute; left: 0; right: 0; top: 0; height: 26px; border-radius: 2px; overflow: hidden; box-shadow: 0 1px 0 rgba(30, 42, 58, .25);
  /* a real tape: mm ticks, longer every half and full cm */
  background:
    linear-gradient(90deg, var(--navy) 1px, transparent 1px) 0 0 / 80px 14px no-repeat repeat,
    linear-gradient(90deg, var(--navy) 1px, transparent 1px) 0 0 / 40px 10px,
    linear-gradient(90deg, var(--navy) 1px, transparent 1px) 0 0 / 8px 6px,
    var(--tape);
  background-repeat: repeat-x;
}
.fitting__tape > span { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--chalk); transform-origin: left; transform: scaleX(0); }
.fitting__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.fitting__steps li { position: relative; display: grid; gap: 10px; align-content: start; }
.fitting__steps li::before { content: ""; position: absolute; left: 0; top: -38px; width: 2px; height: 30px; background: var(--navy); }
.fitting__cm { color: var(--chalk); }
.fitting__steps h3 { font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.05; }
.fitting__steps p { color: var(--ink-2); }

/* ---------- über mich (navy cloth) ---------- */
.ueber {
  background: var(--navy); color: var(--cream);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 88px); row-gap: 20px; align-items: end;
  padding: var(--sec-y) var(--pad-x);
}
.ueber .mono { grid-column: 1 / -1; color: var(--tape); }
.ueber__title { font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: .98; letter-spacing: -.03em; }
.ueber__text { display: grid; gap: 16px; color: var(--cream-2); max-width: 44ch; }

/* ---------- FAQ ---------- */
.faq { max-width: 980px; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 2px dashed var(--grid-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.25rem, 1.6vw, 1.5rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy) no-repeat center / 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' stroke='%23f4efe4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 2v10M2 7h10'/%3E%3C/svg%3E");
  transition: transform .3s var(--ease-out), background-color .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--chalk); }
.faq summary:hover { color: var(--chalk); }
.faq details p { padding: 0 0 24px; max-width: 62ch; color: var(--ink-2); }

/* ---------- kontakt ---------- */
.kontakt {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px);
  padding: var(--sec-y) var(--pad-x); border-top: 2px dashed var(--grid-strong);
}
.kontakt__intro { display: flex; flex-direction: column; gap: 18px; }
.kontakt__intro > p:not(.mono) { color: var(--ink-2); max-width: 40ch; }
.kontakt__mail a { color: var(--navy); font-weight: 600; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-content: start; padding: clamp(24px, 3vw, 40px); background: var(--paper-hi); border: 2px solid var(--navy); border-radius: 4px; }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding: 10px 0 14px; min-width: 0; }
.field--half { grid-column: span 1; }
.field label { font-family: var(--f-display); font-weight: 700; font-size: 1rem; }
.opt { font-weight: 500; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--navy); background: #fff;
  border: 2px solid #c6c0b2; border-radius: 4px; padding: 12px 14px; min-height: 50px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%231e2a3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #666b74; opacity: 1; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--navy); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(212, 71, 59, .35); }
.field.has-error input, .field.has-error textarea { border-color: var(--chalk); }
.field__err { font-size: .9375rem; font-weight: 600; color: var(--chalk); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 10px; }
.form__hint { font-size: .9375rem; color: var(--ink-2); }
.form__status { grid-column: 1 / -1; font-weight: 600; }
.form__status a { color: var(--chalk); font-weight: 700; }
.form__status:not(:empty) { margin-top: 16px; padding: 14px 16px; border-radius: 4px; background: var(--chalk-light); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: var(--cream-2); }
.foot__inner { padding: 56px var(--pad-x); display: grid; gap: 8px; font-size: .9375rem; }
.foot__brand { font-family: var(--f-display); font-weight: 800; font-size: 2rem; color: var(--cream); letter-spacing: -.02em; }
.foot a { color: var(--cream); }
.foot a:hover { color: var(--tape); }
.foot__links { display: flex; gap: 20px; margin-top: 8px; }
.foot__small { font-size: .8125rem; margin-top: 8px; }

/* ---------- mobile CTA ---------- */
.callbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .top__nav, .top__cta { display: none; }
  .top__toggle { display: inline-grid; place-items: center; margin-left: auto; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; color: inherit; cursor: pointer; }
  .bars { display: grid; gap: 6px; width: 24px; }
  .bars i { display: block; height: 2px; background: currentColor; transition: transform .3s var(--ease-out); }
  .top__toggle[aria-expanded="true"] .bars i:first-child { transform: translateY(4px) rotate(45deg); }
  .top__toggle[aria-expanded="true"] .bars i:last-child { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 900px) {
  .hero, .anprobe__pin, .sec-head, .ueber, .kontakt { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .piece--hero { transform: rotate(.6deg); margin-top: 40px; }
  .anprobe__pin { min-height: 0; padding-top: 0; }
  .anprobe__stage { display: grid; gap: 16px; aspect-ratio: auto; }
  .anprobe__stage .frame { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .anprobe__cutline { display: none; }
  .anprobe__steps li { color: var(--navy); }
  .pieces { grid-template-columns: minmax(0, 1fr); }
  .pieces .piece { grid-column: 1; margin-top: 0; }
  .piece--e { max-width: 70%; }
  .sizes { grid-template-columns: minmax(0, 1fr); }
  .fitting { padding-top: 0; padding-left: 44px; }
  .fitting__tape { top: 0; bottom: 0; left: 0; right: auto; width: 22px; height: auto; }
  .fitting__tape { background: var(--tape); }
  .fitting__tape > span { top: 0; bottom: 0; left: auto; right: 0; width: 6px; height: auto; transform-origin: top; transform: scaleY(0); }
  .fitting__steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .fitting__steps li::before { left: -22px; top: 10px; width: 16px; height: 2px; }
}
@media (max-width: 640px) {
  :root { --top-h: 64px; --tape-h: 22px; }
  .brand img { width: 70px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .field--half { grid-column: 1 / -1; }
  .form__foot .btn { flex: 1 1 100%; justify-content: center; }
  .foot__inner { padding-bottom: 112px; }
  .callbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 44;
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 4px;
    background: var(--chalk); color: #fff; text-decoration: none;
    font-family: var(--f-display); font-weight: 700; font-size: 1.125rem;
    box-shadow: 0 10px 24px -8px rgba(30, 42, 58, .5);
    transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
  }
  .callbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
  .callbar.is-hidden { transform: translateY(140%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 780px; padding: calc(var(--top-h) + 72px) var(--pad-x) 96px; }
.legal h1 { font-size: clamp(2.75rem, 7vw, 5rem); line-height: .95; letter-spacing: -.03em; margin-bottom: 28px; }
.legal h2 { font-size: 1.5rem; margin: 36px 0 8px; }
.legal p { color: var(--ink-2); max-width: 65ch; }
.legal p + p { margin-top: 12px; }
.todo { background: var(--tape); color: var(--navy); padding: 1px 6px; border-radius: 3px; }

/* ---------- cookie consent ---------- */
.foot__btn { font: inherit; color: var(--cream); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; cursor: pointer; }
.foot__btn:hover { color: var(--tape); }
.consent {
  position: fixed; right: var(--pad-x); bottom: 24px; z-index: 60; width: min(440px, calc(100vw - 32px));
  padding: 22px 22px 20px; background: var(--paper-hi); color: var(--navy);
  border: 2px dashed var(--chalk); border-radius: 6px;
  box-shadow: 0 2px 0 rgba(30, 42, 58, .15), 0 24px 48px -16px rgba(30, 42, 58, .45);
  opacity: 0; transform: translateY(16px); transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.consent.is-in { opacity: 1; transform: none; }
.consent__title { font-family: var(--f-display); font-weight: 800; font-size: 1.375rem; line-height: 1.1; margin-bottom: 8px; }
.consent__text { font-size: .9688rem; line-height: 1.5; color: var(--ink-2); }
.consent__text a { color: var(--navy); font-weight: 600; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent__btn {
  min-height: 48px; border-radius: 4px; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: 1.0625rem;
  background: var(--navy); color: var(--cream); border: 2px solid var(--navy);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.consent__btn:hover { background: var(--navy-2); }
.has-consent .callbar { transform: translateY(140%); opacity: 0; }
@media (max-width: 640px) { .consent { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; } }
