/* =========================================================
   Autoschilder & Zulassungsdienst Göcer
   Palette taken from the plate itself: aluminium, reflective
   white, embossing black, EU blue, star yellow.
   ========================================================= */

:root {
  --alu: #E6E9ED;
  --alu-2: #D3D9E0;
  --alu-3: #B9C1CB;
  --white: #FBFCFD;
  --ink: #0F1318;
  --ink-2: #4A5562;
  --eu: #003399;
  --eu-hover: #0A3FB8;
  --eu-light: #6F95FF;
  --star: #FFCC00;
  --steel: #1A2029;
  --steel-2: #252D38;
  --steel-3: #3A4452;
  --steel-4: #8D97A3;
  --red: #C8102E;
  --green: #17884C;

  --f-plate: "Saira Extra Condensed", "Arial Narrow", sans-serif;
  --f-body: "Schibsted Grotesk", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 10px;
  --r-lg: 18px;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 12px 30px -18px rgba(15,19,24,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--alu);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--eu); outline-offset: 3px; border-radius: 4px; }
.machine :focus-visible { outline-color: var(--star); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- type ---------- */
h2 {
  font-family: var(--f-plate);
  font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  letter-spacing: .005em;
  text-transform: uppercase;
  line-height: .95;
}
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--eu);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; border-radius: 3px;
  background: var(--eu);
  box-shadow: inset 0 0 0 4px var(--eu), inset 0 0 0 5px var(--star);
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 .95rem/1.2 var(--f-body);
  text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 16px 26px; font-size: 1.02rem; }
.btn--sm { padding: 10px 16px; font-size: .88rem; }
.btn--dark { --bg: var(--ink); }
.btn--dark:hover { --bg: #232a33; }
.btn--blue { --bg: var(--eu); }
.btn--blue:hover { --bg: var(--eu-hover); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--white); }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--alu) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--alu-2); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__plate {
  display: flex; align-items: stretch; height: 34px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 6px; overflow: hidden;
}
.brand__band { width: 12px; background: var(--eu); position: relative; }
.brand__band::after {
  content: ""; position: absolute; left: 50%; top: 9px; width: 6px; height: 6px; translate: -50% 0;
  border-radius: 50%; border: 1.5px dotted var(--star);
}
.brand__txt {
  font: 700 1.45rem/1 var(--f-plate); letter-spacing: .04em;
  padding: 3px 8px 0; display: grid; place-items: center;
}
.brand__name { font-weight: 700; font-size: .95rem; line-height: 1.15; }
.brand__name small { display: block; font-weight: 500; color: var(--ink-2); font-size: .8rem; }

.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px; transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--ink); background: var(--alu-2); }

.burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--alu) 0%, #DDE2E8 100%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .8rem/1 var(--f-mono); letter-spacing: .04em;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--steel-4); }
.status.is-open .status__dot { background: var(--green); box-shadow: 0 0 0 4px rgba(23,136,76,.18); animation: pulse 2.4s infinite; }
.status.is-closed .status__dot { background: var(--red); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(23,136,76,0); } }

.hero__title {
  font-family: var(--f-plate);
  font-weight: 700;
  font-size: clamp(3rem, 7.2vw, 6.1rem);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.hero__title span { color: var(--eu); }
.hero__lead { margin-top: 24px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-2); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 28px; font-size: .9rem; font-weight: 500; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--eu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* technical drawing around the hero plate */
.hero__figure { margin: 0; }
.drawing {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 14px 16px;
  transform: rotate(-2.5deg);
}
.dim {
  display: flex; align-items: center; gap: 10px;
  font: 500 .75rem/1 var(--f-mono); color: var(--ink-2); letter-spacing: .05em;
}
.dim i { flex: 1; height: 1px; background: var(--ink-2); position: relative; }
.dim--w { grid-column: 1; }
.dim--w i:first-child::before, .dim--w i:last-child::after {
  content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--ink-2);
}
.dim--w i:first-child::before { left: 0; }
.dim--w i:last-child::after { right: 0; }
.dim--h { grid-column: 2; grid-row: 2; flex-direction: column; writing-mode: horizontal-tb; }
.dim--h i { width: 1px; height: auto; flex: 1; }
.dim--h b { writing-mode: vertical-rl; rotate: 180deg; }
.dim--h i:first-child::before, .dim--h i:last-child::after {
  content: ""; position: absolute; left: -5px; height: 1px; width: 11px; background: var(--ink-2);
}
.dim--h i:first-child::before { top: 0; }
.dim--h i:last-child::after { bottom: 0; }
.dim b { font-weight: 500; }
.drawing .plate-wrap { grid-column: 1; grid-row: 2; }
.drawing__cap {
  margin-top: 26px; font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); text-align: center;
}

