/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #050a14; /* #050a14*/
    --primary: #00c887;
    --text-main: #ffffff;
    --text-muted: #b0b8c4;
    --font-main: 'Poppins', system-ui, -apple-system, sans-serif;
    --header-height: 80px;
    --container-width: 1800px;

/* --- GLOBAL GLASSMORPHISM SETTINGS --- */
    /* Dunkelblau, aber sehr transparent (0.4), damit Blur wirkt */
    --glass-bg: rgba(20, 30, 50, 0.1);
    --glass-filter: blur(5px) saturate(100%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.09);
    --glass-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 30% 10%, #0C0C16 0%, var(--bg-dark) 50%); /*#112035 */
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

p {
    color: #e2e8f0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Leichter Schatten für Kontrast auf dunklem Grund */
    font-size:  1.25rem; margin-bottom: 25px
}

html {
    scroll-behavior: smooth;
}

section, div[id] {
    scroll-margin-top: 100px;
}


/* =========================================
   2. GLOBAL TYPOGRAPHY (Fluid Scaling)
   ========================================= */

/* Basis-Einstellungen für alle Überschriften */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9)
}

h1 {
    font-size: clamp(1.8rem, 5vw + 1rem, 4.2rem);margin-bottom: 30px;
}

h2 {
    font-size: clamp(1.60rem, 4vw + 1rem, 3rem); margin-bottom: 20px;
}

h3 {
    font-size: clamp(1.5rem, 3vw + 1rem, 2.2rem);
}

h4 {
    font-size: clamp(1.2rem, 2vw + 0.5rem, 1.5rem);
}

h5, h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

p {
    font-family: var(--font-main);
    font-size: clamp(1rem, 1vw + 0.8rem, 1.125rem);
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    overflow-wrap: break-word;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
    color: #e2e8f0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9)
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9)
}

/* =========================================
   3. UTILITIES & BUTTONS
   ========================================= */

.page-wrapper {
            /* Platz für den Header (Navigation) */
            padding-top: 140px;
            padding-bottom: 80px;
            min-height: 80vh;
        }

/* Sicherstellen, dass der Inhalt nicht am Rand klebt */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}


.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1px;
}

.text-cloud {
    background: rgba(5, 10, 20, 0.30);
    box-shadow: 0 0 50px 50px rgba(5, 10, 20, 0.15);
    border-radius: 10px;
    display: inline-block; /* Passt sich dem Inhalt an */
    padding: 0px; /* Minimaler Puffer */
    margin-bottom: 25px
}

.text-center { text-align: center; }

