/* ══════════════════════════════════════════════════════════════════
   Modellbautag-Landingpage — Public
   Frisches Layout, dark-first, mit sauberen light-Overrides.
   Nutzt globale Theme-Variablen (--bg, --surface, --text, --border).
   ══════════════════════════════════════════════════════════════════ */

.mb-page {
    color: var(--text);
    padding-bottom: 40px;
    font-family: 'Roboto Slab', Georgia, 'Times New Roman', serif;
}
.mb-page h1, .mb-page h2, .mb-page h3, .mb-page h4,
.mb-page .btn, .mb-page input, .mb-page textarea, .mb-page button {
    font-family: inherit;
}

/* ═══════ HERO ═══════
   Anthrazit/Schiefer-Look mit dezentem Bauplan-Raster
   und thematischer SVG-Silhouette rechts (Bagger · Truck · Crawler · Schiff).
*/
.mb-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
    margin: 24px 24px 0;
    padding: 56px 32px 44px;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(148, 163, 184, 0.10), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(148, 163, 184, 0.06), transparent 55%),
        linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #0b1220 100%);
}
.mb-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at 25% 40%, #000 0%, transparent 75%);
    pointer-events: none;
    z-index: -1;
}

/* Thematische Silhouetten rechts */
.mb-hero-deco {
    position: absolute; right: -20px; bottom: 0;
    width: min(48%, 620px); height: 70%; max-height: 240px;
    display: flex; align-items: flex-end; justify-content: flex-end;
    color: rgba(226, 232, 240, 0.14);
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
}
.mb-hero-deco svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
@media (max-width: 900px) {
    .mb-hero-deco {
        position: relative; right: auto; bottom: auto;
        width: 100%; height: 90px; max-height: 90px;
        margin-top: 20px; order: 2;
        opacity: 0.4;
        mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
    }
    .mb-hero { display: flex; flex-direction: column; align-items: stretch; padding: 48px 22px 32px; }
}

.mb-hero-inner {
    max-width: 1120px; margin: 0 auto; width: 100%;
    position: relative; z-index: 1;
}
.mb-hero-inner > * { max-width: 760px; }
.mb-hero-inner > .mb-hero-facts { max-width: 900px; }
.mb-hero-inner > .mb-hero-actions { max-width: none; }

.mb-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px;
    padding: 7px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
}
.mb-kicker-live { background: #dc2626; border-color: transparent; }
.mb-kicker-live .fa-circle { animation: mb-pulse 1.4s ease-in-out infinite; }
@keyframes mb-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.mb-kicker-past { background: rgba(255, 255, 255, 0.10); }

.mb-hero h1 {
    font-size: clamp(1.6rem, 1.6vw + 1.1rem, 2.6rem);
    line-height: 1.1;
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.35);
    max-width: 720px;
}
.mb-motto {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: clamp(0.95rem, 0.4vw + 0.85rem, 1.1rem);
    color: rgba(255, 255, 255, 0.88);
    font-style: italic;
    margin: 0 0 28px;
    max-width: 720px;
    padding: 6px 14px 6px 12px;
    border-left: 3px solid rgba(96, 165, 250, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 8px 8px 0;
}

/* Fakten-Reihe (Datum / Zeit / Ort / Eintritt) */
.mb-hero-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 28px 0 26px;
}
.mb-fact {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: transform 0.18s ease, background 0.18s ease;
}
.mb-fact:hover { transform: translateY(-2px); background: rgba(255,255,255,0.11); }
.mb-fact-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.mb-fact-highlight .mb-fact-icon { background: rgba(52, 211, 153, 0.18); color: #34d399; }
.mb-fact-date  .mb-fact-icon { background: rgba(96, 165, 250, 0.18); color: #60a5fa; }
.mb-fact-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.72); font-weight: 600; margin-bottom: 3px;
}
.mb-fact-value { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.3; }
.mb-fact-sub {
    font-size: 12px; color: rgba(255, 255, 255, 0.72);
    margin-top: 3px;
}

/* Countdown-Zeile */
.mb-countdown-bar {
    display: inline-flex; align-items: baseline; gap: 12px;
    padding: 14px 22px; margin: 4px 0 24px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(249, 115, 22, 0.16));
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.15);
}
.mb-countdown-num {
    font-size: 36px; font-weight: 800; line-height: 1;
    color: #fbbf24; text-shadow: 0 2px 12px rgba(251, 191, 36, 0.4);
    font-variant-numeric: tabular-nums;
}
.mb-countdown-text {
    font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.9); font-weight: 600;
}

.mb-hero-actions {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px;
}

