/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Logo-basierte Farbpalette */
    --primary-color: #dc2626; /* Vibrant Red aus dem Logo */
    --primary-dark: #b91c1c; /* Dunkleres Rot */
    --secondary-color: #f59e0b; /* Golden Yellow aus dem Logo */
    --accent-color: #f97316; /* Orange-Yellow aus dem Logo */
    --accent-light: #fbbf24; /* Helleres Gelb */
    --text-primary: #1f2937; /* Dunkles Grau */
    --text-secondary: #6b7280; /* Mittleres Grau */
    --text-light: #9ca3af; /* Helles Grau */
    --bg-primary: #ffffff; /* Weiß */
    --bg-secondary: #f8fafc; /* Sehr helles Grau */
    --bg-dark: #1e293b; /* Dark Blue-Grey aus dem Logo */
    --bg-darker: #0f172a; /* Noch dunkleres Blue-Grey */
    --border-color: #e2e8f0; /* Helle Grenzen */
    --border-accent: #f59e0b; /* Golden Border */
    
    /* Schatten mit Logo-Farben */
    --shadow-sm: 0 1px 2px 0 rgb(220 38 38 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(220 38 38 / 0.1), 0 2px 4px -2px rgb(220 38 38 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(220 38 38 / 0.1), 0 4px 6px -4px rgb(220 38 38 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(220 38 38 / 0.1), 0 8px 10px -6px rgb(220 38 38 / 0.1);
    
    /* Logo-inspirierte Gradienten */
    --gradient-primary: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%); /* Rot zu Golden */
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); /* Golden zu Orange */
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #fbbf24 100%); /* Orange zu Gelb */
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); /* Dark Blue-Grey Gradient */
    --gradient-logo: linear-gradient(135deg, #dc2626 0%, #f59e0b 50%, #f97316 100%); /* Vollständiger Logo-Gradient */
    
    /* ============================================================================
       RESPONSIVE DESIGN: Semantische Breakpoints (nur für Media Queries)
       ============================================================================ */
    --bp-m: 64rem;    /* 1024px - erster Layoutsprung */
    --bp-l: 90rem;    /* 1440px - MacBook/large laptop */
    --bp-xl: 120rem;  /* 1920px - Full HD desktop */
    
    /* ============================================================================
       RESPONSIVE DESIGN: Container & Layout (Fluid mit clamp)
       ============================================================================ */
    --container-w: min(92vw, 75rem); /* ~1200px max - Parität mit Status quo */
    
    /* ============================================================================
       RESPONSIVE DESIGN: Typografie-Skalen (Parität: Max = aktuelle Desktop-Werte)
       ============================================================================ */
    --fs-body: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
    --fs-h1: clamp(3.25rem, 2rem + 3vw, 4rem);   /* Max = 4rem (aktuell) */
    --fs-h2: clamp(2rem, 1.3rem + 1.8vw, 2.5rem);
    --fs-h3: clamp(1.5rem, 1.1rem + 1vw, 1.75rem);
    --fs-hero-title: clamp(3.25rem, 2rem + 3vw, 4rem); /* Parität: Max = 4rem */
    --fs-hero-desc: clamp(1.25rem, 1rem + 0.8vw, 1.5rem); /* Parität: Max = 1.5rem */
    --fs-nav: clamp(0.95rem, 0.9rem + 0.2vw, 1rem);
    --fs-btn: clamp(0.9rem, 0.85rem + 0.15vw, 1rem);
    
    /* ============================================================================
       RESPONSIVE DESIGN: Spacing-Tokens (Fluid ohne tote Zonen)
       ============================================================================ */
    --space-1: clamp(0.5rem, 0.4rem + 0.3vw, 0.75rem);
    --space-2: clamp(0.75rem, 0.6rem + 0.4vw, 1rem);
    --space-3: clamp(1rem, 0.8rem + 0.5vw, 1.5rem);
    --space-4: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
    --space-6: clamp(2rem, 1.5rem + 1.2vw, 3rem);
    --space-8: clamp(3rem, 2.5rem + 1.5vw, 4rem);
    
    --section-pad: clamp(3rem, 2rem + 3vw, 4rem);
    --section-gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
    
    /* ============================================================================
       RESPONSIVE DESIGN: Navigation & Header (Fluid)
       ============================================================================ */
    --nav-height: clamp(64px, 5vw, 80px);
    --logo-size: clamp(48px, 4vw, 60px);
    --nav-link-gap: clamp(1rem, 0.8rem + 0.5vw, 2rem);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    /* Prevent zoom on mobile */
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
    /* Custom cursor - nur Punkt sichtbar */
    cursor: none;
}

