/* Local Fonts */
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap;
    src: url('/fonts/inter-v19-latin-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('/fonts/inter-v19-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('/fonts/inter-v19-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('/fonts/inter-v19-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('/fonts/lora-v36-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap;
    src: url('/fonts/lora-v36-latin-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Lora'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('/fonts/lora-v36-latin-600.woff2') format('woff2');
}

:root {
    --primary-bg: #0A2342;
    --primary-text: #F7FAFC;
    --accent: #4FD1C5;
    --accent-gold: #D69E2E;
    --header-bg: rgba(10, 35, 66, 0.85);
}
html { scroll-behavior: smooth; }
body {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}
h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.hero-section { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
#network-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.content-wrapper { position: relative; z-index: 1; }
main > section {
    position: relative;
    z-index: 2;
    background-color: var(--primary-bg);
}
main > section.bg-transparent-overlay {
    background-color: rgba(10, 35, 66, 0.2);
}
.line { height: 1px; background: linear-gradient(to right, transparent, var(--accent), transparent); opacity: 0.3; margin: 2rem 0; }
.cta-button { background-color: var(--accent); color: var(--primary-bg); transition: all 0.3s ease; }
.cta-button:hover { background-color: #FFFFFF; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(79, 209, 197, 0.2); }
.secondary-button { border: 1px solid var(--accent); color: var(--accent); transition: all 0.3s ease; }
.secondary-button:hover { background-color: var(--accent); color: var(--primary-bg); }
.lang-switcher button.active { color: var(--accent); font-weight: 600; }

.animated-text-reveal {
    opacity: 0;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0.2em 0;
}
.visible .animated-text-reveal {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(0);
}
.content-section { opacity: 0; transform: translateY(40px); transition: opacity 1s ease-out, transform 1s ease-out; }
.content-section.visible { opacity: 1; transform: translateY(0); }
.cursor { width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.2s; }
.cursor-grow { width: 40px; height: 40px; background-color: rgba(79, 209, 197, 0.2); }
.contact-tab.active { border-color: var(--accent); background-color: rgba(79, 209, 197, 0.1); }
.contact-form-panel { display: none; }
.contact-form-panel.active { display: block; }
header.scrolled { background-color: var(--header-bg); backdrop-filter: blur(5px); }
#d3-network-container { min-height: 80vh; margin-top: -2rem; margin-bottom: -2rem; }
#d3-network-container svg { font-family: 'Inter', sans-serif; }

select, input, textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(79, 209, 197, 0.3);
    padding: 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}
#d3-theme-selector {
    width: 100%;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
}
select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.3);
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #A0AEC0;
}
.scroll-down-arrow {
    width: 60px; height: 60px; border: 1px solid rgba(79, 209, 197, 0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: pulse 2s infinite; transition: background-color 0.3s;
}
.scroll-down-arrow:hover { background-color: rgba(79, 209, 197, 0.1); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 209, 197, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(79, 209, 197, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 209, 197, 0); }
}
.program-card {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}
.program-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.info-box {
    background: rgba(79, 209, 197, 0.05);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    display: none;
}
#cookie-banner.visible {
    transform: translateY(0);
}


/* ===== ANPASSUNGEN (vom letzten Mal) ===== */

/* 1. Abstand beim Netzwerkdiagramm reduzieren (Desktop) */
@media (min-width: 768px) {
    #d3-network-container {
        min-height: 70vh;
    }
}

/* 2. Innenabstand für Formularfelder vergrößern */
form select, 
form input[type="text"], 
form input[type="email"], 
form input[type="tel"], 
form input[type="number"], 
form textarea {
    padding: 1rem 1.25rem;
}


/* 3. Layout für Programm-Pakete mit CSS Subgrid (Desktop) */
@media (min-width: 1024px) {
    .programs-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        /* Definition der Zeilen-Layouts für das übergeordnete Grid */
        grid-template-rows: auto auto 1fr auto auto; /* 5 Zeilen: Titel, Untertitel, Liste (flexibel), "Ideal für"-Titel, "Ideal für"-Text */
    }

    .program-card {
        /* Jede Karte wird zu einem Subgrid-Container */
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 5; /* Jede Karte überspannt alle 5 definierten Zeilen */
        height: auto; 
    }

    .program-card-content {
        /* Dieser Wrapper wird ebenfalls zu einem Subgrid */
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 5;
    }

    .program-card-ideal-for {
        /* Dieser Block belegt jetzt die letzten beiden Zeilen des Grids */
        grid-row: 4 / span 2;
        padding-top: 1.5rem; 
        border-top: 1px solid rgba(79, 209, 197, 0.2);
        margin-top: 1.5rem;
    }
}