/*
=====================================================================
SABINE MUTSCHKE - WEBSITE STYLESHEET
=====================================================================
Version 3: Inter-Schrift, Hero mit Gradient, abgerundete Kacheln
Basierend auf Sabines Feedback vom 27.02.2026
=====================================================================
*/


/*
=====================================================================
0. SCHRIFTARTEN
   Inter - Modern, klar, elegant (schmaler als Jost im Fettdruck)
=====================================================================
*/

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/*
=====================================================================
1. FARBEN UND GRUNDEINSTELLUNGEN
=====================================================================
*/
:root {
    /* FARBEN - Weiß mit rotem Akzent vom Logo */
    --color-primary: #C41E3A;           /* Rot (Logo-Farbe) - nur für Buttons/Links */
    --color-primary-dark: #a01830;      /* Dunkleres Rot für Hover */
    --color-text: #4a4a4a;              /* Eleganter Grauton für Text */
    --color-text-light: #6b6b6b;        /* Helleres Grau */
    --color-background: #FFFFFF;        /* Weiß */
    --color-background-alt: #f5f5f5;    /* Hellgrau */
    --color-white: #FFFFFF;

    /* SCHRIFTARTEN - Inter */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* ABSTÄNDE */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* LAYOUT */
    --max-width: 1200px;
    --border-radius: 8px;
    --transition: 0.3s ease;
}


/* Barrierefreiheit: Skip-Link (nur bei Tab-Navigation sichtbar) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-weight: 600;
    z-index: 2000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: var(--color-white);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-background);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Überschriften - alle in Grau, nicht Rot */
h1, h2, h3, h4 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Links - Rot bleibt für interaktive Elemente */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/*
=====================================================================
2. NAVIGATION (Header) - Immer weißer Hintergrund
=====================================================================
*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: var(--spacing-md);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav a {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: var(--spacing-xs) 0;
    position: relative;
    color: var(--color-text);
}

.nav a:hover {
    color: var(--color-primary);
}

/* LinkedIn Icon in der Navigation */
.nav .linkedin {
    color: var(--color-text-light);
}

.nav .linkedin:hover {
    color: var(--color-primary);
}

/* Hamburger-Menü */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/*
=====================================================================
3. HERO-BEREICH - Vollbreites Portrait mit Gradient + integrierter Schrift
=====================================================================
*/
.hero {
    padding-top: 70px; /* Platz für den Header */
}

/* Vollbreites Portraitfoto mit Overlay */
.hero-portrait {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-portrait img {
    width: 100%;
    height: auto;
    display: block;
}

/* Dunkler Verlauf nach unten mit Name/Titel integriert */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(0, 0, 0, 0.15) 60%,
        rgba(0, 0, 0, 0.5) 80%,
        rgba(0, 0, 0, 0.75) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-lg) var(--spacing-md);
}

.hero-text {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding-bottom: var(--spacing-md);
}

.hero-text h1 {
    color: var(--color-white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Begrüßungstext unter dem Foto - hellgrauer Hintergrund wie About-Bereich */
.hero-welcome {
    background: var(--color-background-alt);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
}

.hero-welcome-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Willkommen-Überschrift in Grau statt als h1 */
.welcome-heading {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.hero-welcome .intro {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    font-weight: 600;
}

.hero-welcome p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-xs);
}

.hero-welcome a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-welcome a:hover {
    color: var(--color-primary-dark);
}


/*
=====================================================================
4. PROJEKTE (Galerie) - Abgerundete Ecken
=====================================================================
*/
.projekte {
    padding: var(--spacing-md) 0 var(--spacing-xl);
    background: var(--color-background);
}

.projekt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    justify-items: center;
}

/* Letzte Reihe zentrieren wenn nicht voll (16 Projekte = 5x3 + 1) */
.projekt-grid .projekt-card:last-child:nth-child(3n+1) {
    grid-column: 2;
}

/* Abgerundete Kacheln (Sabines Wunsch aus Variante 2) */
.projekt-card {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.projekt-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.projekt-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    filter: saturate(0.9);
}

.projekt-card:hover img {
    transform: scale(1.15);
    filter: saturate(1.1);
}

/* Overlay mit Gradient */
.projekt-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.projekt-card:hover .projekt-overlay {
    opacity: 1;
}

.projekt-overlay h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.projekt-card:hover .projekt-overlay h3 {
    transform: translateY(0);
}

.projekt-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    transform: translateY(10px);
    transition: transform 0.4s ease 0.05s;
}

.projekt-card:hover .projekt-overlay p {
    transform: translateY(0);
}

.projekt-overlay .foto-credit {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}


/*
=====================================================================
5. ÜBER MEINE ARBEIT (About) - Reduzierter Abstand nach oben
=====================================================================
*/
.about {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    background: var(--color-background-alt);
}

/* Überschrift nur für Screenreader und Suchmaschinen sichtbar */
.about h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

/* Der Freude-Satz: fett, leicht kursiv, etwas größer */
.about-text .glueck-satz {
    font-weight: 600;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}


