/* Angebot in 60 – shared styles: tokens, base, header, footer, buttons, forms, ticket, legal pages.
   Look: a freshly primed wall, RAL 7016 anthracite, RAL 1003 signal yellow and masking tape. */

@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("../fonts/atkinson-mono.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --wand: #f3f0e8;
  --wand-tief: #e7e1d3;
  --papier: #fffdf8;
  --ink: #24292c;
  --ink-2: #2e3539;
  --ink-3: #3b4348;
  --ink-soft: #545b5f;
  --signal: #f9a800;
  --signal-hell: #ffbe2e;
  --krepp: #e9d8a3;
  --rot: #b3261e;
  --linie: rgba(36, 41, 44, 0.16);
  --radius: 8px;
  --max: 1180px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --font-display: "Big Shoulders", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, Consolas, monospace;
  --tape-edge: polygon(3% 0, 97% 0, 100% 14%, 96.5% 30%, 100% 47%, 97% 64%, 100% 80%, 97% 100%, 3% 100%, 0 84%, 3.5% 67%, 0 50%, 3% 33%, 0 17%);
  --tape-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 45%, rgba(120, 90, 20, 0.07)), var(--krepp);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .16 0 0 0 0 .17 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: var(--wand);
  background-image: var(--noise);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-x: hidden;
}

main {
  flex: 1;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--signal);
}

:focus-visible {
  outline: 4px solid var(--signal);
  outline-offset: 3px;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__watch {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  margin-top: 0.2em;
  border: 0.13em solid var(--ink);
  border-radius: 50%;
  background: var(--signal);
  font-size: 0.8em;
  font-weight: 900;
  letter-spacing: 0;
}

.brand__watch::before {
  content: "";
  position: absolute;
  top: -0.44em;
  left: 50%;
  width: 0.55em;
  height: 0.28em;
  border-radius: 0.08em 0.08em 0 0;
  background: var(--ink);
  transform: translateX(-50%);
}

.brand__watch::after {
  content: "";
  position: absolute;
  top: 0.05em;
  right: -0.16em;
  width: 0.26em;
  height: 0.18em;
  border-radius: 0.06em;
  background: var(--ink);
  transform: rotate(42deg);
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.35rem;
  }

  .hide-xs {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--signal);
  --btn-bg-hover: var(--signal-hell);
  --btn-fg: var(--ink);
  --btn-edge: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 60px;
  padding: 0 1.4em;
  border: 3px solid var(--btn-edge);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 5px 0 var(--btn-edge);
  font: 800 1.15rem/1.15 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background-color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  background: var(--btn-bg-hover);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--btn-edge);
}

.btn:disabled {
  cursor: progress;
  opacity: 0.75;
}

.btn svg {
  flex: none;
  width: 1.3em;
  height: 1.3em;
}

.btn--small {
  min-height: 48px;
  padding: 0 1em;
  font-size: 1rem;
  box-shadow: 0 4px 0 var(--btn-edge);
}

.btn--block {
  width: 100%;
}

.btn--dark {
  --btn-bg: var(--ink);
  --btn-bg-hover: var(--ink-3);
  --btn-fg: #fff;
  --btn-edge: #0f1214;
}

.btn--green {
  --btn-bg: #25d366;
  --btn-bg-hover: #4be083;
}

.btn--quiet {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(36, 41, 44, 0.07);
  border-width: 2px;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 700;
}

.btn--quiet:active {
  transform: none;
  box-shadow: none;
}

.on-dark .btn {
  --btn-edge: #0b0d0e;
}

/* ---------- Forms ---------- */

.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.optional {
  font-weight: 400;
  opacity: 0.78;
}

.input {
  width: 100%;
  min-height: 60px;
  padding: 0 18px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--papier);
  color: var(--ink);
  font: 500 1.2rem/1.2 var(--font-body);
  appearance: none;
}

.input::placeholder {
  color: #8b9093;
  opacity: 1;
}

.input:focus {
  outline: 4px solid var(--signal);
  outline-offset: 2px;
}

.input[aria-invalid="true"] {
  border-color: var(--rot);
}

.on-dark .input {
  border-color: var(--papier);
}

.consent {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  border: 3px solid currentColor;
  border-radius: 6px;
  background: var(--papier);
  cursor: pointer;
  appearance: none;
}

