/* 1. FARBPALETTE & VARIABLEN (Laut deiner Planung) */
:root {
    --deep-navy: #0A1045;       /* Navigation, Überschriften, Buttons */
    --alabaster-grey: #E6E8E6;  /* Haupt-Hintergrund */
    --dust-grey: #CED0CE;       /* Sektionen & Ränder */
    --text-dark: #222222;       /* Fliesstext */
    --card-bg: #ffffff;         /* Karten-Hintergrund */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* 2. DARK MODE FARBEN (Werden aktiv, wenn JS die Klasse an den Body hängt) */
body.dark-mode {
    --deep-navy: #7FA1FF;       /* Helleres Blau als Akzentfarbe für gute Lesbarkeit */
    --alabaster-grey: #121212;  /* Dunkler Hintergrund */
    --dust-grey: #2A2A2A;       /* Dunklere Sektionen & Ränder */
    --text-dark: #E0E0E0;       /* Heller Fliesstext */
    --card-bg: #1E1E1E;         /* Dunkle Karten */
}

body.dark-mode .navbar,
body.dark-mode .footer {
    background-color: #0A0A0A;  /* Navbar und Footer noch etwas dunkler */
    border-color: var(--dust-grey);
}

body.dark-mode .btn {
    color: #121212;
}

/* 3. GRUND-EINSTELLUNGEN */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--alabaster-grey);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
    color: var(--deep-navy);
}

/* 4. NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background-color: var(--deep-navy);
    border-bottom: 1px solid var(--dust-grey);
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--alabaster-grey);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
    font-weight: bold;
    border-bottom: 2px solid var(--dust-grey);
}

/* 4. NAVIGATION LOGO ANPASSUNGEN */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;                  /* Abstand zwischen Bild und Text */
    text-decoration: none;      /* Entfernt die Unterstreichung */
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.85;              /* Leichter Effekt beim Drüberfahren */
}

.nav-logo {
    height: 40px;               /* Logo-Höhe in der Navigationsbar */
    width: auto;
    border-radius: 4px;         /* Leicht abgerundete Ecken */
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;             /* Textfarbe in der Navbar */
}

/* Anpassung für mobile Geräte, damit es nicht zu gequetscht ist */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }
    .nav-logo {
        height: 32px;
    }
}

/* 5. BUTTONS & CARDS */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--deep-navy);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 6. ÜBER MICH SEITE */
.about-section {
    display: flex;
    flex-direction: column;
    padding: 50px 10%;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-block {
    margin-bottom: 20px;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--deep-navy);
}

.about-block h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (min-width: 768px) {
    .about-section {
        flex-direction: row;
    }
}

/* 7. FOOTER STICKY */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    background-color: var(--deep-navy);
    color: #ffffff;
    border-top: 1px solid var(--dust-grey);
}

.footer a {
    color: var(--dust-grey);
    text-decoration: none;
}

/* 8. LEBENSLAUF & TIMELINE (education.html) */
.education-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
}

.education-container h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 30px auto;
    padding-left: 30px;
    border-left: 3px solid var(--deep-navy);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 5px;
    width: 15px;
    height: 15px;
    background-color: var(--deep-navy);
    border-radius: 50%;
    border: 3px solid var(--alabaster-grey);
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--dust-grey);
}

.timeline-content h3 {
    margin-bottom: 5px;
}

.download-container {
    text-align: center;
    margin-top: 35px;
}

/* 9. PROJEKTE (projects.html) */
.projects-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
}

.projects-container h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--dust-grey);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 20px;
}

.project-info h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .project-2 {
        margin-top: 60px;
    }
}

/* 10. FÄHIGKEITEN (skills.html) */
.skills-container {
    max-width: 1100px; /* Erhöht die maximale Breite für die ganze Seite */
    width: 90%;       /* Passt sich bildschirmfüllend an */
    margin: 0 auto;
    padding: 50px 0;
}

.skills-container h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
    background-color: var(--card-bg);
    padding: 18px 25px;
    border-radius: 10px;
    border: 1px solid var(--dust-grey);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.skill-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 160px; /* Feste Breite für Text + Prozent auf der linken Seite */
}

