/* --- VARIABLES : DARK LUXURY THEME --- */
:root {
    --bg-overlay: rgba(15, 15, 15, 0.76);
    --text-main: #f0f0f0;
    --text-muted: #cccccc;
    --accent: #c9a962;
    --border: rgba(255, 255, 255, 0.15);
    --font-title: 'Georgia', serif;
    --font-body: 'Verdana', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    min-height: 100%; 
    background-color: #0f0f0f; /* Sécurité : fond sombre par défaut si l'image charge lentement */
}

body {
    background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('de/Stempel_DE.jpg');
    background-size: cover;
    background-position: center 29%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.site-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.site-header {
    padding: 35px 0 2px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.brand h1 {
    font-family: var(--font-title);
    font-size: 1.9rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    color: #fff;
    line-height: 1.2;
}

.brand p {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
    margin-bottom: 25px;
}

/* --- LIEN EN-TÊTE / BRAND (Surface cliquable ajustée au texte) --- */
a.brand-link {
    display: inline-block; /* Limite la largeur cliquable au contenu exact */
    text-decoration: none;
    color: inherit;
    margin-bottom: 25px;   /* La marge basse est portée par le lien pour s'arrêter juste sous le texte */
}

a.brand-link h1 {
    font-family: var(--font-title);
    font-size: 1.9rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    color: #fff;
    line-height: 1.2;
}

a.brand-link p {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
    margin-bottom: 0;      /* Supprime la marge sous le p pour stopper le clic juste au bas des lettres */
}

/* Verrouillage strict de l'apparence au survol */
a.brand-link:hover h1 { color: #fff; }
a.brand-link:hover p { color: var(--text-muted); }

.lang-switcher { 
    display: flex; 
    gap: 15px; 
    align-items: center;
    margin-top: 4px;
}

/* --- REGLES GENERALES DES DRAPEAUX --- */
.flag {
    display: block;
    width: 32px;
    height: 21px;
    border: 1px solid #ffffff; /* Bordure blanche nette de 1px */
    opacity: 0.7;
    transition: all 0.3s;
    box-sizing: border-box;   /* Garantit que la bordure reste À L'INTÉRIEUR des 32x21px */
    background-clip: padding-box; /* Empêche tout pixel du dégradé de baver sous le bord */
}

/* Styling pour la langue actuellement sélectionnée */
a.current .flag {
    opacity: 1;
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); /* Halo lumineux renforcé */
}

/* Effet au survol du drapeau inactif */
.flag:hover {
    opacity: 1;
    border-color: #ffffff;
}

/* --- DEGRADES SIMPLIFIES --- */
.flag-de { 
    background: linear-gradient(to bottom, #000 33.3%, #DD0000 33.3%, #DD0000 66.6%, #FFCC00 66.6%); 
}

.flag-fr { 
    background: linear-gradient(to right, #002395 33.3%, #FFFFFF 33.3%, #FFFFFF 66.6%, #ED2939 66.6%); 
}

.site-nav { margin-bottom: 50px; }

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    border-bottom: 1px solid var(--border); /* Ligne inférieure du menu */
    padding: 11px 0 12px 0; /* Écart identique en haut (12px) et en bas (12px) */
}

.site-nav a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: bold;
}

.site-nav a.current { color: var(--accent); }
.site-nav a:hover { color: #fff; }

.main-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.site-content {
    padding: 20px 0 60px 0;
    padding-left: 19%; /* Marge gauche pour le texte sur Desktop */
    position: relative;
}

.site-content h2 {
    font-family: var(--font-title);
    font-size: 2.3rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: bold;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    line-height: 1.3;
}

.site-content h3 {
    font-family: var(--font-title);
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.5rem;
}

.site-content p {
    margin-bottom: 20px;
    color: #e5e5e5;
    text-align: justify;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.site-content strong { color: #fff; font-weight: 600; }

.site-content a { 
    color: var(--accent); 
    text-decoration: underline; 
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.site-content a:hover { color: #fff; text-decoration: none; }

.site-content ul, .site-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #e5e5e5;
}
.site-content li { margin-bottom: 10px; }

/* --- GESTION DES IMAGES --- */

/* Profilbild Desktop (Rechts neben dem Text platziert) */
.site-content img.profile-photo {
    float: right;
    width: 121px;
    height: 142px;               /* Fixe la hauteur pour permettre le recadrage */
    object-fit: cover;          /* Empêche toute déformation */
    object-position: center 20%;/* Decale le cadrage vers le bas pour couper le haut */
    margin-top: -128px;
    margin-left: 30px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* Image Justitia : Plus éloignée du texte et plus décalée à droite */
.site-content img.inline-photo {
    float: right;
    width: 480px;
    margin-left: 50px;
    margin-right: -45px;
    margin-bottom: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.8);
}

/* Figure avec légende (image latérale flottante + figcaption) */
.site-content figure.side-figure {
    float: right;
    width: 280px;
    margin: 0 0 20px 25px;
}
.site-content figure.side-figure img {
    width: 100%;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.site-content figure.side-figure figcaption {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
}

/* Séparateur horizontal */
.site-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 25px 0;
}

/* --- FOOTER : Aligné exactement avec le menu/contenu --- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 16px 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.75rem;
    background: rgba(100, 100, 100, 0.3);
    color: #f0f0f0;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto; /* Pousse le footer en bas de la page si le contenu est court */
}

.site-footer a { margin: 0 8px; color: #fff; text-decoration: underline; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.footer-sep { margin: 0 8px; display: inline-block; opacity: 0.5; }

/* --- ADAPTATIONS MOBILES --- */
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 20px; text-align: center; align-items: center; }
    .lang-switcher { margin-top: 15px; }
    .site-nav ul { justify-content: center; }
    .site-content { padding-left: 0; padding-right: 0; }
    
    /* Titel auf Mobile mit unterer gelber Linie */
    .site-content h2 {
        font-size: 1.9rem;
        border-left: none;
        border-bottom: 2px solid var(--accent);
        padding-left: 0;
        padding-bottom: 15px;
        text-align: center;
    }
    .site-content p { text-align: left; font-size: 16px; }

    /* PROFILBILD MOBIL: Kreisrund, zentriert und direkt unter der gelben Linie */
    .site-content img.profile-photo {
        float: none;                  /* Verhindert seitliches Umfließen */
        position: static;             /* In den normalen Textfluss einreihen */
        width: 130px;                 /* Feste Breite */
        height: 130px;                /* Feste Höhe */
        object-fit: cover;            /* Verhindert Bildverzerrung */
        border-radius: 50% !important;/* Kreisform erzwingen */
        border: 2px solid var(--accent); /* Goldener Rahmen */
        margin: 20px auto !important; /* Zentriert mit Abstand oben & unten */
        display: block;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    }

    /* Reset débordement sur mobile */
    .site-content img.inline-photo {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 20px auto;
        display: block;
        margin-left: 0;
        margin-right: 0;
    }

    /* Reset figure latérale sur mobile */
    .site-content figure.side-figure {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }

    /* Correctif fond sombre au défilement */
    body { 
        background-attachment: scroll; 
        background-size: cover;
        background-color: #0f0f0f;
    }

    /* Footer compact sur une seule ligne */
    .site-footer {
        font-size: 0.65rem;
        padding: 12px 5px;
        white-space: nowrap;
    }

    .site-footer a {
        margin: 0 3px;
    }
  
  /* --- SCHUTZ GEGEN SPEICHERN / NEUEN TAB --- */

/* Verhindert das Auswählen und Ziehen aller Bilder */
img, figure {
    -webkit-user-drag: none; /* Safari / Chrome */
    user-drag: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE / Edge */
    user-select: none;         /* Standard */
}

/* 
  Option A: Verhindert jegliche Maus-Interaktionen (Klick, Rechtsklick, Drag).
  Bilder verhalten sich wie reine Hintergrundgrafiken.
*/
.site-content img {
    pointer-events: none;
}

    .footer-sep {
        margin: 0 3px;
    }
}