/* ==========================================================================
   Camper Brühwiler x Suisse Caravan Salon 2026 — Landingpage
   Font: Red Hat Display (self-hosted, real brand font)
   CD-Abgleich mit camper-bruehwiler.ch (Sept. 2026): Akzentfarbe, Radien,
   Schatten und Body-Schriftschnitt 1:1 aus deren template_styles2.css
   übernommen (--colorButton: #E30713; Body-Font-Weight 500; Kartenradius
   8px; flache Schatten 0 2px 12px rgba(0,0,0,.2); Footer-Anthrazit
   rgb(59.5,59.5,59.5)) — dieselbe Vorlage wie caravan.ch, nur die
   Akzentfarbe unterscheidet sich zwischen den beiden echten Seiten.

   Struktur bleibt bewusst anders als bei Portmann (gleiche CD-Bausteine,
   andere Komposition):
   - Editorial-Poster-Hero (grosser Text unten links, kein Eyebrow-Pill/Card)
   - Fakten als fliessender Satz statt Stat-Kacheln
   - Marken als zweigeteiltes Vollbild-Split statt Logo-Streifen
   - Vorteile als grosse Nummern-Liste mit Trennlinien statt Card-Grid
   - Roter Ticker-Marquee statt Bento-Karten
   ========================================================================== */

@font-face {
  font-family: "Red Hat Display";
  src: url("../assets/fonts/redhatdisplay-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #e30713;
  --accent-strong: #ad050e;
  --accent-soft: #fbe4e3;
  --dark-surface: #3b3b3b;

  --bg: #ffffff;
  --bg-alt: #fafafa;
  --surface: #ffffff;
  --ink: #333333;
  --ink-soft: #5c5c5c;
  --line: rgba(51, 51, 51, 0.12);
  --radius: 8px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  font-weight: 500; /* camper-bruehwiler.ch setzt den Fliesstext auf Medium, nicht Regular */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
p { margin: 0; color: var(--ink-soft); line-height: 1.65; }

/* ---------------------------------- buttons ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  white-space: nowrap;
  padding: 1.1em 2em;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: #ffffff; box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.2); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25); }

.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }

/* ---------------------------------- nav ---------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 32px; width: auto; display: block; }
.nav-cta { padding: 0.85em 1.7em; font-size: 0.8rem; }

/* ---------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% 30%;
  transform: scale(1.04);
  animation: kenburns 24s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: none; }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.55) 0%, rgba(12, 12, 12, 0.2) 30%, rgba(12, 12, 12, 0.35) 55%, rgba(8, 8, 8, 0.92) 100%);
}

.hero-inner { position: relative; z-index: 1; padding-bottom: clamp(48px, 8vh, 96px); width: 100%; }

.hero-date {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f4cdca;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-date-logo { height: 18px; width: auto; display: block; }
.hero-date-logo.scs { border-radius: 2px; }

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  max-width: 14ch;
  text-wrap: balance;
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-actions .btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero-actions .btn-line:hover { color: var(--accent-strong); border-color: #fff; background: #fff; }

/* ---------------------------------- ticker marquee ------------------------- */
/* Single decorative motion moment: reinforces the key facts while the page
   settles from the hero into the content. */

.ticker {
  background: var(--accent);
  overflow: hidden;
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 48px;
  animation: ticker-scroll 22s linear infinite;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.ticker-track span {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.92;
}

/* ---------------------------------- sections ------------------------------ */

section { padding: clamp(64px, 9vw, 128px) 0; }

.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-strong);
  margin-bottom: 18px;
  display: block;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------- facts strip ---------------------------- */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 84px) 0;
}

.facts p {
  color: var(--ink);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  max-width: 24ch;
}

.facts strong { color: var(--accent-strong); font-weight: 800; }
.facts .is-placeholder { color: var(--accent-strong); text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 6px; }

/* ---------------------------------- brand split ---------------------------- */

