/* ============================================================
   3D SNORRE — styles.css
   Basis-Layout, Typo, Farben, responsives Grid.
   "Trash"-Look durch Übertreibung — technisch sauber gebaut.
   ============================================================ */

:root {
  --c-bg:        #1a0033;
  --c-bg-2:      #2b0052;
  --c-hot:       #ff00aa;
  --c-cyan:      #00f0ff;
  --c-lime:      #b6ff00;
  --c-gold:      #ffd400;
  --c-orange:    #ff7a00;
  --c-beige:     #c8b58a;
  --c-ink:       #11001f;
  --c-paper:     #fff8e7;
  --font-deco:   "Impact", "Haettenschweiler", "Arial Black", sans-serif;
  --font-body:   "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  --font-comic:  "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  --maxw:        1100px;
}

* { box-sizing: border-box; }

/* [hidden] muss display-Overrides (flex/block) schlagen, sonst
   bleiben "versteckte" Elemente sichtbar (z.B. der Play-Button). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-paper);
  background:
    repeating-linear-gradient(45deg, #240046 0 22px, #2b0052 22px 44px),
    var(--c-bg);
  overflow-x: hidden;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-cyan); }

sup { color: var(--c-gold); font-weight: bold; }

/* ---------- Laufband oben ---------- */
.ticker {
  background: var(--c-ink);
  color: var(--c-lime);
  border-bottom: 3px solid var(--c-hot);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-deco);
  letter-spacing: 1px;
  font-size: clamp(12px, 2.6vw, 16px);
}
.ticker__track {
  display: inline-flex;
  will-change: transform;
  animation: ticker 22s linear infinite;
}
.ticker__track span { padding: 6px 0; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #3a0066, #1a0033);
  border-bottom: 3px solid var(--c-gold);
  box-shadow: 0 4px 0 rgba(0,0,0,.4);
}
.nav__brand {
  font-family: var(--font-deco);
  font-size: clamp(20px, 4vw, 28px);
  color: var(--c-gold);
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--c-hot), 4px 4px 0 rgba(0,0,0,.5);
}
.nav__menu {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav__menu a {
  color: var(--c-paper);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  padding: 4px 6px;
}
.nav__menu a:hover { color: var(--c-lime); text-decoration: underline wavy var(--c-hot); }
.nav__toggle {
  display: none;
  background: var(--c-hot);
  color: #fff;
  border: 2px solid var(--c-gold);
  font-size: 22px;
  line-height: 1;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 48px 16px 36px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,0,170,.45), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(0,240,255,.35), transparent 55%),
    linear-gradient(180deg, #33006e, #1a0033);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.hero__title {
  font-size: clamp(48px, 14vw, 130px);
  margin: 8px 0 0;
  line-height: .9;
}
.hero__slogan {
  font-family: var(--font-comic);
  font-size: clamp(18px, 4.5vw, 30px);
  color: var(--c-gold);
  margin: 10px 0 4px;
}
.hero__sub {
  max-width: 640px;
  margin: 6px auto 22px;
  font-size: clamp(14px, 2.6vw, 18px);
}
.hero__hint {
  font-family: var(--font-comic);
  color: var(--c-cyan);
  font-size: 13px;
  margin-top: 12px;
}
.hero__badges {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}
.badge {
  background: var(--c-gold);
  color: var(--c-ink);
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  border: 2px solid #fff;
  font-size: clamp(11px, 2.4vw, 14px);
  box-shadow: 2px 2px 0 rgba(0,0,0,.4);
}