.btn-primary {
    background-color: var(--primary);
    color: #000 !important;
    padding: 5px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-shadow: 0 0px 0px rgba(0,0,0,0) !important;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

/* =========================================
   4. HEADER & NAVIGATION (Desktop: Dropdown Style)
   ========================================= */
header {
    position: fixed;
    top: 0px ; left: 0; width: 100%;
    height: var(--header-height);
    z-index: 1000;

    background: transparent;
    border-bottom: 1px solid transparent;

    transition: background-color 0.4s ease, border-bottom 0.4s ease;
}

header.scrolled {
    background: rgba(5, 10, 20, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

header.menu-open {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

header.menu-open .logo,
header.menu-open .hamburger {
    z-index: 2000; position: relative;
}

.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; max-width: var(--container-width);
    margin: 0 auto; padding: 0 20px; height: 100%;
}

.logo img { height: 35px; transition: height 0.3s; }

.main-nav ul { display: flex; gap: 25px; align-items: center; }
.main-nav li { position: relative; padding: 15px 0; }

.main-nav a {
    font-weight: 500; font-size: 20px; color: var(--text-main);
    display: flex; align-items: center;
}

.has-dropdown > a::after {
    content: "▾"; font-size: 18px; margin-left: 6px; transition: transform 0.3s;
}
.has-dropdown:hover > a::after { transform: rotate(180deg); }

.main-nav > ul > li > a:not(.btn-primary):hover {
    color: var(--primary);
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    align-items: flex-start;
    position: absolute;
    top: 100%; left: 0;
    min-width: 220px;
    padding: 0px 0;
    border-radius: 12px;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    background: rgba(5, 10, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1100;
}

.main-nav li:hover .dropdown-menu {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li { width: 100%; padding: 0; margin: 0; position: static; }
.dropdown-menu a {
    display: block; width: 100%; padding: 15px 20px;
    font-size: 18px; color: var(--text-muted); text-align: left;
}
.dropdown-menu a:hover {
    color: var(--primary); background: rgba(255,255,255,0.05);
}

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: white; }

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: block;
}

.hero-text-screen {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
     align-items: flex-start;
    text-align: left;
    padding-bottom: 80px;
}

.subline {
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    color: #f0f4f8;
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 500;
    max-width: 950px;
    background: rgba(5, 10, 20, 0.6);
    box-shadow: 0 0 40px 30px rgba(5, 10, 20, 0.6);
    border-radius: 20px;
    display: block;
    width: fit-content;
}

/* =========================================
   6. CARDS & OTHER SECTIONS (Unified Design)
   ========================================= */

.flip-card {
    height: 280px;
    width: 100%;
    position: relative;
    overflow: hidden; /* Wichtig: Damit die grüne Farbe nicht rausläuft */
    cursor: pointer;

    /* Basis Design (Glas) - Identisch zur Roadmap */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
    border: var(--glass-border);
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Der "Füllstand" (Grüner Hintergrund) */
.flip-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%; /* Start: 0% Höhe */
    background-color: var(--primary); /* Das Grün */
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Elegante Kurve */
    z-index: 0; /* Hinter dem Inhalt */
}

/* Hover: Farbe füllt sich auf */
.flip-card:hover::before {
    height: 100%;
}

/* Der innere Container*/
.flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* VORDERSEITE (Icon + Titel) */
.flip-card-front {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 30px;

    /* Animation beim Hover */
    transition: transform 0.4s ease, opacity 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

/* RÜCKSEITE (Titel + Text + Button) */
.flip-card-back {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 30px;
    text-align: center;

    /* Start: Unsichtbar und leicht nach unten verschoben */
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.4s ease 0.1s, opacity 0.3s ease 0.1s; /* 0.1s Verzögerung */
}

/* --- HOVER EFFEKTE --- */

/* Wenn man über die Karte fährt: Vorderseite geht hoch und verschwindet */
.flip-card:hover .flip-card-front {
    opacity: 0;
    transform: translateY(-30px);
}

/* Wenn man über die Karte fährt: Rückseite kommt hoch und erscheint */
.flip-card:hover .flip-card-back {
    opacity: 1;
    transform: translateY(0);
}

/* Styles für die Texte auf der Rückseite korrigieren */
.flip-card-back h3,
.flip-card-back p {
    color: #050a14 !important; /* Dunkle Schrift auf Grünem Grund */
}

/* Spezialfall: Button auf der Rückseite */
.flip-card-back .btn-primary {
    background-color: #050a14 !important;
    color: #fff !important;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.flip-card-back .btn-primary:hover {
    transform: scale(1.05);
    background-color: #000 !important;
}

.mini-card {
    position: relative;
    overflow: hidden; /* Zwingend für den Fill-Effekt */
    cursor: pointer;
    /* Das einheitliche Glas-Design */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
    border: var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    /* Inhalt zentrieren */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mini-card::before {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 0%; /* Start leer */
    background-color: var(--primary); /* Das Grün */
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0; /* Hinter dem Text */
}

.mini-card:hover::before {
    height: 100%;
}

.mini-card {
    height: 95px;
    width: 100%; max-width: 280px;
    margin-bottom: 30px;
    margin-right: 25px;
    padding: 15px;
}

/* Innenleben der kleinen Karten (Text Layering) */
.card-title {
    position: absolute; z-index: 1; color: #fff;
    font-size: 1.2rem; font-weight: 600;
    transition: 0.3s; padding: 0 10px;
}
.card-desc {
    position: absolute; z-index: 1; color: #000;
    font-size: 1.12rem; line-height: 1.3;
    opacity: 0; transform: translateY(20px);
    transition: 0.3s 0.1s; padding: 0 10px; width: 100%;
}

.mini-card:hover .card-title { opacity: 0; transform: translateY(-20px); }
.mini-card:hover .card-desc { opacity: 1; transform: translateY(0); }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 100px; margin-top: 50px;
    width: 95%; max-width: 1100px;
    margin-left: auto; margin-right: auto;
}

.cta-box {
    margin-top: 60px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 40px; border-radius: 12px;
}

.cta-box h4 { color: #fff; margin-bottom: 15px; font-size: 1.6rem; }
.cta-box a { color: #fff; transition: 0.3s; }
.cta-box a:hover { color: var(--primary); }

/* =========================================
   7. RESPONSIVE DESIGN (Mobile & Tablet Fix)
   ========================================= */
@media (max-width: 992px) {
    /* Hamburger sichtbar machen */
    .hamburger { display: block; z-index: 2000; position: relative; }

    /* Mobile Navigation Container */
    .main-nav {
        position: fixed; left: -100%; top: 0;
        display: flex; flex-direction: column;
        justify-content: flex-start;
        width: 100%; height: 100vh; height: 100dvh;
        background: rgba(5, 10, 20, 0.85) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        text-align: center; transition: left 0.3s ease-in-out;
        z-index: 1500;
        padding-top: 90px;
        overflow-y: auto;
    }

    .main-nav.active { left: 0; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: center;
        width: 100%;
    }

    .main-nav li {
        padding: 10px 0;
        width: 100%;
        position: static;
    }

    .main-nav a {
        justify-content: center;
        font-size: 1.3rem;
        margin-bottom: 2px;
    }

    .main-nav a.btn-primary {
        width: auto !important;
        display: inline-block !important;
        padding: 5px 35px;
        margin-top: 15px;
        font-size: 1.1rem;
    }

    /* Kein Dreieck Mobile */
    .has-dropdown > a::after { display: none; }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        display: flex; flex-direction: column; gap: 8px;
        align-items: center !important; text-align: center !important;
        background: transparent !important;
        border: none !important; box-shadow: none !important;
        padding: 0 0 15px 0;
        margin-bottom: 5px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        min-width: auto;
    }

    .dropdown-menu a {
        font-size: 1.0rem;
        color: rgba(255,255,255,0.5);
        padding: 4px 0;
        text-align: center !important;
        width: 100%; display: block;
    }
    .dropdown-menu a:hover {
        color: var(--primary); background: transparent;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    position: relative; z-index: 10;
    background-color: #02040a;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 60px 0 30px 0;
    margin-top: 100px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}
.footer-contact p { margin-bottom: 10px; }
.footer-links a { margin: 0 10px; transition: 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--primary); }



@media (max-width: 768px) {
    /* Erzwingt auf Mobile wieder Zentrierung, falls Flexbox umbricht */
    #global-footer div[style*="display: flex"] {
        flex-direction: column;
        text-align: center !important;
        gap: 20px;
    }

    #global-footer div[style*="text-align: left"],
    #global-footer div[style*="text-align: right"] {
        text-align: center !important;
        align-items: center !important;
    }

    #global-footer img {
        margin: 0 auto 10px auto !important;
    }
}

/* =========================================
   9. BACKGROUND ANIMATION
   ========================================= */
#canvas-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}
#canvas-container::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background: radial-gradient(circle at 35% 50%, transparent 10%, rgba(5, 10, 20, 0.4) 40%, #050a14 90%);
    pointer-events: none;
}
canvas { display: block; width: 100%; height: 100%; }

/* =========================================
   10. SCHULUNGEN (Hybrid: Grid Desktop / Accordion Mobile)
   ========================================= */

/* Basis Container für die Liste */
.training-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

/* Der einzelne Eintrag (Karte) */
.training-item {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
    border: var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

/* --- MOBILE DEFAULT (Akkordeon) --- */
.training-header {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    margin-top: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease; /* Weicher Farbwechsel */
}

.training-item:hover .training-header {
    color: var(--primary);
}

/* Plus/Minus Icon für Mobile */
.training-header::after {
    content: '+';
    font-size: 20px;
    color: #fff;
    transition: transform 0.3s;
}
.training-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.training-content {
    max-height: 0; /* Zu Beginn zu */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    color: var(--text-muted);
    margin-bottom: 20px;

}

.training-content.active {
    padding-bottom: 20px;
}

/* --- DESKTOP OVERRIDE (Titel Links / Text Rechts) --- */
@media (min-width: 993px) {
    .training-list {
        gap: 35px;
    }

    .training-item {
        display: flex; /* Nebeneinander */
        align-items: stretch; /* Oben bündig */
        padding: 20px;
        cursor: default; /* Kein Klick-Cursor */
    }

    .training-item:hover {
        transform: translateX(5px);
        background: rgba(255,255,255,0.03);
    }

    .training-header {
        width: 30%; /* Linke Spalte */
        padding: 0;
        margin-right: 30px;
        font-size: 1.2rem;
        pointer-events: none; /* Klick deaktivieren */
        border-right: 1px solid rgba(255,255,255,0.3); /* Trennlinie */
        display: flex;
        align-items: center;
        margin-top: 0px;
    }

    /* Icon verstecken auf Desktop */
    .training-header::after {
        display: none;
    }

    /* Content (Rechts) */
    .training-content {
        width: 70%; /* Rechte Spalte */
        max-height: none !important; /* Immer offen erzwingen */
        padding: 0;
        overflow: visible;
        display: block !important;
        opacity: 1 !important;
    }

    /* Falls JS eine Klasse setzt, ignorieren wir sie visuell */
    .training-content.active { padding-bottom: 0; }
}


/* =========================================
   11. ROADMAP & SERVICES (Split Layout)
   ========================================= */

.split-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px; position: relative;
}

.roadmap-part {
    position: relative; padding-left: 40px; padding-bottom: 60px;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    display: flex; flex-direction: column; align-items: flex-end;
}

/* --- RECHTE SPALTE (Inhalt - Sticky Logic) --- */
.content-part {
    /* 1. Sticky aktivieren */
    position: -webkit-sticky; /* Für Safari */
    position: sticky;
    /* 2. Abstand von oben (Header 80px + Puffer) */
    top: 150px;
    align-self: start;
    padding-bottom: 60px;
}

/* Titel Styles */
.roadmap-title, .content-part h2 {
    font-size: 2.5rem; font-weight: 700; line-height: 1.1; color: #ffffff;
    margin-bottom: 21px;
}
.roadmap-title { text-align: right; padding-right: 25px; }
.content-part h2 { margin-bottom: 20px; } /* Reset für rechten Teil */

.phase-label {
    text-transform: uppercase; color: var(--primary);
    font-size: 1.2rem; font-weight: 700; letter-spacing: 2px;
    margin-bottom: 25px; text-align: right; width: 100%; padding-right: 25px;
}

/* --- RESPONSIVE (Mobile) --- */
@media (max-width: 992px) {
    .split-section {
        grid-template-columns: 1fr; /* Alles untereinander */
        gap: 0;
    }

    .roadmap-part {
        border-right: none;
        border-left: 4px solid rgba(255, 255, 255, 0.5);
        padding-left: 30px;
        margin-left: 10px;
        align-items: flex-start;
        padding-bottom: 40px;
    }

    .roadmap-title, .phase-label {
        text-align: left;
        padding-right: 0;
    }

    .mini-card {
        margin-right: 0;
        max-width: 100%;
    }

    .content-part {
        position: static !important;
        padding-top: 0;
    }
}


/* =========================================
   12. REFERENZEN
   ========================================= */
.reference-card {
    display: flex;
    align-items: stretch;
    width: 95%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px;

    /* Glass Look Background */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);

    border-radius: 30px;
    overflow: hidden;
}