/* Verstecke Standard-Cursor überall */
* {
    cursor: none !important;
}

/* Custom Cursor - etwas größerer Punkt */
.custom-cursor-dot {
    position: fixed;
    width: 18px;
    height: 18px;
    background: rgba(245, 158, 11, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 14px rgba(245, 158, 11, 0.8),
        0 0 28px rgba(220, 38, 38, 0.5),
        inset 0 0 7px rgba(255, 255, 255, 0.3);
    transition: transform 0.1s ease-out, background 0.3s ease, box-shadow 0.3s ease, width 0.2s ease, height 0.2s ease;
    will-change: transform, background, box-shadow;
}

.custom-cursor-dot.hover {
    width: 24px;
    height: 24px;
    background: rgba(220, 38, 38, 0.95) !important; /* IMMER rot beim Hover über Buttons */
    box-shadow: 
        0 0 20px rgba(220, 38, 38, 1),
        0 0 40px rgba(245, 158, 11, 0.6),
        inset 0 0 12px rgba(255, 200, 200, 0.4) !important;
}

/* Dynamische Farben basierend auf Hintergrund */
.custom-cursor-dot.color-dark {
    background: rgba(245, 158, 11, 0.9); /* Gold für dunkle Bereiche */
    box-shadow: 
        0 0 14px rgba(245, 158, 11, 0.8),
        0 0 28px rgba(220, 38, 38, 0.5),
        inset 0 0 7px rgba(255, 255, 255, 0.3);
}

.custom-cursor-dot.color-light {
    background: rgba(220, 38, 38, 0.95); /* Rot für helle Bereiche */
    box-shadow: 
        0 0 14px rgba(220, 38, 38, 0.9),
        0 0 28px rgba(249, 115, 22, 0.6),
        inset 0 0 7px rgba(255, 200, 200, 0.4);
}

.custom-cursor-dot.color-text {
    background: rgba(249, 115, 22, 0.9); /* Orange für Text-Bereiche */
    box-shadow: 
        0 0 14px rgba(249, 115, 22, 0.8),
        0 0 28px rgba(245, 158, 11, 0.5),
        inset 0 0 7px rgba(255, 255, 255, 0.3);
}

/* Click Particles - coole Punkte beim Klicken */
.click-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    animation: clickParticleExplosion 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes clickParticleExplosion {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.3) rotate(360deg);
        opacity: 0;
    }
}

/* Custom Scrollbar - passend zur Website (Rot/Gold/Orange) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
    border-radius: 10px;
    border: 2px solid rgba(30, 41, 59, 0.1);
    box-shadow: 
        inset 0 0 5px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(245, 158, 11, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #f97316 100%);
    box-shadow: 
        inset 0 0 5px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(245, 158, 11, 0.5);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.8) rgba(30, 41, 59, 0.1);
}

/* Alte Custom Scrollbar entfernt - wird durch die neue oben ersetzt */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding-inline: clamp(1rem, 2vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    min-height: var(--nav-height);
}

.logo-image {
    height: var(--logo-size);
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.2) contrast(1.1);
    margin-left: 2rem;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.3) contrast(1.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--nav-link-gap);
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: var(--fs-nav); /* Fluid Navigation Font */
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-logo);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding-inline: clamp(1rem, 2vw, 2rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--section-gap);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: var(--fs-hero-title); /* clamp() - JS hat Priorität während Animation */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s ease forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
}

.highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--fs-hero-desc); /* clamp() - JS hat Priorität während Animation */
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: clamp(0.75rem, 1vw, 1rem) clamp(1.5rem, 2vw, 2rem);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--fs-btn); /* Fluid Button Font */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
    background: var(--gradient-secondary);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    border-color: var(--secondary-color);
}

/* Floating Cards */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.floating-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 10%;
    right: 20%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.card-4 {
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.7;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: white;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* Container */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding-inline: clamp(1rem, 2vw, 2.5rem);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--section-gap);
    /* Container Query für komponentenbasierte Responsiveness */
    container-type: inline-size;
}

/* Container Query: 4 Spalten ab 64rem Container-Breite */
@container (min-width: 64rem) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Media Query für Layout-Sprung: 4 Spalten ab 90rem (1440px) - Fallback für Browser ohne Container Query Support */
@media (min-width: 90rem) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background: white;
    padding: var(--space-4);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-accent);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* About Section */