/* ---------- Sektionen ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 16px;
}
.section--dark {
  max-width: none;
  background: linear-gradient(180deg, #0c0018, #1a0033);
  border-top: 4px dashed var(--c-hot);
  border-bottom: 4px dashed var(--c-hot);
}
.section--dark > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section--alt { background: rgba(0,0,0,.18); border-radius: 18px; }
.section__title {
  text-align: center;
  font-size: clamp(30px, 8vw, 64px);
  margin: 0 0 6px;
}
.section__lead {
  text-align: center;
  font-size: clamp(15px, 3vw, 20px);
  color: var(--c-cyan);
  margin: 0 0 28px;
}
.section__note { text-align: center; color: var(--c-beige); font-size: 12px; margin-top: 14px; }

/* ---------- Karten ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--c-paper);
  color: var(--c-ink);
  border: 3px solid var(--c-gold);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 5px 5px 0 rgba(0,0,0,.45);
}
.card--hero-service { border-color: var(--c-hot); box-shadow: 5px 5px 0 var(--c-hot); }
.card__media {
  background: #000;
  border: 2px solid #333;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--config { background: #111; }
.card__title {
  font-family: var(--font-deco);
  font-size: 22px;
  margin: 12px 0 4px;
  color: var(--c-bg);
}
.card__claim {
  font-weight: bold;
  color: var(--c-hot);
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 14px;
}
.card__body { font-size: 14px; margin: 0; }
.card__body a { color: var(--c-bg); font-weight: bold; }

/* ---------- Konfigurator-Gag ---------- */
.config { width: 100%; height: 100%; padding: 10px; color: var(--c-lime); font-size: 13px; }
.config__label { font-family: var(--font-deco); letter-spacing: 1px; margin: 0 0 10px; font-size: 12px; }
.config__bar {
  height: 16px; background: #000; border: 1px solid var(--c-lime); border-radius: 8px; overflow: hidden;
}
.config__bar > span {
  display: block; height: 100%; width: 3%;
  background: repeating-linear-gradient(45deg, var(--c-lime) 0 8px, #6a0 8px 16px);
  animation: crawl 9s linear infinite;
}
.config__eta { margin: 8px 0 0; font-family: var(--font-comic); color: var(--c-cyan); }
.config__swatch {
  height: 54px; border-radius: 6px; border: 2px solid #000; margin-bottom: 8px;
  background: var(--c-beige); transition: background .2s;
}
.config__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.config__btns button {
  flex: 1 1 auto; cursor: pointer; font-size: 11px; font-weight: bold;
  background: var(--c-gold); color: var(--c-ink); border: 1px solid #000; border-radius: 5px; padding: 6px 4px;
}
.config__status { margin: 8px 0 0; font-family: var(--font-comic); color: var(--c-cyan); min-height: 1.2em; }
.config__hint { margin: 0 0 10px; font-family: var(--font-comic); color: var(--c-cyan); font-size: 13px; }

/* ---------- Konfigurator: eigener Abschnitt ---------- */
.konf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}
.konf__preview {
  position: relative;
  background: #000;
  border: 4px solid var(--c-gold);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.konf__preview img { width: 100%; height: 100%; object-fit: cover; }
.konf__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.konf__tint {
  position: absolute; inset: 0;
  background: var(--c-beige);
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity .35s ease;
  pointer-events: none;
}
.konf__badge {
  position: absolute; top: 10px; left: 10px;
  background: #c00; color: #fff;
  font-family: var(--font-deco); letter-spacing: 1px;
  padding: 3px 9px; border-radius: 4px; font-size: 12px;
  box-shadow: 0 0 0 2px #fff;
}
.konf__panel {
  display: flex;
  background: #111;
  border: 4px solid var(--c-hot);
  border-radius: 10px;
  padding: 16px;
}
.konf__panel .config { font-size: 14px; }
.konf__panel .config__label { font-size: 14px; }
.konf__panel .config__btns button { font-size: 13px; padding: 9px 6px; }
@media (max-width: 760px) {
  .konf { grid-template-columns: 1fr; }
}

/* ---------- VFX-Bühne ---------- */
.vfx {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 60%, #2a0a00, #000);
  border: 4px solid var(--c-gold);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255,122,0,.5);
}
.vfx__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vfx__overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding: 14px; pointer-events: none;
}
.vfx__caption {
  font-family: var(--font-deco); letter-spacing: 2px; color: var(--c-gold);
  text-shadow: 0 0 8px var(--c-orange), 2px 2px 0 #000; font-size: clamp(12px, 3vw, 20px);
}
.vfx__fallback-text { color: var(--c-paper); padding: 20px; text-align: center; }

/* ---------- Showreel (lädt wirklich → rotierender Donut) ---------- */
.video {
  position: relative;
  max-width: 760px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 60%, #2a0a3a, #000);
  border: 4px solid var(--c-gold); border-radius: 10px;
  overflow: hidden;
}
.video__spinner {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border: 6px solid rgba(255,255,255,.15); border-top-color: var(--c-cyan);
  border-radius: 50%; animation: spin 1s linear infinite;
}
.video__loading { font-family: var(--font-comic); color: var(--c-cyan); margin: 0; }

.reel__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.reel__poster, .reel__loading, .reel__error {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
}
.reel__error { color: var(--c-paper); }
.reel__error-title { font-family: var(--font-deco); font-size: clamp(20px, 5vw, 26px); color: var(--c-hot); margin: 0 0 8px; }
.reel__retry {
  margin-top: 14px; cursor: pointer; font-weight: bold;
  background: var(--c-gold); color: var(--c-ink); border: 2px solid #fff; border-radius: 6px; padding: 8px 16px;
}
.reel__play {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-deco); font-size: clamp(16px, 3.4vw, 24px); letter-spacing: 1px;
  color: #fff; background: linear-gradient(180deg, var(--c-hot), #a0006a);
  border: 4px solid var(--c-gold); border-radius: 12px; padding: 12px 22px; cursor: pointer;
  box-shadow: 0 0 0 4px #1a0033, 0 8px 24px rgba(255,0,170,.5);
  transition: transform .08s ease;
}
.reel__play:hover { transform: scale(1.04); }
.reel__play:active { transform: scale(.97); }
.reel__triangle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-gold); color: var(--c-ink); font-size: 16px;
}
.reel__hint { margin: 14px 0 0; font-family: var(--font-comic); color: var(--c-cyan); font-size: 13px; }
.reel__caption {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; margin: 0;
  font-family: var(--font-deco); letter-spacing: 1px; color: var(--c-gold);
  text-shadow: 0 0 8px var(--c-hot), 2px 2px 0 #000; font-size: clamp(12px, 3vw, 18px);
}

