:root {
    /* Helle & Fröhliche Farbpalette */
    --white: #ffffff;
    --bg-light: #fdfdfd;     /* Fast weißer, cleaner Hintergrund */
    --black: #1a1a1a;        /* Weiches Schwarz für perfekte Lesbarkeit */
    --gray: #6e6e6e;         /* Mittleres Grau für Texte */
    --accent: #d4a373;       /* Ein warmer, freundlicher Gold-Sand-Ton */
    --line: #efefef;         /* Sehr helle Linien für Struktur */
    --font-main: 'Inter', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
}

body { 
    background: var(--bg-light); 
    color: var(--black); 
    font-family: var(--font-main); 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor { 
    width: 15px; 
    height: 15px; 
    border: 1px solid var(--black); 
    border-radius: 50%; 
    position: fixed; 
    pointer-events: none; 
    z-index: 10000; 
    transition: transform 0.1s ease;
}

/* Navigation */
nav { 
    position: fixed; 
    width: 100%; 
    padding: 25px 5%; 
    z-index: 900; 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--line);
}

.nav-container { 
    display: flex; 
    justify-content: flex-end; 
    align-items: center; 
}

.nav-right a { 
    margin-left: 30px; 
    text-decoration: none; 
    color: var(--gray); 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    transition: 0.3s; 
}

.nav-right a:hover { color: var(--black); }

/* Hero Section */
header { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    padding: 100px 10% 50px; 
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

/* Name im Hero - Extra Dünn */
.name-light { 
    font-family: var(--font-main); 
    font-weight: 200; 
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: clamp(1.8rem, 4.5vw, 4rem); 
    line-height: 1.1; 
    margin-bottom: 25px; 
    color: var(--black);
}

.hero-intro { 
    font-weight: 300; 
    color: var(--gray); 
    text-transform: uppercase; 
    letter-spacing: 5px; 
    font-size: 0.8rem;
    margin-top: 20px;
}

.hero-image img {
    width: 100%;
    height: 75vh;
    object-fit: cover;
    /* Jede Ecke hat eine andere Rundung */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 1px solid var(--line);
    transition: 1s ease-in-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-image img:hover {
    /* Form verändert sich sanft beim Drüberfahren */
    border-radius: 50%; 
    border-color: var(--accent);
}
/* Sektionstitel (01, 02) - Zentriert & Dünn */
.section-title { 
    font-size: 0.8rem; 
    color: var(--accent); 
    margin-bottom: 60px; 
    letter-spacing: 5px;
    font-family: var(--font-main);
    font-weight: 200;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

/* CV Section */
.cv-section { 
    padding: 120px 10%; 
    background: var(--bg-light);
}

.cv-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 80px; 
}

/* CV Überschriften (AUSBILDUNG, ERFAHRUNG, SKILLS) - Jetzt Dünner */
.cv-block h3 { 
    font-size: 0.9rem; 
    margin-bottom: 35px; 
    border-bottom: 1px solid var(--line); 
    padding-bottom: 15px; 
    font-family: var(--font-main);
    letter-spacing: 3px;
    color: var(--black);
    font-weight: 300;
    text-transform: uppercase;
}

.cv-item { 
    margin-bottom: 30px; 
}

.cv-item p, .skills-text {
    font-weight: 200; /* Extra dünne Schrift */
    color: var(--black);
    font-size: 1rem;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.cv-item p strong {
    font-weight: 400; /* Nur minimal dicker für wichtige Begriffe */
}

.date { 
    font-size: 0.75rem; 
    color: var(--accent); 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 300; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Work Section */
.project-detail { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
    gap: 80px; 
    padding: 120px 10%; 
    align-items: center; 
    border-bottom: 1px solid var(--line);
}

.project-detail.invert { direction: rtl; }
.project-detail.invert .project-text { direction: ltr; }

.project-text h2 { 
    font-family: var(--font-main); 
    font-weight: 300;
    font-size: 2.2rem; 
    margin-bottom: 25px; 
    color: var(--black);
    text-transform: uppercase;
}

.cat { color: var(--accent); font-size: 0.85rem; margin-bottom: 15px; font-weight: 600; text-transform: uppercase; }

.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-gallery img { 
    width: 100%; 
    height: 450px; 
    object-fit: cover; 
    cursor: pointer; 
    transition: 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    border: 1px solid var(--line);
}

.project-gallery img:hover { 
    transform: translateY(-10px);
    border-color: var(--accent);
}

/* Galerie */
.extra-gallery-title {
    padding: 100px 10% 30px;
    font-family: var(--font-main);
    font-weight: 200;
    font-size: 0.8rem;
    letter-spacing: 5px;
    color: var(--gray);
    text-align: center;
    text-transform: uppercase;
}

.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 10% 120px;
}

.masonry-gallery img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--line);
    transition: 0.6s ease;
}

.masonry-gallery img:hover {
    border-color: var(--accent);
}

/* Footer */
footer {
    padding: 120px 10% 50px;
    background: var(--white);
    border-top: 1px solid var(--line);
}

.footer-headline {
    font-family: var(--font-main);
    font-weight: 200;
    font-size: clamp(1.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 80px;
    color: var(--black);
    text-transform: uppercase;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.footer-col h4 {
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: var(--font-main);
    font-weight: 300;
}

.footer-link {
    color: var(--black);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.footer-link:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--line);
    font-size: 0.7rem;
    color: var(--gray);
}

.adin-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
}

.adin-link:hover { color: var(--accent); }

/* Buttons */
.btn-outline {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.4s ease;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

/* Lightbox & Banner */
#v-box { 
    background: rgba(255, 255, 255, 0.98); 
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999;
}

#v-img { 
    max-height: 90vh; 
    max-width: 90vw; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.cookie-banner {
    position: fixed; bottom: 20px; left: 20px; right: 20px;
    background: var(--white); border: 1px solid var(--line);
    padding: 20px; z-index: 5000; display: none;
    justify-content: space-between; align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Modals */
.modal {
    display: none; position: fixed; z-index: 6000; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(255,255,255,0.95);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white); margin: 100px auto; padding: 40px;
    border: 1px solid var(--line); width: 80%; max-width: 800px;
    position: relative;
}

.close-modal {
    position: absolute; right: 20px; top: 10px;
    font-size: 2rem; cursor: pointer; color: var(--black);
}

.reveal { opacity: 0; transform: translateY(40px); transition: 1.2s ease all; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 900px) {
    .hero-split, .project-detail, .footer-grid { grid-template-columns: 1fr; }
    header { padding-top: 120px; }
    .hero-image img { height: 45vh; }
    .nav-container { justify-content: center; }
    .cursor { display: none; }
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--black);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    background: transparent;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop .top-text {
    font-size: 0.6rem;
    letter-spacing: 2px;
    margin-top: 5px;
    font-weight: 200;
    text-transform: uppercase;
}

#backToTop:hover {
    color: var(--accent);
    transform: translateY(-5px);
}