/* Jeden zweiten Eintrag spiegeln (Bild rechts) */
.reference-card:nth-child(even) {
    flex-direction: row-reverse;
}

/* Container für das Bild */
.ref-img {
    flex: 1;
    min-height: 350px;

    /* WICHTIG: Padding sorgt für den Abstand zum Kartenrand */
    padding: 20px;

    /* Zentriert das Bild vertikal, falls der Text rechts sehr kurz ist */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Das Bild selbst */
.ref-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Füllt den Bereich ohne Verzerrung */

    /* WICHTIG: Radius für das Bild selbst */
    border-radius: 12px;

    /* Optional: Ein leichter Schatten lässt das Bild noch mehr "schweben" */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Bereich (Text) */
.ref-content {
    flex: 1;
    padding: 50px; /* Genug Abstand zum Text */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ref-label {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.ref-content h3 {
    color: #fff;
    font-size: 2.1rem;
    margin-bottom: 20px;
}

/* MOBILE ANPASSUNG */
@media (max-width: 992px) {
    .reference-card, .reference-card:nth-child(even) {
        flex-direction: column; /* Auf Handy immer untereinander */
    }

    .ref-img {
        /* Auf Mobile feste Höhe, aber weiterhin mit Padding */
        height: 300px;
        min-height: auto;
        padding: 15px; /* Etwas weniger Abstand auf kleinen Screens */
    }

    .ref-content {
        padding: 30px;
    }

    .ref-content h3 {
        font-size: 1.5rem;
    }
}


/* =========================================
   13. KONTAKT FORMULAR & INPUTS
   ========================================= */

.contact-box {
    max-width: 700px;
    margin: 50px auto;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 40px;
    border-radius: 30px;
}

/* Label Styling */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 1.2rem;
}

/* Pflichtfeld Sternchen */
.form-group label span {
    color: var(--primary);
}

/* Eingabefelder Styling */
.form-control {
    width: 100%;
    padding: 15px;

    /* Dunklerer Hintergrund für Kontrast zum Glas */
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;

    color: #fff;
    font-family: var(--font-main);
    font-size: 1.12rem;
    transition: 0.3s;
}

/* Fokus Effekt (Grüner Rand) */
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(0, 200, 135, 0.2);
}

/* Login/contact-box: make inputs white while editing for clarity */
.contact-box .form-control {
    background-color: rgba(0,0,0,0.45); /* default dark look in the box */
    color: #fff;
}

.contact-box .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.contact-box .form-control:focus {
    background-color: #ffffff; /* white while editing */
    color: #071226; /* dark text for readability */
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 200, 135, 0.12);
}