/* ---------- Vorher / Nachher ---------- */
.ba { max-width: 900px; margin: 0 auto; }
.ba__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border: 4px solid var(--c-gold); border-radius: 10px; user-select: none; touch-action: pan-y;
  --pos: 50%;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* Nachher liegt über dem Vorher und wird ab der Reglerposition nach rechts freigegeben */
.ba__img--after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle {
  position: absolute; top: 0; left: var(--pos); transform: translateX(-50%);
  width: 44px; height: 100%; cursor: ew-resize; display: flex; align-items: center; justify-content: center;
}
.ba__handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3);
}
.ba__grip {
  background: var(--c-hot); color: #fff; border: 2px solid #fff; border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-weight: bold; box-shadow: 0 0 0 3px rgba(0,0,0,.4);
}
.ba__label {
  position: absolute; bottom: 10px; font-family: var(--font-deco); font-size: 16px;
  padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff;
}
.ba__label--before { left: 10px; }
.ba__label--after { right: 10px; color: var(--c-hot); }

/* ---------- Glitchzone ---------- */
.glitchzone { position: relative; }
.glitchzone__raw {
  opacity: 0; /* per effects.css kurz eingeblendet */
  pointer-events: none;
  font-family: "Courier New", monospace; color: #0f0; background: #000;
  padding: 16px; white-space: pre-wrap; border: 1px solid #0f0; margin: 0;
}
.about {
  display: flex;
  align-items: flex-end;          /* Portrait unten bündig — Hüft-Schnittkante sitzt am Boden */
  justify-content: center;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.about__text { flex: 1 1 380px; font-size: clamp(15px, 2.6vw, 18px); }
/* Überschrift & Lead stehen jetzt in der Textspalte neben dem Portrait → linksbündig */
.about__text .section__title { text-align: left; margin-top: 0; }
.about__text .section__lead { text-align: left; }
.about__portrait { flex: 0 0 auto; margin: 0; align-self: flex-end; }
.about__portrait img {
  display: block;
  width: clamp(150px, 24vw, 250px);
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.55));
}
@media (max-width: 640px) {
  .about { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .about__text .section__title, .about__text .section__lead { text-align: center; }
  .about__portrait img { width: clamp(180px, 58vw, 240px); }
}

/* ---------- Awards ---------- */
.awards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px; justify-items: center; margin-bottom: 36px;
}
.award { margin: 0; text-align: center; }
.award figcaption { font-family: var(--font-deco); margin-top: 8px; font-size: 14px; color: var(--c-gold); }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; text-align: center;
}
.stat { background: rgba(0,0,0,.35); border: 2px solid var(--c-cyan); border-radius: 10px; padding: 14px 8px; }
.stat strong { display: block; font-family: var(--font-deco); font-size: clamp(28px, 6vw, 44px); color: var(--c-lime); }
.stat span { font-size: 13px; color: var(--c-paper); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.quote {
  margin: 0; background: var(--c-paper); color: var(--c-ink);
  border-left: 8px solid var(--c-hot); border-radius: 8px; padding: 16px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.4);
}
.quote p { font-size: 16px; font-style: italic; margin: 0 0 10px; }
.quote footer { font-size: 13px; font-weight: bold; color: var(--c-bg); }

/* ---------- Footer / Kontakt ---------- */
.footer {
  background: linear-gradient(180deg, #1a0033, #000);
  border-top: 4px solid var(--c-gold);
  padding: 48px 16px 32px;
  text-align: center;
}
.footer__lead { color: var(--c-cyan); font-size: clamp(16px, 3vw, 22px); margin: 0 0 24px; }
.footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; max-width: 720px; margin: 0 auto 24px; text-align: left;
}
.footer__card {
  background: rgba(255,255,255,.05); border: 2px solid var(--c-hot);
  border-radius: 10px; padding: 16px;
}
.footer__card h3 { font-family: var(--font-deco); color: var(--c-gold); margin: 0 0 8px; }
.footer__small { color: var(--c-beige); font-size: 12px; }
.footer__english { font-family: var(--font-comic); color: var(--c-lime); margin: 18px 0; }
.footer__fine { color: var(--c-beige); font-size: 13px; margin: 18px auto 0; max-width: 700px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu {
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .section { padding: 40px 14px; }
}

/* ============================================================
   REDUCED MOTION — Animationen dämpfen, Seite bleibt nutzbar
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker__track { animation: none; }
}
