/* Modernes, cleanes Portfolio-Design 2025 */
:root {
    /* Moderne Farbpalette */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent-color: #ec4899;
    --text-color: #1f2937;
    --text-light: #4b5563;
    --text-lighter: #9ca3af;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;

    /* Schatten */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Abrundungen */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;

    /* Animation */
    --transition: all 0.3s ease;

    /* Layout */
    --container-width: 1280px;
    --header-height: 70px;
    --section-spacing: 6rem;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

/* Button-spezifischer Hover-Effekt - Text immer weiß auf farbigen Buttons */
.btn, button.btn, a.btn {
    color: white;
}

.btn:hover, button.btn:hover, a.btn:hover {
    color: white !important;
}

/* Primäre Button-Styles mit Hover-Regel */
.btn-primary, a.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover, a.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

ul, ol {
    list-style: none;
}

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

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header und Navigation - glassmorphism style */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section - mit modernem Design */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fafb 0%, #eef2ff 100%);
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: -5%;
    right: -5%;
    width: 50%;
    height: 110%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
    animation: morphBlob 15s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 40%;
    height: 80%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    z-index: 0;
    animation: morphBlob 20s ease-in-out infinite alternate-reverse;
}

@keyframes morphBlob {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    100% {
        border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    background: linear-gradient(to right, var(--primary-dark), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 700px;
    animation: fadeUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn {
    color: white;
}

.btn:hover {
    color: white !important; /* Stellt sicher, dass der Text auf Buttons immer weiß bleibt */
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn:hover::before {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-outline {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
    position: relative;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    z-index: -1;
}

.btn-outline:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background-color: var(--primary-dark);
}

/* Entferne die besondere hover::before Animation und nutze den gleichen Hover-Stil wie beim Standard-Button */
.btn-outline:hover::before {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* Sections */
section {
    padding: var(--section-spacing) 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
}

section p {
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    font-size: 1.1rem;
}

/* About Section */
#about {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 350px; /* Begrenze die maximale Breite des Bildcontainers */
    margin: 0 auto; /* Zentriere das Bild, wenn der Container kleiner als die Spalte ist */
}

.about-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 100%;
    max-height: 350px; /* Begrenze die maximale Höhe des Bildes */
    object-fit: cover; /* Stellt sicher, dass das Bild proportional skaliert wird */
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border: 3px solid var(--primary-color);
    border-radius: var(--radius);
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-image:hover::before {
    top: -20px;
    left: -20px;
}

.about-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
}

/* Projects Section */
/* Verbesserte Projektgalerie mit 3 Projekten pro Seite */
.projects-container {
    padding-top: 1.5rem;
    position: relative;
    margin-top: 2rem;
}

.projects-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-nav:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.gallery-prev {
    left: -1.5rem;
}

.gallery-next {
    right: -1.5rem;
}

.projects-wrapper {
    width: 100%;
    overflow: hidden;
}

.projects-grid {
    display: flex;
    transition: transform 0.5s ease;
}

.project-card {
    flex: 0 0 calc(33.333% - 2rem);
    margin: 1rem;
    min-width: calc(33.333% - 2rem);
    max-width: calc(33.333% - 2rem);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Projekte - Ladeanimation */
.projects-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    z-index: 10;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.projects-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.projects-loading h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.projects-loading p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0;
    text-align: center;
}

/* Projektkartendesign */
.project-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 350px; /* Erhöhte Höhe von 300px auf 350px für alle Geräte */
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-tag {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.project-links .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

/* Responsive Anpassungen für die Projektgalerie */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .gallery-nav {
        width: 2.5rem;
        height: 2.5rem;
    }

    .gallery-prev {
        left: -1.25rem;
    }

    .gallery-next {
        right: -1.25rem;
    }
}

@media (max-width: 992px) {
    .project-card {
        flex: 0 0 calc(50% - 2rem);
        min-width: calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .projects-gallery {
        padding: 0 1rem;
    }

    .project-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        margin: 1rem 0;
    }

    .project-image {
        height: 350px; /* Konsistente Höhe von 350px auch auf mobilen Geräten */
    }

    .gallery-nav {
        width: 2.5rem;
        height: 2.5rem;
        position: relative;
        display: inline-flex;
        margin: 0 0.5rem;
    }

    .projects-gallery {
        flex-direction: column;
    }

    .gallery-navigation {
        display: flex;
        justify-content: center;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .projects-gallery {
        padding: 0 0.5rem;
    }

    .gallery-nav {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }

    .gallery-prev {
        left: -0.25rem;
    }

    .gallery-next {
        right: -0.25rem;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

    .project-image {
        height: 350px; /* Konsistente Höhe von 350px auch auf kleinen Geräten */
    }

    .project-links {
        flex-direction: column;
    }

    .project-links .btn {
        width: 100%;
        text-align: center;
    }
}

/* Kontaktformular Styling - Premium Design */
.contact-form {
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    z-index: 2;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(99, 102, 241, 0.02);
}

.form-group:focus-within label {
    color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.contact-form .btn:active {
    transform: translateY(1px);
}

#form-message {
    margin-top: 1.5rem;
}

.alert-success {
    padding: 1rem 1.25rem;
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
    color: #065f46;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-error {
    padding: 1rem 1.25rem;
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    color: #b91c1c;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

/* Kontaktinfo Styling verbessern */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.05);
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    height: 3.5rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover i {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: rotate(10deg);
}

.contact-info-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.contact-info-item p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 1rem;
}

/* Studio Section - Game Studio Bereich */
.studio-section {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.studio-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40%;
    height: 70%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    z-index: 0;
}

.studio-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.studio-content {
    position: relative;
    z-index: 1;
}

.studio-content p {
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

.studio-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto;
}

.studio-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    height: auto;
    display: block;
}

.studio-image:hover img {
    transform: scale(1.05);
}

.studio-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.highlight-item {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.highlight-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.highlight-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-light);
}

/* Responsive Anpassungen für Studio-Sektion */
@media (max-width: 1200px) {
    :root {
        --section-spacing: 5rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .container {
        max-width: 95%;
    }

    .projects-wrapper {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    :root {
        --section-spacing: 4rem;
    }

    .hero h1 {
        font-size: 3rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-grid, .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        max-width: 350px;
        margin: 0 auto;
    }

    .studio-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .studio-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .studio-image {
        margin-top: 2rem;
    }

    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    section {
        padding: 4rem 0;
    }

    /* Verbesserte Projektkarten-Darstellung */
    .projects-gallery {
        padding: 0;
    }

    .gallery-nav {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 3.5rem;
        --header-height: 60px;
    }

    .container {
        padding: 0 1.25rem;
        width: 100%;
        max-width: 100%;
    }

    section {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
    }

    h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

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

    nav ul {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        height: 0;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: var(--shadow);
        z-index: 99;
    }

    nav ul.active {
        height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .studio-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .highlight-item {
        padding: 1.25rem;
    }

    .highlight-item i {
        font-size: 1.75rem;
    }

    .projects-wrapper {
        max-width: 100%;
        margin: 0;
    }

    .projects-gallery {
        display: flex;
        flex-direction: column;
    }

    .gallery-nav {
        position: static;
        transform: none;
        margin: 1rem auto;
        width: 40px;
        height: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin: 0 0 1.5rem 0;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

    .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .about-content h3 {
        font-size: 1.3rem;
    }

    .skills {
        gap: 0.5rem;
    }

    .skill-tag {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    .highlight-item h3 {
        font-size: 1.1rem;
    }

    .highlight-item p {
        font-size: 0.9rem;
    }

    .project-card-content h3 {
        font-size: 1.2rem;
    }

    /* Wichtig für Navigation auf kleinen Geräten */
    .logo {
        font-size: 1.2rem;
    }

    header .container {
        padding: 0 1rem;
    }

    .mobile-menu-toggle {
        margin-right: 0;
    }

    /* Verbessertes Formular-Styling für mobile Geräte */
    input, textarea, select {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}
