
/**
 * ============================================================
 * GGG KURSE – FRONTEND STYLES
 * ============================================================
 *
 * Projekt:       GGG Kursverwaltung
 * Child-Theme:   GGGKurse
 * Datei:         /assets/css/ggg.css
 *
 * Enthaltene Funktionen:
 *
 * 1. Desktop Canvas-Mega-Menüs
 * 2. Divi-Builder-Kompatibilität
 * 3. Desktop-/Mobile-Breakpoint bei 1580px
 * 4. Mobiler Header mit gelbem Balken
 * 5. Hamburger-Navigation
 * 6. Akkordeon-Untermenüs
 * 7. Kursübersicht und Kurskategorien
 * 8. Sprachwechsler DE | EN
 *
 * Die JavaScript-Steuerung befindet sich in:
 * /assets/js/ggg.js
 *
 * ============================================================
 */


/* ============================================================
   1. DESKTOP – CANVAS-MEGA-MENÜS
   ============================================================ */

/*
 * Mega-Menü-Panels sind standardmässig unsichtbar.
 * JavaScript fügt beim Öffnen die Klasse .is-open hinzu.
 */

.ggg-mega-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

/* Sichtbares Mega-Menü */

.ggg-mega-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Navigations-Trigger */

.ggg-mega-trigger {
    cursor: pointer;
}


/* ============================================================
   2. DIVI VISUAL BUILDER
   ============================================================ */

/*
 * Im Divi Visual Builder müssen die Canvas-Panels sichtbar
 * bleiben, damit sie bearbeitet werden können.
 */

body.et-fb .ggg-mega-panel {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}


/* ============================================================
   3. CANVAS-POSITIONIERUNG
   ============================================================ */

/*
 * Die Desktop-Canvas-Menüs werden ausserhalb des
 * Divi Visual Builders fixiert positioniert.
 *
 * Betroffene Canvas:
 *
 * MM_Kurse
 * MM_Infos
 * MM_Wersindwir
 */

body:not(.et-fb) [data-canvas^="MM_"] {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

/* Aktiver Canvas darf bedient werden */

body:not(.et-fb) [data-canvas^="MM_"].is-active {
    pointer-events: auto;
}


/* ============================================================
   4. MOBILE HEADER – STANDARDZUSTAND
   ============================================================ */

/*
 * Oberhalb von 1580px verwenden wir die Desktop-Navigation.
 *
 * Der mobile Header bleibt deshalb standardmässig
 * ausgeblendet.
 */

#ggg-mobile-header {
    display: none !important;
}


/* ============================================================
   5. MOBILE / TABLET / KLEINERE DESKTOPS
   BREAKPOINT: BIS 1580px
   ============================================================ */

