/* CSS Code */
:root {
    --primary-color: #125e84;
    --secondary-color: #032835;
    --background-color: #f0f4f8;
    --text-color: #333;
    --white: #ffffff;
    --font-family: 'Segoe UI', 'Roboto', 'Helvetica', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 18px;
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    line-height: 1.25;
}

hr {
    height: 2px;
    background-color: var(--background-color);
    border: none;
    margin: 10px 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.75);
    padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px) brightness(1.8);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    display: block;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 20px;
    padding: 10px 0;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

#nav-apply {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 5px;
}


/* Hero Section */
.hero {
    background: linear-gradient(90deg, rgba(3, 40, 53, 0.7) 50%, rgba(18, 94, 132, 0.3)) 100%;
    color: var(--white);
    padding: 180px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 550px;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: -1;
}

.hero h1 {
    mix-blend-mode: difference;
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #1a7fa8;
    transform: translateY(-3px);
}

/* General Section Styling */
.section {
    padding: 60px 0;
    scroll-margin-top: 70px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    position: relative;
    line-height: 1.25;
}

/* .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
} */

.text-block p {
    margin-bottom: 15px;
}
.text-block h3 {
    margin-bottom: 20px;
}


/* Intro Section */

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.intro-content-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.intro-content-card {
    padding: 30px 35px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.intro-content h2 {
    font-size: 2.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.1;
}

.intro-content span {
    position: absolute;
    top: -15px;
    left: 35px;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--white);
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 400;
}

.intro-content p {
    margin-bottom: 15px;
}

.intro-content ul {
    list-style-type: none;
    padding-left: 0;
}

.intro-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.intro-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.intro-content-img img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    min-height: 350px;
    max-height: 500px;
    object-fit: cover;
}


/* Preview Section */
.preview-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.preview-card {
    position: relative;
    height: 100%;
    min-height: 250px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 30px;
    flex: 1 1 400px; /* Flexbox für Responsive Verhalten */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end
}
.preview-card .preview-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    top: 0;
    left: 0;
}
.preview-card h3 {
    color: var(--white);
    font-size: 30px;
    text-shadow: 0px 0px 20px rgba(0,0,0,0.75);
}
.preview-card .cta-button {
    font-size: 32px;
    font-weight: 400;
    line-height: 0.5;
    padding: 10px 20px 20px 20px;
}



/* Apply Section */
.apply-section {
    background-color: var(--secondary-color);
    color: var(--white);
    margin-top: 60px;
}

.apply-section .section-title {
    color: var(--white);
}

.apply-section .section-title::after {
    background-color: var(--white);
}

.apply-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.apply-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: #000;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
}

.footer a {
    color: var(--white);
}


.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}




.responsive-table {
    border-radius: 8px;
}
/* ---------------------------------- */
/* RESPONSIVE SCROLL CONTAINER */
/* ---------------------------------- */
.table-scroll-container {
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    border: 1px solid var(--border-color); /* Rahmen um den Scroll-Bereich */
    border-radius: 8px;
}

/* Tabellen-Stile */
.responsive-table table {
    width: 100%;
    min-width: 800px; /* Erzwingt Scrollen auf kleinen Geräten */
    border-collapse: collapse;
    background-color: var(--white);
}

.responsive-table th, 
.responsive-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--border-color);
}

/* Header-Stile */
.responsive-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
}

/* Body-Stile */
.responsive-table tr:nth-child(even) {
    background-color: #f7f7f7; /* Leichter Streifen-Effekt */
}

.responsive-table td {
    color: var(--text-color);
}

/* Stil für den "Zertifikat/Zulassung" Untertext */
.responsive-table .type {
    display: block;
    font-size: 0.8em;
    color: var(--primary-color); /* Akzentfarbe für den Untertext */
    margin-top: 3px;
    font-weight: normal;
}

.responsive-table td:first-child {
    /* Die Norm-Spalte soll auffälliger sein */
    font-weight: bold;
    color: var(--secondary-color);
    line-height: 1.25;
}


.ausbildung-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 100px 0;
    align-items: center;
}

.ausbildung-grid .section-title {
    text-align: left;
    font-size: 50px;
    margin-bottom: 0;
}



/* Responsive Design */
@media(max-width: 768px) {
    
    h1,h2,h3,h4,h5,h6 {
        hyphens: auto;
    }


    .hero h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .navbar {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 15px;
    }
    .grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    h2 {
        font-size: 1.5em;
    }

    .hero {
        padding-top: 220px;
    }

    .ausbildung-grid {
        grid-template-columns: 1fr;
    }

}