/* =========================================================
   Sewer-Tech Academy – gemeinsames Stylesheet
   Wird von allen Seiten eingebunden: <link rel="stylesheet" href="sta.css">
   Aufbau:
     1. Tokens & Basis
     2. Navigation & Mobilmenü
     3. Hero (Start- und Unterseiten)
     4. Buttons
     5. Sektions-Bausteine (Titel, Eyebrow, Reveal)
     6. Info-Karten (Startseite)
     7. Slider & Testimonials
     8. Partner-Logos
     9. FAQ-Akkordeon
    10. Unterseiten-Komponenten
    11. Footer
    12. Media Queries
   ========================================================= */

:root {
    --bg-dark: #131313;
    --bg-card: #1c1c1c;
    --bg-input: #ffffff;
    --text-light: #f4f4f9;
    --text-muted: #abb8c3;
    --primary-blue: #51a4de;
    --primary-hover: #3d8ec4;
    --accent-bright: #6ce5e8;
    --nav-muted: rgb(179, 177, 177);
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigationsleiste */
.navbar {
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px 40px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled,
.navbar.menu-open {
    background: #0a0a0a;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.nav-logo img {
    height: 45px;
    display: block;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-logo img {
    height: 35px;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar ul li {
    margin: 0 20px;
}

.navbar ul li a {
    color: var(--nav-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: var(--primary-blue);
}

.nav-cta {
    justify-self: end;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue) !important;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--primary-blue);
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(81, 164, 222, 0.4);
}

/* Burger-Menü */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: 0.3s;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Sektion */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(35%);
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: -1px;
    right: -1px;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding: 20px;
    text-align: center;
    max-width: 1000px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .container>* {
    animation: fadeInUp 1s ease-out forwards;
}

h1.brand-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
}

.brand-glow {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-blue);
    text-shadow: 0 0 10px rgba(81, 164, 222, 0.6);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-light);
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation-delay: 0.3s;
}

.hero h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0 0 35px 0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    animation-delay: 0.5s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation-delay: 0.7s;
}

.btn {
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(81, 164, 222, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 164, 222, 0.6);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Scroll-Down Pfeil */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease;
}

.scroll-down::after {
    content: "";
    width: 15px;
    height: 15px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
    margin-top: -5px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Info Sektion - Mit grauer Kante & lückenloser Randeinfassung */
.info-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-card {
    position: relative;
    background-color: #1a1a1a;
    /* Dunkler Grundton fängt Lichtblitze an den Kanten ab */
    background-size: cover;
    background-position: center;
    padding: 50px 40px;
    border-radius: 10px;
    border: 3px solid #383838;
    /* Stabile graue Kante */
    box-shadow: inset 0 0 0 1px #222222;
    /* Innerer Schnittschutz gegen helles Pixel-Bleeding */
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    z-index: 1;
    box-sizing: border-box;
    background-clip: padding-box;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.info-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(180deg, rgba(19, 19, 19, 0.72) 0%, rgba(19, 19, 19, 0.96) 100%);
    z-index: -1;
    border-radius: inherit;
    transition: background 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: inset 0 0 0 1px var(--primary-blue), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.info-card:hover::before {
    background: linear-gradient(180deg, rgba(19, 19, 19, 0.52) 0%, rgba(19, 19, 19, 0.88) 100%);
}

.info-card h2 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.2;
}

.info-card p {
    color: var(--text-light);
    opacity: 0.9;
    font-size: 1rem;
    margin: 0 0 35px 0;
    line-height: 1.6;
}

.info-card .card-btn {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    width: fit-content;
}

.info-card .card-btn:hover {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(81, 164, 222, 0.4);
}

/* Slider Sektion & Testimonials Common Config */
.slider-section,
.testimonials-section {
    background-color: #0d0d0d;
    padding: 80px 0;
}

.slider-container {
    position: relative;
}

.slider-section h2,
.testimonials-section h2,
.section-title {
    margin: 0 0 30px 40px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-light);
}