/* ═══════ SECTIONS – Basis ═══════ */
.mb-section {
    margin: 36px auto; padding: 0 24px;
}
.mb-hero + .mb-section { margin-top: 32px; }
@media (max-width: 640px) {
    .mb-section { margin: 28px auto; padding: 0 22px; }
    .mb-hero    { margin: 18px 18px 0; padding: 40px 22px 30px; border-radius: 16px; }
    .mb-cta     { margin: 40px 22px 24px; padding: 26px 22px; }
}
.mb-section-head { margin-bottom: 22px; }
.mb-section-head h2 {
    font-size: clamp(1.3rem, 0.8vw + 1.1rem, 1.75rem);
    font-weight: 700; color: var(--text);
    margin: 0; display: inline-flex; align-items: center; gap: 12px;
    line-height: 1.2;
}
.mb-section-head h2 > i { color: #60a5fa; font-size: 1.2em; }
.mb-section-sub {
    color: var(--text); opacity: 0.72;
    margin: 8px 0 0; font-size: 15px;
    max-width: 700px;
}

/* ═══════ HIGHLIGHTS ═══════ */
.mb-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}
.mb-highlight-card {
    padding: 22px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative; overflow: hidden;
}
.mb-highlight-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.06), transparent 60%);
    pointer-events: none;
}
.mb-highlight-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.mb-highlight-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(124, 58, 237, 0.14));
    color: #60a5fa;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}
.mb-highlight-card h3 {
    margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; color: var(--text);
}
.mb-highlight-card p {
    margin: 0; color: var(--text); opacity: 0.78;
    font-size: 14px; line-height: 1.55;
}

/* ═══════ DETAIL-SECTION (Text + Sidebar) ═══════ */
.mb-detail-section {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 960px) {
    .mb-detail-section { grid-template-columns: 1fr; }
}

