/* ==========================================================================
   GEORG BRÜCKMANN PORTFOLIO - STYLE.CSS
   Stand: Design-Variante 1 (Katalog-Look: Georgia & Arial)
   ========================================================================== */

/* ==========================================================================
   1. BASIS-EINSTELLUNGEN & VARIABLEN
   ========================================================================== */
html { scroll-behavior: smooth; }

body {
    margin: 0; padding: 0;
    background-color: #CCCCCC;
    display: flex; 
    
    /* HAUPTSCHRIFTART (Fließtext): Georgia (Serifen) für gute Lesbarkeit */
    font-family: Georgia, "Times New Roman", Times, serif;
}

/* --- SCHRIFTGRÖSSEN STEUERUNG --- */
:root {
    /* Standard-Werte (Modern & Gut lesbar) */
    --groesse-menu: 14px;      
    --groesse-text: 17px;      
    --groesse-titel: 20px;     
    --zeilenabstand: 24px;     
}

/* "Groß"-Modus (wird per Javascript aktiviert) */
body.gross {
    --groesse-menu: 16px;
    --groesse-text: 19px;
    --groesse-titel: 26px;
    --zeilenabstand: 30px;
}

/* ==========================================================================
   2. SIDEBAR / MENÜ (Links)
   ========================================================================== */
nav#sidebar {
    width: 230px; min-width: 230px;
    height: 100vh;
    position: sticky; top: 0;
    background-color: #999999;
    
    /* MENÜ-SCHRIFT: Arial (Technisch & Klar) */
    font-family: Arial, Helvetica, sans-serif;
    
    font-size: var(--groesse-menu);
    overflow-y: auto;
    padding-top: 20px;
    box-sizing: border-box;
}

nav#sidebar a { text-decoration: none; color: #000; display: block; margin-bottom: 2px; }
nav#sidebar span { display: block; margin-bottom: 2px; color: #000; } 

/* Interaktion (Aktiver Link & Hover) */
nav#sidebar a.active { color: yellow !important; font-weight: bold; }
nav#sidebar a:hover { color: green; }

/* Listen-Struktur (Abstände) */
nav#sidebar p { margin: 0 0 10px 0; padding-left: 5px; }
nav#sidebar ul { list-style-type: none; padding: 0; margin: 0; }

/* --- SPEZIELLE EINZÜGE (INDENTS) --- */

/* Ebene 0: Dein Name (Groß & Fett) */
.nav-name {
    padding-left: 20px !important;
    font-size: 18px; 
    line-height: 1.2;
    margin-bottom: 5px;
    display: block;
}

/* Ebene 1: Hauptkategorien (Arbeiten, Vita) */
.nav-indent-1 { padding-left: 20px !important; } 

/* Ebene 2: Unterpunkte (Werke, E-Mail, A/A) - Alle 35px Einzug */
nav#sidebar ul li a,            /* Die Werk-Liste */
.nav-indent-mail,               /* E-Mail Link */
nav#sidebar p.nav-font-toggle { /* A / A Umschalter */
    padding-left: 35px !important;
}

/* Ebene 3: Sprachumschalter (leicht eingerückt) */
.nav-indent-3 { padding-left: 27px !important; } 

/* A / A Umschalter Styling */
nav#sidebar p.nav-font-toggle {
    color: #444; 
    user-select: none;
    margin-top: 2px;
}

nav#sidebar a.inline-btn {
    display: inline !important; width: auto !important; 
    padding: 0 !important; margin: 0 !important;
    border: none !important; color: black; font-weight: bold;
}

/* ==========================================================================
   3. HAUPTINHALT & LAYOUT (Rechts)
   ========================================================================== */
main#content {
    flex-grow: 1; 
    padding-top: 40px; 
    padding-bottom: 100px;
}

.projekt-container {
    width: 757px; max-width: 100%; margin: 0 auto;
}

