/* Merken · Basis: Reset, Papier, Typo, Sticker, Knöpfe, Kopf und Fuß */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.55;
  color: var(--mk-text);
  background-color: var(--mk-bg);
  background-image:
    linear-gradient(var(--mk-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mk-grid-line) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--mk-accent); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--mk-accent-deep); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
::selection { background: var(--mk-sun); color: var(--mk-text); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--mk-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--r-compact);
  background: var(--mk-text); color: #fff; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Typo ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.08; /* Anton füllt die Zeile, Umlaute stoßen sonst an die Zeile darüber */
}
.h-xl { font-size: clamp(48px, 9.5vw, 112px); }
.h-l  { font-size: clamp(36px, 5.4vw, 68px); }
.h-m  { font-size: clamp(30px, 4.4vw, 48px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--mk-text-soft); max-width: 36em; }
.hand {
  font-family: var(--f-hand); font-weight: 700; color: var(--mk-accent);
  font-size: clamp(26px, 2.6vw, 32px); line-height: 1.05;
}
.small { font-size: 15px; color: var(--mk-text-soft); }
.balance { text-wrap: balance; }

/* ---------- Sticker ---------- */
.sticker {
  background: var(--mk-surface);
  border-radius: var(--r-tile);
  padding: var(--sticker-edge);
  box-shadow: var(--sh-sticker);
  position: relative;
}
.sticker > .in { border-radius: var(--r-tile-inner); padding: 18px; }
.sticker--sun > .in { background: var(--mk-sun-soft); }
.sticker--cobalt > .in { background: var(--mk-accent); color: #fff; }

.dot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; flex: none; background: var(--mk-muted); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--mk-surface); box-shadow: var(--sh-sticker);
  font-weight: 800; font-size: 15px; color: var(--mk-text);
}
.chip svg { width: 18px; height: 18px; }

.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border-radius: var(--r-button);
  font: inherit; font-weight: 800; font-size: 17px; text-decoration: none;
  cursor: pointer; border: 0;
  transition: transform var(--rise) var(--ease), box-shadow var(--rise) var(--ease), background-color var(--rise) var(--ease);
}
.btn--cobalt { background: var(--mk-accent); color: #fff; box-shadow: var(--sh-button); }
.btn--cobalt:hover { background: var(--mk-accent-deep); color: #fff; transform: translateY(-2px); }

/* Neutraler Store-Knopf, Platzhalter bis zum offiziellen Badge */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 22px 8px 16px;
  border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  box-shadow: 0 0 0 4px #fff, 0 8px 18px 4px rgba(20, 20, 20, .16);
  transition: transform var(--rise) var(--ease);
}
.store-btn:hover { color: #fff; transform: translateY(-2px); }
.store-btn:focus-visible { outline-offset: 7px; }
.store-btn .i { width: 28px; height: 28px; stroke-width: 1.8; }
.store-btn__txt { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn__pre { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.store-btn__main { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }

.store-note { margin: 18px 0 0; font-size: 15px; font-weight: 600; color: var(--mk-text-soft); }

/* ---------- Kopf ---------- */
.site-head { position: relative; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mk-text); }
.brand:hover { color: var(--mk-text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: var(--sh-sticker); }
.brand span { font-family: var(--f-display); font-size: 28px; text-transform: uppercase; line-height: 1; }
.head-nav { display: flex; align-items: center; gap: 6px; }
.head-nav a {
  display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 12px;
  font-weight: 800; font-size: 15px; color: var(--mk-text); text-decoration: none; border-radius: 12px;
}
.head-nav a:hover { color: var(--mk-accent); }
.head-nav .head-cta { background: var(--mk-accent); color: #fff; padding: 0 16px; box-shadow: 0 0 0 3px #fff, var(--sh-sticker); }
.head-nav .head-cta:hover { color: #fff; background: var(--mk-accent-deep); }
@media (max-width: 559px) { .head-nav .hide-sm { display: none; } }

/* ---------- Fuß ---------- */
.site-foot { padding: 56px 0 48px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 52px; height: auto; }
.foot-brand b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 30px; text-transform: uppercase; line-height: 1; }
.foot-brand span { font-size: 15px; color: var(--mk-text-soft); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.foot-links a {
  display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 10px;
  font-weight: 700; font-size: 15px; color: var(--mk-text); text-decoration: none;
}
.foot-links a:hover { color: var(--mk-accent); text-decoration: underline; }
.foot-copy { width: 100%; margin: 8px 0 0; font-size: 14px; color: var(--mk-muted); }

/* ---------- Bewegung ---------- */
/* Startzustände greifen nur, wenn motion.js läuft und Bewegung erlaubt ist. */
.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--rise-slow) var(--ease), transform var(--rise-slow) var(--ease); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="2"] { transition-delay: 90ms; }
.motion [data-reveal="3"] { transition-delay: 180ms; }
@media print {
  .motion [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@keyframes merk-wobble {
  0%, 82%, 100% { transform: rotate(0); }
  86% { transform: rotate(-4deg); }
  90% { transform: rotate(3deg); }
  94% { transform: rotate(-1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Kategoriepunkte */
.dot--tomato { background: var(--dot-tomato); }
.dot--mint { background: var(--dot-mint); }
.dot--plum { background: var(--dot-plum); }
.dot--ocean { background: var(--dot-ocean); }
.dot--olive { background: var(--dot-olive); }
.dot--rose { background: var(--dot-rose); }
.dot--sand { background: var(--dot-sand); }
.dot--slate { background: var(--dot-slate); }
.dot--sun { background: var(--mk-sun-ink); }
.dot--cobalt { background: var(--mk-accent); }

@media (max-width: 360px) {
  .brand span { font-size: 23px; }
  .brand img { width: 32px; height: 32px; }
  .head-nav { gap: 2px; }
  .head-nav a { padding: 0 8px; }
  .head-nav .head-cta { padding: 0 12px; }
}

/* Kopf: nichts bricht um, die Nebenlinks erst ab genug Breite */
.head-nav a { white-space: nowrap; }
/* Sprünge zu Abschnitten landen nicht unter der Statusleiste */
h1[id], h2[id], section[id] { scroll-margin-top: 72px; }
