:root {
    --hintergrund-farbe: #050505;
    --karte-hintergrund: #1c1c1e;
    --akzent-farbe: #007aff; /* Apple Blue */
    --text-hell: #ffffff;
    --text-gedimmt: rgba(205, 205, 215, 0.88);
    --schrift-haupt: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
    --uebergang-standard: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-standard: 12px;
    --radius-gross: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Scroll-Animationen für Sektionen */
.scroll-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease-out, transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

body {
    background-color: var(--hintergrund-farbe);
    color: var(--text-hell);
    font-family: var(--schrift-haupt);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Kopfzeile */
.kopfzeile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    z-index: 1000;
    background-color: var(--hintergrund-farbe);
    backdrop-filter: saturate(180%) blur(20px);
    transition: var(--uebergang-standard);
}

.kopfzeile-inhalt {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-hell);
    letter-spacing: -0.02em;
}

.navigations-menue {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navigations-liste {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gedimmt);
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-hell);
}

.button-zusammenarbeit {
    background: var(--akzent-farbe);
    border: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.button-zusammenarbeit:hover {
    opacity: 0.8;
}

.mobile-menue-button {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-hell);
    cursor: pointer;
    padding: 8px;
}

/* Hero Bereich */
.hero-bereich {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
}

.hero-inhalt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.begruessung {
    color: var(--text-gedimmt);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.haupt-titel {
    font-size: 3.5rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 1.5rem;
}

.akzent-text {
    color: var(--akzent-farbe);
}

.beschreibung {
    color: var(--text-gedimmt);
    font-size: 1.2rem;
    max-width: 440px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.aktions-bereich {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.button-haupt {
    background-color: var(--akzent-farbe);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--uebergang-standard);
}

.button-haupt:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.link-sekundaer {
    color: var(--akzent-farbe);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

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

.soziale-medien {
    display: flex;
    gap: 16px;
}

.social-link {
    color: var(--text-gedimmt);
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--text-hell);
}

.hero-bild-container {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    background-color: var(--hintergrund-farbe);
    padding: 1.5rem;
    border-radius: var(--radius-gross);
    margin-top: -3.5rem;
    margin-right: 2rem;
}

.hero-bild {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3 / 4;
    background-color: var(--hintergrund-farbe);
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5),
                0 0 55px 20px var(--hintergrund-farbe);
}

/* Skills Bereich */
.skills-bereich {
    padding: 80px 0;
}

#arbeitsweise {
    padding: 56px 0;
}

/* Volle Breite wie Projektkarten (Container minus Padding), nicht die schmale .sektions-beschreibung */
#arbeitsweise .arbeitsweise-text {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    box-sizing: border-box;
}

.arbeitsweise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.arbeitsweise-grid .sektions-beschreibung {
    max-width: none;
    margin: 0;
}

