/* ===== Spätzle Bub – Basis, Header, Intro, Hero ===== */
:root {
  /* CD-Farben laut CD-Manual */
  --ink: #19120b;
  --red: #8b0a00;
  --gold: #e6a342;
  --brown: #894400;
  --white: #ffffff;
  /* abgeleitet */
  --cream: #f3ead5;          /* Hintergrund Intro-Video */
  --slate: #4a4744;          /* graue Flyer-Box */
  --ink-2: #241a11;
  --muted: #cbbfa9;
  --red-hot: #b3160a;
  --wa: #1fa855;

  --f-body: "Hubballi", system-ui, sans-serif;
  --f-stamp: "Rubik Dirt", "Oswald", Impact, sans-serif;
  --f-cond: "Oswald", "Arial Narrow", sans-serif;
  --f-brush: "Permanent Marker", "Rubik Dirt", cursive;

  --radius: 6px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  /* gerissene Papierkanten (Flyer-Look) */
  --tear-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V7l8-3 7 4 9-5 8 3 10-4 7 5 9-3 6 4 11-5 8 2 9-2 7 5 10-4 8 3 7-4 9 5 8-3 10 4 7-5 9 3 8-2 7 4 9-3 L200 6 V14Z'/%3E%3C/svg%3E");
  --tear-bot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M0 0v7l9 3 7-4 8 5 10-3 7 4 9-5 8 3 10-4 7 5 9-2 8 2 7-5 10 4 8-3 9 4 7-5 8 3 9-4 7 5 10-3 8 2 9-4 L200 7 V0Z'/%3E%3C/svg%3E");
  --grain: 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 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-body);
  font-size: clamp(18px, 1.2vw + 12px, 21px);
  line-height: 1.5;
  overflow-x: clip;
}
body::after { /* Filmkorn über allem – wie gedruckter Flyer */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background: var(--grain); opacity: .035;
}
body.intro-active { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.small { font-size: .82em; color: var(--muted); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ----- Typo-Bausteine ----- */
.stamp {
  font-family: var(--f-stamp);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .01em;
  margin: 0;
}
.stamp span { display: block; }
.stamp--xl { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.marker { font-family: var(--f-cond); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .02em; font-size: 1.45em; margin: 0 0 .5em; }
.kicker { font-family: var(--f-cond); font-weight: 700; font-style: italic; text-transform: uppercase; color: var(--gold); margin: 0 0 .3em; letter-spacing: .04em; }
.lead { font-size: 1.12em; color: #eadfcb; max-width: 60ch; }
.brushtitle { font-family: var(--f-brush); font-size: clamp(3rem, 8vw, 6rem); color: var(--red-hot); margin: 0; line-height: 1; transform: rotate(-3deg); text-shadow: 0 3px 0 rgba(0,0,0,.35); }

/* roter Pinselstrich wie im Flyer */
.brush { display: block; height: 14px; width: 92%; margin-top: .6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cpath fill='%23b3160a' d='M2 9C60 5 140 4 220 3s130-1 176-2c3 0 3 4 0 4-40 2-90 3-150 6S80 13 30 13c-12 0-24 0-28-1-3-1-2-3 0-3Z'/%3E%3Cpath fill='%23b3160a' opacity='.6' d='M40 6c80-3 200-5 330-5 4 0 4 2 0 2L60 8Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  transform: rotate(-2.5deg);
}

/* gerissene Box */
.torn-box {
  position: relative;
  background: var(--slate);
  padding: clamp(24px, 3vw, 40px);
  -webkit-mask: var(--tear-top) top / 220px 14px repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - 26px) no-repeat, var(--tear-bot) bottom / 220px 14px repeat-x;
          mask: var(--tear-top) top / 220px 14px repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - 26px) no-repeat, var(--tear-bot) bottom / 220px 14px repeat-x;
}
.torn-box--light { background: var(--white); color: var(--ink); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  font-size: 1rem; text-decoration: none; cursor: pointer; border: 0;
  padding: .9em 1.4em; border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  box-shadow: 0 4px 0 rgba(0,0,0,.45);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.45); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.45); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--follow { background: var(--red); color: #fff; }
.btn--follow:hover { background: var(--red-hot); }
.btn--sm { font-size: .85rem; padding: .6em 1em; }
.btn--lg { font-size: 1.2rem; }
.btn--block { width: 100%; }

/* ----- Header ----- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: 10px var(--gutter);
  background: linear-gradient(rgba(25,18,11,.92), rgba(25,18,11,.6));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand img { width: 58px; height: 58px; object-fit: contain; transition: transform .2s; }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.main-nav { display: flex; gap: clamp(.4rem, 2vw, 2rem); margin-inline: auto; }
.main-nav a {
  font-family: var(--f-cond); font-weight: 700; font-style: italic; text-transform: uppercase;
  text-decoration: none; font-size: clamp(.82rem, 1.6vw, 1.1rem); letter-spacing: .03em;
  padding: .45em .7em; position: relative; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: .5em; right: .5em; bottom: .1em; height: 4px;
  background: var(--red-hot); transform: scaleX(0) rotate(-2deg); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1) rotate(-2deg); }
@media (max-width: 720px) {
  .header-cta { padding: .55em; border-radius: 50%; }
  .header-cta__txt { display: none; }
  .brand img { width: 46px; height: 46px; }
  .main-nav { margin-inline: 0 auto; gap: 0; }
  .main-nav a { padding: .45em .45em; }
}

/* ----- Intro ----- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--cream);
  display: grid; place-items: center; cursor: pointer;
  transition: clip-path .9s cubic-bezier(.77,0,.18,1), opacity .9s ease;
  clip-path: inset(0 0 0 0);
}
/* Logo oben, CLICK in der Mitte, Gespann fährt unten in Endlosschleife von rechts nach links */
.intro__logo { position: absolute; top: 9vh; left: 50%; transform: translateX(-50%); height: clamp(70px, 14vh, 140px); width: auto; }
.intro__click {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  height: min(13vh, 26vw, 139px); width: auto;
  opacity: 0; animation: clickIn .8s ease 1.2s forwards, clickBreathe 2.4s ease-in-out 2s infinite;
}
@keyframes clickIn { to { opacity: 1; } }
@keyframes clickBreathe { 50% { scale: 1.05; } }
.intro__road { position: absolute; left: 0; right: 0; top: 84%; height: 0; overflow: visible; pointer-events: none; }
.intro__rig {
  position: absolute; left: 0; bottom: 0;
  height: clamp(96px, min(24vh, 34vw), 230px); aspect-ratio: 1744 / 440;
  transform: translateX(100vw);
  animation: drive var(--drive-dur, 9s) linear infinite, bump .42s ease-in-out infinite;
  will-change: transform;
}
@keyframes drive { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
@keyframes bump { 50% { translate: 0 -1.5px; } }
.intro__rig img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; }
.intro__rig .rad { height: auto; aspect-ratio: 1; animation: spin var(--spin-dur, .8s) linear infinite; }
@keyframes spin { to { rotate: -360deg; } }
@media (prefers-reduced-motion: reduce) {
  .intro__rig { animation: none; transform: none; left: 50%; translate: -50% 0; }
  .intro__click { animation: clickIn .4s ease forwards; }
  .intro__rig .rad { animation: none; }
}
.intro__hint {
  position: absolute; bottom: 6vh; left: 50%; transform: translateX(-50%);
  font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .2em;
  color: var(--ink); opacity: 0; font-size: .85rem; transition: opacity .6s;
}
.intro.show-hint .intro__hint { opacity: .55; animation: pulse 1.6s ease-in-out infinite; }
.intro.is-leaving { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro.is-gone { display: none; }
@keyframes pulse { 50% { opacity: .2; } }

/* ----- Hero ----- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-start;
  padding: clamp(100px, 14vh, 150px) var(--gutter) 60px; overflow: hidden;
}
/* Fixierte Hintergrund-Ebene (Video + Dampf) unter der gesamten Seite */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ink); }
.stage__video, .stage__still, .stage__steam { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__still { object-fit: cover; object-position: 60% 40%; opacity: 0; transition: opacity .7s ease; }
.stage__still.is-on { opacity: 1; }
.stage__video { object-fit: cover; object-position: 60% 40%; }
@media (max-aspect-ratio: 1/1) { .stage__video, .stage__still { object-position: 46% 50%; } .hero__content { max-width: 100%; } }
.stage__steam { pointer-events: none; }
.stage__shade { position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(25,18,11,.85) 0%, rgba(25,18,11,.35) 45%, rgba(25,18,11,0) 70%),
              linear-gradient(0deg, rgba(25,18,11,.55) 0%, transparent 25%); }
.stage__shade::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: var(--dim, 0); }
main, .site-footer { position: relative; z-index: 1; }
.hero { background: transparent; }
.hero__content { position: relative; max-width: 640px; }
/* "Eat my Käse-Spätzle"-Stempel neben seinem Kopf (Position per JS) */
.eatmy { position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(20px, 5vh, 56px); width: clamp(96px, 12vw, 180px);
  height: auto; opacity: 0; transform: rotate(-10deg);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); pointer-events: none; transition: filter .4s ease; }