.brand-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.brand-panel.malibu { background: var(--bg-alt); border-right: 1px solid var(--line); }
.brand-panel.dethleffs { background: var(--dark-surface); }

.brand-panel.dethleffs::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/bruehwiler-showroom.jpg") center 30% / cover no-repeat;
  opacity: 0.55;
  transition: transform 0.8s var(--ease-out), opacity 0.4s var(--ease-out);
  transform: scale(1.02);
}

.brand-panel.dethleffs:hover::before { transform: scale(1.1); opacity: 0.68; }

.brand-panel.dethleffs::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.55) 0%, rgba(14, 14, 14, 0.85) 100%);
}

.brand-panel > * { position: relative; z-index: 1; }

.brand-panel img { height: 40px; width: auto; margin-bottom: 28px; transition: transform 0.4s var(--ease-out); }
.brand-panel:hover img { transform: translateY(-3px); }
.brand-panel.dethleffs img { filter: brightness(0) invert(1); }
.brand-panel p { font-size: 1rem; max-width: 34ch; margin-bottom: 8px; }
.brand-panel.dethleffs p { color: rgba(246, 242, 239, 0.78); }

.brand-stand {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 24px;
}
.brand-panel.dethleffs .brand-stand { color: #f4b3ae; }
.brand-panel.dethleffs .btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.brand-panel.dethleffs .btn-line:hover { color: var(--accent-strong); border-color: #fff; background: #fff; }

/* ------------------------------ neuheiten split ---------------------------- */

.novelty-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
}

.novelty-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(36px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.novelty-panel.malibu { background: var(--dark-surface); border-right: 1px solid var(--line); }
.novelty-panel.dethleffs { background: var(--dark-surface); }

.novelty-panel.malibu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/malibu-t460le.jpg") center 62% / cover no-repeat;
  opacity: 0.55;
}

.novelty-panel.dethleffs::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/dethleffs-graneo.webp") center 55% / cover no-repeat;
  opacity: 0.5;
}

.novelty-panel.malibu::after,
.novelty-panel.dethleffs::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.3) 0%, rgba(14, 14, 14, 0.88) 100%);
}

.novelty-panel > * { position: relative; z-index: 1; }

.novelty-panel h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 12px; }
.novelty-panel p { font-size: 0.96rem; max-width: 42ch; margin-bottom: 22px; }
.novelty-panel.malibu h3, .novelty-panel.dethleffs h3,
.novelty-panel.malibu .novelty-facts strong, .novelty-panel.dethleffs .novelty-facts strong { color: #ffffff; }
.novelty-panel.malibu p, .novelty-panel.dethleffs p { color: rgba(255, 255, 255, 0.82); }

.novelty-facts { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.novelty-facts li { display: flex; flex-direction: column; gap: 2px; }
.novelty-facts strong { font-size: 1.1rem; font-weight: 800; color: var(--ink); line-height: 1; }
.novelty-facts span { font-size: 0.72rem; color: var(--ink-soft); }
.novelty-panel.malibu .novelty-facts span, .novelty-panel.dethleffs .novelty-facts span { color: rgba(255, 255, 255, 0.65); }

/* ---------------------------------- benefits list -------------------------- */

.benefit-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: baseline;
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.benefit-row:last-child { border-bottom: 1px solid var(--line); }

.benefit-row .n {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  line-height: 1;
  transition: -webkit-text-stroke-color 0.4s var(--ease-out);
}

.benefit-row:hover .n { -webkit-text-stroke-color: var(--accent); }

.benefit-row h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; margin-bottom: 8px; }
.benefit-row p { max-width: 52ch; }

/* ---------------------------------- image break ---------------------------- */

.break-img { width: 100%; aspect-ratio: 21 / 9; overflow: hidden; }
.break-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: kenburns 20s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) { .break-img img { animation: none; transform: none; } }