@media (max-width: 1580px) {

    /*
     * Desktop-Navigation und ursprünglichen gelben
     * Divi-Balken ausblenden.
     *
     * Der mobile Header besitzt einen eigenen gelben Balken.
     */

    #et-boc .et-l--header .ggg-navigation,
    #et-boc .et-l--header .et_pb_section_0_tb_header {
        display: none !important;
    }


    /* --------------------------------------------------------
       5.1 MOBILER HEADER – DIVI-SEKTION
       -------------------------------------------------------- */

    #ggg-mobile-header {
        display: block !important;
        position: relative !important;
        z-index: 1000;

        width: 100% !important;
        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #f2f2f2;
        box-sizing: border-box;
    }


    /* Divi-Zeile */

    #ggg-mobile-header .ggg-mobile-header-inner {
        width: 100% !important;
        max-width: none !important;

        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* Divi-Code-Modul */

    #ggg-mobile-header .ggg-mobile-header-code {
        width: 100%;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* Gesamter mobiler Header */

    #ggg-mobile-header .ggg-mobile-header-wrapper {
        position: relative;
        display: block;

        width: 100%;

        margin: 0;
        padding: 0;

        box-sizing: border-box;
    }


    /* --------------------------------------------------------
       5.2 GELBER KOPFBALKEN
       -------------------------------------------------------- */

    /*
     * Dieser Balken ist Bestandteil des mobilen HTML-Headers.
     * Er ersetzt bei maximal 1580px den gelben Divi-Balken.
     */

    #ggg-mobile-header .ggg-mobile-yellow-bar {
        display: block;

        width: 100%;
        height: auto;

        margin: 0;
        padding: 10px 16px;

        box-sizing: border-box;

        background-color: #ffdf00;
        color: #000;

        font-family: inherit;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;

        text-align: center;
        white-space: normal;
    }


    /* --------------------------------------------------------
       5.3 LOGO UND HAMBURGER-BEREICH
       -------------------------------------------------------- */

    #ggg-mobile-header .ggg-mobile-header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 20px;

        width: 100%;
        min-height: 100px;

        margin: 0;
        padding: 12px 24px;

        box-sizing: border-box;
        background-color: #f2f2f2;
    }


    /* Logo-Link */

    #ggg-mobile-header .ggg-mobile-logo {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;

        text-decoration: none;
    }


    /* Logo-Bild */

    #ggg-mobile-header .ggg-mobile-logo img {
        display: block;

        width: auto;
        height: 52px;

        max-width: 100%;
        object-fit: contain;
    }


    /* Aktionsbereich */

    #ggg-mobile-header .ggg-mobile-header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        flex-shrink: 0;
        gap: 18px;
    }


    /* --------------------------------------------------------
       5.4 HAMBURGER-BUTTON
       -------------------------------------------------------- */

    #ggg-mobile-header .ggg-mobile-toggle {
        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 6px;

        width: 48px;
        height: 48px;

        margin: 0;
        padding: 8px;

        border: 0;
        border-radius: 0;

        background: transparent;
        box-shadow: none;

        cursor: pointer;
        appearance: none;
    }


    /* Drei Hamburger-Linien */

    #ggg-mobile-header .ggg-mobile-toggle-line {
        display: block;

        width: 28px;
        height: 2px;

        background-color: #111;
        border-radius: 2px;
    }


    /* Sichtbarer Tastaturfokus */

    #ggg-mobile-header .ggg-mobile-toggle:focus-visible,
    #ggg-mobile-header .ggg-mobile-logo:focus-visible {
        outline: 2px solid #111;
        outline-offset: 4px;
    }


    /* --------------------------------------------------------
       5.5 AUFKLAPPBARE MOBILE NAVIGATION
       -------------------------------------------------------- */

    /*
     * Das Menü erscheint unmittelbar unter dem Header
     * und überlagert den Seiteninhalt.
     *
     * JavaScript steuert das HTML-Attribut hidden.
     */

    #ggg-mobile-header .ggg-mobile-navigation {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        width: 100%;

        max-height: calc(100dvh - 120px);

        overflow-y: auto;
        overscroll-behavior: contain;

        margin: 0;
        padding: 0;

        box-sizing: border-box;

        background: #fff;

        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);

        z-index: 1100;
    }


    /* Geschlossener Zustand */

    #ggg-mobile-header .ggg-mobile-navigation[hidden] {
        display: none !important;
    }


    /* --------------------------------------------------------
       5.6 WILLKOMMEN – HAUPTMENÜPUNKT
       -------------------------------------------------------- */

    #ggg-mobile-header .ggg-mobile-nav-home {
        display: block;

        padding: 18px 24px;

        color: #111;

        font-size: 17px;
        font-weight: 600;

        text-decoration: none;

        border-bottom: 1px solid #e5e5e5;
    }


    /* --------------------------------------------------------
       5.7 AKKORDEON – HAUPTMENÜPUNKTE
       -------------------------------------------------------- */

    #ggg-mobile-header .ggg-mobile-accordion {
        margin: 0;
        padding: 0;

        border-bottom: 1px solid #e5e5e5;
    }


    /* Klickbare Akkordeon-Überschrift */

    #ggg-mobile-header .ggg-mobile-accordion summary {
        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 18px 24px;

        color: #111;

        font-size: 17px;
        font-weight: 600;

        cursor: pointer;
        list-style: none;
    }


    /* Browser-eigenen Pfeil ausblenden */

    #ggg-mobile-header .ggg-mobile-accordion summary::-webkit-details-marker {
        display: none;
    }


    /* Plus-Zeichen bei geschlossenem Akkordeon */

    #ggg-mobile-header .ggg-mobile-accordion summary::after {
        content: "+";

        font-size: 24px;
        font-weight: 400;
        line-height: 1;
    }


    /* Minus-Zeichen bei geöffnetem Akkordeon */

    #ggg-mobile-header .ggg-mobile-accordion[open] summary::after {
        content: "−";
    }


    /* --------------------------------------------------------
       5.8 UNTERMENÜ-BEREICH
       -------------------------------------------------------- */

    #ggg-mobile-header .ggg-mobile-submenu {
        padding: 8px 24px 24px;
        background: #f7f7f7;
    }


    /* Kategorien-Überschriften */

    #ggg-mobile-header .ggg-mobile-submenu h3 {
        margin: 24px 0 12px;
        padding: 0;

        color: #111;

        font-size: 15px;
        font-weight: 800;
        line-height: 1.4;

        text-transform: uppercase;
    }


    /* Untermenü-Listen */

    #ggg-mobile-header .ggg-mobile-submenu ul {
        margin: 0;
        padding: 0;

        list-style: none;
    }


    /*
     * Einzelne Untermenüpunkte
     *
     * NEU:
     * Schriftgrösse von 15px auf 17px erhöht.
     */

    #ggg-mobile-header .ggg-mobile-submenu li {
        padding: 9px 0;

        color: #111;

        font-size: 17px;
        line-height: 1.4;
    }


    /* --------------------------------------------------------
       5.9 LINKS IN DEN UNTERMENÜS
       -------------------------------------------------------- */

    /*
     * NEU:
     * Alle Links werden unabhängig von den globalen
     * Divi-Linkfarben schwarz dargestellt.
     *
     * Die Schriftgrösse wird vom jeweiligen
     * übergeordneten Element übernommen.
     */

    #ggg-mobile-header .ggg-mobile-submenu a,
    #ggg-mobile-header .ggg-mobile-course-overview a {
        color: #111 !important;

        font-size: inherit;
        font-weight: inherit;

        text-decoration: none;
    }


    /*
     * Hover und Tastaturfokus:
     * Schwarze Schrift und Unterstreichung.
     */

    #ggg-mobile-header .ggg-mobile-submenu a:hover,
    #ggg-mobile-header .ggg-mobile-submenu a:focus-visible,
    #ggg-mobile-header .ggg-mobile-course-overview a:hover,
    #ggg-mobile-header .ggg-mobile-course-overview a:focus-visible {
        color: #111 !important;
        text-decoration: underline;
    }


    /* --------------------------------------------------------
       5.10 KURSÜBERSICHT GESAMT
       -------------------------------------------------------- */

    /*
     * Der Link zur gesamten Kursübersicht erscheint
     * oberhalb der einzelnen Kurskategorien.
     *
     * Die Darstellung bleibt fett und erhält weiterhin
     * eine dezente untere Trennlinie.
     */

    #ggg-mobile-header .ggg-mobile-course-overview {
        margin: 4px 0 20px;
        padding: 12px 0 16px;

        color: #111;

        font-size: 16px;
        font-weight: 700;
        line-height: 1.4;

        border-bottom: 1px solid #ddd;
    }


    /* --------------------------------------------------------
       5.11 SPRACHWECHSLER DE | EN
       -------------------------------------------------------- */

    /*
     * Der Sprachwechsler steht am Ende der Navigation.
     *
     * Die dynamische WPML-Verknüpfung erfolgt später.
     *
     * Keine Trennlinie oberhalb des Sprachwechslers.
     */

    #ggg-mobile-header .ggg-mobile-language {
        display: flex;
        align-items: center;

        gap: 14px;

        margin: 28px 24px 0;
        padding: 22px 0 28px;

        border-top: none;

        color: #111;

        font-size: 15px;
        line-height: 1.4;
    }


    /* Aktuelle Sprache */

    #ggg-mobile-header .ggg-mobile-language-current {
        font-weight: 800;
        color: #111;
    }


    /* Trennzeichen */

    #ggg-mobile-header .ggg-mobile-language-separator {
        color: #999;
    }


    /* Andere Sprache */

    #ggg-mobile-header .ggg-mobile-language-inactive {
        color: #777;
        font-weight: 500;
    }


    /* --------------------------------------------------------
       5.12 TASTATURBEDIENUNG
       -------------------------------------------------------- */

    /*
     * Links und Akkordeon-Überschriften erhalten einen
     * gut sichtbaren Fokusrahmen.
     */

    #ggg-mobile-header .ggg-mobile-navigation a:focus-visible,
    #ggg-mobile-header .ggg-mobile-accordion summary:focus-visible {
        outline: 2px solid #111;
        outline-offset: -3px;
    }

}


