/* ════════════════════════════════════════
   FONTS & RESET
════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --accent: #E11B22; /* single brand red, overridden per slide via JS but stays red */
  --ink: #111;
  --muted: #666;
}

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

html { scrollbar-gutter: stable; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--ink);
}

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

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

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

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  padding: 20px 48px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.logo {
  margin-right: auto;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .5px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.1;
}

.logo span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--ink);
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: .5; }

@media (max-width: 768px) {
  .menu-toggle { display: block; z-index: 600; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 30px 0;
    transform: none;
  }
  .nav-links.active { display: flex; }
}

/* ════════════════════════════════════════
   HERO / SLIDES
════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #fff;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding-top: 74px;
  overflow: hidden; /* NOTE: overflow-x:hidden + overflow-y:visible does NOT work — per spec,
                        the browser silently forces overflow-y back to "auto" whenever the other
                        axis isn't "visible", which is exactly what was causing the phantom
                        scrollbar. Both axes need to match to avoid a scroll container here. */
}

.slide {
  display: none;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 0 60px;
}

.slide.active { display: block; animation: fadeUp .4s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Watermark slide number */
.slide-num {
  position: absolute;
  top: -10px;
  right: 4px;
  font-weight: 800;
  font-size: clamp(56px, 8vw, 96px);
  color: var(--ink);
  opacity: .06;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* ── SIZE KNOBS ──────────────────────────────────────────────
   Change these to resize the hero photo everywhere at once.
   Each uses min(...vw, ...vh) so the photo also shrinks on SHORT
   screens, not just narrow ones — this is what stops the floating
   "Jetzt anfragen" button from ever overlapping the content. */
.view--info {
  --photo-w: clamp(220px, min(34vw, 34vh), 460px);
  --photo-h: clamp(280px, min(48vw, 48vh), 580px);
  --stack-gap: clamp(10px, 2vh, 22px); /* space between photo / button / description */

  position: relative;
  height: 100%;
  min-height: calc(100vh - 74px);
}

/* Sits just above and to the left of the title/photo block (not centered above it) */
.tagline {
  position: absolute;
  top: calc(50% - (var(--photo-h) / 2) - 36px);
  left: calc(50% - (var(--photo-w) / 2));
  font-size: clamp(15px, 1.8vw, 22px);
  color: #999;
  letter-spacing: .5px;
  white-space: nowrap;
}

.container {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* <- this is what keeps the whole stack vertically centered,
                                  in BOTH the info and detail views */
  gap: var(--stack-gap);
  /* Reserves room above/below the stack for the tagline and the floating CTA.
     Uses vh so it also shrinks on short screens instead of forcing overflow. */
  padding: clamp(50px, 10vh, 90px) 20px;
}

/* Sizing box for the photo. The title is centered on top of it (absolute), so it
   can be visually wider than the photo itself — that's intentional, it's the
   "giant word behind the product" look. */
.visual-wrap {
  position: relative;
  width: var(--photo-w);
  height: var(--photo-h);
}

.title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;           /* wider than the photo on purpose — it's a backdrop, not a caption */
  font-size: clamp(48px, min(15vw, 15vh), 220px); /* <- adjust for overall title size */
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--ink);
  z-index: 1;              /* behind the photo (z-index 2) */
  text-align: center;
  pointer-events: none;    /* it's decorative, clicks should pass through to what's behind/in front */
}

.slide-visual {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;              /* in front of the title */
  color: var(--accent);
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.15));
}

.slide-visual--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border: 2px dashed #e2e2e2;
  border-radius: 50%;
  padding: clamp(20px, 4vw, 40px);
}

.slide-visual--photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  overflow: visible;
}

.slide-visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;    /* change to "cover" if you'd rather crop than letterbox */
}

.slide-visual--placeholder svg { width: 60%; height: 60%; }

/* "Mehr erfahren" — now an ordinary flex child, right under the photo (see .container gap) */
.toggle-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 44px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .3px;
  transition: background .2s, transform .15s;
  min-height: 48px;
}
.toggle-btn:hover  { background: #333; transform: scale(1.03); }
.toggle-btn:active { transform: scale(.97); }

.info-desc { max-width: 420px; text-align: center; }

.info-desc__headline {
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
}

.info-desc__body {
  font-size: clamp(15px, 1.6vw, 18px);
  color: #444;
  line-height: 1.5;
}

.accent-text { color: var(--accent); font-style: normal; }

/* Base button look — shared by every .btn (Jetzt anfragen, modal submit, etc.) */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: filter .2s, transform .15s;
  min-height: 48px;
}

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { filter: brightness(1.1); }
.btn--accent:active { transform: scale(.97); }