/*
=====================================================================
6. KONTAKT - Reduzierter Abstand nach oben, einheitlich grau
=====================================================================
*/
.kontakt {
    padding: var(--spacing-md) 0 var(--spacing-xl);
    background: var(--color-background);
}

/* Kontakt-Überschrift: weniger Abstand zum "Mehr über mich"-Text */
.kontakt h2 {
    margin-bottom: var(--spacing-sm);
}

/* Einleitungstext vor den Kontaktdaten */
.kontakt-intro {
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.kontakt-intro a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kontakt-intro a:hover {
    color: var(--color-primary-dark);
}

.kontakt-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

/* Alle Kontaktdaten in einheitlichem Grauton */
.kontakt-info .name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--color-text);
}

.kontakt-info .title {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.kontakt-info address {
    font-style: normal;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

.kontakt-info .phone,
.kontakt-info .email {
    margin-bottom: var(--spacing-xs);
}

/* Telefon und E-Mail einheitlich grau (nicht schwarz!) */
.kontakt-info .phone a,
.kontakt-info .email a {
    color: var(--color-text-light);
    transition: color var(--transition);
}

.kontakt-info .phone a:hover,
.kontakt-info .email a:hover {
    color: var(--color-primary);
}

/* LinkedIn Button - bleibt rot */
.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
    font-weight: 500;
    transition: all var(--transition);
}

.linkedin-link:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(196, 30, 58, 0.3);
}


/*
=====================================================================
7. FOOTER mit Wolken-Hintergrund
=====================================================================
*/
.footer {
    background:
        linear-gradient(to bottom, rgba(30, 30, 30, 0.85), rgba(30, 30, 30, 0.95)),
        url('../images/footer-clouds.webp') center/cover no-repeat;
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-main);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    transition: all var(--transition);
}

.footer-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-white);
}

.footer-content {
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.footer-content.hidden {
    display: none;
}

.footer-content h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.footer-content h4 {
    color: var(--color-white);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

.footer-content p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-content a {
    color: var(--color-primary);
}

.footer-content a:hover {
    color: var(--color-white);
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Mobiles Menü - Vollbild-Overlay */
.nav-mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    padding: var(--spacing-lg) var(--spacing-md);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-xs);
    z-index: 999;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    color: var(--color-text);
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    width: 100%;
}

.nav-mobile a:last-child {
    border-bottom: none;
}

.nav-mobile a:hover {
    color: var(--color-primary);
}


/*
=====================================================================
8. RESPONSIVE DESIGN
=====================================================================
*/

/* Tablets */
@media (max-width: 1024px) {
    .projekt-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-portrait img {
        max-height: 70vh;
        object-fit: cover;
    }

    .about-text {
        text-align: center;
    }
}

/* Handys */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header .container {
        height: 70px;
    }

    .logo img {
        height: 40px;
    }

    .hero-overlay {
        padding-bottom: var(--spacing-sm);
    }

    .hero-text {
        padding-bottom: 0;
    }

    .hero-text h1 {
        font-size: 1.5rem;
        font-weight: 500;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    }

    .hero-subtitle {
        font-size: 0.85rem;
        font-weight: 300;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    }

    /* Stärkerer Gradient auf Handy für bessere Lesbarkeit */
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            transparent 30%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.6) 75%,
            rgba(0, 0, 0, 0.85) 100%
        );
    }

    .hero-welcome {
        padding: var(--spacing-md);
    }
}

/* Handys: Projekte einspaltig (gleicher Breakpoint wie Hamburger-Menü) */
@media (max-width: 768px) {
    .projekt-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Desktop-Zentrierung der letzten Kachel aufheben */
    .projekt-grid .projekt-card:last-child:nth-child(3n+1) {
        grid-column: auto;
    }

    .projekt-card {
        aspect-ratio: 4/3;
        border-radius: 16px;
    }

    .projekt-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    }

    .projekt-card:hover {
        transform: none;
    }
}

/* Kleine Handys */
@media (max-width: 576px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
}


/*
=====================================================================
9. LIGHTBOX
=====================================================================
*/
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 1024px;
    max-height: 90vh;
    margin: var(--spacing-md);
    cursor: default;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 20px;
}

.lightbox-caption {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--color-white);
}

.lightbox-caption h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
}

.lightbox-caption .foto-credit {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-style: italic;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 2px;
    background: var(--color-white);
    transition: background var(--transition);
}

.lightbox-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-close:hover::before,
.lightbox-close:hover::after {
    background: var(--color-primary);
}

/* Navigations-Pfeile */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Bild-Zähler */
.lightbox-counter {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
}

/* Responsive: Pfeile auf Mobil ausblenden (Wischen reicht) */
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
}

body.lightbox-open {
    overflow: hidden;
}


/*
=====================================================================
10. DRUCKANSICHT
=====================================================================
*/
@media print {
    .header,
    .footer-toggle,
    .linkedin-link {
        display: none;
    }

    .hero {
        padding-top: var(--spacing-md);
    }

    .footer-content {
        display: block;
    }
}
