@charset "UTF-8";

/* Grundlegende Einstellungen */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; 
}

/* Der Papier-Look Wrapper */
.page-wrapper {
    max-width: 1100px; 
    margin: 40px auto; 
    background-color: #fff; 
    padding: 0 0 0 0; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); 
    border-radius: 5px; 
}

/* Hilfsklasse für Innenabstände */
.inner-container {
    padding: 0 40px;
}

/* Header & Logo */
header {
    background-color: #f2f2f2; 
    width: 100%;
    padding: 20px 0;
    margin-bottom: 40px;
    border-top-left-radius: 5px; 
    border-top-right-radius: 5px;
}

/* Header Flexbox & Link */
.header-flex {
    display: flex;
    justify-content: space-between; 
    align-items: flex-end; 
}

.header-back-link {
    color: #006070;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding-bottom: 0; 
}

.header-back-link:hover {
    color: #004a57;
    text-decoration: underline;
}

.logo {
    height: 70px; 
    width: auto;
    max-width: 100%;
    display: block;
}

/* FARB-DEFINITION: Teal / Petrol */
.teal-text {
    color: #006070; 
}

/* Link-Styling für Mailadresse (Teal) */
.teal-link {
    color: #006070;
    text-decoration: none;
}

.teal-link:hover {
    text-decoration: underline;
}

/* Layout Raster für Startseite */
.main-grid {
    display: flex;
    flex-direction: row;
    gap: 40px; 
    align-items: flex-start; 
    margin-bottom: 0; 
}

/* Linke Spalte (Bild) */
.profile-section {
    flex: 0 0 300px; 
    width: 300px;    
}

.profile-pic {
    width: 100%; 
    height: auto;
    display: block;
    filter: grayscale(100%); 
    border-radius: 15px; 
}

/* Design Linke Spalte (Clean Look) */
.profile-meta {
    margin-top: 25px;
    border-top: 1px solid #eee; /* Feine graue Linie */
    padding-top: 15px;
}

/* Der Link "Über mich" unter dem Bild */
.meta-link {
    display: block;
    padding: 8px 0;
    color: #555;
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid #eee; 
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
}

.meta-link:hover {
    color: #006070; 
}

.meta-link span { 
    color: #ccc; 
}

/* Kontaktbereich links unten */
.meta-contact {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777;
    line-height: 1.6;
}

.meta-contact a { 
    color: #006070; 
    text-decoration: none; 
}

.meta-contact a:hover { 
    text-decoration: underline; 
}


/* Rechte Spalte (Text) */
.content-section {
    flex: 1; 
    padding-top: 0; 
}

/* Typografie Überschriften */
h1 {
    font-size: 1.45rem; 
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
}

h2 {
    font-size: 1.1rem; 
    font-weight: 700;
    margin-bottom: 20px;
}

/* Subtitle für Unterseiten */
.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Interaktive Liste für die Startseite */
.interactive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.interactive-list li {
    margin-bottom: 20px;
}

