:root {
    /* Dunkles Blau-Grau Farbschema */
    --bg-dark: #0b0f19;          /* Deep Blue-Grey Background */
    --bg-card: #131926;          /* Darker Slate Card Background */
    --bg-card-hover: #192233;
    --accent-cyan: #38bdf8;       /* Light Cyan / Cool Blue Accent */
    --accent-blue: #0284c7;       /* Mid Navy Accent */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(56, 189, 248, 0.4);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
}

/* GLASS PANEL UTILITY */
.glass-panel {
    background: rgba(19, 25, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

/* NAVBAR */
.navbar-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 20px;
}

.navbar {
    width: 100%;
    max-width: 1100px;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 40px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* DROPDOWN CONTAINER & HOVER FIX */
.dropdown {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: -15px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    padding: 18px;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 1010;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown-label {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 14px;
    color: var(--text-main) !important;
    text-decoration: none !important;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(56, 189, 248, 0.1);
}

.dropdown-item i {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    min-width: 20px;
    text-align: center;
}

.dropdown-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item strong {
    font-size: 0.95rem;
    color: #ffffff !important;
    font-weight: 600;
    line-height: 1.2;
}

.dropdown-item span {
    font-size: 0.75rem;
    color: var(--text-muted) !important;
    line-height: 1.2;
}

.btn-apply {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: #fff;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-apply:hover {
    background: var(--accent-cyan);
    color: #000;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.5) 0%, var(--bg-dark) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-cyan);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.hero-title span {
    color: var(--text-muted);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    background: var(--accent-cyan);
    transform: translateY(-2px);
}

/* SECTION COMMON */
.section-container {
    max-width: 1100px;
    margin: 100px auto;
    padding: 0 20px;
}

.sub-title {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 6px;
}

/* STORY SECTION */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.story-left h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.story-left p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.btn-secondary {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 22px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.gallery-grid-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.grid-img {
    height: 130px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.img-wide { grid-column: span 2; }

/* FOOTER STYLING */
.site-footer {
    background: #070a11;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    margin-top: 100px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 50px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.footer-brand i {
    color: var(--accent-cyan);
}

.brand-col p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 320px;
}

.btn-back-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-back-top:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-subheading {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links i {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.standalone-links {
    padding-top: 38px; /* Richtet die Liste an den Nachbarspalten aus */
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom strong {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.social-icons a:hover {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .standalone-links {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.8rem; }
    .story-section { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* IMPRESSUM MODAL & TRUCK ANIMATION */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 10, 17, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Der fahrende LKW */
.truck-wrapper {
    position: absolute;
    top: 50%;
    left: -150px;
    transform: translateY(-50%);
    z-index: 2002;
    pointer-events: none;
}

.truck-icon {
    font-size: 5rem;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 15px var(--accent-cyan));
}

/* Fahrt-Animation des LKWs */
.modal-overlay.active .truck-wrapper {
    animation: driveTruck 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes driveTruck {
    0% { left: -150px; }
    100% { left: 105vw; } /* Fährt komplett durchs Bild nach rechts */
}

/* Das Fenster, das sich "aufzieht" */
.modal-window {
    width: 90%;
    max-width: 600px;
    padding: 30px;
    position: relative;
    z-index: 2001;
    clip-path: inset(0 100% 0 0); /* Startet unsichtbar/zugezogen von rechts */
    transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

/* Wird aufgezogen, wenn aktiv */
.modal-overlay.active .modal-window {
    clip-path: inset(0 0 0 0); /* Vollständig aufgezogen */
}

/* Modal Inhalte */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-cyan);
}

.modal-window h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.5rem;
}

.modal-divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

.modal-body h3 {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    margin-top: 15px;
    margin-bottom: 5px;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* FORMULAR & BEWERBUNG MODAL */
.modal-large {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-cyan);
}

.form-group select option {
    background: var(--bg-card);
    color: #fff;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    accent-color: var(--accent-cyan);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-item:hover {
    color: #fff;
}

/* Submit Button */
.btn-submit {
    background: var(--accent-cyan);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #7dd3fc;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .form-row, .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* EVENTS PAGE STYLING */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.loading-state, .no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
}

.loading-state i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

.event-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.event-banner {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.event-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid var(--border-color);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.event-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-title {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 8px;
}

.event-details i {
    color: var(--accent-cyan);
    width: 18px;
}

.event-btn {
    margin-top: auto;
    text-align: center;
    justify-content: center;
}

.website-stats-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon {
  font-size: 1.2rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-value {
  font-weight: bold;
  color: #38bdf8; /* Passendes MoBuilds-Blau */
  font-size: 1rem;
}

.stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

.tb-stats-section {
  text-align: center;
  padding: 40px 20px;
}

.tb-stats-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.tb-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 30px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tb-number {
  font-size: 2rem;
  font-weight: bold;
  color: #38bdf8;
}

.tb-label {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 5px;
}