/* ============================================================
   6. SMARTPHONES – BIS 600px
   ============================================================ */

/*
 * Auf Smartphones wird der gelbe Balken höher dargestellt.
 * Logo und Header werden etwas kompakter.
 *
 * Alle übrigen Navigationsregeln gelten weiterhin aus
 * dem Breakpoint bis 1580px.
 */

@media (max-width: 600px) {

    /* Höherer gelber Balken */

    #ggg-mobile-header .ggg-mobile-yellow-bar {
        padding: 25px 12px;

        font-size: 14px;
        line-height: 1.4;
    }


    /* Kompakter Header */

    #ggg-mobile-header .ggg-mobile-header-container {
        min-height: 90px;
        padding: 10px 20px;
    }


    /* Kleineres Logo */

    #ggg-mobile-header .ggg-mobile-logo img {
        height: 44px;
    }

}



/**
 * ==========================================================
 * GGG KURSE – DESKTOP-SPRACHWECHSLER DE / EN
 * ==========================================================
 *
 * Ziel:
 * - Feste Position unabhängig von den Menütexten
 * - Sprachwechsler links neben der rechten Illustration
 * - Keine Verschiebung beim Wechsel DE / EN
 * - Aktive Sprache schwarz und fett
 * - Inaktive Sprache dunkelgrau
 *
 * Die bestehende Divi-Navigation bleibt unverändert.
 */

/*
 * Das Divi-Code-Modul wird aus der normalen
 * Flex-Anordnung herausgenommen.
 *
 * Dadurch beeinflussen die unterschiedlich langen
 * deutschen und englischen Menüpunkte seine
 * horizontale Position nicht mehr.
 *
 * Die rechte Position orientiert sich an der
 * Navigationsspalte und muss gegebenenfalls
 * auf das Layout abgestimmt werden.

.ggg-navigation .ggg-desktop-language-module {
    position: absolute !important;
    right: 180px !important;
    top: 50%;
    transform: translateY(-50%);  */

    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;

    margin: 0 !important;
    box-sizing: border-box;
    z-index: 10;
}

/* Sprachwechsler */
.ggg-desktop-language {
    display: block;
    width: 100%;
    text-align: center;
    white-space: pre;
}

/* Aktive Sprache */
.ggg-desktop-language strong {
    color: #000000 !important;
    font-weight: 700;
}

/* Inaktive Sprache */
.ggg-desktop-language a,
.ggg-desktop-language a:visited {
    color: #555555 !important;
    font-weight: 400;
    text-decoration: none;
}

/* Hover und Tastaturfokus */
.ggg-desktop-language a:hover,
.ggg-desktop-language a:focus-visible {
    color: #000000 !important;
}



/**
 * ==========================================================
 * GGG KURSE – STABILE DESKTOP-NAVIGATION DE / EN
 * ==========================================================
 *
 * Hintergrund:
 * Divi 5 zentriert die Navigationsmodule mit Flexbox.
 * Unterschiedlich lange DE-/EN-Texte verändern sonst
 * die Modulbreiten und verschieben den Sprachwechsler.
 *
 * Lösung:
 * Feste Breiten für die vier Textmodule.
 *
 * Die Werte berücksichtigen die deutschen und englischen
 * Menütexte und enthalten etwas Platzreserve.
 *
 * Gilt ausschliesslich für die Desktop-Navigationsspalte.
 */

/* Willkommen / Welcome */
.et_pb_column_1_tb_header > .et_pb_text_1_tb_header {
    width: 120px !important;
    flex: 0 0 120px !important;
}

/* Unsere Kurse / Our Courses */
.et_pb_column_1_tb_header > .et_pb_text_2_tb_header {
    width: 145px !important;
    flex: 0 0 145px !important;
}

/* Kursinformationen / Course Information */
.et_pb_column_1_tb_header > .et_pb_text_3_tb_header {
    width: 190px !important;
    flex: 0 0 190px !important;
}

/* Wer sind wir / About Us */
.et_pb_column_1_tb_header > .et_pb_text_4_tb_header {
    width: 125px !important;
    flex: 0 0 125px !important;
}

/*
 * Sprachwechsler ebenfalls mit fester Breite.
 * Keine absolute Positionierung.
 */
.et_pb_column_1_tb_header > .ggg-desktop-language-module {
    position: static !important;
    transform: none !important;

    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    flex: 0 0 90px !important;
}



/* ============================================================
   GGG KURSE – LEHRPERSONENPORTAL
   Dokumentenübersicht – Design V1.0
   ============================================================

   Zweck:
   - Einheitliche Gestaltung der Dokumentenverwaltung
   - Klare Unterscheidung zwischen Ordnern und Dokumenten
   - Responsive Darstellung
   - Keine Auswirkungen auf andere Website-Bereiche

   Grundlage:
   Shortcode [ggg_dokumente] aus dem Plugin GGG Dokumente.
   ============================================================ */