.consent input:checked {
  border-color: var(--ink);
  background: var(--signal);
}

.consent input:checked::after {
  content: "";
  width: 14px;
  height: 8px;
  border-bottom: 4px solid var(--ink);
  border-left: 4px solid var(--ink);
  transform: translateY(-2px) rotate(-45deg);
}

.consent input[aria-invalid="true"] {
  border-color: var(--rot);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.25);
}

.form-status {
  min-height: 1.5em;
  margin-top: 10px;
  color: var(--rot);
  font-weight: 700;
}

.form-status:empty {
  min-height: 0;
  margin: 0;
}

.on-dark .form-status {
  color: #ffb4a8;
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Masking tape ---------- */

.tape {
  position: absolute;
  z-index: 4;
  width: 118px;
  height: 34px;
  background: var(--tape-fill);
  box-shadow: 0 1px 1px rgba(80, 60, 10, 0.18);
  opacity: 0.95;
  clip-path: var(--tape-edge);
  pointer-events: none;
}

.tape-label {
  display: inline-block;
  padding: 10px 26px;
  background: var(--tape-fill);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  clip-path: polygon(1.5% 0, 98.5% 0, 100% 18%, 98.6% 36%, 100% 55%, 98.4% 74%, 100% 90%, 98.5% 100%, 1.5% 100%, 0 82%, 1.6% 62%, 0 45%, 1.4% 26%, 0 10%);
  transform: rotate(-2deg);
}

/* ---------- Typography helpers ---------- */

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 4px;
  background: var(--signal);
}

.h2 {
  margin: 14px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 8vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.005em;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-lead {
  max-width: 52ch;
  font-size: 1.2rem;
}

/* ---------- Queue ticket (Wartemarke) ---------- */

.ticket {
  --notch-bg: var(--ink);
  position: relative;
  width: min(300px, 100%);
  padding: 22px 24px 18px;
  border-radius: 6px;
  background: var(--papier);
  color: var(--ink);
  box-shadow: 0 22px 40px -22px rgba(0, 0, 0, 0.6);
  transform: rotate(-3deg);
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 66%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--notch-bg);
}

.ticket::before {
  left: -13px;
}

.ticket::after {
  right: -13px;
}

.ticket__label {
  color: var(--ink-soft);
  font: 700 0.8rem/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticket__num {
  position: relative;
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 7.4rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.85;
}

.ticket__meta {
  font-weight: 700;
}

.ticket__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 3px dashed var(--linie);
  font: 700 0.72rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket__barcode {
  flex: none;
  width: 84px;
  height: 26px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px);
}

.ticket__tape {
  position: absolute;
  top: 12%;
  right: -16%;
  bottom: 10%;
  left: -12%;
  display: grid;
  place-items: center;
  background: var(--tape-fill);
  box-shadow: 0 2px 3px rgba(80, 60, 10, 0.22);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  clip-path: var(--tape-edge);
  transform: rotate(-5deg);
  transform-origin: 20% 50%;
}

.ticket__tape.is-peeled {
  animation: peel 0.95s cubic-bezier(0.55, 0, 0.75, 0.2) forwards;
}

@keyframes peel {
  0% {
    transform: rotate(-5deg);
  }

  25% {
    transform: rotate(-9deg) translate(3%, -6%) scaleX(0.97);
  }

  100% {
    transform: rotate(26deg) translate(80%, -190%) scaleX(0.6);
    opacity: 0;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--wand-tief);
}

.site-footer__inner {
  display: grid;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--gutter) 44px;
}

@media (min-width: 760px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
  }
}

.site-footer__claim {
  color: var(--ink-soft);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.site-footer__copy {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 56px) var(--gutter) 88px;
}

.legal h1 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

.legal .stand {
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.legal h2 {
  margin: 44px 0 14px;
  padding-top: 16px;
  border-top: 3px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.legal h3 {
  margin: 26px 0 8px;
  font-size: 1.15rem;
}

.legal p,
.legal ul,
.legal address {
  margin: 0 0 14px;
}

.legal address {
  font-style: normal;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  overflow-wrap: anywhere;
}

.legal .toc {
  padding: 18px 22px;
  border: 2px solid var(--linie);
  border-radius: var(--radius);
  background: var(--papier);
}

.legal .toc ol {
  padding-left: 1.3em;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