.slider-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 40px 40px 40px;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slider-wrapper:active {
    cursor: grabbing;
}

.testimonial-slider-wrapper {
    padding-top: 170px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(30, 30, 30, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.slider-container:hover .slider-nav {
    opacity: 1;
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.course-card,
.testimonial-card {
    flex: 0 0 auto;
    width: 340px;
    background-color: var(--bg-card);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card {
    overflow: hidden;
}

.testimonial-card {
    overflow: visible;
}

.course-card:hover,
.testimonial-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.slider-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.pagination-dot:hover {
    transform: scale(1.2);
}

.pagination-dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

.course-img-wrapper {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
}

.course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-content h3 {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: var(--text-light);
    min-height: 56px;
    display: flex;
    align-items: center;
}

.course-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.course-price {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

.course-btn {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.course-btn:hover {
    background-color: var(--primary-blue);
    color: white;
}

.testimonial-card {
    padding: 0 30px 40px 30px;
    text-align: center;
    align-items: center;
}

.testimonial-img-wrapper {
    width: 226px;
    height: 226px;
    border-radius: 50%;
    overflow: hidden;
    margin-top: -150px;
    margin-bottom: 25px;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border: 4px solid var(--primary-blue);
    background-color: var(--bg-card);
}

.testimonial-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    width: 100%;
}

.testimonial-content h4 {
    margin: 0 0 4px 0;
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 600;
}

.testimonial-content .company {
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
}

.testimonial-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    font-style: italic;
    flex-grow: 1;
    line-height: 1.7;
    text-align: justify;
    text-align-last: center;
}

/* Mentoren & Partner-Logos */
.partner-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.partner-text {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    opacity: 0.75;
}

.partner-grid img {
    max-height: 50px;
    max-width: 160px;
    object-fit: contain;
    transition: opacity 0.3s;
}

.partner-grid img:hover {
    opacity: 1;
}

/* FAQ Sektion */
.faq-section {
    padding: 100px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-container {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 22px 30px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer-content {
    padding: 0 30px 25px 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Mobile Login Sektion */
.mobile-auth-section {
    display: none;
    padding: 30px 20px;
    background-color: #0d0d0d;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

/* Footer Sektion */
.footer {
    background-color: #070707;
    border-top: 1px solid var(--border-color);
    padding: 80px 40px 30px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 20px 0;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-logo img {
    height: 45px;
}

.footer-links h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: var(--primary-blue);
}

.newsletter-box h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0 0 15px 0;
}

.newsletter-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 20px 0;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-input);
    border: 1px solid #ccc;
    color: #333;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 0.95rem;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.newsletter-form button:hover {
    background-color: #3d8ec4;
}

.newsletter-legal {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: 12px;
    line-height: 1.4;
}

.newsletter-legal a {
    color: var(--text-muted);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cert-seal img {
    height: 90px;
    object-fit: contain;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
    border-color: var(--primary-blue);
}

.copyright {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

.copyright a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

/* =========================================================
   10. Unterseiten-Komponenten
   ========================================================= */

/* Hero-Variante für Unterseiten: flacher als die Startseite */
.hero.hero-sub {
    height: 72vh;
    min-height: 540px;
}

/* Eyebrow über Sektionstiteln */
.section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 14px;
}

/* Der Basis-.section-title hat margin-left 40px (Slider-Kontext).
   Auf Unterseiten sitzt er in einem Container, deshalb zurücksetzen. */
.page-section .section-title,
.section-title.flush {
    margin-left: 0;
}

/* Standard-Sektion mit Innenabstand */
.page-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-section.narrow {
    max-width: 900px;
}

.page-section.tight {
    padding-top: 0;
}

/* Dunkles Band, wie bei Slider/Testimonials */
.band-dark {
    background-color: #0d0d0d;
}

.band-dark .page-section {
    padding-top: 90px;
    padding-bottom: 90px;
}

/* Zentrierter Sektionskopf */
.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px auto;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
}

/* Sanftes Einblenden beim Scrollen */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Zweispaltiges Text-Layout --- */
.split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split.even {
    grid-template-columns: 1fr 1fr;
}

.prose p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 0 20px 0;
}

.prose p strong {
    color: var(--text-light);
    font-weight: 600;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* --- Säulen-Karten (Werte, Argumente) --- */
.pillar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pillar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-blue);
    border-radius: 6px;
    padding: 24px 28px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pillar:hover {
    transform: translateX(5px);
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.pillar h3 {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.pillar p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Zitat-Block --- */
.quote-block blockquote {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-light);
    position: relative;
    padding-top: 40px;
}

.quote-block blockquote::before {
    content: "\201E";
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 5rem;
    line-height: 1;
    color: var(--primary-blue);
    opacity: 0.5;
    font-family: 'JetBrains Mono', monospace;
}

.quote-author {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.quote-author strong {
    display: block;
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
}

.quote-author span {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- Werte-Raster (2 bis 4 Spalten) --- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.value-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.value-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.value-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 35px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.value-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card h3 {
    font-size: 1.2rem;
    margin: 0 0 12px 0;
    color: var(--text-light);
    font-weight: 600;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

/* --- Kurs-Raster (statt Slider, für die Schulungsübersicht) --- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* .course-card kommt aus dem Slider-Bereich; im Raster volle Breite */
.course-grid .course-card {
    width: auto;
    flex: 1 1 auto;
}

/* --- Ablauf-Schritte (echte Reihenfolge, deshalb nummeriert) --- */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: step;
    max-width: 820px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 25px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: start;
}

.step:last-child {
    border-bottom: none;
}

.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: var(--primary-blue);
    line-height: 1.2;
}

.step h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.step p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* --- Gegenüberstellung: vorher / nachher --- */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.compare-col {
    border-radius: 10px;
    padding: 35px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

.compare-col.highlight {
    border-color: var(--primary-blue);
}

.compare-col h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.compare-col.highlight h3 {
    color: var(--primary-blue);
}

.compare-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compare-col li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-left: 24px;
    margin-bottom: 14px;
    position: relative;
}

.compare-col li:last-child {
    margin-bottom: 0;
}

.compare-col li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.3);
}

.compare-col.highlight li::before {
    content: "+";
    color: var(--primary-blue);
    font-weight: 600;
}

/* --- Angebots-/Paketkarten --- */
.join-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.join-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.join-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.join-card h3 {
    font-size: 1.5rem;
    margin: 0 0 25px 0;
    color: var(--text-light);
    font-weight: 700;
}

.join-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    flex-grow: 1;
}

.join-card ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-left: 26px;
    margin-bottom: 14px;
    position: relative;
}

.join-card ul li::before {
    content: "+";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.join-card .card-btn {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
    margin-top: auto;
}

.join-card .card-btn:hover {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(81, 164, 222, 0.4);
}

/* --- Zertifikats-Band --- */
.cert-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.cert-container img {
    height: 140px;
    object-fit: contain;
    flex-shrink: 0;
}

.cert-copy h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: var(--text-light);
    font-weight: 600;
}

.cert-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 480px;
}

/* --- Abschluss-CTA --- */
.cta-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 60px 40px;
    text-align: center;
}

