/* Globale Design-Konstanten */
:root {
    --primary-indigo: #4f46e5;
    --text-dark: #2d3748;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Wiederverwendbare Komponenten */
.font-serif-title {
    font-family: 'Georgia', 'Times New Roman', serif;
}

/*Textformatierung für Texte         immer Grössenangaben Von Textprogrammen mit 1.33 multiplizieren,
    also 1 rem = 14 px;
    die Schriftgröße soll 48 sein, multipliziert mit 1.33 = 63,84 
    jetzt in rem umrechnen 63,84/ 14 = 4,56 rem bei den Überschriften
*/
/*Textformatierung für Überschriften*/
.UeberschriftenFormat {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 2rem !important; /* Kompakt fürs Hochformat */
    line-height: 1.2 !important;
    /* --- HIER SIND DIE NEUEN ZEILEN FÜR DIE SILBENTRENNUNG --- */
    hyphens: auto !important; /* Aktiviert die automatische Trennung mit Bindestrich */
    -webkit-hyphens: auto !important; /* Unterstützung für Safari / iOS */
    -ms-hyphens: auto !important; /* Unterstützung für ältere Edge/IE-Versionen */
}

/* 2. LANDSCAPE-MODUS: Speziell für quer gehaltene Smartphones */
@media (max-width: 991px) and (orientation: landscape) {
    .UeberschriftenFormat {
        font-size:1.8rem !important; /* Leicht größer als Hochformat, aber sicher vor dem Ausbrechen */
    }

    /* Verhindert, dass die Boxen im Querformat auf kleinen Bildschirmen riesige, 
       leere Abstände erzwingen, wenn sie untereinander stehen */
    .Text-Box-Flex {
        min-height: auto !important;
    }
}

/* 3. DESKTOP-STYLE: Für echte große Bildschirme (PCs, Laptops, große Tablets) */
@media (min-width: 992px) {
    .UeberschriftenFormat {
        font-size: 4.56rem !important; /* Hier wirkt deine gewünschte Riesenschrift majestätisch */
    }

    /* Textformatierung für Texte */
    .TexteschriftFormat {
        font-family: 'Lato', Arial, sans-serif !important;
        font-size: 1.14rem !important;
    }
}
    .linktextFormat {
        color: white !important;
        font-family: 'Roboto', sans-serif;
        font-weight: 600; /* Jetzt wird es richtig schlank! */
        font-size: 1.5rem; /* Auf 4rem angepasst, damit es in die Leiste passt */
        line-height: 1.4;
    }

    @media (min-width: 768px) {
        html {
            .UeberschriftenFormat {
                font-family: 'Courier New', Courier, monospace !important;
                font-size: 3.99rem !important;
            }
            /* Textformatierung für Texte */
            .TexteschriftFormat {
                font-family: 'Lato', Arial, sans-serif !important;
                font-size: 1.14rem !important;
            }
        }
    }

    .card-zoom-img {
        transition: transform 0.3s ease;
    }

    .card:hover .card-zoom-img {
        transform: scale(1.05);
    }

    .line-clamp-1 {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Interaktions-Fokus */
    .btn:focus, .btn:active:focus, .form-control:focus {
        box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem var(--primary-indigo) !important;
        border-color: var(--primary-indigo) !important;
    }

    /* Der Zustand vor dem Hovern */
    .btn-dashboard-hover {
        transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    }

        /* Der Zustand beim Hovern (Hintergrund weiß, Schrift dunkel, volle Deckkraft) */
        .btn-dashboard-hover:hover {
            background-color: #ffffff !important;
            color: #212529 !important; /* Dunkle Schriftfarbe, damit man den Text auf weiß sieht */
            opacity: 1 !important; /* Hebt die opacity-75 auf */
            text-shadow: none !important; /* Entfernt den Schatten, da weißer Hintergrund */
        }

    #mainSidebar.collapsed {
        width: 0px !important;
        padding: 0px !important;
        overflow: hidden !important;
        border-right: none !important;
    }

.thumbnail-wrapper {
    position: relative;
    display: inline-block;
}

.btn-delete-image {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #dc3545; /* Bootstrap Red */
    color: white;
    border: none;
    font-size: 11px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    padding: 0;
    z-index: 10;
    transition: transform 0.2s;
}

    .btn-delete-image:hover {
        transform: scale(1.2);
        background-color: #bd2130;
    }
/* --- FOOTER MOBILE-FIRST (Standard für Handy: Untereinander) --- */
.site-footer {
    font-size: 0.85rem;
    padding: 15px 12px;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    /* WICHTIG: Die Farbe direkt für die a-Tags in den footer-links setzen */
    .footer-links a {
        color: var(--text-dark) !important; /* Farbe für das Handy (dunkel) */
        text-decoration: none;
    }

/* --- DESKTOP-ANSICHT (Ab 768px: Alles in einer Reihe) --- */
@media (min-width: 768px) {
    .site-footer {
        font-size: 1.2rem;
        color: white;
        background-color: black;
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        margin: 0;
        padding: 10px 20px;
        box-sizing: border-box;
        z-index: 1000;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .footer-links {
        flex-direction: row;
        gap: 30px;
    }

        /* Auf dem Desktop machen wir die Links hier weiß */
        .footer-links a {
            color: white !important;
        }
}