/* ==========================================
   QUALIFIKATIONEN.CSS (Seitenspezifisch)
   ========================================== */

/* ------------------------------------------
   1. Responsive Overlay-Steuerung
   ------------------------------------------ */

/* Standard: PC-Layout sichtbar, Handy-Overlay aus */
#Handy_overlay {
    display: none;
}

#PC_Overlay {
    display: block;
}

/* Mobile-Layout (<= 700px) */
@media (max-width: 700px) {
    #Handy_overlay {
        display: block;
    }
    #Inhalt_Handy_Quali a {
        font-size: clamp(1.1rem, 4.5vw, 1.35rem) !important;
    }
    #Inhalt_Handy_Quali h1 {
        font-size: clamp(1.4rem, 7vw, 2.2rem) !important;
    }

    /* 2. Links in der Hamburger-Navigation (Menü) vergrößern */
    .navigation ul li a {
        font-size: clamp(1.1rem, 4.2vw, 1.4rem) !important;
    }

    #PC_Overlay {
        display: none;
    }

    #Navigations_Hintergrund {
        background-color: var(--farbe-grau-dunkel);
        z-index: 9999;
    }

    #Handy_Ueberschrift {
        font-size: clamp(0.001rem, 7vw, 12rem);
        font-family: "Comfortaa", sans-serif;
        text-align: center;
        color: white;
        background-color: var(--farbe-grau-dunkel);
        margin-top: 1%;
        margin-bottom: 1%;
        padding-top: 2%;
        padding-bottom: 2%;   
    }

    .handy-hauptbild {
        width: 95%;
        margin-left: 2.5%;
        border-radius: var(--abrundung-bild);
        box-shadow: var(--schatten-bild-handy);
    }

    #EinleitungHandy {
        width: 92%;
        margin-left: 3.5%;
        margin-top: 6%;
        font-family: Arial, Helvetica, sans-serif;
        font-size: clamp(0.001rem, 4vw, 20vw);
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: justify;
    }

    .handy-trenner-abstand {
        position: relative;
        margin-top: 10%;
    }

    /* --- Korrektur für Header & Schließen-Button --- */
    .header {
        position: relative;
        padding: 0 !important;
    }

    .handy-navigation {
        padding: 12px 15px;
        background-color: #ffffff;
        display: flex;
        align-items: center;
    }

    /* --- Handy-Navigation & Volle-Breite-Balken (Links-bündig korrigiert) --- */
    .navigation {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .navigation ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        background-color: #ffffff;
    }

    .navigation ul li {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .navigation ul li a {
        display: block !important;          
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        padding: 14px 20px !important;               
        text-decoration: none;
        font-family: 'Comfortaa', sans-serif;
        font-weight: normal !important;
        transition: background-color 0.15s ease;
    }

    /* Standard-Farbe für Menü-Links */
    .navigation ul li a {
        color: var(--farbe-orange) !important; 
    }

    /* Gezielte Farbe für den Link 'Besondere Sachkunde' */
    .navigation ul li a[href*="Besondere_sachkunde"] {
        color: var(--farbe-blau) !important; 
    }

    /* Touch-Feedback: Der GESAMTE Balken wird beim Antippen dezent grau und ist linksbündig */
    .navigation ul li a:active,
    .navigation ul li a:hover {
        background-color: rgba(0, 0, 0, 0.08) !important;
    }

    #Inhalt_Handy_Quali {
        width: 90%;
        margin-left: 5%;
        margin-top: 5%;
    }
}

/* ------------------------------------------
   2. PC-Inhaltsbereich (Qualifikationen) (> 700px)
   ------------------------------------------ */
@media (min-width: 701px) {
    /* Liste ohne Aufzählungszeichen */
    .quali-list {
        list-style: none !important; /* Entfernt die Punkte */
        list-style-type: none !important;
        padding-left: 0 !important;   /* Entfernt den linken Einzug */
        margin-left: 0 !important;
    }

    /* Container & Überschrift */
    .quali-content {
        width: 85%;           /* Von 90% auf 85% reduziert, damit es rechts nicht übersteht */
        margin-left: 10%;     /* Von 5% auf 10% erhöht (+5% nach rechts gerückt) */
        margin-top: 3%;
        margin-bottom: 5%;
    }

    .quali-title {
        color: rgb(255, 127, 0); /* Orange aus dem Design */
        font-size: clamp(1.5rem, 2.2vw, 3rem);
        margin-bottom: 2rem;
        font-weight: bold;
    }

    /* Link-Styling & doppelter Linien-Effekt */
    .quali-list a {
        color: rgb(255, 127, 0);
        text-decoration: none;
        font-size: clamp(1.1rem, 2vw, 18rem);
        position: relative;
        display: inline-block;
        padding-top: 6px;
        padding-bottom: 6px;
        transition: color 0.3s ease;
    }

    /* Abstand zwischen den einzelnen Listenpunkten */
    .quali-list li {
        margin-bottom: 2.5rem; 
    }

    /* Gemeinsame Eigenschaften für beide Striche */
    .quali-list a::before,
    .quali-list a::after {
        content: '';
        position: absolute;
        width: 0;
        height: clamp(0.1rem, 0.18vw, 0.4rem);
        background-color: rgb(255, 127, 0);
        transition: width 0.4s ease-in-out;
    }

    /* 1. Oberer Strich: Startet oben rechts und wächst nach links */
    .quali-list a::before {
        top: 0;
        right: 0;
    }

    /* 2. Unterer Strich: Startet unten links und wächst nach rechts */
    .quali-list a::after {
        bottom: 0;
        left: 0;
    }

    /* Hover-Zustand: Beide Striche dehnen sich auf 100% aus */
    .quali-list a:hover::before,
    .quali-list a:hover::after {
        width: 100%;
    }

    .quali-list a:hover {
        color: rgb(255, 127, 0);
    }
}