/* drvr-berlin.com — standalone site
   Layout: dark single page, centered hero, three principles, seat counter,
   photo mosaic, member logo band, request form. Black / white / drvr red. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --ink: #0b0b0b;
  --line: #1f1f1f;
  --white: #ffffff;
  --soft: #bdbdbd;
  --muted: #8a8a8a;
  --red: #e30613;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--black); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .4s var(--ease), backdrop-filter .4s;
}
.site-header.scrolled { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand img { width: 62px; height: auto; transition: transform .3s var(--ease); }
.brand:hover img { transform: scale(1.06); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: 400 15px/1 var(--font-ui);
  color: var(--red); background: transparent;
  border: 1px solid var(--red); border-radius: 100px;
  padding: 15px 34px; text-decoration: none; cursor: pointer;
  transition: color .25s, background .25s, transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: currentColor; transition: transform .3s var(--ease); }
.btn:hover { color: var(--white); background: var(--red); }
.btn:hover svg { transform: translateX(4px); }
.btn-solid { background: var(--red); color: var(--white); }
.btn-solid:hover { background: transparent; color: var(--red); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 26px;
  padding: 120px 20px 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 42%), rgba(227, 6, 19, .20), transparent 70%);
  transition: background .2s linear;
}
.hero-logo { width: min(340px, 62vw); position: relative; }
.hero-logo img { width: 100%; height: auto; }
.hero-logo::after {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  border: 1px solid rgba(227, 6, 19, .55);
  animation: ring 3.6s var(--ease) 1.6s infinite;
  pointer-events: none;
}
.eyebrow { font: 300 22px/1.2 var(--font-display); margin: 0; letter-spacing: .02em; }
.headline { font: 800 clamp(44px, 8.6vw, 96px)/1 var(--font-display); letter-spacing: -.02em; margin: 0; min-height: 1em; }
.caret { display: inline-block; width: .07em; height: .82em; background: var(--red); margin-left: .06em; vertical-align: -0.04em; animation: blink 1s steps(1) infinite; }
.tagline { font-size: 17px; color: var(--soft); margin: 0; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; width: 1px; height: 48px;
  background: linear-gradient(var(--red), transparent);
  transform-origin: top; animation: cue 2.4s var(--ease) infinite;
}

/* Intro sequence (only when JS is running) */
.js .hero-logo { opacity: 0; transform: scale(.82); }
.js .eyebrow, .js .tagline { opacity: 0; transform: translateY(14px); }
.js.ready .hero-logo { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js.ready .eyebrow { opacity: 1; transform: none; transition: all .8s var(--ease) .5s; }
.js.ready .tagline { opacity: 1; transform: none; transition: all .8s var(--ease) 1.9s; }

/* ---------- Sections ---------- */
section { position: relative; }
.section-label { font: 300 14px/1 var(--font-display); letter-spacing: .14em; color: var(--muted); text-align: center; margin: 0 0 28px; }
.section-label b { color: var(--red); font-weight: 700; }

/* Principles */
.principles { padding-block: 96px 48px; }
.principles .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principle h3 { font: 800 42px/1.05 var(--font-display); letter-spacing: -.02em; margin: 0 0 14px; }
.principle h3::after { content: ""; display: block; height: 3px; width: 28px; background: var(--red); margin-top: 16px; transform-origin: left; }
.principle p { color: var(--soft); margin: 0; max-width: 30ch; font-size: 15px; }
.js .principle h3::after { transform: scaleX(0); transition: transform .9s var(--ease) .35s; }
.js .principle.in h3::after { transform: scaleX(1); }

/* Seats */
.seats { padding-block: 40px 88px; }
.seats .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.seat-grid { display: grid; grid-template-columns: repeat(25, 14px); gap: 10px; }
.seat { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #3a3a3a; transition: background .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s; }
.seat.taken { background: var(--red); border-color: var(--red); }
.seat.pop { transform: scale(1.35); box-shadow: 0 0 14px rgba(227, 6, 19, .6); }
.seat-count { font: 300 18px/1 var(--font-display); margin: 0; font-variant-numeric: tabular-nums; }
.seat-count b { font-weight: 700; }

/* Moments */
.moments { padding-block: 16px 96px; }
.moments .wrap { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 280px 280px; gap: 12px; }
.shot { margin: 0; overflow: hidden; background: var(--ink); min-width: 0; position: relative; }
.shot img { width: 100%; height: 115%; object-fit: cover; filter: grayscale(.45) contrast(1.05) brightness(.9); transition: filter .5s, transform .8s var(--ease); will-change: transform; transform: translateY(var(--py, 0px)); }
.shot:hover img { filter: none; transform: translateY(var(--py, 0px)) scale(1.04); }
.s-leihamt { grid-column: 1; grid-row: 1; }
.s-track { grid-column: 1; grid-row: 2; }
.s-surf { grid-column: 2; grid-row: 1 / 3; }
.s-surf img { object-position: 50% 60%; }
.js .shot { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
.js .shot.in { clip-path: inset(0 0 0 0); }
.js .s-track { transition-delay: .15s; }
.js .s-surf { transition-delay: .3s; }

/* Members logo band */
.members { padding-block: 64px 32px; border-top: 1px solid var(--line); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 72px; align-items: center; animation: slide 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { display: block; }
.marquee-track img { height: 52px; width: auto; filter: grayscale(1) brightness(1.7); opacity: .75; transition: opacity .3s, filter .3s; }
.marquee-track a:hover img { opacity: 1; filter: none; }

/* Request form */
.request { padding-block: 96px 72px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.request .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.request h2 { font: 800 clamp(40px, 6vw, 60px)/1 var(--font-display); letter-spacing: -.03em; margin: 0 0 18px; }
.request-intro p { color: var(--soft); margin: 0; max-width: 40ch; }
.request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.wide { grid-column: 1 / -1; }
.field label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field .opt { text-transform: none; letter-spacing: 0; color: #5f5f5f; }
.field input, .field textarea {
  font: 15px/1.4 var(--font-ui); color: var(--white); background: transparent;
  border: 0; border-bottom: 1px solid #3a3a3a; border-radius: 0; padding: 9px 0; resize: vertical; width: 100%;
}
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus, .field textarea:focus { outline: none; }
.field input::placeholder, .field textarea::placeholder { color: #555; }
.field.invalid input { border-bottom-color: var(--red); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: #9a9a9a; }
.consent input { margin-top: 3px; accent-color: var(--red); flex: none; }
.consent.invalid { color: #ff8a91; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-msg { margin: 0; font-size: 14px; }
.form-msg.error { color: #ff8a91; }
.form-done { display: none; padding: 32px 0; }
.form-done h3 { font: 800 32px/1.1 var(--font-display); margin: 0 0 10px; }
.form-done p { color: var(--soft); margin: 0; }
.request.sent .request-form { display: none; }
.request.sent .form-done { display: block; animation: rise .8s var(--ease); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 24px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; color: var(--white); }
.site-footer a:hover { color: var(--red); }

/* Legal pages */
.legal { padding-block: 140px 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font: 800 clamp(38px, 6vw, 56px)/1.05 var(--font-display); letter-spacing: -.02em; margin: 0 0 32px; }
.legal h2 { font: 700 19px/1.3 var(--font-display); margin: 40px 0 10px; }
.legal h3 { font: 700 16px/1.3 var(--font-display); margin: 26px 0 6px; }
.legal p, .legal li { color: #d6d6d6; font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--white); }
.legal .stand { color: var(--muted); font-size: 13px; margin-top: 48px; }
.center-page { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 120px 20px; }
.center-page h1 { font: 800 clamp(44px, 8vw, 84px)/1 var(--font-display); letter-spacing: -.02em; margin: 0; }
.center-page p { color: var(--soft); margin: 0; max-width: 46ch; }

/* Generic reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .12s; }
.js .reveal.d2 { transition-delay: .24s; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .request .wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 767px) {
  .btn { padding: 12px 22px; font-size: 14px; }
  .brand img { width: 52px; }
  .eyebrow { font-size: 16px; }
  .principles .wrap { grid-template-columns: 1fr; gap: 36px; }
  .principle h3 { font-size: 34px; }
  .seat-grid { grid-template-columns: repeat(10, 14px); }
  .moments .wrap { grid-template-columns: 1fr; grid-template-rows: 220px 300px 220px; }
  .s-leihamt, .s-surf, .s-track { grid-column: 1; }
  .s-leihamt { grid-row: 1; } .s-surf { grid-row: 2; } .s-track { grid-row: 3; }
  .request-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
}
