/**
 * Glossar Custom Styles
 * Diese Datei wird NICHT überschrieben beim Export!
 * Passen Sie hier alle Farben, Größen und Styles an.
 */

/* =============================================================================
   GLOSSAR-BEGRIFFE (markierte Wörter im Text)
   ============================================================================= */

.glossar-begriff {
    color: ##333 !important;              /* Farbe der markierten Begriffe */
    cursor: help !important;
    text-decoration: underline !important;
    text-decoration-style: dotted !important;
    text-decoration-color: #fff !important;
    transition: all 0.2s !important;
}

.glossar-begriff:hover {
    color: #fff !important;              /* Farbe beim Darüberfahren */
    text-decoration-style: solid !important;
}

/* =============================================================================
   TOOLTIP (das Popup mit der Erklärung)
   ============================================================================= */

.glossar-tooltip {
    display: none;
    position: absolute;
    background: #cacbce;
    border: 2px solid #808080;              /* Rahmenfarbe */
    border-radius: 8px;                     /* Runde Ecken */
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 420px;
    min-width: 200px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.glossar-tooltip.zeigen {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Tooltip-Inhalt */
.glossar-content {
    padding: 16px;
}

/* Titel im Tooltip */
.glossar-titel {
    font-size: 18px;                        /* Größe des Titels */
    font-weight: 700;
    color: #333;                         /* Farbe des Titels */
    margin: 10px 5px 10px 40px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

/* Text im Tooltip */
.glossar-text {
    font-size: 15px;                        /* Größe des Texts */
    line-height: 1.6;
    color: #000;                            /* Textfarbe */
    margin: 5px 10px 10px 10px;
}

/* Bild im Tooltip */
.glossar-bild {
    display: none;
    float: right;                   /* Bild rechts, Text fließt links */
    width: auto;
    max-width: 200px;               /* Maximal 240px breit */
    max-height: 200px;              /* Proportional dazu */
    height: auto;
    object-fit: contain;            /* Ganzes Bild sichtbar */
    border-radius: 4px;
    margin: 40px 10px 10px 5px;          /* Abstand: unten 12px, links 12px */
}

.glossar-bild.zeigen {
    display: block;
}

/* =============================================================================
   RESPONSIVE (Anpassung für Smartphones/Tablets)
   ============================================================================= */

@media (max-width: 768px) {
    .glossar-tooltip {
        max-width: calc(100vw - 40px);      /* Volle Breite minus Rand */
        font-size: 13px;                    /* Kleinere Schrift auf Mobile */
    }
    
    .glossar-titel {
        font-size: 16px;                    /* Kleinerer Titel auf Mobile */
    }
    
    .glossar-text {
        font-size: 13px;                    /* Kleinerer Text auf Mobile */
    }
}

/* =============================================================================
   EIGENE ANPASSUNGEN
   Fügen Sie hier Ihre individuellen Styles hinzu
   ============================================================================= */

/* ===== BILDGRÖSSEN-OPTIONEN ===== */
/* Wählen Sie eine der folgenden Optionen oder passen Sie an: */

/* AKTUELL: Rechts mit Fließtext (240x180px) */
/* Bereits oben definiert */

/* OPTION 1: Links mit Fließtext (240x180px) */
/*
.glossar-bild {
    float: left !important;
    margin: 0 12px 12px 0 !important;
}
*/

/* OPTION 2: Kleiner rechts (160x120px) */
/*
.glossar-bild {
    float: right !important;
    max-width: 200px !important;
    max-height: 200px !important;
    margin: 0 0 12px 12px !important;
}
*/

/* OPTION 3: Größer rechts (320x240px) */
/*
.glossar-bild {
    float: right !important;
    max-width: 320px !important;
    max-height: 240px !important;
    margin: 0 0 12px 12px !important;
}
*/

/* OPTION 4: Zentriert ohne Fließtext */
/*
.glossar-bild {
    float: none !important;
    display: block !important;
    margin: 12px auto !important;
    max-width: 240px !important;
}
*/

/* OPTION 5: Volle Breite oben (kein Fließtext) */
/*
.glossar-bild {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    max-height: 200px !important;
    object-fit: cover !important;
    margin: 0 0 12px 0 !important;
}
*/

/* ===== WEITERE ANPASSUNGEN ===== */

/* Beispiel: Andere Farbe für Ihre Website */
/*
.glossar-begriff {
    color: #ff6600 !important;
    text-decoration-color: #ff6600 !important;
}

.glossar-tooltip {
    border-color: #ff6600;
}

.glossar-titel {
    color: #ff6600;
}
*/

/* Beispiel: Größerer Tooltip */
/*
.glossar-tooltip {
    max-width: 500px;
    min-width: 350px;
}
*/

/* Beispiel: Andere Schriftart */
/*
.glossar-tooltip {
    font-family: 'Georgia', serif;
}
*/

/* Beispiel: Kein Rahmen, nur Schatten */
/*
.glossar-tooltip {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
*/