.skill-name {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-dark);
}

body.dark-mode .skill-name {
    color: #ffffff;
}

.skill-percent {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0.75;
    font-size: 0.95rem;
}

body.dark-mode .skill-percent {
    color: #ffffff;
}

.skill-bar-bg {
    flex: 1; /* Dehnt den Ladebalken über den gesamten restlichen Platz aus */
    height: 18px;
    background-color: var(--dust-grey);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background-color: var(--deep-navy);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

@media (max-width: 650px) {
    .skill-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

/* 11. PRAKTIKUM (internship.html) */
.internship-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
}

.internship-container h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.internship-block {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid var(--dust-grey);
}

.internship-block h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--deep-navy);
    padding-bottom: 8px;
}

.company-name {
    font-size: 1.1rem;
    color: var(--deep-navy);
    font-weight: bold;
}

.internship-period {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* 12. KONTAKT (contact.html) */
.contact-container {
    max-width: 900px; /* Erhöht die Breite auf der Seite */
    width: 90%;       /* Macht das Formular flexibel und bildschirmfüllender */
    margin: 0 auto;
    padding: 50px 0;
}

.contact-container h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
}

.contact-info {
    text-align: center;
    margin-bottom: 35px;
}

.email-link {
    color: var(--deep-navy);
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
}

body.dark-mode .email-link {
    color: var(--deep-navy);
}

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

.contact-form {
    background-color: var(--card-bg);
    padding: 40px; /* Mehr Innenabstand für ein luftigeres Design */
    border-radius: 10px;
    border: 1px solid var(--dust-grey);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--dust-grey);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--alabaster-grey);
    color: var(--text-dark);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: #121212;
    color: #ffffff;
    border-color: var(--dust-grey);
}

.form-group textarea {
    min-height: 180px; /* Macht das Eingabefeld für die Nachricht höher */
    resize: vertical;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--deep-navy);
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
}
/* 13. STARTSEITE (index.html) */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 10%;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--deep-navy);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.description {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.quote {
    border-left: 4px solid var(--deep-navy);
    padding-left: 15px;
    margin-bottom: 25px;
    font-style: italic;
    background-color: var(--dust-grey);
    padding: 12px 15px;
    border-radius: 0 6px 6px 0;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 3px solid var(--dust-grey);
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
    }
}

/* HAMBURGER MENÜ & RESPONSIVE DESIGN */
.hamburger {
    display: none;
    font-size: 1.8rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ffffff;
}

@media (max-width: 768px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        gap: 15px;
        text-align: center;
    }
    
    body.dark-mode .nav-links {
        background-color: var(--card-bg);
    }
    
    .nav-links.active {
        display: flex;
    }
}

/* Navigation und Footer-Links im Dark Mode weiß färben */
body.dark-mode .nav-links a,
body.dark-mode .footer a {
    color: #ffffff;
}

body.dark-mode .nav-links a:hover, 
body.dark-mode .nav-links a.active {
    color: var(--deep-navy); /* Macht den aktiven Link im Dark Mode hellblau statt weiß-auf-weiß */
}

/* Logo Nav */
.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none; /* Entfernt die Unterstreichung */
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85; /* Leichtes Transparenz-Feedback beim Drüberfahren */
}

/* ========================================== */
/* IMPRINT / IMPRESSUM STYLING                 */
/* ========================================== */

.impressum-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card-bg, #ffffff);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}



.impressum-section h2 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--deep-navy, #0A1045);
}

.impressum-section address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-dark, #222222);
}

.impressum-section p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-dark, #222222);
}

.impressum-section a {
    color: var(--primary-color, #007bff);
    text-decoration: none;
}

.impressum-section a:hover {
    text-decoration: underline;
}

/* Haftungsausschluss Liste */
.disclaimer-list {
    padding-left: 20px;
    margin-bottom: 25px;
}

.disclaimer-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-dark, #222222);
}

.disclaimer-list strong {
    color: var(--deep-navy, #0A1045);
}

