/* --- Globale Einstellungen & Farbpalette --- */
:root {
    --bg-color: #ffffff;
    --card-bg: #f8fafc;
    --text-color: #2d3748;
    --text-muted: #64748b;
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-pink: #ec4899;
    --light-pink: #fdf2f8;
    --nav-bg: #1e3a8a;
    --border-color: #e2e8f0;
}

/* Dark Mode Farbwerte */
[data-theme="dark"] {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --primary-blue: #3b82f6;
    --secondary-blue: #60a5fa;
    --light-pink: #3f1d38;
    --nav-bg: #0f172a;
    --border-color: #334155;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Horizontale Navigation --- */
header {
    background-color: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo-wrapper:hover {
    transform: scale(1.02);
}

.nav-logo {
    width: 70px;
    height: 70px;
    object-fit: cover;

}

.logo-text {
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0,5px;
}

@media (max-width: 768px) {
    .nav-logo {
        width: 50px;
        height: 50px;
    }
    .logo-text {
        font-size: 1.3rem;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
}

.nav-menu a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: var(--accent-pink);
    color: white;
}

/* Dark Mode Button */
.theme-toggle {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* Hamburger Menü-Button (Standardmäßig versteckt) */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Hauptinhalt --- */
main {
    flex: 1;
    width: 100%;
}

.content-wrapper {
    width: 100%;
    margin: 0;
    padding: 3rem 4%;
}

h1, h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* --- Hauptseite Elemente --- */
.hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-bottom: 5px solid var(--accent-pink);
}

.intro-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 3rem 0;
    background: var(--light-pink);
    padding: 2.5rem;
    border-radius: 12px;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-blue);
    flex-shrink: 0;
}

/* --- Kontaktformular --- */
.contact-form {
    max-width: 600px;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 6px;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--secondary-blue);
}

button.btn-submit {
    background-color: var(--secondary-blue);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

button.btn-submit:hover {
    background-color: var(--primary-blue);
}

/* --- Galerien --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- E-Learning --- */
.elearning-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: 0;
}

/* --- Fußbereich --- */
footer {
    background-color: var(--card-bg);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

footer a {
    color: var(--secondary-blue);
    text-decoration: none;
}

/* --- Responsive Layout (Mobilgeräte) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none; /* Per Standard versteckt auf Mobilgeräten */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--nav-bg);
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.show {
        display: flex; /* Wird via JS getoggelt */
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
    }

    .intro-section {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Lightbox / Bild-Großansicht Overlay --- */
.lightbox-modal {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9); /* Dunkler Slate-Hintergrund */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    border: 4px solid #ffffff;
}

.lightbox-modal.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--accent-pink);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    color: #ffffff;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* --- Hero-Bereich mit Text über dem Bild --- */
.hero-section {
    width: 100%;
    height: 60vh; /* Nutzt 60% der sichtbaren Bildschirmhöhe */
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    /* Ein feiner rosa Abschlussbalken unten */
    border-bottom: 5px solid var(--accent-pink); 
}

/* Der Filter (linear-gradient im PHP-Code) sorgt dafür, 
   dass das Bild abgedunkelt wird und der weiße Text perfekt lesbar ist */
.hero-content h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    background-color: var(--accent-pink);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* --- Portfolio Übersichts-Bereich --- */
.portfolio-overview {
    padding: 2rem 0;
}

.portfolio-overview h2 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Flexbox Grid für die 3 Portfolio-Kacheln */
.portfolio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.p-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.12);
}

.p-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.p-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.p-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-get: 1; /* Schiebt die Buttons automatisch auf dieselbe Höhe */
    line-height: 1.5;
}

/* Die Absprung-Buttons in den Kacheln */
.btn-card {
    display: inline-block;
    text-decoration: none;
    background-color: transparent;
    color: var(--secondary-blue);
    border: 2px solid var(--secondary-blue);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.2s ease;
    margin-top: auto; /* Buttons bleiben immer unten ausgerichtet */
}

.btn-card:hover {
    background-color: var(--secondary-blue);
    color: white;
}

/* --- Responsive Anpassung für kleinere Monitore --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-section {
        height: 50vh;
    }
}

/* --- E-Learning Kacheln-Grid --- */
.elearning-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.learning-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learning-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
}

/* Kleines Info-Label oben rechts in der Kachel */
.learning-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--light-pink);
    color: var(--accent-pink);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.learning-badge.video-badge {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.learning-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    padding-right: 60px; /* Verhindert, dass der Titel in das Badge läuft */
}

.learning-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1; /* Schiebt den Button ans Ende der Karte */
}

/* Button-Styling für die Links */
.btn-learning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    background-color: var(--primary-blue);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s ease;
}

.btn-learning:hover {
    background-color: var(--secondary-blue);
}

/* Spezieller Button für YouTube (Rot) */
.btn-learning.btn-youtube {
    background-color: #dc2626;
}

.btn-learning.btn-youtube:hover {
    background-color: #b91c1c;
}

.btn-learning .arrow {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.btn-learning:hover .arrow {
    transform: translate(2px, -2px); /* Der Pfeil bewegt sich beim Hovern leicht nach rechts-oben */
}

/* --- Geschmackvolles Picasso-Zitat --- */
.picasso-quote {
    position: relative;
    margin: 3rem 0;
    padding: 2rem 2.5rem;
    background: var(--light-pink); /* Nutzt das sanfte Rosa als Hintergrund */
    border-left: 5px solid var(--accent-pink); /* Markante rosa Linie links */
    border-radius: 0 12px 12px 0;
    overflow: hidden; /* Hält das übergroße Anführungszeichen im Kasten */
}

/* Das große, stylische Anführungszeichen im Hintergrund */
.picasso-quote::before {
    content: "“";
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 10rem;
    font-family: 'Georgia', serif;
    color: var(--accent-pink);
    opacity: 0.12; /* Sehr dezent, damit der Text lesbar bleibt */
    line-height: 1;
}

.picasso-quote p {
    font-family: 'Georgia', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1; /* Steht über dem Hintergrund-Anführungszeichen */
}

.picasso-quote cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary-blue); /* Nutzt das Blau als harmonischen Kontrast */
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Optimierung für Mobilgeräte */
@media (max-width: 768px) {
    .picasso-quote {
        padding: 1.5rem 1.8rem;
    }
    .picasso-quote p {
        font-size: 1.15rem;
    }
}