/* ============================================ */
/* Farbschema: Anthrazit (#2c2a28) - HAUPTFARBE */
/* Türkis (#3a6b5f) - AKZENTFARBE */
/* Beige (#e8e0d5) - NUR DEZENTE AKZENTE */
/* ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --anthrazit: #2c2a28;
    --anthrazit-dark: #1f1e1c;
    --anthrazit-light: #4a4540;
    --tuerkis: #3a6b5f;
    --tuerkis-light: #568c7e;
    --tuerkis-dark: #2a5348;
    --beige: #e8e0d5;
    --beige-dark: #d4c8b8;
    --card-bg: #3a3632;
    --text: #ece4d9;
    --text-light: #cdc4b8;
    --muted: #9e968a;
    --border: rgba(58, 107, 95, 0.35);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--anthrazit);
    color: var(--text);
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
    font-weight: 350;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== NAVIGATION ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(44, 42, 40, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--tuerkis);
    letter-spacing: 0.04em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.25s ease;
    font-weight: 450;
}

.nav-links a:hover {
    color: var(--tuerkis-light);
}

/* ========== HERO SECTION mit Steckbrief ========== */
#about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 3rem 5rem;
    background: var(--anthrazit);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--anthrazit);
}

.hero-grain {
    display: none;
}

.hero-container {
    position: relative;
    max-width: 1280px;
    width: 100%;
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-left {
    flex: 1;
    min-width: 280px;
}

.hero-right {
    flex: 1;
    min-width: 320px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--tuerkis), var(--tuerkis-light));
    margin: 1rem 0 1.2rem 0;
}

.hero-sub {
    font-size: 1rem;
    color: var(--tuerkis-light);
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* Steckbrief Styling */
.steckbrief {
    background: rgba(58, 107, 95, 0.08);
    backdrop-filter: blur(2px);
    border-left: 3px solid var(--tuerkis);
    padding: 1.8rem 2rem;
    border-radius: 0 28px 28px 0;
}

.steckbrief-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tuerkis-light);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.steckbrief-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.expertise-label, .ziel-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tuerkis-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.expertise-tags span {
    background: rgba(58, 107, 95, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    color: var(--text);
    font-weight: 450;
}

.ziel-text {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.55;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: bounce 2.2s infinite;
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 38px;
    background: linear-gradient(var(--tuerkis-light), transparent);
}

/* ========== SECTION ALLGEMEIN ========== */
#projects {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    background: var(--anthrazit);
}

.section-label {
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--tuerkis-light);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 450;
    color: var(--text);
    margin-bottom: 2.2rem;
}

/* ========== TAB-NAVIGATION ========== */
.tab-bar {
    display: flex;
    gap: 2.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 0.2rem 1rem 0.2rem;
    cursor: pointer;
    color: var(--muted);
    transition: all 0.2s;
    position: relative;
}

.tab-btn.active {
    color: var(--tuerkis-light);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--tuerkis);
    border-radius: 2px;
}

.tab-btn:hover:not(.active) {
    color: var(--tuerkis-light);
}

/* Tab-Panels */
.tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tab-panel.active-panel {
    display: block;
    opacity: 1;
}

/* ========== PROJEKT-ROW (5er Grid) ========== */
.projects-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.6rem;
    margin-bottom: 2rem;
}

@media (max-width: 1050px) {
    .projects-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .projects-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .projects-row {
        grid-template-columns: 1fr;
    }
}

/* ========== MINI CARD (Programmieren) ========== */
.mini-card {
    background: var(--anthrazit-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.mini-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--tuerkis);
}

.card-img {
    width: 100%;
    aspect-ratio: 16 / 11;
    background: var(--anthrazit-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.mini-card:hover .card-img img {
    transform: scale(1.03);
}

.card-body {
    padding: 1.2rem 1.2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 550;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tuerkis-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(58, 107, 95, 0.4);
    padding-bottom: 2px;
    transition: gap 0.2s, border-color 0.2s;
    align-self: flex-start;
    margin-top: 0.25rem;
}

.card-link:hover {
    gap: 0.7rem;
    border-color: var(--tuerkis);
    color: var(--tuerkis);
}

/* ========== PHOTO BOX (Fotografie - OHNE TEXT) ========== */
.photo-box {
    background: var(--anthrazit-dark);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.photo-box:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--tuerkis);
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-box:hover img {
    transform: scale(1.03);
}

/* ========== GALERIE BUTTON ========== */
.gallery-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--tuerkis);
    color: var(--text);
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-btn:hover {
    background: var(--tuerkis-light);
    gap: 0.9rem;
    transform: translateY(-2px);
    color: var(--anthrazit);
}

/* ========== LIGHTBOX (Bildvergrößerung) ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 30, 28, 0.98);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: var(--tuerkis-light);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(58, 107, 95, 0.6);
    border: none;
    color: var(--text);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--tuerkis);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 10px; }
    .lightbox-prev, .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* ========== FOOTER ========== */
footer {
    background: var(--anthrazit);
    border-top: 1px solid var(--border);
    padding: 2.2rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    list-style: none;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--tuerkis-light);
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--muted);
}

/* ========== MODAL (DATENSCHUTZ) ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 30, 28, 0.95);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--anthrazit-light);
    border: 1px solid var(--border);
    border-radius: 28px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.2rem 2.5rem;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.modal-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text);
}

.modal-box h3 {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tuerkis-light);
    margin: 1.8rem 0 0.5rem;
}

.modal-box p, .modal-box li {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.65;
}

.modal-close {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 0.6rem 1.6rem;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2rem;
    border-radius: 40px;
    transition: all 0.2s;
}

.modal-close:hover {
    border-color: var(--tuerkis);
    color: var(--tuerkis-light);
}

/* ========== ANIMATIONEN ========== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

.mini-card, .photo-box {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Responsive Anpassungen */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-divider {
        margin-left: auto;
        margin-right: auto;
    }
    .steckbrief {
        text-align: left;
        border-left: 3px solid var(--tuerkis);
        border-radius: 20px;
    }
    .expertise-tags {
        justify-content: flex-start;
    }
    nav {
        padding: 0.9rem 1.5rem;
    }
    .nav-links {
        gap: 1.2rem;
    }
}