.contact-box .form-control:focus::placeholder {
    color: rgba(7,18,38,0.45);
}

/* Textarea (Nachricht) */
textarea.form-control {
    resize: vertical; /* Nur vertikal verstellbar */
    min-height: 150px;
}

/* Erfolgsmeldung (Versteckt) */
#form-message {
    display: none;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

#form-message h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.5rem; }

@media (max-width: 768px) {
    .contact-box {
        padding: 25px;
        width: 100%;
    }
}


/* =========================================
   14. TEAM
   ========================================= */

/* Grid Layout Container */
.team-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

.team-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    text-align: center;
    margin-bottom: 40px;
}

/* Der Kreis Container */
.image-circle-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px;
    cursor: pointer;
    background-color: transparent;
}

/* Das Bild selbst */
.image-circle-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Das Grüne Overlay */
.hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: height 0.4s ease-in-out;
    overflow: hidden;
    padding: 0;
}

/* Der Text im Overlay */
.hover-text {
    color: #fff;
    font-style: italic;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    line-height: 1.4;
    margin: 0;
    padding: 20px;
    width: 100%;
}

/* HOVER EFFEKTE */
.image-circle-wrapper:hover .hover-overlay {
    height: 100%;
}

.image-circle-wrapper:hover .hover-text {
    opacity: 1;
    transform: translateY(0);
}