.about {
    padding: var(--section-pad) 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--section-gap);
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow-md);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 500;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--section-gap);
    /* Container Query für komponentenbasierte Responsiveness */
    container-type: inline-size;
}

/* Container Query: 2 Spalten ab 32rem, 3 ab 48rem Container-Breite */
@container (max-width: 47.99rem) {
    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container (min-width: 48rem) {
    .tech-stack {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tech-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    color: white;
}

.tech-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.tech-item:hover i {
    color: white;
    transform: scale(1.1);
}

.tech-item span {
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.tech-item:hover span {
    color: white;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--section-gap);
    /* Container Query für komponentenbasierte Responsiveness */
    container-type: inline-size;
}

/* Container Query: 4 Spalten ab 64rem Container-Breite */
@container (min-width: 64rem) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    height: 300px;
    background: var(--gradient-logo);
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(220, 38, 38, 0.8), rgba(245, 158, 11, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.portfolio-overlay p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.portfolio-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    background: var(--gradient-secondary);
    color: white;
    border-color: var(--accent-color);
}

/* Contact Section */
.contact {
    padding: var(--section-pad) 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--section-gap);
    align-items: start;
}

/* Media Query für Layout-Sprung: Side-by-side ab 64rem (1024px) */
@media (min-width: 64rem) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: block;
}

.footer-logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.95rem;
    max-width: 280px;
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
}

.footer-column {
    min-width: 180px;
    position: relative;
    text-align: left; /* Left align links on desktop */
}