/* ------------------------------------------------------------
   1. HAUPTBEREICH
   ------------------------------------------------------------ */

.ggg-gd-documents {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0 60px;
    color: #222;
}

.ggg-gd-documents > h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.ggg-gd-documents > p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}


/* ------------------------------------------------------------
   2. DOKUMENTENORDNER
   ------------------------------------------------------------ */

.ggg-gd-documents .ggg-gd-folder {
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 22px 25px;
    margin-top: 18px;
    margin-bottom: 18px;
}

/* Haupt- und Unterordner */

.ggg-gd-documents .ggg-gd-folder h3,
.ggg-gd-documents .ggg-gd-folder h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px;
    padding: 0;
}

/* Ordnersymbol */

.ggg-gd-documents .ggg-gd-folder h3::before,
.ggg-gd-documents .ggg-gd-folder h4::before {
    content: "📁";
    font-size: 23px;
    line-height: 1;
}

/* Unterordner */

.ggg-gd-documents .ggg-gd-folder .ggg-gd-folder {
    background: #fff;
    border-color: #e8e8e8;
    margin-top: 15px;
    margin-bottom: 0;
}

.ggg-gd-documents .ggg-gd-folder h4 {
    font-size: 17px;
}


/* ------------------------------------------------------------
   3. DOKUMENTENLISTE
   ------------------------------------------------------------ */

.ggg-gd-documents .ggg-gd-document-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ggg-gd-documents .ggg-gd-document-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 7px;
    padding: 14px 18px;
    margin-bottom: 8px;
    transition: border-color 0.2s ease;
}

.ggg-gd-documents .ggg-gd-document-list li:hover {
    border-color: #999;
}

/* Dokumentensymbol */

.ggg-gd-documents .ggg-gd-document-list li::before {
    content: "📄";
    font-size: 22px;
    line-height: 1;
}

/* Dokumentenlink */

.ggg-gd-documents .ggg-gd-document-list a {
    color: #222 !important;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
}

.ggg-gd-documents .ggg-gd-document-list a:hover,
.ggg-gd-documents .ggg-gd-document-list a:focus-visible {
    text-decoration: underline !important;
}

/* Dateityp */