.image-circle-wrapper:hover img {
    transform: scale(1.1);
}

/* Statischer Bereich unter dem Bild */
.member-static-info h3 {
    color: #fff;
    margin: 0;
    font-size: 1.6rem;
}
.member-static-info p {
    color: #ccc;
    margin: 5px 0 20px 0;
    font-size: 1rem;
}

/* =========================================
   HILFE-BUBBLE (Global verfügbar)
   ========================================= */
.help-bubble {
    width: 60px;
    height: 60px;
    background: #00d4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.help-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

/* =========================================
   GLASS CARDS & TIMELINE
   ========================================= */
.glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-filter) !important;
    -webkit-backdrop-filter: var(--glass-filter) !important;
    border: var(--glass-border) !important;
    border-radius: 40px;
    padding: 60px;
    box-shadow: var(--glass-shadow);
}

/* Projekt Titel Style */
.project-title {
    margin-bottom: 0;
    font-weight: 400;
}

.project-title span {
    font-weight: 700;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 50px;
    margin-top: 40px;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
    padding-left: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Verbindungslinie */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 30px;
    bottom: -10px;
    width: 2px;
    background: #fff;
    z-index: 1;
}

.timeline-item:last-child::before {
    display: none;
}

/* Nach Active: gestrichelte Linie für folgende Items (visuelles Signal) - nun in dezenterem Grauton wie 'pending' */
.timeline-item.active::before {
    background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.28), rgba(255,255,255,0.28) 5px, transparent 5px, transparent 10px);
    background-color: transparent;
}

