/* --- Basic CSS Reset & Professional Styling --- */
:root {
    --primary-color: #003366; /* Deep Professional Blue */
    --secondary-color: #FFCC00; /* Accent Gold/Yellow (Hint of German Flag) */
    --dark-grey: #333333;
    --light-grey: #f4f4f4;
    --white-color: #ffffff;
    --text-color: #555555;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

html {
    scroll-behavior: smooth;
}

/* === MODIFICATION START: Added padding-top for fixed header === */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    /* IMPORTANT: This prevents main content from hiding behind the fixed header. */
    /* Adjust '80px' to match your header's height if needed. */
    padding-top: 80px; 
}
/* === MODIFICATION END === */

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

section:nth-of-type(even) {
    background-color: var(--light-grey);
}

/* === MODIFICATION START: Header styles updated for scroll effect === */
/* --- Header & Navigation --- */
.header {
    background-color: transparent; /* Initially transparent */
    padding: 15px 0;
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    left: 0; /* Added for consistency */
    width: 100%; /* Added for consistency */
    z-index: 1000;
    box-shadow: none; /* Initially no shadow */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth animation */
}

/* This new class is added by JavaScript when you scroll */
.header.scrolled {
    background-color: var(--white-color); /* Becomes solid white on scroll */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Adds shadow on scroll */
}
/* === MODIFICATION END === */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.logo span {
    color: var(--secondary-color);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Hamburger menu for mobile */
.menu-toggle { display: none; }

/* --- Hero Section --- */
/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)),
                url('images/index1.png') no-repeat center center/cover;
    color: var(--white-color);
    padding: 150px 0;
    text-align: center;
}


.hero h1 {
    font-size: 48px;
    color: var(--white-color);
    margin-bottom: 20px;
}

.hero h1 span {
     color: var(--secondary-color);
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-color);
}

/* --- What is Ausbildung Section --- */
.ausbildung-intro {
    display: flex;
    align-items: center;
    gap: 50px;
}

.ausbildung-intro .text { flex: 1; }
.ausbildung-intro .image { flex: 1; }
.ausbildung-intro img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.ausbildung-intro h3 { font-size: 24px; margin-bottom: 15px; }

/* --- Benefits Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--white-color);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-card .icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* --- Process Section --- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 55px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -14.5px;
    background-color: var(--white-color);
    border: 4px solid var(--secondary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-item.right::after { left: -14.5px; }

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white-color);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.07);
}

.timeline-content .step {
    font-weight: 700;
    color: var(--secondary-color);
}

/* --- Programs Section --- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.program-card {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.program-card .image-container {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.program-card .content {
    padding: 25px;
}
.program-card h4 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
}
.program-card .stipend {
    font-weight: 600;
    color: #008000; /* Green for money */
    margin-bottom: 15px;
}

/* --- Eligibility & Partner Sections --- */
.two-col-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.col { flex: 1; }
.eligibility-list { list-style: none; padding: 0;}
.eligibility-list li {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.eligibility-list li .icon {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 24px;
}
.partner-logo {
    display: flex;
    align-items: center;
    background: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}
.partner-logo img {
    height: 60px;
    margin-right: 20px;
}

/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    position: relative;
}
.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 100px;
    color: rgba(255, 255, 255, 0.1);
    font-family: 'Times New Roman', serif;
}
.testimonial-card p { font-style: italic; margin-bottom: 20px;}
.testimonial-author { display: flex; align-items: center; }
.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    margin-right: 15px;
}
.author-info h4 { color: var(--white-color); margin: 0 0 5px 0; }
.author-info span { color: var(--secondary-color); font-size: 14px;}

/* --- FAQ Section --- */
.faq-accordion details {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px;
}
.faq-accordion summary {
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* Hide default marker */
    position: relative;
    padding-right: 30px;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 24px;
    color: var(--secondary-color);
}
.faq-accordion details[open] summary::after {
    content: '−';
}
.faq-accordion .faq-content {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    margin-top: 15px;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-grey);
    color: var(--light-grey);
    padding: 60px 0 20px 0;
}
.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.footer h4 { color: var(--white-color); }
.footer a { color: var(--light-grey); text-decoration: none; }
.footer a:hover { color: var(--secondary-color); }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer .social-links a { margin-right: 15px; font-size: 24px; }
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 14px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-links { display: none; } /* Hide links for hamburger */
    .menu-toggle { display: block; /* Show hamburger */ cursor: pointer; font-size: 28px; color: var(--primary-color);}
    .ausbildung-intro { flex-direction: column; }
    .two-col-layout { flex-direction: column; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 18px; }
    .section-title h2 { font-size: 30px; }
    
    .process-timeline::after { left: 15px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 10px; }
    .timeline-item.left, .timeline-item.right { left: 0; }
    .timeline-item::after { left: 5px; }
}

/* ================================================= */
/*          START: COOKIE CONSENT BANNER CSS         */
/* ================================================= */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-grey);
    color: var(--light-grey);
    padding: 25px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none; /* Initially hidden, shown by JS */
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.cookie-consent-banner__text {
    flex-grow: 1;
    max-width: 600px;
    font-size: 15px;
}

.cookie-consent-banner__text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-consent-banner__actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-consent-banner__button {
    padding: 10px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    background: transparent;
    color: var(--white-color);
}

.cookie-consent-banner__button--primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.cookie-consent-banner__button--primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.cookie-consent-banner__button--secondary:hover {
    background-color: var(--white-color);
    color: var(--dark-grey);
    border-color: var(--white-color);
}

/* --- Cookie Settings Modal --- */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
}

.cookie-modal__content {
    background-color: var(--white-color);
    color: var(--text-color);
    padding: 30px 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cookie-modal__content h3 {
    margin-top: 0;
    font-size: 24px;
}

.cookie-modal__category {
    border-bottom: 1px solid var(--light-grey);
    padding: 20px 0;
}
.cookie-modal__category:last-of-type {
    border-bottom: none;
}

.cookie-modal__category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal__category-header h4 {
    margin: 0;
    color: var(--primary-color);
}

.cookie-modal__category p {
    font-size: 14px;
    margin: 10px 0 0 0;
}

.cookie-modal__actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.toggle-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.toggle-switch input:checked + .slider {
    background-color: var(--success-color);
}
.toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
}
.toggle-switch input:disabled + .slider {
    background-color: #e0e0e0;
    cursor: not-allowed;
}
.toggle-switch input:disabled + .slider:before {
    background-color: #f4f4f4;
}
/* ================================================= */
/*           END: COOKIE CONSENT BANNER CSS          */
/* ================================================= */