.ggg-gd-documents .ggg-gd-document-list small {
    color: #777;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}


/* ------------------------------------------------------------
   4. ABMELDEN
   ------------------------------------------------------------ */

/* Der Abmeldelink befindet sich im letzten Absatz. */

.ggg-gd-documents > p:last-child {
    text-align: right;
    margin-top: 35px;
}

.ggg-gd-documents > p:last-child a {
    color: #555;
    font-size: 14px;
    text-decoration: underline;
}

.ggg-gd-documents > p:last-child a:hover {
    color: #000;
}


/* ------------------------------------------------------------
   5. MOBILE ANSICHT
   ------------------------------------------------------------ */

@media (max-width: 767px) {

    .ggg-gd-documents {
        padding: 10px 0 35px;
    }

    .ggg-gd-documents .ggg-gd-folder {
        padding: 16px;
        border-radius: 8px;

        /*
         * Die PHP-Ausgabe setzt die Einrückung der Unterordner
         * als Inline-Style. Auf Smartphones entfernen wir sie,
         * damit die Dokumentenkarten genügend Platz erhalten.
         */
        margin-left: 0 !important;
    }

    .ggg-gd-documents .ggg-gd-folder h3,
    .ggg-gd-documents .ggg-gd-folder h4 {
        font-size: 18px;
    }

    .ggg-gd-documents .ggg-gd-document-list li {
        padding: 12px;
    }

    .ggg-gd-documents .ggg-gd-document-list a {
        font-size: 15px;
    }
}




/* ============================================================
   GGG KURSE – LEHRPERSONENPORTAL V1.1
   ============================================================

   Ergänzung zur bestehenden Dokumentenübersicht V1.0.

   Zuständig für:
   - Orientierungshinweis
   - Registerkarten Dokumente / Mein Konto
   - Persönliche Kontodaten
   - Passwortänderung
   - Abmeldebutton
   - Responsive Darstellung

   Alle Regeln sind auf .ggg-gd-portal begrenzt.
   Bestehende Dokumentenordner bleiben unverändert.
   ============================================================ */


/* ------------------------------------------------------------
   1. PERSÖNLICHE BEGRÜSSUNG
   ------------------------------------------------------------ */

.ggg-gd-portal > h2 {
    margin-bottom: 12px;
}

.ggg-gd-portal > h2 + p {
    margin-bottom: 24px;
    font-size: 17px;
}


/* ------------------------------------------------------------
   2. ORIENTIERUNGS- UND SICHERHEITSHINWEIS
   ------------------------------------------------------------ */

.ggg-gd-portal .ggg-gd-orientation {
    margin: 0 0 30px;
    padding: 20px 24px;

    background: #f7f7f7;
    border-left: 3px solid #599f94;
    border-radius: 0 8px 8px 0;
}

.ggg-gd-portal .ggg-gd-orientation p {
    margin: 0 0 10px;
    padding: 0;

    font-size: 15px;
    line-height: 1.65;
    color: #333;
}

.ggg-gd-portal .ggg-gd-orientation p:last-child {
    margin-bottom: 0;
}

.ggg-gd-portal .ggg-gd-orientation strong {
    color: #222;
    font-weight: 700;
}


/* ------------------------------------------------------------
   3. REGISTERKARTEN – DOKUMENTE / MEIN KONTO
   ------------------------------------------------------------ */

.ggg-gd-portal .ggg-gd-tabs {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0 0 30px;
    padding: 0 0 12px;

    border-bottom: 1px solid #ddd;
}

.ggg-gd-portal .ggg-gd-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 11px 22px;

    color: #333 !important;
    background: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 7px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

/* Aktuell ausgewählte Registerkarte */

.ggg-gd-portal .ggg-gd-tabs a[aria-current="page"] {
    color: #fff !important;
    background: #599f94;
    border-color: #599f94;
}

/* Hover nur auf inaktiven Registerkarten */

.ggg-gd-portal .ggg-gd-tabs a:not([aria-current="page"]):hover {
    background: #e9f2f0;
    border-color: #599f94;
}

.ggg-gd-portal .ggg-gd-tabs a:focus-visible {
    outline: 2px solid #222;
    outline-offset: 3px;
}


/* ------------------------------------------------------------
   4. ÜBERSCHRIFT DER DOKUMENTENANSICHT
   ------------------------------------------------------------ */

.ggg-gd-portal .ggg-gd-document-area > h3,
.ggg-gd-portal .ggg-gd-account > h3 {
    margin: 0 0 20px;
    padding: 0;

    color: #222;
    font-size: clamp(21px, 2.5vw, 26px);
    font-weight: 700;
    line-height: 1.3;
}


/* ------------------------------------------------------------
   5. MEIN KONTO – PERSÖNLICHE ANGABEN
   ------------------------------------------------------------ */

.ggg-gd-portal .ggg-gd-account {
    padding: 26px 30px;

    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

.ggg-gd-portal .ggg-gd-account dl {
    display: grid;
    grid-template-columns: minmax(130px, 210px) minmax(0, 1fr);

    margin: 0 0 20px;
}

.ggg-gd-portal .ggg-gd-account dt,
.ggg-gd-portal .ggg-gd-account dd {
    margin: 0;
    padding: 14px 0;

    border-bottom: 1px solid #e0e0e0;

    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ggg-gd-portal .ggg-gd-account dt {
    color: #555;
    font-weight: 600;
}

.ggg-gd-portal .ggg-gd-account dd {
    color: #222;
}

.ggg-gd-portal .ggg-gd-account > p {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}


/* ------------------------------------------------------------
   6. PASSWORT ÄNDERN
   ------------------------------------------------------------ */

.ggg-gd-portal .ggg-gd-password-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;

    max-width: 500px;
    margin: 0 0 22px;
}

.ggg-gd-portal .ggg-gd-password-form label {
    margin-top: 10px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.ggg-gd-portal .ggg-gd-password-form input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;

    color: #222;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 6px;

    font: inherit;
    font-size: 16px;
    box-sizing: border-box;
}

.ggg-gd-portal .ggg-gd-password-form input:focus {
    border-color: #599f94;
    outline: 2px solid #599f94;
    outline-offset: 1px;
}

.ggg-gd-portal .ggg-gd-password-form button {
    margin-top: 18px;
    padding: 12px 24px;

    color: #fff;
    background: #599f94;
    border: 1px solid #599f94;
    border-radius: 6px;

    font: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.ggg-gd-portal .ggg-gd-password-form button:hover {
    background: #417e75;
    border-color: #417e75;
}

.ggg-gd-portal .ggg-gd-password-form button:focus-visible {
    outline: 2px solid #222;
    outline-offset: 3px;
}

.ggg-gd-portal .ggg-gd-error {
    padding: 12px 16px;
    background: #fff0f0;
    border-left: 3px solid #b42318;
    color: #8b1d18;
}


/* ------------------------------------------------------------
   7. ABMELDEN

   Überschreibt gezielt die bisherige Regel
   .ggg-gd-documents > p:last-child a.
   ------------------------------------------------------------ */

.ggg-gd-portal > p.ggg-gd-logout {
    margin: 35px 0 0;
    text-align: right;
}

.ggg-gd-portal > p.ggg-gd-logout a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 11px 22px;

    color: #333 !important;
    background: transparent;
    border: 1px solid #999;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.ggg-gd-portal > p.ggg-gd-logout a:hover {
    color: #111 !important;
    background: #f2f2f2;
    border-color: #333;
}

.ggg-gd-portal > p.ggg-gd-logout a:focus-visible {
    outline: 2px solid #222;
    outline-offset: 3px;
}


/* ------------------------------------------------------------
   8. SMARTPHONE-OPTIMIERUNG
   ------------------------------------------------------------ */

@media (max-width: 767px) {

    .ggg-gd-portal .ggg-gd-orientation {
        padding: 16px 18px;
    }

    .ggg-gd-portal .ggg-gd-tabs {
        gap: 8px;
    }

    .ggg-gd-portal .ggg-gd-tabs a {
        flex: 1 1 130px;
        padding: 11px 14px;
    }

    .ggg-gd-portal .ggg-gd-account {
        padding: 18px 16px;
    }

    .ggg-gd-portal .ggg-gd-account dl {
        grid-template-columns: 1fr;
    }

    .ggg-gd-portal .ggg-gd-account dt {
        padding-bottom: 2px;
        border-bottom: 0;
    }

    .ggg-gd-portal .ggg-gd-account dd {
        padding-top: 2px;
    }

    .ggg-gd-portal .ggg-gd-password-form {
        max-width: 100%;
    }
}


/* ============================================================
   GGG KURSE – LEHRPERSONENPORTAL DESIGN V1.2
   Stand: 18.11.2026 | Casulli Design

   Diese Ergänzungen überschreiben ausschliesslich Portalregeln.
   Die bestehende Desktop-/Mobilnavigation und die Dokumenten-
   struktur werden nicht verändert.

   Markenfarbe GGG Kurse: #ffdf00 (bestehender gelber Header).
   Schwarze Schrift auf Gelb für gut lesbare Bedienelemente.
   ============================================================ */

/* 1. LOGIN – WordPress-Loginformular im Portal als Karte */
/* V1.2.1: Karte um 40px verbreitert, damit der Einleitungssatz
   nicht mit einem alleinstehenden «an.» umbricht. */
.ggg-gd-login {
    width: min(100%, 520px);
    margin: 30px auto 55px;
    padding: clamp(22px, 4vw, 38px);
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-sizing: border-box;
}
.ggg-gd-login h3 { margin: 0 0 12px; font-size: clamp(23px, 3vw, 30px); line-height: 1.25; }
.ggg-gd-login > p { margin: 0 0 22px; line-height: 1.6; }
.ggg-gd-login #loginform { margin: 0; }
.ggg-gd-login #loginform p { margin: 0 0 17px; }
.ggg-gd-login #loginform label { display: block; margin-bottom: 7px; font-weight: 600; color: #222; }
.ggg-gd-login #loginform .input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    background: #fff;
    color: #222;
    border: 1px solid #aaa;
    border-radius: 6px;
    box-sizing: border-box;
    font: inherit;
    font-size: 16px;
}
.ggg-gd-login #loginform .input:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}
.ggg-gd-login #loginform .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 400;
    cursor: pointer;
}
.ggg-gd-login #loginform .login-remember input { width: 17px; height: 17px; margin: 0; accent-color: #111; }
.ggg-gd-login #loginform .login-submit { margin: 20px 0 0; }
.ggg-gd-login #loginform #wp-submit {
    min-height: 44px;
    padding: 11px 25px;
    background: #ffdf00;
    color: #111;
    border: 1px solid #e4c600;
    border-radius: 6px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease;
}
.ggg-gd-login #loginform #wp-submit:hover { background: #efd000; }
.ggg-gd-login #loginform #wp-submit:focus-visible { outline: 2px solid #111; outline-offset: 3px; }