.arbeitsweise-titel {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.arbeitsweise-liste {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-gedimmt);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.arbeitsweise-liste li {
    display: flex;
    align-items: flex-start;
}

.sektions-kopf {
    text-align: center;
    margin-bottom: 64px;
}

.unter-titel {
    color: var(--akzent-farbe);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.sektions-titel {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sektions-beschreibung {
    color: var(--text-gedimmt);
    max-width: 500px;
    margin: 16px auto 0;
    font-size: 1.1rem;
}

.skills-raster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.skill-karte {
    background-color: var(--karte-hintergrund);
    padding: 32px;
    border-radius: var(--radius-gross);
    transition: var(--uebergang-standard);
}

.skill-karte:hover {
    transform: scale(1.02);
}

.skill-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.skill-icon img {
    max-width: 70%;
    max-height: 70%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.skill-icon.js-hintergrund img {
    object-position: center center;
    transform: translate(-3px, -5px);
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.skill-text {
    color: var(--text-gedimmt);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.fortschritt-hintergrund {
    width: 100%;
    height: 4px;
    background-color: #3a3a3c;
    border-radius: 2px;
}

.fortschritt-balken {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skill Farben */
.html-hintergrund { background-color: #ff453a; }
.html-balken { background-color: #ff453a; }

.css-hintergrund { background-color: #0a84ff; }
.css-balken { background-color: #0a84ff; }

.js-hintergrund { background-color: #ffd60a; }
.js-balken { background-color: #ffd60a; }

.cursor-hintergrund { background-color: #10b981; }
.cursor-balken { background-color: #10b981; }

.react-hintergrund { background-color: #61dafb; }
.react-balken { background-color: #61dafb; }

.typescript-hintergrund { background-color: #3178c6; }
.typescript-balken { background-color: #3178c6; }

.firebase-hintergrund { background-color: #ff6b35; }
.firebase-balken { background-color: #ff6b35; }

.api-hintergrund { background-color: #8b5cf6; }
.api-balken { background-color: #8b5cf6; }

.github-hintergrund { background-color: #24292e; }
.github-balken { background-color: #24292e; }

.figma-hintergrund { background-color: #ff375f; }
.figma-balken { background-color: #ff375f; }

/* Projekte Bereich */
.projekte-bereich {
    padding: 80px 0;
}

/* Pfeile unten in jeder Projektkarte */
.projekt-karte-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.projekte-pfeil {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    color: var(--text-hell);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.projekte-pfeil i {
    width: 20px;
    height: 20px;
}

.projekte-pfeil:hover {
    transform: translateY(-1px) scale(1.02);
    border-color: rgba(0, 122, 255, 0.55);
    background: linear-gradient(180deg, rgba(0, 122, 255, 0.28), rgba(0, 122, 255, 0.15));
    box-shadow: 0 12px 26px rgba(0, 122, 255, 0.25);
}

.projekte-pfeil:focus-visible {
    outline: 2px solid rgba(0, 122, 255, 0.85);
    outline-offset: 2px;
}

.projekte-pfeil[aria-disabled="true"] {
    opacity: 0.6;
}

/* Immer genau eine Projektkarte sichtbar; Wechsel nur über die Pfeile */
.projekte-slider {
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.25rem;
    scroll-behavior: smooth;
}

.projekt-karte {
    background-color: var(--karte-hintergrund);
    border-radius: var(--radius-gross);
    overflow: hidden;
    transition: var(--uebergang-standard);
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: flex-start;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.projekt-karte:hover {
    transform: translateY(-5px);
}

.projekt-bild-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.projekt-bild-galerie {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    background-color: #111;
}

/* Zwei Bilder nebeneinander (Projekt 4) – rechts etwas mehr Platz für den Screenshot */
.projekt-bild-galerie-zwei {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: stretch;
    justify-items: stretch;
}

/* Links: Chatbot-Icon groß in der Zelle, komplett sichtbar (kein Cover-Zoom) */
.projekt-bild-galerie-zwei > img.projekt-bild-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.5rem;
}

/* Rechts: projekt4-ibo-audit-mainpage – kleiner dargestellt, weiter oben positioniert */
.projekt-bild-galerie-zwei > img.projekt-bild:not(.projekt-bild-icon) {
    width: auto;
    height: auto;
    max-width: 78%;
    max-height: 82%;
    justify-self: center;
    align-self: start;
    margin-top: 10%;
    object-fit: contain;
    object-position: center;
    background: #0a0a0a;
    padding: 0.35rem;
    border-radius: 12px;
}

.projekt-bild-icon {
    object-fit: contain;
    object-position: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.5rem;
}

.projekt-bild {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Projekt-Bilder: Klick öffnet Vollbild */
.projekte-bereich .projekt-bild {
    cursor: zoom-in;
}

.projekte-bereich .projekt-bild:focus-visible {
    outline: 2px solid var(--akzent-farbe);
    outline-offset: 3px;
}

/* Vollbild-Lightbox (alle Projekt-Bilder) */
.bild-vollbild-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 4vw, 48px);
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.bild-vollbild-overlay[hidden] {
    display: none !important;
}

.bild-vollbild-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.bild-vollbild-schliessen {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10001;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bild-vollbild-schliessen:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}

.bild-vollbild-schliessen i {
    width: 24px;
    height: 24px;
}

.projekt-info {
    padding: 24px;
}

.projekt-details {
    display: none;
    margin-bottom: 16px;
    flex-direction: column;
    gap: 0.9rem;
}

.projekt-karte.aktiv .projekt-details {
    display: flex;
}

.projekt-kurzbeschreibung-liste {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-gedimmt);
    font-size: 0.95rem;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.projekt-kurzbeschreibung-liste li {
    margin: 0;
}

.projekt-tags {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.tag {
    color: var(--akzent-farbe);
    font-size: 0.75rem;
    font-weight: 600;
}

.projekt-titel {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.projekt-beschreibung {
    color: var(--text-gedimmt);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.projekt-link {
    color: var(--akzent-farbe);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Kontakt Bereich */
.kontakt-bereich {
    padding: 80px 0;
}

.kontakt-inhalt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.kontakt-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    width: 100%;
    max-width: 1000px;
}

.info-karte {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--karte-hintergrund);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    color: var(--akzent-farbe);
}

.info-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-text p {
    color: var(--text-gedimmt);
    font-size: 0.9rem;
}

.soziale-icons-liste {
    display: flex;
    gap: 24px;
}

.kontakt-formular-container {
    background-color: var(--karte-hintergrund);
    padding: 40px;
    border-radius: var(--radius-gross);
    width: 100%;
    max-width: 700px;
}

.kontakt-formular {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.eingabe-gruppe label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-gedimmt);
}

.eingabe-gruppe input,
.eingabe-gruppe textarea {
    width: 100%;
    background-color: #2c2c2e;
    border: none;
    padding: 16px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.button-senden {
    background-color: var(--akzent-farbe);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
}

/* Fusszeile */
.fusszeile {
    padding: 64px 0 40px;
}

.fusszeile-oben {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.fusszeile-socials {
    display: flex;
    align-items: center;
    gap: 24px;
}

.fusszeile-unten {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
}

.copyright {
    color: var(--text-gedimmt);
    font-size: 0.8rem;
}

.fusszeile-links {
    display: flex;
    gap: 24px;
}

.fusszeile-links a {
    color: var(--text-gedimmt);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.fusszeile-links a:hover {
    color: var(--text-hell);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .haupt-titel {
        font-size: 3rem;
    }
    .arbeitsweise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .skills-raster {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero-bereich {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .navigations-menue {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--hintergrund-farbe);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--uebergang-standard);
    }

    .navigations-menue.offen {
        opacity: 1;
        visibility: visible;
    }

    .navigations-liste {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 500;
    }

    .button-zusammenarbeit {
        font-size: 1.2rem;
        padding: 12px 32px;
    }
    
    .mobile-menue-button {
        display: block;
        position: relative;
        z-index: 1001;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-inhalt {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-bild-container {
        justify-content: center;
        order: -1;
        margin-bottom: 32px;
    }

    .haupt-titel {
        font-size: 2.5rem;
        margin-bottom: 24px;
    }

    .beschreibung {
        margin-bottom: 32px;
    }

    .aktions-bereich {
        margin-bottom: 40px;
        gap: 24px;
    }

    .skills-bereich, 
    .projekte-bereich, 
    .kontakt-bereich {
        padding: 64px 0;
    }

    .sektions-kopf {
        margin-bottom: 48px;
    }

    .skills-raster {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .projekte-raster {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .projekte-pfeil {
        width: 42px;
        height: 42px;
    }

    .projekt-bild-galerie {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .projekt-bild-galerie-zwei {
        grid-template-columns: 1fr;
    }

    .kontakt-inhalt {
        gap: 48px;
    }

    .kontakt-formular-container {
        padding: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .haupt-titel {
        font-size: 2.25rem;
    }
    
    .skills-raster {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .aktions-bereich {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .button-haupt {
        width: 100%;
        text-align: center;
    }

    .hero-bild {
        max-width: 200px;
    }
}