.break-caption {
  text-align: left;
  max-width: 46ch;
  padding: 22px clamp(20px, 5vw, 56px) 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ---------------------------------- booking -------------------------------- */

.booking { position: relative; overflow: hidden; color: #ffffff; }
.booking-media { position: absolute; inset: 0; z-index: -2; }
.booking-media img { width: 100%; height: 100%; object-fit: cover; }
.booking-media::after { content: ""; position: absolute; inset: 0; background: rgba(12, 12, 12, 0.9); }

.booking-head { max-width: 640px; margin-bottom: 40px; }
.booking-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; color: #ffffff; }
.booking-head p { color: rgba(255, 255, 255, 0.78); max-width: 52ch; }

/* ------------------------------ booking widget ----------------------------- */

.booking-panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-width: 920px;
}

.bw {
  padding: clamp(28px, 4vw, 44px);
  color: var(--ink);
}

.bw-step { margin-bottom: 28px; }
.bw-step:last-of-type { margin-bottom: 0; }

.bw-step-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.bw-dates {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.bw-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.bw-date:hover { border-color: var(--accent); transform: translateY(-2px); }
.bw-date.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.bw-date-dow { font-size: 0.76rem; opacity: 0.7; }
.bw-date-day { font-size: 1.15rem; font-weight: 800; }

.bw-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}

.bw-time {
  padding: 12px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.bw-time:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.bw-time.is-active { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.bw-time.is-taken,
.bw-time:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.bw-loading {
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 12px 0;
}

.bw-selected {
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 18px;
}

/* Honeypot field: off-screen rather than display:none/visibility:hidden,
   which some bots explicitly skip. Real visitors never see or reach it. */
.bw-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bw-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.bw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.bw-field label { font-size: 0.86rem; font-weight: 700; }
.bw-field .hint { font-size: 0.8rem; font-weight: 400; color: var(--ink-soft); }

.bw-stand-hint {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-top: 6px;
}

.bw-field input,
.bw-field select,
.bw-field textarea {
  font-family: inherit;
  font-size: 0.96rem;
  padding: 0.85em 1em;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.bw-field input:focus,
.bw-field select:focus,
.bw-field textarea:focus { border-color: var(--accent); }
.bw-field textarea { resize: vertical; min-height: 88px; }

.bw-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.bw-error {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #fdeceb;
  color: #a5322b;
  font-size: 0.9rem;
  font-weight: 600;
}

.bw-success {
  text-align: center;
  padding: 24px 0;
}
.bw-success svg {
  width: 52px;
  height: 52px;
  color: var(--accent);
}
.bw-success h3 {
  font-size: 1.4rem;
  margin: 14px 0 10px;
}
.bw-success p {
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .bw-dates { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
  .bw-row { grid-template-columns: 1fr; }
  .bw-foot { flex-direction: column-reverse; align-items: stretch; }
  .bw-foot .btn { width: 100%; }
}

/* ---------------------------------- footer -------------------------------- */

footer { background: var(--dark-surface); color: rgba(255, 255, 255, 0.82); padding: clamp(56px, 8vw, 96px) 0 32px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand .logo img { height: 30px; }
.footer-brand p { color: rgba(255, 255, 255, 0.62); max-width: 34ch; font-size: 0.92rem; margin: 16px 0 0; }

footer h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: 18px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 0.94rem; color: rgba(255, 255, 255, 0.78); }
footer a { text-decoration: none; color: inherit; transition: color 0.2s; }
footer a:hover { color: var(--accent-strong); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------------- responsive ---------------------------- */

@media (max-width: 900px) {
  .brand-split { grid-template-columns: 1fr; }
  .brand-panel.malibu { border-right: none; border-bottom: 1px solid var(--line); }
  .novelty-split { grid-template-columns: 1fr; }
  .novelty-panel.malibu { border-right: none; border-bottom: 1px solid var(--line); }
  .benefit-row { grid-template-columns: 70px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero h1 { max-width: 100%; }
}