.mb-detail-main {
    padding: 28px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.mb-detail-main h2 {
    margin: 0 0 18px; font-size: 1.4rem; font-weight: 700; color: var(--text);
    display: inline-flex; align-items: center; gap: 10px;
}
.mb-detail-main h2 > i { color: #60a5fa; }

.mb-beschr { font-size: 16px; color: var(--text); line-height: 1.75; }
.mb-beschr p { margin: 0 0 14px; }
.mb-beschr p:last-child { margin-bottom: 0; }
.mb-beschr a { color: #60a5fa; }
.mb-beschr strong { color: var(--text); font-weight: 700; }

.mb-detail-side {
    display: flex; flex-direction: column; gap: 16px;
    position: sticky; top: 20px;
}
@media (max-width: 960px) {
    .mb-detail-side { position: static; }
}

.mb-side-card {
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.mb-side-card h3 {
    margin: 0 0 14px; font-size: 1rem; font-weight: 700; color: var(--text);
    display: inline-flex; align-items: center; gap: 8px;
}
.mb-side-card h3 > i { color: #60a5fa; }

.mb-termine-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mb-termine-list li {
    padding: 12px 14px;
    background: rgba(96, 165, 250, 0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.mb-t-day { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text); opacity: 0.65; font-weight: 600; }
.mb-t-date { font-size: 16px; font-weight: 700; color: var(--text); margin: 2px 0; }
.mb-t-time { font-size: 14px; color: #60a5fa; font-weight: 600; }
.mb-t-notiz { font-size: 12px; color: var(--text); opacity: 0.65; font-style: italic; margin-top: 4px; }

.mb-oeff-text { font-size: 14px; color: var(--text); line-height: 1.6; }
.mb-oeff-text p { margin: 0 0 8px; }

/* Kontakt-Card */
.mb-side-contact { background: linear-gradient(135deg, rgba(96, 165, 250, 0.06), var(--surface)); }
.mb-contact-name {
    font-size: 1.05rem; font-weight: 700; color: var(--text);
    margin-bottom: 12px;
}
.mb-contact-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.mb-contact-list li {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px;
}
.mb-contact-list li > i {
    width: 30px; height: 30px; flex-shrink: 0;
    border-radius: 8px;
    background: rgba(96, 165, 250, 0.14);
    color: #60a5fa;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.mb-contact-list a {
    color: var(--text); text-decoration: none; font-weight: 500;
    word-break: break-word;
}
.mb-contact-list a:hover { color: #60a5fa; text-decoration: underline; }

/* ═══════ AUSSTELLER ═══════ */
.mb-aussteller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.mb-aussteller-card {
    padding: 20px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    color: var(--text);
}
.mb-aussteller-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    border-color: rgba(96, 165, 250, 0.4);
}
.mb-aussteller-icon { font-size: 32px; color: #60a5fa; margin-bottom: 10px; display: block; }
.mb-aussteller-name { font-size: 15px; font-weight: 700; color: var(--text); }
.mb-aussteller-meta { font-size: 12px; color: var(--text); opacity: 0.65; margin-top: 4px; }
.mb-aussteller-modelle { font-size: 12px; color: #60a5fa; margin-top: 6px; font-style: italic; }

.mb-aussteller-teaser {
    display: flex; align-items: center; gap: 18px;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--text);
}
.mb-aussteller-teaser > i {
    font-size: 28px; color: #60a5fa;
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: 14px;
    background: rgba(96, 165, 250, 0.14);
    display: flex; align-items: center; justify-content: center;
}
.mb-aussteller-teaser strong { font-size: 1rem; color: var(--text); }
.mb-aussteller-teaser p { margin: 4px 0 0; color: var(--text); opacity: 0.72; font-size: 14px; }

/* ═══════ ANFAHRT ═══════ */
.mb-anfahrt-grid {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px;
    align-items: stretch;
}
@media (max-width: 960px) {
    .mb-anfahrt-grid { grid-template-columns: 1fr; }
}
.mb-anfahrt-info {
    padding: 24px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    line-height: 1.6;
    color: var(--text);
    display: flex; flex-direction: column;
}
.mb-anfahrt-name {
    font-size: 1.15rem; font-weight: 700; color: var(--text);
    margin-bottom: 10px;
    display: inline-flex; align-items: center; gap: 8px;
}
.mb-anfahrt-name > i { color: #60a5fa; }
.mb-anfahrt-address {
    font-style: normal; font-size: 15px; color: var(--text);
    margin: 0 0 12px;
}
.mb-anfahrt-plus { margin: 0 0 18px; font-size: 13px; color: var(--text); opacity: 0.8; }
.mb-anfahrt-plus code {
    background: rgba(96, 165, 250, 0.12); padding: 2px 8px;
    border-radius: 6px; font-size: 13px; color: var(--text);
    border: 1px solid var(--border);
}
.mb-anfahrt-actions {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: auto;
}
.mb-anfahrt-map {
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    background: #000;
    min-height: 340px;
}
.mb-anfahrt-map iframe { display: block; height: 100%; min-height: 340px; }

/* ═══════ CTA ═══════ */
.mb-cta {
    margin: 56px 24px 32px; padding: 32px 34px;
    display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
    background:
        radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.18), transparent 55%),
        linear-gradient(135deg, #1e40af 0%, #3730a3 65%, #4c1d95 100%);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(30, 64, 175, 0.32);
}
.mb-cta-text { min-width: 260px; }
.mb-cta h2 {
    color: #fff; margin: 0 0 6px; font-size: 1.5rem; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}
.mb-cta p { margin: 0; color: rgba(255, 255, 255, 0.92); max-width: 560px; }
.mb-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ═══════ EMPTY-STATE ═══════ */
.mb-empty {
    max-width: 700px; margin: 60px auto; padding: 60px 30px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
}
.mb-empty i { font-size: 48px; color: var(--text); opacity: 0.35; margin-bottom: 16px; display: block; }
.mb-empty h1 { font-size: 1.8rem; margin: 0 0 10px; color: var(--text); }
.mb-empty p { color: var(--text); opacity: 0.65; margin: 0 0 24px; }

/* ═══════ Light-Theme-Overrides ═══════ */
[data-theme="light"] .mb-hero::before { opacity: 0.5; }
[data-theme="light"] .mb-highlight-card::before {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), transparent 60%);
}
[data-theme="light"] .mb-highlight-icon {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(124, 58, 237, 0.10));
    color: #1e40af;
}
[data-theme="light"] .mb-fact-icon { background: rgba(30, 64, 175, 0.12); color: #1e40af; }
[data-theme="light"] .mb-fact-date .mb-fact-icon { background: rgba(30, 64, 175, 0.15); color: #1e40af; }
[data-theme="light"] .mb-fact-highlight .mb-fact-icon { background: rgba(5, 150, 105, 0.15); color: #059669; }

[data-theme="light"] .mb-section-head h2 > i,
[data-theme="light"] .mb-detail-main h2 > i,
[data-theme="light"] .mb-side-card h3 > i,
[data-theme="light"] .mb-anfahrt-name > i,
[data-theme="light"] .mb-t-time,
[data-theme="light"] .mb-aussteller-icon,
[data-theme="light"] .mb-aussteller-modelle,
[data-theme="light"] .mb-aussteller-teaser > i,
[data-theme="light"] .mb-beschr a { color: #1e40af; }

[data-theme="light"] .mb-contact-list li > i,
[data-theme="light"] .mb-aussteller-teaser > i {
    background: rgba(30, 64, 175, 0.10); color: #1e40af;
}
[data-theme="light"] .mb-side-contact { background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), var(--surface)); }
[data-theme="light"] .mb-termine-list li { background: rgba(30, 64, 175, 0.04); }
[data-theme="light"] .mb-anfahrt-plus code { background: rgba(30, 64, 175, 0.08); }