section { scroll-margin-top: 20px; }
hr { border: 0; border-top: 1px solid #000; margin: 50px 0; width: 100%; }

/* ==========================================================================
   4. TYPOGRAFIE & TEXTBLÖCKE
   ========================================================================== */

/* Grundeinstellung für Fließtext */
.fliesstext { 
    font-size: var(--groesse-text); 
    line-height: var(--zeilenabstand); 
    /* Erbt automatisch Georgia vom Body */
}

/* STANDARD TEXTBLOCK: Blocksatz mit Einzug (für Projekte) */
.text-block {
    width: 100%; box-sizing: border-box;
    padding-left: 157px; 
    text-align: justify;
    margin-bottom: 20px;
}

/* LINKBÜNDIGER TEXTBLOCK: Kein Einzug (für VITA / CV) */
.text-block-left {
    width: 100%; box-sizing: border-box;
    padding-left: 0;     /* Ganz links */
    text-align: left;    /* Kein Blocksatz (verhindert Löcher) */
    margin-bottom: 20px;
}

/* TITEL: Sollen technisch/modern bleiben (Arial) */
.titel, .titel-links, .titel-rechts {
    font-family: Arial, Helvetica, sans-serif; 
    font-weight: normal;
    font-size: var(--groesse-titel);
    display: block;
    margin-bottom: 20px;
    width: 100%; 
}

.titel { margin-bottom: 10px; } /* Kleinerer Abstand im Textfluss */
.titel-links { text-align: left; }
.titel-rechts { text-align: right; }

/* Links im Text (Read more...) */
.read-more-link {
    font-family: Arial, Helvetica, sans-serif; /* Passend zum Menü */
    font-size: 14px; 
    color: #666;
    text-decoration: underline; cursor: pointer;
}
.hidden-text { display: none; margin-top: 20px; }

/* ==========================================================================
   5. BILDER & GALERIEN
   ========================================================================== */
.werk-bild { display: block; width: 100%; height: auto; margin-bottom: 5px; }

/* Bildunterschriften: Technisch (Arial), klein, rechtsbündig */
.bild-info {
    font-family: Arial, Helvetica, sans-serif;
    font-size: var(--groesse-menu); 
    text-align: right; 
    margin-bottom: 50px; 
    width: 100%; box-sizing: border-box;
}

.content-right {
    text-align: right; margin-bottom: 50px;
    display: flex; flex-direction: column; align-items: flex-end;
}

.img-constrained { max-width: 600px; width: 100%; height: auto; }

/* Bilder-Paare (Nebeneinander) */
.bild-paar {
    display: flex; justify-content: space-between;
    margin-bottom: 20px; width: 100%;
}
.bild-paar img { width: 49%; height: auto; margin-bottom: 0; }
.bild-paar img.w-third { width: 32%; }

/* Abstände */
.gap-20 { height: 20px; }
.gap-30 { height: 30px; }

/* ==========================================================================
   6. RESPONSIVE DESIGN (Mobile < 900px)
   ========================================================================== */
@media screen and (max-width: 900px) {
    body { flex-direction: column; }

    /* Menü oben fixiert */
    nav#sidebar {
        width: 100%; min-width: 0; height: auto;
        position: relative; top: 0;
        border-right: none; border-bottom: 1px solid #ccc;
        padding-bottom: 20px; padding-right: 20px;
    }
    nav#sidebar a { padding-top: 5px; padding-bottom: 5px; }

    /* Inhalt passt sich an */
    main#content { padding: 20px 15px; width: 100%; box-sizing: border-box; }
    .projekt-container { width: 100%; }

    /* Einzüge und Ausrichtungen resetten */
    .text-block, .text-block-left { padding-left: 0; }
    .titel-rechts, .bild-info, .content-right { text-align: left; align-items: flex-start; }

    /* Bilder volle Breite */
    img, .werk-bild, .img-constrained { max-width: 100% !important; margin-left: 0 !important; }
    
    .bild-paar { flex-direction: column; }
    .bild-paar img, .bild-paar img.w-third { width: 100%; margin-bottom: 20px; }
}

/* ==========================================================================
   7. NACH OBEN BUTTON
   ========================================================================== */
#back-to-top {
    position: fixed; bottom: 20px; right: 20px;
    width: 50px; height: 50px;
    background-color: rgba(0, 0, 0, 0.6); color: white;
    text-align: center; line-height: 48px; font-size: 30px;
    border-radius: 50%; z-index: 9999; cursor: pointer;
    display: none; transition: background-color 0.3s;
}
#back-to-top:hover { background-color: rgba(0, 0, 0, 0.9); }

/* Nur auf Mobile sichtbar */
@media screen and (min-width: 901px) { 
    #back-to-top { display: none !important; } 
}