/* Pending: dezenter gestrichelter Grauton */
.timeline-item.pending::before {
    background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.28), rgba(255,255,255,0.28) 5px, transparent 5px, transparent 10px);
    background-color: transparent;
}

/* Der Kreis (Node) */
.timeline-item::after {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    z-index: 2;
    border: 2px solid #fff;
}

/* Done: Ausgefüllter weisser Kreis */
.timeline-item.done::after {
    background: #fff;
}

/* Active: Grüner Punkt in weissem Ring */
.timeline-item.active::after {
    background: #00ff88;
    border: 4px solid #fff;
    width: 24px;
    height: 24px;
    left: -27px;
    top: 3px;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

/* Pending: Hohler, blasser Kreis */
.timeline-item.pending::after {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.45);
    opacity: 0.85;
}

/* Pending: Text und Datum in dezenterem Grauton */
.timeline-item.pending .timeline-content {
    opacity: 0.75;
}

.timeline-item.pending .timeline-title {
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}

.timeline-item.pending .timeline-date {
    color: rgba(255,255,255,0.42);
    font-weight: 400;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: none;
}

.timeline-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Dashboard Specific Glass Card */
.project-card {
    display: block;
    text-decoration: none;
    color: white;
}

.project-card.glass-card {
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* =========================================
   MODAL Z-INDEX FIX (fixes help-bubble modal being unclickable under header)
   ========================================= */
/* Force modal and backdrop above header/hamburger which have high z-index in layout */
.modal-backdrop {
    z-index: 3050 !important;
    pointer-events: auto !important; /* allow clicking on backdrop if needed */
}

.modal {
    z-index: 3060 !important;
    pointer-events: auto !important;
}

/* Make sure modal dialog accepts pointer events */
.modal .modal-dialog {
    pointer-events: auto;
}

/* Safety: if some element unexpectedly overlays the page, ensure modal overlay sits above it */
body.modal-open {
    overflow: hidden; /* keep background fixed while modal open */
}

/* Minimal modal defaults (used when Bootstrap CSS isn't loaded). Keeps modal hidden by default
   and allows a JS fallback to toggle visibility. */
.modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3060 !important;
    max-width: 900px;
    width: calc(100% - 40px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.modal.show {
    display: block;
}

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 3050 !important;
}

.modal-backdrop.show {
    display: block;
}

/* Make sure modal dialog accepts pointer events */
.modal .modal-dialog {
    pointer-events: auto;
}

/* Responsive Footer Anpassung */
@media (max-width: 991px) {
    /* Auf Tablets und Handys: Alles untereinander und zentriert */
    #global-footer .container > div {
        flex-direction: column;
        justify-content: center !important;
        text-align: center !important;
    }
    
    #global-footer div[style*="text-align: left"],
    #global-footer div[style*="text-align: right"] {
        text-align: center !important;
        align-items: center !important;
        margin-bottom: 30px;
    }
}