/* 2. BEGRÜSSUNG UND HINWEIS */

.ggg-gd-portal > h2 {
    margin-bottom: 6px;
}

.ggg-gd-portal > h2 + p {
    margin-bottom: 8px;
    padding-bottom: 0;
    font-size: 17px;
}

.ggg-gd-portal .ggg-gd-orientation {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 clamp(44px, 4vw, 52px);
    padding: 16px 20px;
    border-left: 4px solid #ffdf00;
    background: #f7f7f7;
}

.ggg-gd-portal .ggg-gd-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin-top: 2px;
    background: #ffdf00;
    color: #111;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.ggg-gd-portal .ggg-gd-orientation-text {
    flex: 1 1 auto;
    min-width: 0;
}

.ggg-gd-portal .ggg-gd-orientation p {
    margin: 0 0 7px;
}

.ggg-gd-portal .ggg-gd-orientation p:last-child {
    margin-bottom: 0;
}


/* 3. REGISTERKARTEN – kleiner und in GGG-Kurse-Gelb */
.ggg-gd-portal .ggg-gd-tabs { gap: 7px; margin-bottom: 23px; padding-bottom: 10px; }
.ggg-gd-portal .ggg-gd-tabs a {
    min-height: 39px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}
.ggg-gd-portal .ggg-gd-tabs a[aria-current="page"] {
    background: #ffdf00;
    border-color: #ffdf00;
    color: #111 !important;
}
.ggg-gd-portal .ggg-gd-tabs a:not([aria-current="page"]):hover {
    background: #fff7c4;
    border-color: #e4c600;
}

/* 4. KONTO – Fokus und Passwortbutton in Gelb */
.ggg-gd-portal .ggg-gd-password-form input:focus {
    border-color: #b69c00;
    outline: 2px solid #ffdf00;
}
.ggg-gd-portal .ggg-gd-password-form button {
    background: #ffdf00;
    border-color: #ffdf00;
    color: #111;
}
.ggg-gd-portal .ggg-gd-password-form button:hover {
    background: #efd000;
    border-color: #e4c600;
    color: #111;
}

/* 5. LOGOUT – bestehender dezenter Stil bleibt erhalten */
.ggg-gd-portal > p.ggg-gd-logout a:hover { border-color: #c3a800; background: #fff9d7; }

/* 6. SMARTPHONE – keine zu breite Login-Karte oder Register */
@media (max-width: 767px) {
    .ggg-gd-login { margin: 18px auto 35px; padding: 22px 18px; }
    .ggg-gd-portal .ggg-gd-orientation { padding: 14px; gap: 11px; }
    .ggg-gd-portal .ggg-gd-tabs a { flex: 0 1 auto; min-width: 112px; padding: 9px 13px; }
}



/* ============================================================
   GGG KURSE – LEHRPERSONENPORTAL / SCHLOSS-ICON
   ============================================================

   Normalzustand:
   - Linktext und Schloss schwarz

   Hover und Tastaturfokus:
   - Linktext und Schloss grün

   Die SVG-Grafik übernimmt ihre Farbe über currentColor.
   ============================================================ */

/* Normalzustand – auch innerhalb der Divi-Textmodule */
.ggg-mega-panel .ggg-teacher-login-link,
.ggg-mega-panel .ggg-teacher-login-link:visited,
.ggg-mega-panel .ggg-teacher-login-link strong,
.ggg-mega-panel .ggg-teacher-login-link svg {
    color: #000 !important;
}

/* Link und Schloss nebeneinander ausrichten */
.ggg-teacher-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* SVG-Abmessungen */
.ggg-teacher-login-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* Hover und Tastaturfokus – grüner Text und grünes Schloss */
.ggg-mega-panel .ggg-teacher-login-link:hover,
.ggg-mega-panel .ggg-teacher-login-link:hover strong,
.ggg-mega-panel .ggg-teacher-login-link:hover svg,
.ggg-mega-panel .ggg-teacher-login-link:focus-visible,
.ggg-mega-panel .ggg-teacher-login-link:focus-visible strong,
.ggg-mega-panel .ggg-teacher-login-link:focus-visible svg {
    color: #008c69 !important;
}



/* ==================================================
   GGG KURSE – SPRACHWECHSLER MIT SUCHLUPE
   ==================================================

   Sprachwechsler und Suchlupe werden nebeneinander
   dargestellt, ohne zusätzliche Divi-Spalte.

   Die Lupe ist ein echter Button und wird später
   per JavaScript mit dem Suchformular verbunden.
   ================================================== */

.ggg-header-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    white-space: nowrap;
}

.ggg-search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;
    background: transparent;

    color: #000;
    cursor: pointer;
}