.list-link {
    display: block; 
    background: #fff;
    border-left: 5px solid #006070; /* Teal Akzent links */
    padding: 15px 20px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.list-link:hover {
    background-color: #f4f9fa;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.list-link h3 {
    color: #006070;
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: bold;
}

.list-link p {
    color: #555;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.arrow-icon {
    float: right;
    font-weight: normal;
    font-size: 1.2rem;
    color: #006070;
}


/* --- CSS für Unterseiten (Header, Bilder etc.) --- */

/* Bild-Wrapper und Texte */
.about-flow-wrapper, .content-flow-wrapper { width: 100%; }
.about-flow-wrapper::after, .content-flow-wrapper::after { content: ""; display: table; clear: both; }
.about-flow-wrapper p, .content-flow-wrapper p { margin-bottom: 15px; color: #444; text-align: justify; }

.about-headline {
    margin-top: 30px !important; margin-bottom: 2px !important;
}
.about-headline:first-of-type { margin-top: 0 !important; }
.about-headline + p, .about-headline + ul.about-list { margin-top: 0 !important; }

/* Bild für "Über mich" (Wortwolke) */
.cloud-float-wrapper { 
    float: right; width: 300px; margin-left: 40px; margin-bottom: 20px; display: block; 
}
.cloud-img { width: 100%; height: auto; display: block; transition: transform 0.2s ease; }
.cloud-img:hover { transform: scale(1.02); }

/* Diagramm-Bild RECHTS */
.diagram-float-wrapper {
    float: right;
    width: 35%; 
    max-width: 320px;
    margin-left: 30px;
    margin-bottom: 5px; 
    text-align: center;
    
    /* ÄNDERUNG: Stellt sicher, dass das Bild über dem Text liegt */
    position: relative;
    z-index: 5;
}

/* Diagramm-Bild LINKS */
.diagram-float-wrapper-left {
    float: left;
    width: 35%; 
    max-width: 320px;
    margin-right: 30px; 
    margin-bottom: 5px; 
    text-align: center;
    
    /* ÄNDERUNG: Stellt sicher, dass das Bild über dem Text liegt */
    position: relative;
    z-index: 5;
}

.diagram-img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd; 
    border-radius: 5px;
    cursor: zoom-in; 
    transition: box-shadow 0.2s;
    background-color: #fff;
}

.diagram-img:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.img-caption {
    display: block; font-size: 0.8rem; color: #888; margin-top: 5px;
}

/* Disclaimer / Fußnote */
.disclaimer-text {
    margin-top: 50px; padding-top: 20px; border-top: 1px solid #eee;
    font-size: 0.85rem; color: #888; line-height: 1.4; clear: both; 
}

/* Listen */
ul.about-list, ul.standard-list { 
    list-style: none; padding-left: 0; margin: 16px 0 15px 0; 
    color: #555; font-size: 0.95rem; line-height: 1.3; 
}
ul.about-list li, ul.standard-list li { 
    margin-bottom: 8px; position: relative; padding-left: 15px; 
}
ul.about-list li::before, ul.standard-list li::before { 
    content: "\2022"; color: #333; font-weight: bold; 
    position: absolute; left: 0; top: -2px; font-size: 1rem; 
}

/* Lightbox Styles */
.modal {
    display: none; position: fixed; z-index: 1000; padding-top: 50px; 
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto; 
    background-color: rgba(0,0,0,0.85); 
}
.modal-content {
    margin: auto; display: block; width: 80%; max-width: 900px; 
    max-height: 85vh; object-fit: contain; border-radius: 5px; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
#caption {
    margin: auto; display: block; width: 80%; max-width: 700px; 
    text-align: center; color: #ccc; padding: 10px 0; height: 150px;
}
.modal-content, #caption { animation-name: zoom; animation-duration: 0.3s; }
@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }
.close {
    position: absolute; top: 15px; right: 35px; color: #f1f1f1; 
    font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer;
}
.close:hover, .close:focus { color: #bbb; text-decoration: none; cursor: pointer; }


/* Footer Design */
footer {
    background-color: #f2f2f2; 
    margin-top: 50px;          
    padding: 20px 0;           
    border-bottom-left-radius: 5px;  
    border-bottom-right-radius: 5px;
    border-top: none;
}

.footer-nav {
    text-align: center;
    font-size: 0.9rem;
}

.footer-nav a {
    color: #666; 
    text-decoration: none;
    margin: 0 15px; 
    font-weight: 500;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #006070;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 850px) {
    .page-wrapper {
        margin: 0; width: 100%; border-radius: 0; box-shadow: none; padding-bottom: 0; 
    }
    
    /* Mobil: Header Name und Logo untereinander, Name unten */
    .header-flex {
        flex-direction: column-reverse; /* Logo zuerst, Name darunter */
        gap: 10px; 
        text-align: center; 
        align-items: center; 
    }
    
    /* Mobil: Width auf Auto setzen */
    .header-name-wrapper {
        width: auto;
        text-align: center;
    }
    
    .inner-container { padding: 0 20px; }
    .main-grid { flex-direction: column; }
    
    .profile-section {
        flex: auto; width: 100%; max-width: 350px; margin: 0 auto 30px auto; 
        text-align: center; /* Zentriert grundsätzlich alles (Bild, Name) */
    }
    
    /* Erzwingt Linksbündigkeit für "Über mich" */
    .meta-link { 
        text-align: left; 
    }
    
    /* UPDATE: Erzwingt Linksbündigkeit für Kontaktbereich */
    .meta-contact { 
        text-align: left !important; 
        width: 100%;                 
        display: block;
    }
    
    .cloud-float-wrapper, .diagram-float-wrapper, .diagram-float-wrapper-left {
        float: none; display: block; margin: 0 auto 30px auto; max-width: 100%; width: 100%;
    }
    .modal-content { width: 95%; }
    
    footer { border-radius: 0; }
}