/*
Theme Name: Event Akkreditierung (White Label)
Theme URI: https://envymypeople.de
Author: envy my people
Description: White-Label Event Landing Page mit Anmeldeformular, Mitarbeiter-Login und Gästeliste. Vollständig über den WordPress Customizer anpassbar. Elementor-kompatibel via Shortcodes [lambo_hero], [lambo_event_details], [lambo_form].
Version: 2.5
License: Private
Text Domain: lambo-event
*/

/* =========================================================
   CSS VARIABLEN (werden per PHP aus dem Customizer gesetzt)
   ========================================================= */
:root {
    --color-primary: #E87722;
    --color-bg:      #000000;
    --color-text:    #ffffff;
}

/* =========================================================
   ROBOTO WEBFONT (lokal, wie Original)
   ========================================================= */
@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   ELEMENTOR KOMPATIBILITÄT
   ========================================================= */

/* Schwarzer Hintergrund auch im Elementor Canvas/Preview
   Achtung: background auf html setzen, NICHT auf body (blitz-z-index!) */
.elementor-page html,
html.elementor-page,
.elementor-editor-active html {
    background-color: var(--color-bg) !important;
}
.elementor-page body,
body.elementor-page,
.elementor-editor-active body {
    color: var(--color-text) !important;
}

/* Elementor-Sektionen erben den Theme-Hintergrund */
.elementor-section,
.elementor-container {
    background-color: transparent;
}

/* Shortcode-Sektionen in Elementor: volle Breite */
.elementor-widget-shortcode .hero-section,
.elementor-widget-shortcode .event-details-section,
.elementor-widget-shortcode .registration-section {
    width: 100%;
}

/* =========================================================
   RESET & BASE
   =========================================================
   WICHTIG: background auf html (nicht body), damit der Blitz
   mit z-index:-2 durch den transparenten body sichtbar bleibt.
   Genau wie im Original (main.css: html { background: #000 })
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg); /* ← Hintergrund auf html, wie Original */
}

body {
    /* KEIN background-color, KEIN position:relative hier!
       Beides würde einen Stacking Context auf body erzeugen
       und den Blitz (z-index:-2) unsichtbar machen. */
    color: var(--color-text);
    font-family: var(--font-primary, 'Roboto', sans-serif);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}


a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-transform: uppercase; letter-spacing: normal; font-weight: 700; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;  /* wie Original: .nav { justify-content: center } */
    align-items: center;
    gap: 24px;
    padding: 25px 60px 5px;   /* Original: #header { padding: 25px 0 5px } */
}
.site-header .logo img { width: 61px; height: auto; }
.site-header .logo { margin: 0 100px 0 5px; flex-shrink: 0; } /* wie Original */
.header-tagline {
    font-size: 45px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: normal;
    color: var(--color-text);
    line-height: 1;
}

/* =========================================================
   HERO — Layout exakt wie Original: block, Text oben, Bild unten volle Breite
   ========================================================= */
.hero-section {
    position: relative;
    display: block;
    overflow: hidden;
    background: transparent; /* html liefert #000 – hier kein bg, sonst wird Blitz überdeckt */
    padding-top: 80px;   /* wie .clear.padding_top80 im Original */
    text-align: center;
}
/* Kein Pseudo-Overlay nötig — Bild selbst ist dunkel genug */
.hero-text {
    position: relative;
    z-index: 2;
    padding: 0 20px 10px;
}
.hero-model-logo { display: block; margin: 0 auto 8px; max-width: 352px; height: auto; }
.hero-title {
    font-size: clamp(40px, 5vw, 70px);
    font-weight: 900;
    color: var(--color-primary);
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
}
/* Auto-Bild: volle Breite wie Original */
.hero-car-image {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
}
.hero-car-image img { width: 100%; height: auto; display: block; margin: 0; }

/* Desktop/Mobile Hero-Bild Umschaltung (Breakpoint 960px)
   !important nötig weil .hero-car-image img { display:block } eine höhere
   CSS-Spezifizität hat als einfache Klassen-Selektoren */
.hero-car-image .hero-img-desktop { display: block !important; }
.hero-car-image .hero-img-mobile  { display: none  !important; }
@media (max-width: 960px) {
    .header-tagline { font-size: 28px; }
    .hero-car-image .hero-img-desktop { display: none  !important; }
    .hero-car-image .hero-img-mobile  { display: block !important; }
    .hero-car-image .hero-img-only    { display: block !important; }
}
.hero-placeholder {
    width: 100%; height: 420px;
    background: radial-gradient(ellipse at 50% 80%, #1a0a00 0%, var(--color-bg) 80%);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.15); font-size: 13px; text-transform: uppercase;
}

/* =========================================================
   BLITZ OVERLAY (volle Breite, JS-positioniert wie Original)
   ========================================================= */
.blitz-overlay {
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 51.67vw;
    z-index: -2;
    display: none; /* wird per JS eingeblendet + top gesetzt */
}

/* =========================================================
   EVENT DETAILS
   ========================================================= */
.event-details-section {
    position: relative;
    padding: 25px 0 5px;   /* wie Original: content_wrapper padding */
    background: transparent; /* kein bg – Blitz (z-index:-2) soll durchscheinen */
}
.event-details-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 3;
}
.event-date {
    font-size: 45px;
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: normal;
    margin-bottom: 28px;
}
.event-info {
    font-size: 30px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: normal;
    line-height: 42px;
    color: var(--color-text);
}
.event-info .spacer { margin-top: 16px; }