.ggg-search-trigger svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* Suchlupe: kein Farbwechsel bei Hover oder Tastaturfokus.
   Die sichtbare Fokusmarkierung für die Tastatur bleibt erhalten. */
.ggg-search-trigger:hover,
.ggg-search-trigger:focus-visible {
    color: #000;
}




/* ==========================================================
   GGG KURSE – AUFKLAPPBARES SUCHFELD
   ==========================================================
   Die Suchsektion ist standardmässig ausgeblendet.
   JavaScript ergänzt beim Öffnen die Klasse .is-open.

   Die Suche bleibt Teil des normalen Seitenlayouts.
   Dadurch überlagert sie weder die Navigation noch
   unsere bestehenden Canvas-Mega-Menüs.
   ========================================================== */

/* Suchsektion standardmässig ausblenden */
.ggg-search-panel {
    display: none !important;
    background: #faf8f6;
}

/* Suchsektion bei aktivierter Suche anzeigen */
.ggg-search-panel.is-open {
    display: block !important;
}

/* Innenbereich des Suchformulars */
.ggg-search-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 35px 20px;
}

/* Formular */
.ggg-search-form {
    width: 100%;
}

/* Beschriftung */
.ggg-search-form label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #000;
}

/* Eingabefeld und Button nebeneinander */
.ggg-search-field {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Suchfeld */
.ggg-search-field input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    background: transparent;
    color: #000;
    font: inherit;
    outline-offset: 3px;
}

/* Suchbutton */
.ggg-search-field button {
    padding: 10px 20px;
    border: 1px solid #000;
    border-radius: 0;
    background: transparent;
    color: #000;
    font: inherit;
    cursor: pointer;
}

/* Button-Hover bewusst ohne Farbwechsel */
.ggg-search-field button:hover {
    background: transparent;
    color: #000;
}

/* Smartphone */
@media (max-width: 767px) {
    .ggg-search-inner {
        padding: 25px 15px;
    }

    .ggg-search-field {
        gap: 10px;
    }

    .ggg-search-field button {
        padding: 10px;
    }
}



/* ==========================================================
   GGG KURSE – SUCHFORMULAR ZENTRIEREN
   ==========================================================
   Divi 5 verwendet eigene Container und Zeilenbreiten.
   Deshalb richten wir die Suchsektion und das Formular
   unabhängig von den Divi-Standardbreiten aus.
   ========================================================== */

/* Suchformular auf eine angenehme Breite begrenzen */
.ggg-search-panel .ggg-search-inner {
    width: min(100%, 900px);
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 30px 20px;
}

/* Formular über die gesamte Innenbreite */
.ggg-search-panel .ggg-search-form {
    width: 100%;
}