.perks {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--alu-3);
}
.perks li {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 18px 26px;
  font-weight: 600; font-size: .95rem; line-height: 1.3;
}
.perks li + li { border-left: 1px solid var(--alu-3); }
.perks svg {
  flex: none; width: 22px; height: 22px;
  fill: none; stroke: var(--eu); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* =========================================================
   PLATE
   --mm = one millimetre of the real plate, in container units
   ========================================================= */
.plate-wrap { container-type: inline-size; width: 100%; }

.plate {
  --mm: calc(100cqw / 520);
  --ch: var(--ink);
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 520 / 110;
  border-radius: calc(var(--mm) * 7);
  background:
    repeating-linear-gradient(135deg, rgba(15,19,24,.018) 0 calc(var(--mm) * 2), transparent calc(var(--mm) * 2) calc(var(--mm) * 4)),
    linear-gradient(170deg, #ffffff 0%, var(--white) 45%, #EDF0F3 100%);
  box-shadow:
    inset 0 0 0 calc(var(--mm) * 2.6) var(--ink),
    inset 0 0 0 calc(var(--mm) * 3.4) rgba(255,255,255,.9),
    0 calc(var(--mm) * 2) calc(var(--mm) * 2) rgba(15,19,24,.16),
    0 calc(var(--mm) * 18) calc(var(--mm) * 30) calc(var(--mm) * -12) rgba(15,19,24,.45);
  overflow: hidden;
  user-select: none;
}
.plate--2 { --mm: calc(100cqw / 340); aspect-ratio: 340 / 200; }

.plate__band {
  flex: none;
  width: calc(var(--mm) * 46);
  margin: calc(var(--mm) * 2.6) 0 calc(var(--mm) * 2.6) calc(var(--mm) * 2.6);
  border-radius: calc(var(--mm) * 4.5) 0 0 calc(var(--mm) * 4.5);
  background: linear-gradient(180deg, #0A3DA8, var(--eu));
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(var(--mm) * 8) 0 calc(var(--mm) * 6);
}
.plate__stars { width: calc(var(--mm) * 32); height: calc(var(--mm) * 32); }
.plate__country {
  font: 600 calc(var(--mm) * 36)/0.8 var(--f-plate);
  color: #fff;
}

.plate__field {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: calc(var(--mm) * 15);
  padding: 0 calc(var(--mm) * 8) 0 calc(var(--mm) * 6);
}
.plate__line { display: flex; align-items: center; justify-content: center; gap: calc(var(--mm) * 13); }
.plate--2 .plate__field { flex-direction: column; gap: calc(var(--mm) * 4); padding: calc(var(--mm) * 8) calc(var(--mm) * 8); }

.plate__grp { display: flex; gap: calc(var(--mm) * 2.5); }
.pc {
  display: inline-block;
  font: 600 calc(var(--mm) * 98)/0.78 var(--f-plate);
  color: var(--ch);
  padding-top: calc(var(--mm) * 3);
  text-shadow:
    calc(var(--mm) * -.7) calc(var(--mm) * -.7) 0 rgba(255,255,255,.95),
    calc(var(--mm) * .8) calc(var(--mm) * 1.4) calc(var(--mm) * 1.2) rgba(0,0,0,.38);
  transition: color .25s, text-shadow .25s;
}
.plate--2 .pc { font-size: calc(var(--mm) * 92); }
.pc--suffix { margin-left: calc(var(--mm) * 3); }

/* not yet pressed: show the die outline only */
.plate.is-blank .pc {
  color: transparent;
  -webkit-text-stroke: calc(var(--mm) * 1.1) rgba(0,51,153,.55);
  text-shadow: none;
}
.plate.is-blank .pc.is-new { animation: none; }

.plate__seals {
  flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(var(--mm) * 4);
  width: calc(var(--mm) * 34);
  margin-inline: calc(var(--mm) * -3);
  height: 100%;
}
.plate--2 .plate__seals { height: auto; flex-direction: row; width: auto; }
.seal { display: block; border-radius: 50%; }
.seal--hu {
  width: calc(var(--mm) * 34); height: calc(var(--mm) * 34);
  background:
    conic-gradient(from -90deg, rgba(0,0,0,.65) 0 2deg, transparent 2deg 30deg, rgba(0,0,0,.65) 30deg 32deg, transparent 32deg 60deg, rgba(0,0,0,.65) 60deg 62deg, transparent 62deg 90deg, rgba(0,0,0,.65) 90deg 92deg, transparent 92deg 120deg, rgba(0,0,0,.65) 120deg 122deg, transparent 122deg 150deg, rgba(0,0,0,.65) 150deg 152deg, transparent 152deg 180deg, rgba(0,0,0,.65) 180deg 182deg, transparent 182deg 210deg, rgba(0,0,0,.65) 210deg 212deg, transparent 212deg 240deg, rgba(0,0,0,.65) 240deg 242deg, transparent 242deg 270deg, rgba(0,0,0,.65) 270deg 272deg, transparent 272deg 300deg, rgba(0,0,0,.65) 300deg 302deg, transparent 302deg 330deg, rgba(0,0,0,.65) 330deg 332deg, transparent 332deg),
    radial-gradient(circle, #F2A91A 0 34%, #E9881A 35% 100%);
  box-shadow: inset 0 0 0 calc(var(--mm) * .6) rgba(0,0,0,.25);
}
.seal--city {
  width: calc(var(--mm) * 34); height: calc(var(--mm) * 34);
  background:
    radial-gradient(circle, #fff 0 30%, #C8102E 31% 40%, #fff 41% 62%, transparent 63%),
    conic-gradient(#3B8E3A 0 50%, #C8102E 50%);
  box-shadow: inset 0 0 0 calc(var(--mm) * 1) rgba(255,255,255,.9), inset 0 0 0 calc(var(--mm) * 1.6) rgba(0,0,0,.2);
}
.plate.is-front .seal--hu { display: none; }

.plate__strip {
  flex: none;
  width: calc(var(--mm) * 44);
  margin: calc(var(--mm) * 2.6) calc(var(--mm) * 2.6) calc(var(--mm) * 2.6) 0;
  border-radius: 0 calc(var(--mm) * 4.5) calc(var(--mm) * 4.5) 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: 600 calc(var(--mm) * 27)/0.95 var(--f-plate);
  color: var(--ink);
}
.plate__strip--kurz { background: var(--star); }
.plate__strip--export { background: var(--red); color: #fff; }
.plate--2 .plate__strip { font-size: calc(var(--mm) * 38); width: calc(var(--mm) * 48); }

/* stamp-in for each character */
.pc.is-new { animation: stamp .42s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes stamp {
  0% { transform: translateY(-12%) scale(1.25); opacity: 0; text-shadow: none; }
  60% { transform: translateY(2%) scale(.97); opacity: 1; }
  100% { transform: none; }
}

.plate.is-hit { animation: hit .32s var(--ease); }
@keyframes hit {
  0% { transform: none; }
  25% { transform: translateY(1.5%) scaleY(.985); }
  60% { transform: translateY(-.4%); }
  100% { transform: none; }
}

/* =========================================================
   MACHINE
   ========================================================= */
.machine {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
  background:
    radial-gradient(1200px 500px at 30% 0%, rgba(0,51,153,.35), transparent 60%),
    var(--steel);
  color: #E7EBF0;
  overflow: hidden;
}
.machine__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.machine__head p:last-child { color: #AEB7C2; margin-top: 18px; font-size: 1.05rem; }
.machine .eyebrow { color: var(--star); }
.machine .eyebrow::before { background: var(--star); box-shadow: none; }

.machine__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* --- the press --- */
.press {
  --travel: 0px;
  position: relative;
  padding: 0 0 8px;
}
.press__beam {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #4A5564, #2E3743 60%, #262E39);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 20px -8px rgba(0,0,0,.6);
}
.press__label {
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .18em; color: #C9D1DB;
  padding: 7px 10px; border-radius: 4px;
  background: linear-gradient(180deg, #C8CED6, #9AA3AE); color: var(--steel);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.press__counter {
  margin-left: auto; display: flex; align-items: baseline; gap: 8px;
  font-family: var(--f-mono); color: #9AA6B3;
}
.press__counter small { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; }
.press__counter output {
  font-size: 1rem; font-weight: 500; color: var(--star);
  background: #0B0E12; padding: 5px 9px; border-radius: 4px; letter-spacing: .12em;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.6);
}
.press__lamp {
  width: 12px; height: 12px; border-radius: 50%;
  background: #2C5E3F; box-shadow: inset 0 -2px 3px rgba(0,0,0,.5);
  transition: background-color .15s, box-shadow .15s;
}
.press__lamp.is-on { background: #3BE07F; box-shadow: 0 0 12px #3BE07F, inset 0 -2px 3px rgba(0,0,0,.3); }
.press__lamp.is-busy { background: var(--star); box-shadow: 0 0 14px var(--star); }

.press__body {
  position: relative;
  padding: 0 7% 34px;
  margin-bottom: -26px;
  overflow: hidden;
}
.press__post {
  position: absolute; top: 0; bottom: 34px; width: 5%;
  background: linear-gradient(90deg, #2A323D, #6C7684 45%, #39424E);
  border-radius: 3px;
}
.press__post--l { left: 1%; }
.press__post--r { right: 1%; }
.press__ram {
  position: relative; z-index: 2;
  height: clamp(34px, 5.4vw, 52px);
  margin: clamp(26px, 4vw, 44px) 0 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #6B7584, #3D4653 70%, #2A313B);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 14px 18px -10px rgba(0,0,0,.7);
  will-change: transform;
}
.press__ram::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; translate: -50% 0;
  width: 13%; height: 400px;
  background: linear-gradient(90deg, #8D97A3, #EEF1F4 40%, #8D97A3);
}
.press__ram span {
  position: absolute; inset: auto 3% -6px; height: 6px; border-radius: 0 0 4px 4px;
  background: repeating-linear-gradient(90deg, #9AA4B0 0 6px, #59636F 6px 9px);
}
.press__bed {
  position: relative; z-index: 1;
  margin-top: clamp(30px, 5vw, 54px);
  padding: 18px 4% 26px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%),
    linear-gradient(180deg, #333C48, #1F262F);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -10px 20px rgba(0,0,0,.35), 0 24px 40px -20px rgba(0,0,0,.8);
}
.press__bed::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 10px; height: 4px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--star) 0 14px, var(--ink) 14px 28px);
  opacity: .8;
}
.plate-wrap--machine { position: relative; transition: max-width .35s var(--ease); margin-inline: auto; }
.plate-wrap--machine.is-2 { max-width: 62%; }

.press__state {
  margin-top: 16px; text-align: center;
  font: 500 .78rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #8F9AA7;
}
.press__state.is-error { color: #FF8C8C; }

/* --- control panel --- */
.panel {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--steel-2), #1E252E);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.8);
  display: grid; gap: 20px;
}
.panel fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.panel__row--plate { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 10px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .seg__label {
  font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #8F9AA7;
}
.field input {
  width: 100%; min-width: 0;
  padding: 10px 12px 6px;
  border: 2px solid var(--steel-3); border-radius: 10px;
  background: #0E1217; color: var(--white);
  font: 600 2rem/1 var(--f-plate); letter-spacing: .06em; text-transform: uppercase;
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover { border-color: #536072; }
.field input:focus { outline: none; border-color: var(--star); box-shadow: 0 0 0 4px rgba(255,204,0,.18); }
.field input[aria-invalid="true"] { border-color: #FF6B6B; }
.field input:disabled { opacity: .35; }
.field.is-off { opacity: .4; }

.panel__msg { font-size: .85rem; color: #AEB7C2; margin-top: -8px; min-height: 1.4em; }
.panel__msg b { color: var(--star); font-weight: 600; }
.panel__msg.is-error { color: #FF9C9C; }
.panel__msg.is-error b { color: inherit; }

.panel__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.seg__label { flex-basis: 100%; margin-bottom: 3px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label span {
  display: block; padding: 8px 13px; border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: #C8D0DA;
  background: #11161C; box-shadow: inset 0 0 0 1px var(--steel-3);
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.seg label:hover span { color: #fff; box-shadow: inset 0 0 0 1px #5A6779; }
.seg input:checked + span { background: var(--white); color: var(--ink); box-shadow: none; font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--star); outline-offset: 2px; }

.panel__go {
  display: flex; align-items: center; gap: 22px;
  padding-top: 20px; border-top: 1px solid var(--steel-3);
}

/* the big mushroom button */
.knob {
  flex: none;
  width: 116px; height: 116px; border-radius: 50%;
  border: 0; padding: 9px; cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #4E5866, #1A2029 70%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.15), 0 0 0 4px #0E1217, 0 0 0 6px var(--star), 0 14px 26px -8px rgba(0,0,0,.8);
}
.knob__cap {
  display: grid; place-items: center;
  width: 100%; height: 100%; border-radius: 50%;
  font: 700 1.25rem/1 var(--f-plate); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: radial-gradient(circle at 40% 30%, #3E6FFF, var(--eu) 55%, #00226A);
  box-shadow: inset 0 3px 3px rgba(255,255,255,.35), inset 0 -6px 10px rgba(0,0,0,.4), 0 7px 0 #001A52, 0 10px 14px rgba(0,0,0,.5);
  transform: translateY(-4px);
  transition: transform .1s var(--ease), box-shadow .1s;
}
.knob:hover .knob__cap { filter: brightness(1.1); }
.knob:active .knob__cap, .knob.is-down .knob__cap {
  transform: translateY(3px);
  box-shadow: inset 0 3px 3px rgba(255,255,255,.25), inset 0 -3px 8px rgba(0,0,0,.45), 0 0 0 #001A52, 0 3px 6px rgba(0,0,0,.5);
}
.knob[aria-disabled="true"] .knob__cap { background: radial-gradient(circle at 40% 30%, #6A7380, #3A4250); }

.panel__after { display: grid; gap: 12px; min-width: 0; }
.panel__hint { font-size: .9rem; color: #C8D0DA; }
.panel__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel__actions .btn--blue { --bg: #1F4FD1; }
.panel__actions .btn--blue:hover { --bg: #2C5DE6; }
.panel__fine { font-size: .8rem; color: #8F9AA7; line-height: 1.5; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--alt { background: var(--white); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head > p:last-child, .section__head > p:not(.eyebrow) { margin-top: 18px; color: var(--ink-2); font-size: 1.05rem; }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service {
  display: flex; flex-direction: column;
  padding: 26px 24px 28px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}
.service h3 {
  font-family: var(--f-plate); font-size: 1.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 2px solid var(--ink);
}
.service li { padding: 7px 0; font-size: .95rem; line-height: 1.35; border-bottom: 1px solid var(--alu-2); }
.service li:last-child { border-bottom: 0; }
.service--blue { background: var(--eu); color: #fff; box-shadow: none; }
.service--blue h3 { border-bottom-color: var(--star); }
.service--blue li { border-bottom-color: rgba(255,255,255,.18); }
.service__link {
  margin-top: auto; padding-top: 18px;
  font-weight: 600; color: var(--star); text-decoration: none;
}
.service__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* flow + checklist */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.steps { margin-top: 36px; counter-reset: s; display: grid; gap: 4px; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 26px 64px;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  font: 700 1.7rem/1 var(--f-plate); padding-top: 3px;
  background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--alu-3) 0 4px, transparent 4px 8px);
}
.steps h3 { margin-bottom: 6px; padding-top: 6px; }
.steps p { color: var(--ink-2); font-size: .97rem; }

.checklist {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--alu);
  position: sticky; top: 96px;
}
.checklist__head h3 { font-size: 1.3rem; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--alu-2); border-radius: 12px; }
.tabs button {
  flex: 1; border: 0; cursor: pointer;
  padding: 10px 8px; border-radius: 9px;
  font: 600 .88rem/1.1 var(--f-body); color: var(--ink-2);
  background: transparent; transition: background-color .15s, color .15s;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 6px -2px rgba(15,19,24,.25); }
.checks { margin-top: 18px; display: grid; gap: 2px; }
.checks label {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 11px 12px; border-radius: 10px; font-size: .95rem; line-height: 1.4;
  transition: background-color .15s;
}
.checks label:hover { background: rgba(255,255,255,.65); }
.checks input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px;
  border: 2px solid var(--ink-2); background: var(--white); cursor: pointer;
  display: grid; place-items: center; transition: background-color .15s, border-color .15s;
}
.checks input::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border: solid #fff; border-width: 0 0 2px 2px; rotate: -45deg; scale: 0; transition: scale .15s var(--ease);
}
.checks input:checked { background: var(--eu); border-color: var(--eu); }
.checks input:checked::after { scale: 1; }
.checks input:checked + span { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--alu-3); }
.checklist__note { margin-top: 16px; font-size: .88rem; color: var(--ink-2); padding-top: 16px; border-top: 1px solid var(--alu-3); }

/* prices */
.prices { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.prices__head { margin-bottom: 0; }
.prices__head .btn { margin-top: 28px; }
.pricelist {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}
.pricelist h3 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.pricelist h3 small { font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.pricelist dl { margin: 0; }
.pricelist dl > div {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--alu-2);
}
.pricelist dl > div:last-child { border-bottom: 0; }
.pricelist dt { font-weight: 500; }
.pricelist dt small { display: block; font-size: .8rem; color: var(--ink-2); font-weight: 400; }
.pricelist dd {
  margin: 0 0 0 auto; flex: none;
  font: 500 .92rem/1 var(--f-mono); color: var(--ink-2);
}
.pricelist dd:not(:empty)[data-fixed] { color: var(--ink); }
.pricelist__strong dt { font-weight: 700; }

/* visit */
.visit { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.visit__where { margin-top: 18px; color: var(--ink-2); font-size: 1.05rem; }
.contact {
  font-style: normal;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 32px 0;
}
.contact__item {
  display: grid; gap: 4px;
  padding: 16px 18px; border-radius: 12px;
  background: var(--alu); text-decoration: none;
  transition: background-color .15s, transform .15s var(--ease);
  min-width: 0;
}
a.contact__item:hover { background: var(--alu-2); transform: translateY(-1px); }
.contact__item small { font: 500 .7rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.contact__item strong { font-size: 1.02rem; overflow-wrap: anywhere; }

.hours {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--ink); color: #E7EBF0;
}
.hours h3 { font-family: var(--f-plate); font-size: 1.9rem; text-transform: uppercase; margin-bottom: 14px; }
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid #2A313B; text-align: left; font-weight: 400; }
.hours td { text-align: right; font-family: var(--f-mono); font-size: .92rem; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--star); font-weight: 600; }
.hours tr.is-today th::after {
  content: "heute"; margin-left: 10px; padding: 2px 7px; border-radius: 4px;
  font: 500 .65rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px;
  background: var(--star); color: var(--ink);
}
.hours__note { margin-top: 16px; font-size: .88rem; color: #AEB7C2; }

/* footer */
.footer { padding: 36px 0 40px; background: var(--alu); border-top: 1px solid var(--alu-2); font-size: .9rem; color: var(--ink-2); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.footer strong { color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }

.callbar { display: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; }
  .header__call span { display: none; }
  .header__call { padding: 12px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .machine__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .burger {
    display: grid; place-items: center; gap: 6px; padding: 12px;
    width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--ink); cursor: pointer;
    align-content: center;
  }
  .burger span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--alu); border-bottom: 1px solid var(--alu-2);
    box-shadow: 0 20px 30px -20px rgba(15,19,24,.4);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .2s var(--ease), opacity .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; font-size: 1.05rem; color: var(--ink); border-radius: 0; border-bottom: 1px solid var(--alu-2); }
  .nav a:hover { background: transparent; }
  .header__inner { gap: 10px; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; max-width: 560px; width: 100%; margin-inline: auto; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .perks li:nth-child(3) { border-left: 0; }
  .perks li:nth-child(n+3) { border-top: 1px solid var(--alu-3); }

  .flow, .prices, .visit { grid-template-columns: 1fr; }
  .checklist { position: static; }
}

@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .brand__name { display: none; }
  .header__call { display: none; }
  .services { grid-template-columns: 1fr; }
  .perks li { padding: 16px 10px 18px; font-size: .86rem; gap: 10px; }
  .perks li:nth-child(even) { padding-left: 14px; }
  .panel__row--plate { grid-template-columns: 1fr 1fr; }
  .field--num { grid-column: 1 / -1; }
  .panel__row--split { grid-template-columns: 1fr; }
  .panel__go { flex-direction: column; align-items: stretch; text-align: center; }
  .knob { margin-inline: auto; }
  .panel__actions { justify-content: center; }
  .contact { grid-template-columns: 1fr; }
  .drawing { gap: 10px 10px; }
  .press__label { display: none; }
  .plate-wrap--machine.is-2 { max-width: 78%; }

  .callbar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    padding: 16px; border-radius: 14px;
    background: var(--eu); color: #fff; text-decoration: none; font-weight: 600;
    box-shadow: 0 14px 30px -10px rgba(0,51,153,.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* legal page */
.legal { padding: clamp(48px, 7vw, 96px) 0; }
.legal__inner { max-width: 760px; display: grid; gap: 64px; }
.legal h1 { font-family: var(--f-plate); font-size: clamp(2.4rem, 5vw, 3.4rem); text-transform: uppercase; margin-bottom: 8px; }
.legal h2 { font-family: var(--f-body); font-size: 1.05rem; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.3; margin: 28px 0 8px; }
.legal p { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--eu); }