/* =========================================================
   REGISTRATION
   ========================================================= */
.registration-section {
    position: relative;
    padding: 80px 0 100px;
    background: transparent; /* kein bg – Blitz (z-index:-2) soll durchscheinen */
}
/* Content der Registration-Section über dem Blitz */
.registration-section > * {
    position: relative;
    z-index: 3;
}
/* Innerer Container: bündig mit event-details-inner (1280px, zentriert, 60px Padding) */
.registration-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 3;
}
.registration-section .section-title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: normal;
    margin-bottom: 20px;
}
.registration-section .section-intro {
    font-size: 15px;
    color: var(--color-text);
    max-width: 860px;
    margin-bottom: 10px;
    line-height: 1.6;
}
.required-note { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 30px; }
.event-form { max-width: 100%; }

/* Form fields */
.form-field { margin-bottom: 22px; }
.form-field input[type="text"],
.form-field input[type="email"] {
    width: 100%; background: transparent; border: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    color: var(--color-text); font-size: 20px; font-family: inherit;
    padding: 10px 0; outline: none; letter-spacing: normal; transition: border-color 0.2s;
}
.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus { border-bottom-color: var(--color-primary); }
.form-field input::placeholder { color: rgba(255,255,255,0.5); font-size: 20px; letter-spacing: normal; }

/* Radio */
.radio-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.radio-group label, .checkbox-group label {
    display: flex; align-items: center; gap: 12px;
    font-size: 20px; letter-spacing: normal; cursor: pointer; color: var(--color-text);
}
.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 1px solid rgba(255,255,255,0.6); border-radius: 50%;
    background: transparent; cursor: pointer; flex-shrink: 0;
    position: relative; transition: border-color 0.2s;
}
.checkbox-group input[type="checkbox"] { border-radius: 50%; } /* rund wie im Original */
.radio-group input[type="radio"]:checked,
.checkbox-group input[type="checkbox"]:checked { background: var(--color-primary); border-color: var(--color-primary); }
.radio-group input[type="radio"]:checked::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%); width: 7px; height: 7px;
    border-radius: 50%; background: #fff;
}
.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%); font-size: 11px; color: #fff; line-height: 1;
}

/* Food */
.food-section { margin-bottom: 28px; }
.food-section .food-label {
    font-size: 13px; letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7); margin-bottom: 12px;
}
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }

/* Companion */
.companion-section { display: none; margin-top: 10px; }
.companion-section.visible { display: block; }

/* Consent */
.consent-group { margin: 30px 0 40px; }
.consent-group label {
    display: flex; align-items: flex-start; gap: 14px;
    font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.85); cursor: pointer;
}
.consent-group input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 18px; height: 18px; border: 1px solid rgba(255,255,255,0.6);
    border-radius: 3px; background: transparent; cursor: pointer;
    flex-shrink: 0; margin-top: 2px; position: relative;
}
.consent-group input[type="checkbox"]:checked { background: var(--color-primary); border-color: var(--color-primary); }
.consent-group input[type="checkbox"]:checked::after {
    content: '✓'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%); font-size: 11px; color: #fff; line-height: 1;
}

/* Error */
.field-error { display: none; font-size: 12px; color: var(--color-primary); margin-top: 6px; letter-spacing: 0.04em; }
.field-error.visible { display: block; }

/* Submit hex button */
.submit-btn-wrapper { display: flex; justify-content: center; margin-top: 20px; }
.submit-btn-hex { display: inline-block; width: 60px; height: 60px; cursor: pointer; background: transparent; border: none; padding: 0; }
.submit-btn-hex svg { width: 60px; height: 60px; transition: opacity 0.2s; }
.submit-btn-hex:hover svg { opacity: 0.7; }
.submit-btn-hex:disabled svg { opacity: 0.3; }

/* Success */
.form-success {
    display: none; text-align: center; padding: 60px 20px;
    font-size: 20px; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--color-primary);
}
.form-success.visible { display: block; }

/* =========================================================
   SECTION DIVIDER
   ========================================================= */
.section-divider {
    display: block;
    height: 0;
    border: none;
    border-top: 3px solid var(--color-primary);
    margin: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: var(--color-bg);
    padding: 40px 60px 50px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: start;
    gap: 30px;
    margin-bottom: 24px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; list-style: none; }
.footer-nav a {
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.7); transition: color 0.2s;
}
.footer-nav a:hover { color: var(--color-primary); }
.footer-social { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); transition: color 0.2s;
}
.footer-social a:hover { color: var(--color-text); }
.footer-copyright { font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; line-height: 1.7; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .site-header { padding: 24px 24px 0; gap: 16px; }
    .event-details-inner { padding: 0 24px; }
    .registration-section { padding: 50px 0 60px; }
    .registration-inner { padding: 0 24px; }
    .site-footer { padding: 30px 24px 40px; }
    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
    .footer-nav { gap: 12px 20px; }
    .footer-social { gap: 14px; padding: 4px 0; }
    .event-date { font-size: 28px; }
    .event-info { font-size: 20px; line-height: 32px; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 38px; }
    .event-date { font-size: 22px; }
    .event-info { font-size: 16px; line-height: 26px; }
}