/* Suchfeld und Button */
.ggg-search-panel .ggg-search-field {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Eingabefeld flexibel */
.ggg-search-panel .ggg-search-field input[type="search"] {
    flex: 1;
    min-width: 0;
}


/* ==========================================================
   GGG KURSE – SUCHFORMULAR: DIVI-5-ZENTRIERUNG
   ==========================================================
   Die Suchsektion erhält eine eigene Zentrierung.
   Die Regel gilt ausschliesslich für .ggg-search-panel.
   Unsere bestehende Navigation bleibt unangetastet.
   ========================================================== */

/* Geöffnete Suchsektion als zentrierten Flex-Container */
.ggg-search-panel.is-open {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

/* Direkte Divi-Zeile innerhalb der Suchsektion */
.ggg-search-panel.is-open > .et_pb_row {
    width: 100% !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Suchformular zusätzlich absichern */
.ggg-search-panel .ggg-search-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto !important;
}






/* ==========================================================
   GGG KURSE – SEARCHWP LIVE AJAX SEARCH
   ==========================================================

   Gestaltung der Suchvorschläge:
   - Keine Vorschaubilder
   - Kompakte Trefferzeilen
   - Weisser Hintergrund
   - Schwarze Schrift
   - Gelber Hover-Effekt

   Die SearchWP-Ergebnisliste wird dynamisch direkt
   im <body> erzeugt. Deshalb verwenden wir die
   originalen SearchWP-Klassen.

   ========================================================== */


/* ----------------------------------------------------------
   1. Gesamter Ergebniscontainer
   ---------------------------------------------------------- */

.searchwp-live-search-results {

    background: #ffffff !important;

    border: 1px solid #e5e5e5 !important;

    border-radius: 0 !important;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;

    max-height: 350px !important;

    overflow-y: auto !important;

    z-index: 99999 !important;
}


/* ----------------------------------------------------------
   2. Vorschaubilder vollständig ausblenden
   ---------------------------------------------------------- */

.searchwp-live-search-result--img {

    display: none !important;
}


/* ----------------------------------------------------------
   3. Einzelne Suchtreffer
   ---------------------------------------------------------- */

.searchwp-live-search-result {

    padding: 12px 18px !important;

    border-bottom: 1px solid #eeeeee !important;

    background: #ffffff !important;

    transition: background-color 0.2s ease !important;
}


/* Letzten Trennstrich entfernen */

.searchwp-live-search-result:last-child {

    border-bottom: none !important;
}


/* ----------------------------------------------------------
   4. Textbereich
   ---------------------------------------------------------- */

.searchwp-live-search-result--info {

    width: 100% !important;

    padding: 0 !important;
}


/* ----------------------------------------------------------
   5. Kurstitel
   ---------------------------------------------------------- */

.searchwp-live-search-result--title {

    margin: 0 !important;

    padding: 0 !important;

    font-size: 16px !important;

    font-weight: 500 !important;

    line-height: 1.5 !important;
}


/* Link innerhalb des Kurstitels */

.searchwp-live-search-result--title a {

    color: #111111 !important;

    text-decoration: none !important;
}


/* ----------------------------------------------------------
   6. Hover und Tastaturauswahl
   ----------------------------------------------------------

   Gelb als Hintergrundfarbe der aktiven Trefferzeile.
   So bleibt die schwarze Schrift gut lesbar.

   ---------------------------------------------------------- */

.searchwp-live-search-result:hover,
.searchwp-live-search-result[aria-selected="true"] {

    background: #ffed00 !important;
}


/* Link beim Hover weiterhin schwarz */

.searchwp-live-search-result:hover
.searchwp-live-search-result--title a,

.searchwp-live-search-result[aria-selected="true"]
.searchwp-live-search-result--title a {

    color: #111111 !important;
}


/* ----------------------------------------------------------
   7. Fokus für Tastaturbedienung
   ---------------------------------------------------------- */

.searchwp-live-search-result--title a:focus-visible {

    outline: 2px solid #111111 !important;

    outline-offset: 3px !important;
}





/* ==========================================================
   GGG KURSE – SUCHPANEL SCHLIESSEN-BUTTON
   ========================================================== */

/* Bezugspunkt für die absolute Positionierung */
.ggg-search-panel {
    position: relative;
}

/* Sichtbarer Schliessen-Button */
.ggg-search-panel .ggg-search-close {
    position: absolute;
    top: 16px;
    right: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;

    border: 0;
    border-radius: 0;
    background: transparent;

    color: #111111;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
    z-index: 10;
}

/* Hover mit GGG-Kurse-Gelb */
.ggg-search-panel .ggg-search-close:hover {
    background: #ffed00;
    color: #111111;
}

/* Sichtbarer Fokus für Tastaturbedienung */
.ggg-search-panel .ggg-search-close:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 3px;
}




/* ==========================================================
   GGG KURSE – SEARCHWP LIVE SEARCH FINAL
   ==========================================================
   Layout angelehnt an die GGG-Basel-Hauptseite.
   Akzentfarbe: GGG-Kurse-Gelb.
   ========================================================== */

/* Gesamter Ergebniscontainer */
.searchwp-live-search-results.ggg-search-results {
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
    max-height: 420px !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
}

/* Trefferanzahl */
.ggg-search-results-count {
    padding: 16px 20px;
    background: #f5f5f5;
    color: #333333;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Einzelner Treffer */
.searchwp-live-search-result.ggg-search-result {
    display: block !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    background: #ffffff !important;
    transition: background-color .2s ease;
}

/* Gelber Hover und ausgewählter Treffer */
.searchwp-live-search-result.ggg-search-result:hover,
.searchwp-live-search-result.ggg-search-result[aria-selected="true"] {
    background: #ffed00 !important;
}

/* Textbereich über volle Breite */
.ggg-search-result .searchwp-live-search-result--info {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Titel und Inhaltstyp nebeneinander */
.ggg-search-result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

/* Titel */
.ggg-search-result .searchwp-live-search-result--title {
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.ggg-search-result .searchwp-live-search-result--title a {
    color: #111111 !important;
    text-decoration: none !important;
}

/* Inhaltstyp rechts */
.ggg-search-result-type {
    flex-shrink: 0;
    color: #666666;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Kurzbeschreibung */
.ggg-search-result .searchwp-live-search-result--desc {
    display: block !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    color: #555555 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

/* Lesbarkeit beim gelben Hover */
.ggg-search-result:hover .searchwp-live-search-result--desc,
.ggg-search-result:hover .ggg-search-result-type {
    color: #222222 !important;
}

/* Tastaturfokus */
.ggg-search-result a:focus-visible {
    outline: 2px solid #111111 !important;
    outline-offset: 3px;
}

/* Kleine Bildschirme */
@media (max-width: 600px) {
    .searchwp-live-search-result.ggg-search-result {
        padding: 12px 15px !important;
    }

    .ggg-search-result .searchwp-live-search-result--title {
        font-size: 14px !important;
    }

    .ggg-search-result .searchwp-live-search-result--desc {
        font-size: 12px !important;
    }
}




/* ==========================================================
   GGG KURSE – SEARCHWP ERGEBNISKARTEN
   ==========================================================
   Darstellung nach dem Vorbild der GGG-Basel-Suche.

   - Titel oben
   - Inhaltstyp als gelbes Label darunter
   - Grosszügige Abstände
   - Dezente Trennlinien
   - Bestehende Suchfunktion bleibt unverändert
   ========================================================== */

/* Einzelner Treffer */
.searchwp-live-search-result.ggg-search-result {
    padding: 20px 22px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eeeeee !important;
}

/* Titel und Label untereinander anordnen */
.ggg-search-result-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

/* Titel */
.ggg-search-result .searchwp-live-search-result--title {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

/* Gelbes Label für KURS, SEITE, BEITRAG */
.ggg-search-result-type {
    display: inline-block !important;
    padding: 4px 9px !important;

    background: #ffed00 !important;
    color: #111111 !important;

    border-radius: 3px !important;

    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: .03em !important;
}

/* Dezenter Hover */
.searchwp-live-search-result.ggg-search-result:hover,
.searchwp-live-search-result.ggg-search-result[aria-selected="true"] {
    background: #fffbe6 !important;
}

/* Beschreibung ausblenden:
   entspricht der gezeigten GGG-Basel-Darstellung */
.ggg-search-result .searchwp-live-search-result--desc {
    display: none !important;
}

/* Mobile Darstellung */
@media (max-width: 600px) {
    .searchwp-live-search-result.ggg-search-result {
        padding: 16px !important;
    }

    .ggg-search-result .searchwp-live-search-result--title {
        font-size: 15px !important;
    }
}




/* ==========================================================
   GGG KURSE – LIVE-SUCHE OHNE SUCHBUTTON
   ==========================================================

   Das Eingabefeld nutzt die verfügbare Breite.
   Die SearchWP-Ergebnisliste richtet sich weiterhin
   nach dem Suchfeld aus.
   ========================================================== */

.ggg-search-form .ggg-search-field {
    width: 100%;
}

.ggg-search-form #ggg-search-input {
    width: 100%;
    min-width: 0;
}

