/* ========================================
   ROLLOUT 2026 — Rennteam Uni Stuttgart e.V.
   Premium dark motorsport aesthetic
   ======================================== */

/* --- Fonts --- */
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-200.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Variables --- */
:root {
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.022);
  --text: #eee;
  --text-dim: #888;
  --text-muted: #555;
  --green: #00a651;
  --green-bright: #00d468;
  --green-dim: rgba(0, 166, 81, 0.10);
  --green-glow: rgba(0, 166, 81, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --danger: #e53935;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --max-w: 1100px;
  --nav-h: 64px;
  --section-pad: clamp(5rem, 12vw, 9rem);
  --side-pad: clamp(1.5rem, 5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
a:hover { color: var(--green-bright); }

::selection {
  background: var(--green-dim);
  color: var(--text);
}

/* --- Film Grain Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* --- Language Switching --- */
html.lang-de .en { display: none !important; }
html.lang-en .de { display: none !important; }

/* --- Navigation --- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.3rem 0.35rem;
  transition: color 0.25s var(--ease);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { color: #fff; text-shadow: 0 0 8px rgba(255, 255, 255, 0.3), 0 1px 6px rgba(0, 0, 0, 0.7); }

.lang-sep {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.6rem;
  user-select: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side-pad);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo img {
  height: 26px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.nav-logo:hover img { opacity: 1; }

.nav-cta {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  transition: all 0.35s var(--ease);
  background: var(--green);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 166, 81, 0.3);
}
.nav-cta:hover {
  background: var(--green-bright);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 166, 81, 0.4);
  transform: translateY(-1px);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: -1px;
}

.hero-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-layer-bg {
  background: url('/img/hero-bg.webp') center center / cover no-repeat;
}

.hero-layer-cars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-cars-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-layer-overlay {
  inset: -1px 0;
  background:
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%),
    linear-gradient(to top, transparent 75%, rgba(5,5,5,0.5) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--side-pad);
  margin-top: calc(var(--nav-h) + 6vh);
}

.hero-title-img {
  width: min(70vw, 520px);
  height: auto;
}

.hero-hosted {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.hero-hosted-label {
  width: min(18vw, 110px);
  height: auto;
  opacity: 0.8;
}

.hero-alte-weberei {
  width: min(34vw, 230px);
  height: auto;
  opacity: 0.9;
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.scroll-cue-text {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.scroll-cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s var(--ease) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.7; transform: scaleY(1.3); transform-origin: top; }
}

/* ===========================
   SECTIONS — shared
   =========================== */
.section {
  position: relative;
  padding: var(--section-pad) var(--side-pad);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--green);
  flex-shrink: 0;
}

.section-heading {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.8rem;
}

.section-heading strong {
  font-weight: 700;
}

.section-body {
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  font-weight: 400;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.85;
}

.section-body + .section-body {
  margin-top: 1.2rem;
}

/* Accent divider */
.accent-line {
  width: 40px;
  height: 1px;
  background: var(--green);
  margin: 2.5rem 0;
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.8s var(--ease-out);
  transform-origin: left;
}

.accent-line.revealed {
  opacity: 0.6;
  transform: scaleX(1);
}

/* ===========================
   WELCOME
   =========================== */
.welcome {
  position: relative;
  overflow: hidden;
}

.welcome .flower-watermark {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%) rotate(15deg);
  width: 360px;
  height: 360px;
  opacity: 0.018;
  pointer-events: none;
  background: url('/img/flower.png') center / contain no-repeat;
}

/* ===========================
   PARALLAX IMAGE SECTIONS
   =========================== */
.parallax-break {
  position: relative;
  min-height: clamp(50vh, 70vh, 80vh);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -1px 0;
}

.parallax-break-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.parallax-break-overlay {
  position: absolute;
  inset: -1px 0;
  background: rgba(5, 5, 5, 0.68);
}

.parallax-break-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 8rem var(--side-pad);
  max-width: 800px;
}

.parallax-break-content .section-label {
  justify-content: center;
}

.parallax-break-content .section-label::before { display: none; }

.parallax-break-content .section-heading {
  text-shadow: 0 2px 30px rgba(0,0,0,0.7), 0 0 80px rgba(0,0,0,0.4);
}

.parallax-break-content .section-body {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.parallax-break-content .section-label {
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* Edge fades */
.parallax-break::before,
.parallax-break::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 3;
  pointer-events: none;
}
.parallax-break::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg), transparent);
}
.parallax-break::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg), transparent);
}

/* ===========================
   STATS
   =========================== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-top: 2.5rem;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ===========================
   EVENT DETAILS GRID
   =========================== */
.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.detail-card {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  transition: background 0.3s var(--ease);
}

.detail-card:hover {
  background: var(--bg-alt);
}

.detail-card-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.8rem;
}

.detail-card-value {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.detail-card-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* ===========================
   VENUE GALLERY
   =========================== */
.venue-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 3rem;
}

.venue-img-wrap {
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}