/* No gradient line above footer column on desktop - removed as requested */

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left; /* Left align heading on desktop */
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left align links on desktop */
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.footer-column a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.footer-column a:hover {
    color: white;
    transform: translateX(4px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.footer-column a:hover::before {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.25) 20%, 
        rgba(245, 158, 11, 0.6) 50%,
        rgba(255, 255, 255, 0.25) 80%, 
        transparent 100%
    );
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover i {
    transform: scale(1.15);
    color: white;
}

/* Animations */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px; /* Minimal gap from header - MODERN UI/UX */
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98); /* Darker, more modern */
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        width: 100%;
        height: calc(100vh - 60px);
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        padding: 0.5rem 0 2rem; /* Reduced top padding - minimal gap */
        gap: 0;
        z-index: 10000;
        overflow-y: auto;
        border-top: 1px solid rgba(245, 158, 11, 0.2);
        list-style: none;
        margin: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu .nav-link {
        font-size: 1.125rem;
        font-weight: 600;
        padding: 1.25rem 2rem;
        width: 100%;
        text-align: center;
        color: white;
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu .nav-link::before {
        display: none; /* Remove desktop underline */
    }
    
    .nav-menu .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
        transform: scaleY(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0 4px 4px 0;
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:active {
        background: rgba(245, 158, 11, 0.1);
        color: #f59e0b;
        transform: translateX(8px);
        padding-left: calc(2rem + 4px);
    }
    
    .nav-menu .nav-link:hover::after,
    .nav-menu .nav-link:active::after {
        transform: scaleY(1);
    }
    
    .nav-container {
        padding: 0 1rem;
        height: 64px;
        min-height: 64px;
    }
    
    .logo-image {
        height: 48px;
        margin-left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-visual {
        height: 320px;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .services {
        padding: 4rem 0;
    }
    
    .service-card {
        padding: 1.75rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        margin-bottom: 1rem; /* Reduced margin to minimize gap before footer-bottom line */
    }
    
    /* Center footer logo and text on mobile */
    .footer-logo {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .footer-logo-image {
        height: 40px;
        margin: 0 auto 1rem;
        display: block;
    }
    
    .footer-logo p {
        max-width: 100%;
        margin: 0.75rem auto 0;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 2rem;
    }
    
    .footer-column a:hover {
        transform: translateX(0);
    }
    
    /* Center footer column content */
    .footer-column {
        width: 100%; /* Ensure full width on mobile */
        min-width: 100%;
        max-width: 100%;
        position: relative;
        text-align: center !important; /* Center align on mobile */
    }
    
    /* Add gradient line above footer links on mobile (like landing page) */
    .footer-column::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.25) 20%, 
            rgba(245, 158, 11, 0.6) 50%,
            rgba(255, 255, 255, 0.25) 80%, 
            transparent 100%
        );
        margin-bottom: 1.5rem;
    }
    
    .footer-column h4 {
        text-align: center !important; /* Center align heading on mobile */
        margin-top: 1.5rem; /* Space for gradient line above */
    }
    
    .footer-column ul {
        margin-top: 1.5rem; /* Space for gradient line above */
        margin-bottom: 0; /* Remove bottom margin to reduce gap to next line */
        padding-bottom: 0;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Center align links on mobile */
        text-align: center !important;
        padding: 0;
        margin: 0;
    }
    
    .footer-column li {
        text-align: center !important; /* Center align list items on mobile */
    }
    
    .footer-column li:last-child {
        margin-bottom: 0.5rem; /* Reduced margin for last item to reduce gap to line */
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding-top: 0.75rem; /* Reduced padding-top to minimize gap from line above */
        position: relative;
        margin-top: 0;
    }
    
    /* Add gradient line to footer-bottom */
    .footer-bottom::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.25) 20%, 
            rgba(245, 158, 11, 0.6) 50%,
            rgba(255, 255, 255, 0.25) 80%, 
            transparent 100%
        );
    }
    
    .social-links {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Prevent zoom and ensure proper fit */
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        touch-action: pan-x pan-y;
        -ms-touch-action: pan-x pan-y;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Even smaller headings on very small mobile devices */
    .legal-header h1 {
        font-size: 1.5rem !important;
    }
    
    /* Ensure legal content fits screen */
    .legal-content {
        width: 100%;
        max-width: 100vw;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
    
    /* Navbar mobile adjustments */
    .nav-container {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Prevent double-tap zoom */
    * {
        touch-action: manipulation;
    }
    
    .nav-container {
        padding: 0 0.75rem;
        height: 60px;
        min-height: 60px;
    }
    
    .logo-image {
        height: 44px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-visual {
        height: 260px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Custom Cursor for Interactive Elements */
.service-card,
.portfolio-item,
.tech-item,
.contact-item {
    cursor: pointer;
}

/* Enhanced Hover Effects */
.service-card:hover .service-icon {
    animation: pulse 0.6s ease;
}

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

/* Gradient Text Animation */
.highlight {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Parallax Effect */
.hero::before {
    animation: parallax 20s linear infinite;
}

@keyframes parallax {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100px);
    }
}

/* Legal Pages Styles */
.legal-content {
    padding: 8rem 0 4rem;
    background: var(--bg-primary);
    min-height: 100vh;
    /* Text nicht kopierbar/markierbar */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.legal-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.legal-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.legal-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary-color);
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
}

.legal-info {
    line-height: 1.7;
    color: var(--text-primary);
    /* Text nicht kopierbar/markierbar */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Alle Textelemente in legal-content nicht markierbar */
.legal-content * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Links und Kontakt-Informationen müssen kopierbar bleiben */
.legal-info a {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

/* Kontakt-Links (E-Mail und Telefon) sollen kopierbar und anklickbar sein */
.legal-info .contact-link {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.legal-info .contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legal-info p {
    margin-bottom: 1rem;
}

.legal-info ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-info li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.legal-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-info a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legal-footer {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.legal-footer p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Coming Soon Link Styles */
.coming-soon-link {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coming-soon-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.coming-soon-link::after {
    content: ' (Coming Soon)';
    font-size: 0.7em;
    opacity: 0.7;
    font-weight: 400;
    margin-left: 0.3em;
}

/* Coming Soon Tooltip - Removed */

/* Coming Soon Animation */
@keyframes comingSoonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.coming-soon-link:hover {
    animation: comingSoonPulse 0.6s ease-in-out;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 9.5rem 0 2.5rem; /* extra top padding so titles are not under navbar */
        overflow-x: hidden; /* Prevent horizontal overflow */
        width: 100%;
        max-width: 100vw;
    }
    
    .legal-header h1 {
        font-size: 1.75rem; /* Smaller on mobile */
    }
    
    .legal-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
        overflow-x: hidden; /* Prevent horizontal overflow */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
    
    .legal-info {
        overflow-wrap: break-word; /* Break long words */
        word-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .legal-info ul {
        padding-left: 1.5rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    /* Fix long URLs - break them properly */
    .legal-info a {
        word-break: break-all; /* Break URLs at any character if needed */
        overflow-wrap: anywhere;
        max-width: 100%;
        display: inline-block;
        hyphens: auto;
    }
    
    .legal-info .contact-link {
        word-break: break-all;
        overflow-wrap: anywhere;
        max-width: 100%;
    }
    
}