.hero.is-live .eatmy { animation: stampIn .55s cubic-bezier(.2,.9,.3,1.25) .75s forwards; }
@keyframes stampIn { 0% { opacity: 0; transform: rotate(-22deg) scale(1.8); } 100% { opacity: 1; transform: rotate(-10deg) scale(1); } }
.hero__box { transform: rotate(-2deg); padding-bottom: 34px; }
.hero__box h1 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.hero__sub { font-family: var(--f-body); font-weight: 700; margin: .7rem 0 0; font-size: 1.05em; transform: rotate(-2deg); }
.hero__cta { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; width: min(440px, 100%); margin-top: 1.8rem; }
.hero__actions { display: flex; }
.hero__actions .btn { font-size: 1.05rem; padding: 1em 1.4em; }
.next-pill {
  display: flex; align-items: center; justify-content: center; gap: .8rem; text-decoration: none;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .4rem 1rem .4rem .4rem;
  backdrop-filter: blur(4px);
}
.next-pill__label { white-space: nowrap; flex: none; background: var(--gold); color: var(--ink); font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; }
.next-pill__text { font-size: .95rem; }
.hero .hero__box, .hero__cta { opacity: 0; transform: translateY(24px) rotate(-2deg); }
.hero.is-live .hero__box { animation: rise .8s .1s cubic-bezier(.2,.8,.2,1) forwards; }
.hero.is-live .hero__cta { animation: rise0 .8s .35s cubic-bezier(.2,.8,.2,1) forwards; }
/* Handy: kleine Box links oben, damit sein Gesicht (rechts oben im Bild) frei bleibt */
@media (max-width: 600px) {
  .hero { padding-top: 92px; }
  .hero__box { max-width: 54vw; padding: 14px 14px 22px; }
  .hero__box h1 { font-size: clamp(.95rem, 4.9vw, 1.25rem); }
  .hero__sub { font-size: .7rem; margin-top: .45rem; line-height: 1.3; }
  .hero__box .brush { height: 9px; margin-top: .35rem; }
  .hero__cta { margin-top: max(1rem, calc(47svh - 240px)); gap: .55rem; width: min(330px, 100%); }
  .hero__actions .btn { font-size: .85rem; padding: .85em 1em; }
  .next-pill__text { font-size: .8rem; }
}
@keyframes rise { to { opacity: 1; transform: translateY(0) rotate(-2deg); } }
@keyframes rise0 { to { opacity: 1; transform: none; } }

/* ----- Ticker ----- */
.ticker { background: var(--red); overflow: hidden; border-block: 3px solid var(--ink); transform: rotate(-1deg); margin: -12px -10px 0; position: relative; z-index: 2; }
.ticker__track { display: flex; width: max-content; animation: tick 28s linear infinite; }
.ticker span { font-family: var(--f-stamp); text-transform: uppercase; font-size: clamp(1.3rem, 3vw, 2rem); padding: .35em 1.2em; white-space: nowrap; }
.ticker span:nth-child(4n) { font-family: var(--f-brush); color: var(--gold); text-transform: none; }
@keyframes tick { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.hero h1:focus { outline: none; }
