:root {
            --rci-color: #00939d;
        }

        html, body {
            height: 100%;
            margin: 0;
            display: flex;
            flex-direction: column;
        }

        main.content-wrapper {
            flex: 1 0 auto;
        }

        body {
            font-family: 'Inter', sans-serif;
            color: #333;
            line-height: 1.6;
            padding-top: 90px;
        }

        header {
            position: fixed;
            top: 0;
            width: 100%;
            height: 90px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(6px);
            padding: 0.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            z-index: 1000;
        }

            header nav {
                margin-left: auto;
                margin-right: 50px;
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                gap: 2rem;
                justify-content: center;
            }

                header nav a,
                header nav select {
                    text-decoration: none;
                    color: #333;
                    font-weight: 600;
                    font-size: 1.2rem;
                    transition: color 0.3s ease;
                    cursor: pointer;
                    white-space: nowrap;
                }

                    header nav a:hover {
                        color: var(--rci-color);
                    }

        .logo img {
            height: 70px;
        }

        /* --- Burger-Menü Button --- */
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 2rem;
            cursor: pointer;
            margin-left: auto;
            margin-right: 50px;
            color: #000;
        }

        @media (max-width: 900px) {
            header nav {
                display: none;
                flex-direction: column;
                align-items: flex-start;
                background: #fff;
                position: absolute;
                top: 90px;
                right: 0;
                width: 220px;
                box-shadow: 0 4px 12px rgba(0,0,0,0.1);
                padding: 1rem;
            }

                header nav.open {
                    display: flex;
                }

            .menu-toggle {
                display: block;
            }
        }

        h2 {
            text-align: center;
            margin-bottom: 2rem;
            color: var(--rci-color);
            font-size: 2.5rem;
            font-weight: 700;
            position: relative;
            z-index: 1;
        }

            h2::after {
                content: "";
                display: block;
                width: 180px;
                height: 3px;
                background-color: #fff;
                margin: 0.5rem auto 1.5rem; /* mehr Abstand unten */
            }


        h3 {
            color: var(--rci-color); /* RCI-Farbe für zweite Ebene */
            font-weight: 700; /* Fett */
            font-size: 1.6rem;
        }

        h4 {
            color: grey;
            font-weight: 700;
            font-size: 1.2rem;
            text-align: left; /* Überschrift links */
        }

            h4::after {
                content: "";
                display: block;
                width: 180px; /* feste Länge */
                height: 1px; /* Strichdicke */
                background-color: white;
                margin: 0.4rem 0 1rem 0; /* kein auto → Strich linksbündig */
            }        /* --- Hintergrund für alle Sections --- */
        .section {
            position: relative;
            background: url('background.png') no-repeat center/cover;
            color: #fff;
            display: none;
            width: 100%;
            flex: 1;
            padding: 4rem 2rem;
            box-sizing: border-box;
        }

            .section::after {
                content: '';
                position: absolute;
                inset: 0;
                background: rgba(0, 0, 0, 0.15); /* abgedunkelter Hintergrund */
                z-index: 0;
            }

            .section > .section-content {
                max-width: 1100px;
                margin: auto;
                position: relative;
                z-index: 1;
            }

            .section.active {
                display: block;
            }

        .hero {
            min-height: calc(100vh - 40px -90px -2px);
            height: auto;
        }

        .hero-content {
            position: absolute;
            top: 45%;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1;
            width: 80%;
            padding: 0 1rem;
            text-align: center;
            color: #fff;
            opacity: 0;
            /*animation: flyUp 2.5s ease-out forwards;*/
            animation: fadeIn 2.5s ease-out forwards; /* statt flyUp */
            animation-delay: 2s;
            animation-play-state: paused;
        }

        @keyframes flyUp {
            0% {
                opacity: 0;
                top: 100%;
            }

            100% {
                opacity: 1;
                top: 40%;
            }
        }

        @keyframes fadeIn {
            0% {
                opacity: 0;
            }

            100% {
                opacity: 1;
            }
        }

        /* Terminal Block */
        .terminal {
            position: absolute;
            top: 30%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: var(--rci-color);
            font-family: monospace;
            font-size: 6rem; /* 3x größer */
            font-weight: 700; /* fett */
            z-index: 2;
            background: transparent;
            padding: 1rem 2rem;
            border-radius: 6px;
            text-align: center;
        }

        /* Terminal soll gleiche Breite haben wie hero-content, wenn Burger-Menü aktiv ist */
        header nav.open ~ .hero .terminal {
            width: 80%; /* gleiche Breite wie hero-content */
            max-width: 1100px; /* optional Begrenzung */
            text-align: center;
        }

        .prompt {
            color: var(--rci-color);
            font-weight: 700;
        }

        .cursor {
            display: inline-block;
            width: 14px;
            color: var(--rci-color);
            font-weight: 700;
            animation: blink 0.8s infinite;
        }

        @keyframes blink {
            0%, 50% {
                opacity: 1;
            }

            50.1%, 100% {
                opacity: 0;
            }
        }

        /* Hero Text */
        .hero .welcome-text {
            font-size: 3rem;
            margin: 0.5rem 0;
            color: #fff;
        }

        .hero .subline {
            font-size: 1.5rem;
            margin-top: 0.5rem;
            line-height: 1.4;
            color: #fff;
        }

        .subline .highlight {
            color: #fff;
            font-weight: 600;
        }

        .hero-separator {
            border: none;
            border-top: 2px solid #fff;
            width: 60%;
            margin: 1.5rem auto;
            opacity: 0.7;
        }

        .no-underline::after {
            content: none; /* entfernt den Strich */
        }

        .cards {
            display: grid;
            gap: 2rem;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }

        .card {
            background: rgba(255,255,255,0.9);
            border-radius: 12px;
            padding: 2rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s;
            text-align: center;
            color: #333;
        }

            .card:hover {
                transform: translateY(-5px);
            }

            .card img {
                max-width: 150px;
                margin-bottom: 1rem;
            }

            .card a {
                color: var(--rci-color);
                font-weight: 600;
                text-decoration: none;
            }

                .card a:hover {
                    text-decoration: underline;
                }

        .legal-notice {
            margin-top: 2rem;
            font-size: 0.85rem;
            color: #eee;
            line-height: 1.4;
        }

        footer {
            height: 40px;
            text-align: center;
            padding: 0.5rem;
            background: #f8f9fa;
            font-size: 0.9rem;
            color: #666;
        }

            footer a {
                color: var(--rci-color);
                text-decoration: none;
                font-weight: 600;
            }

                footer a:hover {
                    text-decoration: underline;
                }

        /* Alle Links in RCI-Farbe darstellen */
        a {
            color: var(--rci-color);
            font-weight: 600;
            text-decoration: none;
        }

            a:hover {
                text-decoration: underline;
            }

            a.disabled {
                color: #999;
                text-decoration: none;
                cursor: default;
                pointer-events: none;
            }

        /* Trenner automatisch einfügen */
        footer a::before {
            content: "|";
            margin: 0 0.75rem;
            color: #999;
        }

        .kontakt-info {
            font-size: 1.1rem;
            line-height: 1.8;
        }

            .kontakt-info i {
                color: var(--rci-color);
                margin-right: 8px;
            }

            .kontakt-info a {
                color: var(--rci-color);
                font-weight: 600;
                text-decoration: none;
            }

                .kontakt-info a:hover {
                    text-decoration: underline;
                }

        .content-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .social-icon {
            margin-left: 8px; /* Abstand zwischen Name und Icon */
            color: var(--rci-color); /* gleiche Farbe wie andere Links */
        }

        /* Schriftgrößen verkleinern, wenn Viewport-Breite weniger als 1500px */
        @media (max-width: 1500px) {
            .terminal {
                font-size: 3rem;
                width: 85%;
            }

            .hero .welcome-text {
                font-size: 2rem;
            }

            .hero .subline {
                font-size: 1.2rem;
            }

            footer {
                font-size: 0.8rem; /* kleiner als Standard (0.9rem) */
            }
        }

        /* Schriftgrößen verkleinern, wenn Viewport-Breite weniger als 800px */
        @media (max-width: 800px) {
            .terminal {
                font-size: 2rem; /* nochmal verkleinert */
                width: 95%;
            }

            .hero .welcome-text {
                font-size: 1.4rem; /* nochmal verkleinert */
            }

            .hero .subline {
                font-size: 1.0rem; /* kleiner statt 3rem */
            }

            .hero-content {
                width: 90%;
                top: 40%; /* NEU: höher als Standard (45%) */
            }

            .section-content {
                width: 90%;
            }

            footer {
                font-size: 0.7rem; /* kleiner als Standard (0.9rem) */
            }
        }

        /* Kleine Höhe (z. B. Handy im Querformat / Landscape) */
        @media (max-height: 500px) {
            header nav {
                gap: 0.8rem; /* weniger Abstand zwischen Links */
            }

            .terminal {
                font-size: 1.6rem; /* kleiner */
                top: 10%; /* höher setzen */
                width: 95%;
            }

            .hero-content {
                top: 25%; /* etwas tiefer als im Portrait */
                width: 95%; /* mehr Breite nutzen */
            }

            .hero .welcome-text {
                font-size: 1.2rem; /* immer größer als subline */
            }

            h3.subline {
                font-size: 0.9rem; /* kleiner als welcome-text */
                font-weight: 600; /* bleibt aber etwas hervorgehoben */
            }

            p.subline {
                font-size: 0.9rem; /* noch kleiner als h3.subline */
            }

            footer {
                font-size: 0.7rem; /* kleiner als Standard (0.9rem) */
            }

            .hero {
                min-height: 400px;
            }
        }

        /* --- FINAL OVERRIDES: immer Welcome > Subline --- */
        @media (max-height: 500px) {
            .hero .welcome-text {
                font-size: 1.4rem !important; /* größer als Subline */
                line-height: 1.2;
            }

            .hero h3.subline {
                font-size: 1.0rem !important; /* kleiner als Welcome */
                font-weight: 600;
                line-height: 1.3;
            }

            .hero p.subline {
                font-size: 0.9rem !important; /* noch kleiner */
                line-height: 1.5;
            }
        }

/* CSP: ersetzt ehemals inline gesetztes style-Attribut */
.text-center {
    text-align: center;
}