@media (max-width: 600px) {
    #backToTop { right: 20px; bottom: 20px; }
}

#chat-container {
    position: fixed;
    bottom: 30px;
    right: 100px; /* Neben dem Back-to-Top Button */
    z-index: 99999;
}

#chat-trigger {
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--black);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 15px;
    display: none; /* Erst beim Klick zeigen */
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    overflow: hidden;
}

#chat-header {
    background: var(--bg-light);
    padding: 15px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
}

#chat-body {
    height: 250px;
    padding: 15px;
    overflow-y: auto;
    font-size: 0.85rem;
    font-weight: 200;
}

.chat-msg.bot {
    background: var(--bg-light);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

#chat-form {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--line);
}

#chat-form input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-weight: 200;
}

/* Chat Modul Ergänzungen */
#chat-form {
    display: flex;
    flex-direction: column; /* Felder untereinander */
    padding: 15px;
    background: var(--white);
    border-top: 1px solid var(--line);
}

#chat-form input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--line); /* Dezente Trennung */
    padding: 10px 0;
    margin-bottom: 10px;
    outline: none;
    font-family: inherit;
    font-weight: 200;
    font-size: 0.85rem;
    background: transparent;
    transition: border-color 0.3s;
}

#chat-form input:focus {
    border-bottom-color: var(--accent);
}

#chat-form .input-group {
    display: flex;
    align-items: center;
}

#chat-form .input-group input {
    margin-bottom: 0;
    border-bottom: none; /* Letztes Feld ohne Linie */
}

#chat-form button {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    padding-left: 10px;
    transition: transform 0.3s;
}

#chat-form button:hover {
    transform: scale(1.2);
}

/* Scrollbar für das Chat-Fenster (fein & dünn) */
#chat-body::-webkit-scrollbar {
    width: 4px;
}
#chat-body::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 10px;
}

@keyframes chat-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#chat-trigger {
    /* ... dein bisheriges CSS ... */
    animation: chat-bounce 3s ease-in-out infinite;
}

#chat-trigger:hover {
    animation-play-state: paused; /* Stoppt beim Drüberfahren */
    background: var(--bg-light);
}

/* Mobile Optimierung für das Chat-Modul */
@media (max-width: 900px) {
    #chat-container {
        right: 20px; /* Viel näher am Rand auf dem Handy */
        bottom: 20px;
    }

    #chat-window {
        width: calc(100vw - 40px); /* Fast volle Breite auf dem Handy */
        max-width: 320px;
        right: 0;
    }

    #chat-trigger {
        width: 50px;  /* Etwas kleiner auf dem Handy */
        height: 50px;
    }
}