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

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

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f7;
    color: #1d1d1f;
    overflow-x: hidden;
    font-family: "IBM Plex Mono", monospace;
    box-sizing: border-box;
    width: 100%;
}

body.menu-open {
    overflow: hidden;
}

/* Stolzl als Standard-Schriftart für alle Überschriften */
h1, h2, h3, h4, h5, h6, .logo {
    font-family: stolzl, sans-serif;
}

/* IBM Plex Mono für alle Text-Elemente */
p, li, a, span, div, .nav-links a, .card p {
    font-family: ibm-plex-mono, monospace;
}

.hero {
    height: 100vh;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #000 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    color: white;
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem; /* Hinzugefügter Abstand links und rechts für alle Bildschirmgrößen */
}

.hero-text {
    flex: 1;
    text-align: left;
    padding: 1rem; /* Hinzugefügter Innenabstand für alle Bildschirmgrößen */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 80px rgba(102, 126, 234, 0.3);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: profileFadeIn 1.2s ease 0.5s forwards;
}

.profile-image:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 30px 100px rgba(102, 126, 234, 0.4);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: profileGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes profileFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes profileGlow {
    0%, 100% { 
        opacity: 0.3; 
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.1; 
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease 0.3s forwards;
    background: linear-gradient(135deg, #ffffff 0%, #a8a8a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

.social-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    text-decoration: none;
}

.social-button:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    will-change: transform;
}

/* Scroll-Hinweis Stile */
.scroll-hint {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 1.2s forwards;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
}

.scroll-hint:hover {
    color: #667eea;
    transform: translateY(5px);
}

.scroll-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 8px;
    animation: bounce 2s infinite;
}

.scroll-text {
    padding-right: 4px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.section {
    min-height: 100vh;
    padding: 120px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.section:nth-child(even) {
    background: #f5f5f7;
}

.section:nth-child(odd) {
    background: #1d1d1f;
    color: #f5f5f7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.section h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    letter-spacing: -0.03em;
}

.section:nth-child(even) h2 {
    background: linear-gradient(135deg, #1d1d1f 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section:nth-child(odd) h2 {
    background: linear-gradient(135deg, #ffffff 0%, #667eea 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(30px);
}

.section:nth-child(even) .card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section:nth-child(even) .card h3 {
    background: linear-gradient(135deg, #1d1d1f 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section:nth-child(odd) .card h3 {
    background: linear-gradient(135deg, #ffffff 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(29, 29, 31, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 5%;
    transform: translateY(-100%);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sticky-nav.visible {
    transform: translateY(0);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

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

.nav-links a {
    text-decoration: none;
    color: #f5f5f7;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: #667eea;
    transform: translateY(-1px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Apple-inspirierte Scroll-Indikatoren */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1d1d1f;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Zusätzliche Apple-ähnliche Effekte */
.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(1.1); }
}

/* Verbesserte Typografie */
.section p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(30px);
    letter-spacing: 0.01em;
}

/* Kontaktbereich Stile */
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(30px);
}

.email-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.email-button:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Apple-Style Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    gap: 5px; /* Etwas weniger Abstand zwischen den Linien */
    position: relative;
    background: none;
    border: none;
    outline: none;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle .bar {
    width: 100%;
    height: 1.5px; /* Dünnere Linien im Apple-Stil */
    background-color: rgba(255, 255, 255, 0.85); /* Leicht transparentes Weiß wie bei Apple */
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); /* Apple-artige Animation */
    transform-origin: center;
}

/* Responsiveness - Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .section h2 {
        font-size: 2.8rem;
    }
    
    .cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .profile-image {
        width: 340px;
        height: 340px;
    }
    
    .profile-glow {
        width: 380px;
        height: 380px;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero-content {
        padding: 0 3rem;
    }
}

/* Responsiveness - Tablets */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .section h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        padding: 0 2rem; /* Behalten das Padding bei */
    }
    
    .hero-text {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-button {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Mobile menu */
    .menu-toggle {
        display: flex;
    }
    
    /* Spezielle Stile für die Navigation, wenn das Menü aktiv ist */
    .sticky-nav.menu-open {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
    }
    
    .sticky-nav.menu-open .logo {
        background: white;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        opacity: 0.9;
        position: relative;
        z-index: 1001;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
        width: 100%;
        background-color: rgba(255, 255, 255, 1); /* Volle Deckkraft beim aktiven Zustand */
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: scale(0.2);
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
        width: 100%;
        background-color: rgba(255, 255, 255, 1); /* Volle Deckkraft beim aktiven Zustand */
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%; /* Volle Breite für Vollbild */
        height: 100vh;
        background: rgba(29, 29, 31, 0.9); /* Etwas dunkler für besseren Kontrast */
        backdrop-filter: blur(20px); /* Stärkerer Blur im Apple-Stil */
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Apple-typische Übergangskurve */
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px); /* Leichte Bewegung für Animation */
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 0.6rem 0;
        width: 85%;
        max-width: 320px;
        text-align: center;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.4s ease-out;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.15s; /* Verzögerte Animation für Listenelemente */
    }
    
    /* Zeitverzögerte Animation für jedes Element */
    .nav-links.active li:nth-child(1) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.35s; }
    
    .nav-links a {
        font-size: 1.3rem; /* Größere Schrift für bessere Lesbarkeit */
        display: block;
        padding: 1rem 0;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 12px;
        font-weight: 500;
        letter-spacing: -0.01em;
    }
    
    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(0); /* Überschreibt die Standard-Hover-Animation */
        color: white;
    }
    
    /* Adjust card layout */
    .cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .scroll-hint {
        /* Perfekte Zentrierung mit absoluter Positionierung */
        position: absolute;
        left: 0;
        right: 0;
        bottom: 2rem;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
        transform: translateY(30px);
        padding: 8px 16px;
        /* Gleiche Hintergrundfarbe und Effekte wie auf Desktop */
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .scroll-hint:hover {
        transform: translateY(3px);
    }
    
    .profile-image {
        width: 280px;
        height: 280px;
    }
    
    .profile-glow {
        width: 320px;
        height: 320px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .nav-content {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-text {
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .profile-image {
        width: 240px;
        height: 240px;
    }
    
    .profile-glow {
        width: 280px;
        height: 280px;
    }
    
    .card {
        padding: 1.8rem;
    }
    
    .nav-links {
        width: 85%;
    }
    
    .contact-button {
        padding: 0.8rem 1.5rem;
        width: 90%;
        max-width: 280px;
    }
}