/* "Jetzt anfragen" — floating pill pinned to the bottom of the slide box.
   Used in both the info view and the detail view (same spot in both). */
.btn--floating {
  position: absolute;
  bottom: clamp(10px, 4vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.btn--floating:hover  { transform: translateX(-50%) scale(1.03); }
.btn--floating:active { transform: translateX(-50%) scale(.97); }

/* ════════════════════════════════════════
   DETAIL VIEW (replaces "Zutaten" table)
════════════════════════════════════════ */
.view { position: relative; z-index: 2; }
.view--info   { display: block; }
.view--detail {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centers the detail content vertically too — same fix as .container */
  padding: 90px 20px;
}
.slide.show-detail .view--info   { display: none; }
.slide.show-detail .view--detail { display: flex; }

.detail-layout {
  display: flex;
  align-items: center;
  gap: 48px;
}

.detail-layout__visual {
  flex-shrink: 0;
  width: clamp(260px, 32vw, 400px);  /* <- resize the detail-view photo here */
  height: clamp(260px, 32vw, 400px);
  color: var(--accent);
  background: #fafafa;
  border: 2px dashed #e2e2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.detail-layout__visual--photo {
  background: none;
  border: none;
  padding: 0;
  border-radius: 12px;
}

.detail-layout__visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
}

.detail-layout__visual svg { width: 60%; height: 60%; }

.detail-layout__info { flex: 1; min-width: 0; max-width: 460px; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-card__label {
  font-size: 10px;
  color: rgba(255,255,255,.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.stat-card__value { font-size: 20px; color: #fff; line-height: 1; }

.bar-table { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }

.bar-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }

.bar-row__name { width: 150px; flex-shrink: 0; color: #333; font-weight: 500; }

.bar-row__track { flex: 1; height: 8px; background: #ebebeb; border-radius: 4px; overflow: hidden; }

.bar-row__fill { height: 100%; background: var(--accent); border-radius: 4px; }

.bar-row__val { width: 40px; text-align: right; font-size: 12px; color: #666; flex-shrink: 0; }

.detail-desc { font-size: 14px; line-height: 1.7; color: #444; max-width: 560px; }

@media (max-width: 900px) {
  .detail-layout { flex-direction: column; align-items: center; text-align: center; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .bar-row__name { width: 120px; }
}

/* ════════════════════════════════════════
   ARROWS
════════════════════════════════════════ */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  transition: background .2s, transform .2s;
  border-radius: 50%;
}
.arrow:hover { background: #f3f3f3; transform: translateY(-50%) scale(1.08); }

.arrow--left  { left: clamp(10px, 6vw, 15%); }
.arrow--right { right: clamp(10px, 6vw, 15%); }

.slide-dots {
  position: absolute;
  bottom: clamp(10px, 4vw, 40px);
  right: clamp(10px, 4vw, 40px); /* dots live in the corner now so they never clash with .btn--floating */
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slide-dot { width: 28px; height: 4px; border: none; border-radius: 2px; background: #e2e2e2; padding: 0; transition: background .2s; }
.slide-dot:hover { background: var(--accent); }
.slide-dot.active { background: var(--ink); }

@media (max-width: 768px) {
  .hero { flex-direction: column; padding-top: 90px; padding-bottom: 40px; min-height: auto; }
  .slide { padding: 0 24px; }
  .view--info {
    --photo-w: clamp(200px, 60vw, 300px);
    --photo-h: clamp(260px, 78vw, 400px);
    position: static;
    height: auto;
    min-height: auto;
  }
  .tagline { position: static; left: auto; top: auto; text-align: center; margin-bottom: 8px; }
  .container {
    position: relative;
    inset: auto;
    padding: 20px 20px 100px; /* bottom padding keeps the floating CTA clear */
  }
  .view--detail { padding: 20px 20px 100px; }
  .slide-dots { bottom: auto; top: 8px; right: 8px; }
  .arrow--left { left: 6px; }
  .arrow--right { right: 6px; }
}

/* ════════════════════════════════════════
   MODAL / ORDER FORM
════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal {
  background: #fff;
  border-radius: 20px;
  padding: clamp(24px, 5vw, 40px);
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto; /* the form got longer — let it scroll inside the modal on small screens */
  position: relative;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--muted);
  width: 44px;
  height: 44px;
}
.modal__close:hover { color: var(--accent); }

.modal h3 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.modal p.modal__sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2e2e2;
  font-family: inherit;
  font-size: 15px;
  background: #fafafa;
  min-height: 48px;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input.invalid, .field textarea.invalid { border-color: var(--accent); } /* flags the contact-method group on failed validation */

/* Note under name/phone/email explaining that one of the three is enough */
.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin: -8px 0 16px;
}
.field-hint.error { color: var(--accent); font-weight: 600; }

/* Größe / Gewicht / Alter side by side on desktop, stacked on narrow modals */
.field-row {
  display: flex;
  gap: 10px;
}
.field-row .field { flex: 1; margin-bottom: 16px; }
@media (max-width: 420px) {
  .field-row { flex-direction: column; gap: 0; }
}

.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 3px; min-height: auto; width: auto; }
.consent a { color: var(--accent); text-decoration: underline; }

.modal .btn--accent { width: 100%; }

.form-status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-status.ok { color: #1f8a3b; }
.form-status.error { color: var(--accent); }

/* ════════════════════════════════════════
   ABOUT SECTION
════════════════════════════════════════ */
.about {
  background: #fff;
  padding: clamp(60px, 10vw, 120px) clamp(20px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.about__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}

.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.about__title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  color: #111;
  margin-bottom: 28px;
  letter-spacing: -1px;
}
.about__title--accent { color: var(--accent); }

.about__body { font-size: clamp(14px, 1.4vw, 16px); line-height: 1.8; color: #555; margin-bottom: 16px; max-width: 480px; }

.about__stats { display: flex; gap: 48px; margin-top: 48px; padding-top: 40px; border-top: 1px solid #eee; flex-wrap: wrap; }

.about__stat { display: flex; flex-direction: column; gap: 4px; }

.about__stat-num { font-size: clamp(36px, 4vw, 48px); color: #111; line-height: 1; letter-spacing: -1px; font-weight: 800; }

.about__stat-label { font-size: 13px; color: #999; font-weight: 500; }

.about__visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.about__card {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s, box-shadow .2s;
}
.about__card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }

.about__card--accent { background: var(--accent); }
.about__card--accent .about__card-text { color: #fff; }
.about__card--accent svg { color: #fff; }

.about__card svg { width: 32px; height: 32px; color: var(--accent); }

.about__card-text { font-size: 15px; font-weight: 600; color: #222; line-height: 1.4; }

/* ════════════════════════════════════════
   PROCESS SECTION
════════════════════════════════════════ */
.process { background: #f9f9f9; padding: clamp(60px, 10vw, 120px) clamp(20px, 6vw, 80px); }

.process__header { text-align: center; max-width: 560px; margin: 0 auto 80px; }

.process__label { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }

.process__title { font-size: clamp(36px, 5vw, 60px); color: #111; letter-spacing: -1px; margin-bottom: 16px; line-height: 1; }

.process__subtitle { font-size: clamp(14px, 1.4vw, 16px); color: #888; line-height: 1.6; }

.process__steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; max-width: 1100px; margin: 0 auto; }

.process__step { flex: 1; max-width: 220px; text-align: center; padding: 0 16px; }

.process__step-num { font-size: 13px; letter-spacing: 2px; color: var(--accent); margin-bottom: 16px; font-weight: 700; }

.process__step-icon { font-size: 44px; color: var(--accent); margin-bottom: 20px; }
.process__step-icon svg { width: 44px; height: 44px; }

.process__step-title { font-size: 24px; color: #111; letter-spacing: .5px; margin-bottom: 12px; font-weight: 700; }

.process__step-desc { font-size: 14px; color: #777; line-height: 1.7; }

.process__connector { font-size: 24px; color: #ddd; padding-top: 52px; flex-shrink: 0; user-select: none; }

@media (max-width: 1024px) {
  .about__grid { gap: 48px; }
  .process__steps { flex-wrap: wrap; justify-content: center; gap: 40px; }
  .process__connector { display: none; }
  .process__step { max-width: 200px; }
}

@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__body { max-width: 100%; }
  .process__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .process__step { max-width: 100%; }
}

@media (max-width: 480px) {
  .about__visual { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer { background: #111; color: #fff; padding: clamp(40px, 6vw, 80px) clamp(20px, 10vw, 120px) 40px; }

.footer__top { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.1); }

.footer__logo { font-size: 22px; font-weight: 800; margin-bottom: 20px; }

.footer__tagline { font-size: 15px; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 28px; }

.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.footer__nav-title { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }

.footer__nav-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__nav-list a { text-decoration: none; font-size: 14px; color: #fff; transition: color .2s; display: inline-block; min-height: 24px; }
.footer__nav-list a:hover { color: var(--accent); }

.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; flex-wrap: wrap; gap: 16px; }

.footer__copy { font-size: 13px; color: rgba(255,255,255,.6); }

.footer__legal { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__legal a { text-decoration: none; font-size: 13px; color: rgba(255,255,255,.8); transition: color .2s; }
.footer__legal a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__nav { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