.venue-img-wrap img {
  width: 100%;
  height: clamp(240px, 30vw, 400px);
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.6s var(--ease);
  filter: brightness(0.8) saturate(0.9);
}

.venue-img-wrap:hover img {
  transform: scale(1.05);
  filter: brightness(0.95) saturate(1);
}

/* ===========================
   REGISTRATION FORM
   =========================== */
.register-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--green);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.85rem 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-hover);
  outline: none;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-group input:focus,
.form-group select:focus {
  border-bottom-color: var(--green);
}

.form-group select {
  cursor: pointer;
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}
.form-group select option {
  background: #1a1a1a;
  color: var(--text);
}

.form-group .error-text {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.5rem;
  display: none;
}
.form-group.has-error input,
.form-group.has-error select {
  border-bottom-color: var(--danger);
}
.form-group.has-error .error-text {
  display: block;
}

/* --- Guests --- */
.guests-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.guests-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.guests-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.guests-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.guest-entry {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.guest-entry input {
  width: 100%;
  padding: 0.75rem 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-hover);
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.guest-entry input:focus { border-bottom-color: var(--green); }
.guest-entry input::placeholder { color: var(--text-muted); font-weight: 400; }

.btn-remove-guest {
  background: none;
  border: 1px solid rgba(229, 57, 53, 0.15);
  color: var(--danger);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  line-height: 1;
  border-radius: 2px;
  transition: all 0.2s var(--ease);
  margin-bottom: 0.35rem;
}
.btn-remove-guest:hover {
  background: rgba(229, 57, 53, 0.08);
  border-color: var(--danger);
}

.btn-add-guest {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1.5px dashed var(--border-hover);
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  margin-top: 0.25rem;
}
.btn-add-guest:hover { border-color: var(--green); color: var(--green); }
.btn-add-guest:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-add-guest:disabled:hover { border-color: var(--border); color: var(--text-dim); }

/* --- Locale Toggle --- */
.locale-group {
  display: flex;
  gap: 0;
  margin-top: 0.25rem;
}

.locale-btn {
  flex: 1;
  padding: 0.65rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--border-hover);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.locale-btn:first-child { border-radius: 2px 0 0 2px; }
.locale-btn:last-child { border-radius: 0 2px 2px 0; border-left: none; }
.locale-btn.active {
  color: var(--green);
  border-color: rgba(0, 166, 81, 0.3);
  background: var(--green-dim);
}

/* --- Checkbox --- */
.checkbox-group { margin: 1.5rem 0; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 19px;
  height: 19px;
  min-width: 19px;
  border: 1.5px solid var(--border-hover);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  transition: all 0.2s var(--ease);
}
.checkbox-label input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}
.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.checkbox-label a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Buttons --- */
.btn-primary {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover:not(:disabled) {
  background: var(--green-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 30px var(--green-glow);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}
.btn-primary.loading .btn-text { visibility: hidden; }
.btn-primary.loading .spinner {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Form Messages --- */
.form-message {
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
  display: none;
  line-height: 1.5;
}
.form-message.error {
  background: rgba(229, 57, 53, 0.06);
  border: 1px solid rgba(229, 57, 53, 0.15);
  color: #ef5350;
  display: block;
}
.form-message.info {
  background: var(--green-dim);
  border: 1px solid rgba(0, 166, 81, 0.12);
  color: var(--green);
  display: block;
}
.form-message.success {
  background: var(--green-dim);
  border: 1px solid rgba(0, 166, 81, 0.2);
  color: var(--green);
  display: block;
}

.registration-closed {
  text-align: center;
  padding: 3rem 2rem;
}
.registration-closed p {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 1.05rem;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: 3rem var(--side-pad);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 20px;
  width: auto;
  opacity: 0.4;
  transition: opacity 0.25s;
}
.footer-logo:hover img { opacity: 0.7; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.25s var(--ease);
}
.footer-links a:hover { color: var(--text-dim); }

.footer-sponsors {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-sponsors img {
  height: 80px;
  width: auto;
  opacity: 0.4;
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
  filter: grayscale(1);
}
.footer-sponsors img:hover {
  opacity: 0.7;
  filter: grayscale(0);
}

.footer-copy {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   STATUS / TRANSACTIONAL PAGES
   =========================== */
.status-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.status-logo { margin-bottom: 3rem; }
.status-logo img { height: 26px; width: auto; opacity: 0.6; }

.status-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}
.status-icon.success {
  border: 1.5px solid rgba(0, 166, 81, 0.25);
  background: var(--green-dim);
}
.status-icon.error {
  border: 1.5px solid rgba(229, 57, 53, 0.25);
  background: rgba(229, 57, 53, 0.06);
}
.status-icon.loading {
  border: 1.5px solid var(--border);
}

.status-icon svg {
  width: 28px;
  height: 28px;
}
.status-icon.success svg { stroke: var(--green); }
.status-icon.error svg { stroke: var(--danger); }

.status-icon.loading::after {
  content: '';
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spinSimple 0.7s linear infinite;
}
@keyframes spinSimple { to { transform: rotate(360deg); } }

.status-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.status-text {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-dim);
  max-width: 400px;
  line-height: 1.75;
  margin: 0 auto;
}

.status-link { margin-top: 2.5rem; }
.status-link a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}
.status-link a:hover { color: var(--text); }

.status-footer {
  position: absolute;
  bottom: 2rem;
  display: flex;
  gap: 1.5rem;
}
.status-footer a { font-size: 0.65rem; color: var(--text-muted); }

.checkmark-svg { animation: checkScale 0.4s var(--ease) 0.2s both; }
.checkmark-svg .checkmark-path {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: checkDraw 0.4s var(--ease) 0.5s forwards;
}

@keyframes checkScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes checkDraw { to { stroke-dashoffset: 0; } }

/* ===========================
   REVEAL ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: none; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: none; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: none; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: none; }

/* Fade only (no translate) */
.reveal-fade {
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.reveal-fade.revealed { opacity: 1; }

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

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero { min-height: 100svh; }
  .hero-title-img { width: min(85vw, 400px); }
  .hero-hosted-label { width: min(25vw, 100px); }
  .hero-alte-weberei { width: min(45vw, 190px); }
  .hero-content { margin-top: calc(var(--nav-h) + 3vh); }

  .venue-strip { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .guest-entry { grid-template-columns: 1fr 1fr; }
  .guest-entry .btn-remove-guest { grid-column: 1 / -1; width: fit-content; }

  .footer-inner { flex-direction: column; gap: 1.2rem; text-align: center; }
  .footer-sponsors { flex-direction: column; gap: 1.5rem; }
  .lang-switch { display: none; }

  .parallax-break { min-height: 50vh; height: auto; }
  .parallax-break-content { padding: 6rem var(--side-pad); }

  .stats-row { gap: 2rem; }
  .stat-value { font-size: 1.8rem; }
}

/* Portrait phone — cars in bottom half for better framing */
@media (max-width: 768px) and (orientation: portrait) {
  .hero-layer-cars {
    top: auto;
    height: 55%;
  }

  .hero-cars-img {
    object-position: 60% center;
  }
}

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

  .stats-row { flex-direction: column; gap: 1.5rem; }

  .nav-cta { font-size: 0.6rem; padding: 0.45rem 1rem; }
}

/* ===========================
   LANDSCAPE PHONE (short + wide)
   =========================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-layer-cars {
    transform: translateY(40%);
  }

  .hero-cars-img {
    object-position: center bottom;
  }

  .hero-layer-overlay {
    background:
      linear-gradient(to bottom, rgba(5,5,5,0.75) 0%, rgba(5,5,5,0.35) 50%, transparent 60%, var(--bg) 100%);
  }

  .hero-content {
    margin-top: var(--nav-h);
  }

  .hero-hosted {
    margin-top: 0.8rem;
    gap: 0.4rem;
  }

  .hero-title-img {
    width: min(36vw, 320px);
  }

  .hero-hosted-label {
    width: min(12vw, 85px);
  }

  .hero-alte-weberei {
    width: min(20vw, 160px);
  }

  .scroll-cue {
    display: none;
  }
}

/* ===========================
   ULTRAWIDE (≥ 2:1 aspect ratio)
   =========================== */
@media (min-aspect-ratio: 2/1) {
  .hero {
    min-height: 100vh;
  }

  .hero-title-img {
    width: min(40vw, 620px);
  }

  .hero-hosted-label {
    width: min(10vw, 130px);
  }

  .hero-alte-weberei {
    width: min(18vw, 280px);
  }

  .parallax-break {
    min-height: max(60vh, 35vw);
  }
}

/* Very wide viewports — cap page width */
@media (min-width: 2200px) {
  .nav {
    padding: 0 calc((100vw - 2000px) / 2 + var(--side-pad));
  }
}

/* --- Manage / Delete pages --- */
.manage-readonly {
  margin-top: 2rem;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.manage-readonly dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.5rem;
  row-gap: 0.6rem;
  font-size: 0.95rem;
}
.manage-readonly dt {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.15em;
}
.manage-readonly dd {
  margin: 0;
  color: var(--text);
}
.manage-readonly ul {
  margin: 0;
  padding-left: 1.1rem;
}

.manage-danger-zone {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.manage-danger-zone p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}
.manage-delete-link {
  color: var(--danger);
  font-size: 0.9rem;
  text-decoration: underline;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.manage-delete-link:hover { opacity: 1; }

.manage-danger-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 340px;
  margin: 2rem auto 0;
}
.btn-primary.btn-danger { background: var(--danger); }
.btn-primary.btn-danger:hover:not(:disabled) {
  background: #f44336;
  box-shadow: 0 6px 30px rgba(229, 57, 53, 0.35);
}
.btn-secondary {
  display: block;
  padding: 0.9rem 2rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-dim);
}
