:root {
    --font-family: 'Inter', sans-serif;
    --text-main: #111111;
    --text-muted: #666666;
    --accent-blue: #007AFF;
    --bg-white: #ffffff;
    --liquid-1: #E0F2FE;
    --liquid-2: #F3E8FF;
    --liquid-3: #FDF4FF;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Background Liquid Animation */
.background-liquid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.8;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--liquid-1);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--liquid-2);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--liquid-3);
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Navigation */
.nav-bar {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* In deinem allgemeinen Teil (oben) */
.mobile-menu-toggle {
    display: none;
    /* Versteckt es standardmäßig auf Desktop */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-menu {
    display: none;
}

/* In deinem Media Query (ganz unten bei @media (max-width: 768px)) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        /* Zeigt es nur auf Mobile/Tablet an */
    }

    .mobile-menu {
        position: fixed;
        top: 80px;
        /* Below navbar */
        left: 0;
        width: 100%;
        background: #fff;
        display: none;
        /* Hidden by default, toggled by JS */
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid #eee;
        z-index: 99;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

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

    .mobile-menu a {
        text-decoration: none;
        color: var(--text-main);
        font-weight: 600;
        font-size: 1.1rem;
        padding: 10px 0;
    }

    .nav-links {
        display: none;
        /* Versteckt die normalen Links auf Mobile */
    }

    .iframe-container {
        /* Ändert das Querformat in ein Smartphone-Hochformat */
        aspect-ratio: 9/16 !important;
        height: 70vh;
        /* Optional: Begrenzt die Höhe auf 70% des Bildschirms */
        max-height: 600px;
    }

    .project-grid {
        gap: 40px;
        /* Weniger Abstand auf Mobile */
    }

    .project-header {
        padding: 100px 0 20px;
    }
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    transition: color 0.2s;
}

.lang-btn.active {
    color: var(--accent-blue);
}

.lang-divider {
    color: rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-nav {
    color: var(--text-main) !important;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 80px;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.headline {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.subheadline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Hero Trust (Zentriert) */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-stars {
    color: #fbbf24;
    display: flex;
    gap: 3px;
    font-size: 1rem;
}

.hero-avatars {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.hero-avatars img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-left: -14px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.trust-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: #111;
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-text {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-text:hover {
    opacity: 0.7;
}

/* Bento Grid */
.work-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.bento-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-visual-area {
    height: 200px;
    background: #f8fafc;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tags span {
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    color: #64748b;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.about-image-wrapper {
    max-width: 320px;
    width: 100%;
    margin: 30px auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.jan-image,
.jan-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-text {
    max-width: 700px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Tech Stack Scroll */
.tech-stack-section {
    padding: 50px 0;
    border-top: 1px solid #eee;
    overflow: hidden;
}

.tech-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
    gap: 60px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-weight: 500;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Testimonials */
.testimonial-section {
    padding: 100px 0;
    background: #f9fafb;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.t-stars {
    color: #fbbf24;
    margin-bottom: 15px;
}

.t-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.t-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.t-info h4 {
    font-size: 1rem;
    margin: 0;
}

.t-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contact */
.contact-section {
    padding: 100px 0;
    text-align: center;
}

.calendar-wrapper {
    max-width: 800px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

footer {
    padding: 50px 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .headline {
        font-size: 2.4rem;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .about-image-wrapper {
        margin: 40px auto;
        max-width: 280px;
    }

    .avatar-wrapper {
        margin-left: 20px;
    }

    .nav-right {
        gap: 15px;
    }

    .lang-btn {
        font-size: 0.75rem;
    }

    .nav-links {
        display: none;
    }
}

/* --- Premium Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 90%;
    max-width: 340px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: cookieSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlideUp {
    from {
        transform: translateY(100%) scale(0.9);
        opacity: 0;
    }

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

.cookie-header {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.cookie-icon-wrapper {
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F8F8;
    font-size: 28px;
    transition: all 0.4s ease;
}

.cookie-text h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #000;
}

.cookie-text p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.cookie-slider-container {
    padding: 0 5px;
}

.privacy-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 48px;
    background: #F1F1F1;
    border-radius: 24px;
    outline: none;
    padding: 0 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.privacy-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 34px;
    height: 34px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.privacy-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.cookie-btn {
    border: none;
    padding: 16px;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #111;
    color: #fff;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
    }
}

.cookie-footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 11px;
    color: #999;
}

.cookie-footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.cookie-footer-links a:hover {
    color: #666;
}

.cookie-reset-link {
    display: inline-block;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    font-size: 0.85rem;
    text-decoration: underline;
    margin-top: 10px;
}

.cookie-reset-link:hover {
    opacity: 1;
}