.cta-box h2 {
    font-size: 2rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 0 35px 0;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tastatur-Fokus sichtbar halten */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 3px;
}

/* Media Queries für Mobilgeräte */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    h1.brand-title {
        font-size: 3.2rem;
    }

    .faq-container,
    .info-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1.brand-title {
        font-size: 2.4rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .hero h3 {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .navbar {
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
    }

    .navbar ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a0a0a;
        padding: 20px 0;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        border-bottom: 1px solid var(--border-color);
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .navbar ul.active {
        opacity: 1;
        visibility: visible;
    }

    .navbar ul li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .navbar>.nav-cta {
        display: none;
    }

    .mobile-auth-section.mobile-only {
        display: block;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .slider-section,
    .testimonials-section {
        padding: 60px 0 60px 20px;
    }

    .course-card,
    .testimonial-card {
        width: 290px;
    }

    .testimonial-card {
        padding-top: 0;
    }

    .testimonial-img-wrapper {
        width: 190px;
        height: 190px;
        margin-top: -125px;
    }

    .testimonial-slider-wrapper {
        padding-top: 140px;
    }
}
/* --- Media Queries für die Unterseiten-Komponenten --- */
@media (max-width: 992px) {

    .split,
    .split.even {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .value-grid,
    .value-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .join-grid {
        grid-template-columns: 1fr;
    }

    .compare-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .hero.hero-sub {
        height: auto;
        min-height: 0;
        padding: 140px 0 90px 0;
    }

    .hero.hero-sub .scroll-down {
        display: none;
    }

    .page-section {
        padding: 70px 20px;
    }

    .band-dark .page-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .value-grid,
    .value-grid.cols-3,
    .value-grid.cols-2,
    .course-grid {
        grid-template-columns: 1fr;
    }

    .quote-block blockquote {
        font-size: 1.3rem;
    }

    .cert-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .step {
        grid-template-columns: 50px 1fr;
        gap: 15px;
    }

    .cta-box {
        padding: 45px 25px;
    }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {

    .hero .container>*,
    .scroll-down {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Rechtliche Links in der Fußzeile --- */
.footer-legal-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-top: 30px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--primary-blue);
}

/* --- Preiskarten --- */
.join-card.featured {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 1px var(--primary-blue), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.join-card .badge {
    display: inline-block;
    align-self: flex-start;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    padding: 4px 10px;
    margin-bottom: 18px;
}

.join-card .price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.4rem;
    color: var(--text-light);
    line-height: 1.1;
    margin: 0 0 4px 0;
}

.join-card .price-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 28px 0;
}

/* --- Preistabelle für Einzelkurse --- */
.price-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.price-table th {
    text-align: left;
    padding: 18px 25px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.price-table td {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
    vertical-align: middle;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tbody tr {
    transition: background-color 0.2s;
}

.price-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.price-table .course-name {
    color: var(--text-light);
    font-weight: 500;
}

.price-table .amount {
    color: var(--text-light);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.price-table td.right {
    text-align: right;
}

/* Tabelle auf schmalen Displays als Kartenliste */
.price-table-wrap {
    overflow-x: auto;
}

/* --- Kontaktangaben --- */
.contact-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 35px;
}

.contact-card + .contact-card {
    margin-top: 20px;
}

.contact-card h3 {
    margin: 0 0 18px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.contact-card p {
    margin: 0 0 8px 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-card a {
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(81, 164, 222, 0.5);
    transition: color 0.2s, border-color 0.2s;
}

.contact-card a:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row span:last-child {
    color: var(--text-light);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

/* --- Offene Stellen --- */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.job {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 28px 32px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.job:hover {
    border-color: var(--primary-blue);
    transform: translateX(5px);
}

.job h3 {
    margin: 0 0 5px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
}

.job p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.job .course-btn {
    flex-shrink: 0;
}

/* Hinweis, wenn keine Stellen offen sind */
.empty-note {
    background-color: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 45px 35px;
    text-align: center;
    color: var(--text-muted);
}

.empty-note strong {
    display: block;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .job {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .price-table th,
    .price-table td {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .contact-card {
        padding: 28px 22px;
    }
}

/* --- Kategorie-Filter für den Kurskatalog --- */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
}

.filter-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-tab:hover {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-tab.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(81, 164, 222, 0.35);
}

.filter-count {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 25px 0;
}

/* Karten, die der Filter ausblendet */
.course-card[hidden] {
    display: none;
}

/* Produktschulungen: schlankere Karten ohne Preis */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        gap: 8px;
        margin-bottom: 32px;
    }

    .filter-tab {
        font-size: 0.85rem;
        padding: 9px 15px;
    }
}
