/* --- MODAL (POPUP) STYLES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: #6366f1;
    text-decoration: none;
}

/* --- 1. BASIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #1f2933;
    background: #ebf0f9;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

h2.section-title {
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
    color: #111827;
    text-align: center;
    font-weight: 700;
}

.bg-white-section {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

/* --- 2. NAVBAR (Mit Mobile Toggle) --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #1e1b4b, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.65rem;
    align-items: center;
}

.nav-menu li {
    white-space: nowrap !important;
}

.nav-menu a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.96rem;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    transition: all 0.25s ease;
    white-space: nowrap !important;
}

.nav-menu a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #1f2933;
}

@media (max-width: 1080px) {
    .menu-toggle {
        display: block !important;
    }

    .nav-menu {
        position: fixed !important;
        top: 75px !important;
        right: -100% !important;
        width: 100% !important;
        height: calc(100vh - 75px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(16px) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.25rem !important;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.08) !important;
        z-index: 9999 !important;
        padding: 2rem !important;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-menu li {
        margin: 0 !important;
    }

    .nav-menu a {
        font-size: 1.35rem !important;
        padding: 0.75rem 1.5rem !important;
    }
}

/* --- 3. HERO --- */
/* --- LEBENSLAUF BUTTON STYLE --- */
.cta-resume {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: #ffffff;
    color: #1f2933 !important;
    border: 2px solid #10b981;
    /* Ein professionelles Grün */
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-resume:hover {
    background: #f0fdf4;
    /* Ganz helles Grün beim Hover */
    border-color: #059669;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}

.cta-resume i {
    color: #10b981;
    font-size: 1.2rem;
}

/* Fix für das Layout der Buttons auf Mobile */
@media (max-width: 600px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
        margin-top: 2rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .cta-primary,
    .cta-resume,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* --- HERO BUTTONS --- */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.cta-primary,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.cta-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white !important;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.cta-secondary {
    background: white;
    color: #1f2933 !important;
    border: 2px solid #e5e7eb;
}

.cta-secondary:hover {
    background: #f9fafb;
    border-color: #6366f1;
    color: #6366f1 !important;
    transform: translateY(-3px);
}

.hero {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    background: #ebf0f9;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111827;
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.hero-text p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.highlight {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    white-space: nowrap;
}

.profile-pic {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background-image: url('Bewerbungsfoto.jpg');
    background-size: cover;
    background-position: center top;
    border: 6px solid white;
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3);
    margin: 0 auto;
}

/* --- 4. TIMELINE --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #6366f1, #cbd5e1 90%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 0;
    width: 22px;
    height: 22px;
    background: #6366f1;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    z-index: 2;
    transition: 0.3s;
}

.timeline-content {
    background: white;
    padding: 1.8rem;
    border-radius: 1.2rem;
    border: 1px solid white;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    border-color: #a5b4fc;
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
}

.timeline-date {
    display: inline-block;
    background: #eef2ff;
    color: #6366f1;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 99px;
    margin-bottom: 1rem;
}

.timeline-header-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.8rem;
}

.timeline-icon-box {
    width: 54px;
    height: 54px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
}

.timeline-icon-box img {
    width: 38px;
    height: 38px;
    max-height: 38px;
    object-fit: contain;
}

.timeline-icon-box i {
    font-size: 1.6rem;
    color: #4b5563;
}

.degree-badge {
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 6px;
    margin-left: 0;
    font-weight: 600;
    white-space: nowrap;
}

/* Global fix for badge wrapping to ensure the title and badge wrap nicely */
.timeline-header-row>div:nth-child(2) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.timeline-details {
    padding-left: 1.25rem;
}

.timeline-details li {
    margin-bottom: 0.5rem;
}

/* --- 5. CARDS --- */
.certificates-grid,
.project-grid,
.interests-grid {
    display: flex !important;
    flex-wrap: wrap;
}

.certificates-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}


/* --- DAS ASYMMETRISCHE BENTO-UPGRADE (V2) --- */
.project-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem !important;
    max-width: 1200px !important;
    margin: 2rem auto !important;
    align-items: stretch;
}

/* GRID SPANS */
.project-card.span-3 {
    grid-column: span 3;
}

.project-card.span-2 {
    grid-column: span 2;
}

.project-card.span-1 {
    grid-column: span 1;
}

/* FIX FÜR DIE BILDER IN DEN GROSSEN KARTEN */
.project-card.span-3 .app-screenshot,
.project-card.span-2 .app-screenshot {
    height: 220px !important;
    object-fit: cover;
}

/* Speziallayout für das Full-Width Highlight-Projekt (Web App Templates) */
.project-card.highlight-card {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: center;
    background: linear-gradient(to right, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    padding: 0;
    overflow: hidden;
}

.project-card.highlight-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.highlight-image-area {
    width: 45%;
    position: relative;
    height: 100%;
    min-height: 300px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.highlight-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: 0.5s;
}

.highlight-card:hover .highlight-image-area img {
    transform: scale(1.05);
}

/* Das "Live Demo Preview" Label über dem Bild */
.highlight-ribbon {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.highlight-content-area {
    width: 55%;
    padding: 2.5rem 2.5rem 2.5rem 0;
}

/* Auth/Demo Box */
.demo-access-box {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.demo-auth-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.demo-access-box i {
    color: #d97706;
    font-size: 1.2rem;
}

.demo-access-text {
    font-size: 0.85rem;
    color: #92400e;
    font-family: monospace;
    font-weight: 600;
}

.btn-demo-login {
    background: #f59e0b;
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 0.6rem;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.btn-demo-login:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
}

/* MOBILE OPTIMIERUNG (Wichtig für Handys) */
@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-card.span-3,
    .project-card.span-2,
    .project-card.span-1 {
        grid-column: span 2;
        /* All take full width of 2 cols on tablet */
    }

    .project-card.highlight-card {
        flex-direction: column;
        gap: 0;
    }

    .highlight-image-area {
        width: 100%;
        min-height: 250px;
        border-radius: 0;
    }

    .highlight-content-area {
        width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card.span-3,
    .project-card.span-2,
    .project-card.span-1 {
        grid-column: span 1;
    }

    .demo-access-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .demo-auth-info {
        justify-content: center;
    }

    .btn-demo-login {
        width: 100%;
        text-align: center;
    }
}

/* --- RESPONSIVE ANPASSUNGEN --- */

/* Erst wenn der Platz wirklich zu knapp für 3 Karten wird (ca. 1000px) */
@media (max-width: 1024px) {
    .project-card {
        flex: 0 1 calc(50% - 1rem) !important;
        /* 2 pro Reihe */
    }
}

/* Für Handys */
@media (max-width: 700px) {
    .project-card {
        flex: 0 1 100% !important;
        /* 1 pro Reihe */
    }
}

/* --- OPTIMIERTES INTERESSEN GRID (2x2) --- */
.interests-grid {
    display: grid !important;
    /* Erzwingt Grid-Modus */
    grid-template-columns: repeat(2, 1fr);
    /* Genau 2 Spalten */
    gap: 2.5rem;
    /* Großzügiger Abstand für "Luftigkeit" */
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.interest-card-modern {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Hover-Effekt für den "Überzeugungs-Faktor" */
.interest-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
}

/* Mobile Anpassung: Unter 800px Breite alles untereinander */
@media (max-width: 800px) {
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.cert-card,
.interest-card-modern,
.project-card {
    background: white;
    border-radius: 1.5rem;
    transition: 0.4s ease;
    border: 1px solid #f3f4f6;
}



.cert-card,
.interest-card-modern,
.project-card {
    background: white;
    border-radius: 1.5rem;
    transition: 0.4s ease;
    border: 1px solid #f3f4f6;
}


.bg-white-section .cert-card,
.bg-white-section .project-card {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.cert-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    border-color: #6366f1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.cert-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.cert-icon {
    width: 54px;
    height: 54px;
    background: #eef2ff;
    color: #6366f1;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.cert-info h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
    color: #111827;
}

.cert-date {
    font-size: 0.75rem;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    color: #4b5563;
    font-weight: 500;
}

.cert-link {
    margin-left: auto;
    color: #9ca3af;
    transition: 0.2s;
}

.cert-link:hover {
    color: #6366f1;
}

.card-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.color-1 {
    background: #e0e7ff;
    color: #4338ca;
}

.interest-card-modern {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid white;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tags-row span {
    font-size: 0.8rem;
    background: #f3f4f6;
    color: #4b5563;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 600;
}

/* **KORRIGIERTE PROJECT CARDS - GRÖßERE ICONS FÜR ALLE 5** */
.project-card {
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

/* Einheitliche Höhe */
.project-branding-header {
    height: 100px !important;
    /* Etwas höher für Balance */
    border-radius: 1.5rem 1.5rem 0 0;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    /* MITTE statt flex-end */
    padding: 0 !important;
    /* Kein padding mehr */
    position: relative;
}

.branding-icon {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    border: 5px solid white;
    background: white;
    z-index: 5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.branding-icon i {
    font-size: 2.2rem !important;
    line-height: 1 !important;
}

.screenshot-showcase {
    margin-top: -40px;
    padding: 0 1.5rem;
    z-index: 10;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 180px;
    object-fit: cover !important;
    object-position: top;
    border-radius: 1rem;
    border: 3px solid white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: 0.4s;
}

.project-card:hover .app-screenshot {
    transform: translateY(-8px) scale(1.02);
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-tech {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 1rem 0;
    font-weight: 500;
}

/* --- ZERTIFIKAT CARD LOOK (WIE SCREENSHOT) --- */
.cert-gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.simple-cert-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    width: 100%;
}

.simple-cert-card img {
    width: 200px;
    /* Kleinere Vorschau wie im Bild */
    height: auto;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.simple-cert-card h3 {
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 20px;
    font-weight: 600;
}

.view-cert-btn {
    display: inline-block;
    background-color: #5e239d;
    /* Das Lila aus deinem Screenshot */
    color: white !important;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.view-cert-btn:hover {
    background-color: #4a1a7d;
    transform: translateY(-2px);
}

/* --- MODERN LIVE DEMO BUTTON --- */
.btn-live-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    margin-top: auto;
    /* Schiebt den Button immer nach unten */
}

.btn-live-demo:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, #4f46e5, #3730a3);
}

.btn-live-demo i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-live-demo:hover i {
    transform: translateX(4px) rotate(-10deg);
}


/* --- 6. KONTAKT --- */
.contact-section {
    background: #ffffff;
    padding: 8rem 0;
    border-top: 1px solid #e5e7eb;
    /* Optional: Trennlinie für sauberen Übergang */
}

.contact-wrapper-glass {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: white;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
    border: 1px solid white;
}

.contact-info-col {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    padding: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white !important;
    font-weight: 700;
}

.contact-desc {
    color: #c7d2fe;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.contact-details-list a,
.contact-details-list .label {
    color: #f8fafc !important;
    font-size: 0.85rem;
}

.contact-details-list .value {
    color: #a5b4fc !important;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .detail-item {
        gap: 0.8rem;
    }
}


.detail-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.detail-item:hover {
    transform: translateX(10px);
    opacity: 0.8;
}

.detail-item:active {
    transform: scale(0.95) !important;
}

.icon-box-gradient {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.detail-item:hover .icon-box-gradient {
    background: white;
    color: #4f46e5;
}

.contact-form-col {
    padding: 4rem;
    background: white;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #374151;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.modern-form input:focus,
.modern-form textarea:focus {
    background: white;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-submit-gradient {
    background: linear-gradient(135deg, #6366f1, #db2777);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: 0.3s;
    margin-top: 1rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-submit-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

/* --- 7. FOOTER --- */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #6b7280;
    font-size: 0.9rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

footer a {
    color: #6366f1;
    text-decoration: none;
}

/* --- MOBILE MENU & ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s all cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- LOTTIE ILLUSTRATION FADE-IN --- */
@keyframes lottieFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.interests-visual dotlottie-player {
    opacity: 0;
    /* Wait for section reveal */
}

.reveal.active .interests-visual dotlottie-player {
    animation: lottieFadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.5s;
    /* Slight delay to let the section reveal first */
}

@media (max-width: 900px) {

    .hero-content,
    .contact-wrapper-glass {
        grid-template-columns: 1fr;
    }

    .contact-info-col,
    .contact-form-col {
        padding: 2.5rem;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.4rem;
    }

    .hero-text p {
        font-size: 1rem !important;
    }

    .hero-buttons {
        justify-content: center;
    }

    .profile-pic {
        width: 220px;
        height: 220px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .nav-menu a {
        font-size: 1.5rem;
    }
}

/* --- MAX-SIZE TECH STACK FIX --- */
.interests-wrapper {
    display: flex;
    align-items: flex-start;
    /* Zentriert beide Blöcke */
    width: 100%;
    gap: 5px;
    /* Minimaler Abstand zwischen Animation und Text */
    margin-top: -2rem;
    /* Pull it closer to the header to reduce the 3.5rem gap */
}

.interests-visual {
    flex: 0 0 35% !important;
    /* Animation etwas schmaler für mehr Platz rechts */
}

.interests-content {
    flex: 0 0 65% !important;
    /* Mehr Platz für die großen Icons */
    padding-left: 0;
}

/* --- DIE ICON-REIHE --- */
.tech-icon-row {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    /* Fast kein Abstand mehr zwischen den Containern */
    margin: 15px 0;
    width: 100%;
    justify-content: space-between;
    /* Verteilt Icons gleichmäßig */
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 50px;
    /* Kompakterer Container-Boden */
    padding: 0 !important;
    /* Kein innerer Puffer mehr */
}

.tech-item i {
    font-size: 2.4rem !important;
    /* DEUTLICH GRÖSSER */
    color: var(--hover-color, #444);
    transition: transform 0.3s ease;
}

.tech-item span {
    font-size: 0.6rem !important;
    margin-top: 2px;
    letter-spacing: -0.2px;
    /* Engere Schrift für schmale Spalten */
}

/* Hover-Effekt angepasst auf die neue Größe */
.tech-item:hover i {
    transform: scale(1.1) translateY(-3px);
}

/* --- TECH LAYOUT (RIGHT SIDE) --- */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: none;
    /* FULL WIDTH OVERRIDE */
    padding: 0 1rem;
    /* overflow: hidden; REMOVED */
}

.right-header {
    margin-bottom: -1rem;
    /* Pull grid closer if needed, or keeping it neutral */
}

/* Replaces old H1 context with a strong lead paragraph */
.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #374151;
    /* Dark gray for readability */
    line-height: 1.6;
    margin-top: 0;
}

/* --- TECH-STACK ICONS (In einer Reihe) --- */
.tech-icon-row,
.tech-stack-mobile-optimised {
    display: flex;
    flex-wrap: nowrap;
    /* WICHTIG: Erzwingt eine einzige Reihe */
    gap: 15px;
    margin: 20px 0;
    padding: 10px 5px;
    overflow-x: auto;
    /* Erlaubt horizontales Scrollen, falls der Platz nicht reicht */
    scrollbar-width: none;
    /* Versteckt Scrollbar (Firefox) */
    -ms-overflow-style: none;
    /* Versteckt Scrollbar (IE/Edge) */
}

.tech-icon-row::-webkit-scrollbar,
.tech-stack-mobile-optimised::-webkit-scrollbar {
    display: none;
    /* Versteckt Scrollbar (Chrome/Safari) */
}

/* Auf Desktop heben wir die mobilen Reihen auf, damit die Items nativ in EINER scrollbaren Zeile fließen */
.tech-stack-mobile-optimised .mobile-row {
    display: contents;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.5rem;
    flex-shrink: 0;
    /* Verhindert das Zusammenquetschen */
    min-width: 75px;
}

.tech-item i {
    font-size: 2.2rem;
    /* Etwas kleiner, damit mehr in die Reihe passt */
    color: var(--hover-color, #444);
    filter: grayscale(20%) opacity(0.8);
    transition: all 0.4s ease;
    display: inline-block;
}

.tech-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    transition: all 0.3s ease;
}

/* Hover-Effekte */
.tech-item:hover {
    transform: scale(1.1);
}

.tech-item:hover i {
    filter: grayscale(0%) opacity(1) drop-shadow(0 4px 10px rgba(99, 102, 241, 0.3));
    transform: translateY(-5px);
    color: var(--hover-color);
}

.tech-item:hover span {
    color: #1f2933;
    opacity: 1;
    font-weight: 600;
}

/* --- FOOTER INFO LIST --- */
.right-footer-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.right-footer-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.5;
}

.right-footer-info li i {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-top: 3px;
    /* Align with text top */
    min-width: 20px;
}

.right-footer-info li strong {
    color: #1f2933;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .airy-tech-grid {
        gap: 1.5rem;
        justify-content: center;
    }

    .right-header,
    .right-footer-info {
        text-align: center;
    }

    .right-footer-info li {
        justify-content: center;
        text-align: left;
        /* Keep text left aligned even if block is centered */
        flex-direction: row;
    }
}

/* --- GLASSMORPHISM SKILL SECTION --- */
.glass-skill-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 550px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.65);
    /* Semi-transparent white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
    /* Accent border */
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 1.8rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    flex-shrink: 0;
}

.card-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #1f2933;
}

.card-info p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

/* Highlight Card (Algo Trading) */
.highlight-card {
    border-color: rgba(16, 185, 129, 0.5);
    /* Greenish border base */
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.highlight-card .tech-tags span {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.highlight-card:hover {
    border-color: #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
    transform: translateX(10px) scale(1.02);
    /* Little extra pop */
}

/* Responsive for Interests */
@media (max-width: 1200px) {
    .interests-content {
        padding-right: 2rem;
    }
}

@media (max-width: 900px) {
    .interests-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .interests-visual,
    .interests-content {
        width: 100%;
        flex: auto;
        padding: 2rem;
    }

    .interests-visual {
        min-height: 300px;
    }
}


/* Wide Hero Card (Spans 2 cols) */
.hero-wide {
    grid-column: 1 / -1;
    /* Full width */
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: stretch;
}

/* Horizontal Layout Adjustments */
.hero-wide .project-branding-header {
    display: none;
}

.hero-wide .hero-image-wrapper {
    flex: 0 0 45%;
    /* Left side width */
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.hero-wide .hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-wide:hover .hero-image-wrapper img {
    transform: scale(1.05);
}

.hero-wide .project-info {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Feature List Styling */
.project-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.project-features li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2933;
    transform: translateY(-2px);
}

/* Mobile Responsiveness for Bento */
@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .hero-wide {
        flex-direction: column;
        /* Stack content in card */
    }

    .hero-wide .hero-image-wrapper {
        height: 250px;
        /* Fixed height for image on mobile */
        flex: none;
        width: 100%;
    }

    .hero-wide .project-branding-header {
        display: flex;
        /* Show header again on mobile if desired */
    }

    .hero-wide .project-info {
        padding: 1.5rem;
    }
}

/* --- BENTO GRID FULL-WIDTH LIGHT COMPACT --- */
.projects-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 2rem;
    width: 100%;
    margin-top: 1.5rem;
}

.bento-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.15), 0 8px 10px -5px rgba(99, 102, 241, 0.1);
    border-color: #c7d2fe;
}

.bento-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
}

.bento-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: transform 0.7s ease;
}

.bento-card:hover .bento-card-image img {
    transform: scale(1.05);
}

.bento-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bento-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #6366f1;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
}

.bento-card-content h3 {
    font-size: 1.6rem;
    margin: 0.25rem 0 1rem;
    color: #0f172a;
    line-height: 1.2;
    font-weight: 800;
}

.bento-desc {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.desc-intro {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.desc-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: flex;
    /* Wechsel von inline-flex auf vollwertigen flex block */
    flex-direction: column;
    align-items: flex-start;
    /* Zwingt die Liste an den linken Rand */
    width: 100%;
    gap: 0.5rem;
}

.desc-features li {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    /* Checkmark exakt mit der obersten Text-Zeile bündig halten */
    text-align: left;
}

.desc-features li i {
    color: #4f46e5;
    margin-right: 0.5rem;
    width: 16px;
    flex-shrink: 0;
    /* Verhindert, dass das Icon zusammengequetscht wird, falls Text umbricht */
    margin-top: 0.2rem;
    /* Optischer Ausgleich für exakte vertikale Zentrierung zur ersten Textzeile */
    text-align: center;
}

.bento-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.bento-tech-badges span {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}

.bento-login-box {
    background: #eff6ff;
    /* Hellblau */
    border: 1px solid #bfdbfe;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.bento-auth-title {
    font-size: 0.7rem;
    color: #3b82f6;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 4px;
}

.bento-auth-creds {
    font-family: 'JetBrains Mono', monospace, sans-serif;
    font-size: 0.85rem;
    color: #1e3a8a;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    /* Smooth wrapping */
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    /* Spacing between parts */
}

.bento-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-bento-primary,
.btn-bento-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-bento-primary {
    background: #4f46e5;
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn-bento-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

.btn-bento-secondary {
    background: transparent;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
}

.btn-bento-secondary:hover {
    background: #f8fafc;
    color: #0f172a !important;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .projects-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-actions {
        flex-direction: column;
    }

    /* --- USER REQUESTED MOBILE OVERRIDES FOR HERO --- */
    .hero {
        min-height: 100vh !important;
        padding-top: 100px !important;
        padding-bottom: 2rem !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .hero-text {
        padding: 0 1.5rem !important;
        /* px-6 */
        text-align: center;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-text h2 {
        font-size: 1.15rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0.75rem !important;
        /* verkleinerter abstand */
        margin-top: 1.5rem !important;
    }

    .cta-primary,
    .cta-resume,
    .cta-secondary {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.6rem 1.2rem !important;
        /* reduziertes vertikales padding */
        font-size: 0.95rem !important;
    }

    .hero-image {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 3rem !important;
        /* mb-12 */
    }

    .profile-pic {
        width: 12rem !important;
        /* w-48 */
        height: 12rem !important;
        /* h-48 */
        margin: 0 auto !important;
    }

    /* --- TIMELINE MOBILE OVERRIDES --- */
    #education {
        padding-top: 3rem !important;
        /* Halbierter Abstand nach oben (pt-12) */
    }

    #education .section-title {
        margin-bottom: 2rem !important;
        font-size: 1.35rem !important;
        /* Verkleinerte Schrift (text-[1.35rem]) gegen Umbruch */
        padding: 0 !important;
    }

    #education .container {
        padding: 0 1.5rem !important;
        /* px-6 */
    }

    .timeline {
        padding: 0 !important;
        /* remove huge empty space */
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        /* space-y-8 */
    }

    .timeline::before {
        left: 11px !important;
        /* strictly horizontally centered on the 22px marker */
        top: 1.25rem !important;
    }

    .timeline-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 1.25rem !important;
        /* space between marker and card */
        padding-left: 0 !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        /* rely completely on flex gap for spacing */
    }

    .timeline-marker {
        position: relative !important;
        left: 0 !important;
        margin-top: 1.25rem !important;
        /* visual alignment with card contents */
        flex-shrink: 0;
    }

    .timeline-content {
        padding: 1.25rem !important;
        width: 100% !important;
    }

    .timeline-header-row {
        gap: 1rem !important;
    }

    .timeline-icon-box {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0;
    }

    .timeline-details {
        text-align: left !important;
        padding-left: 1.2rem !important;
    }

    .timeline-details li {
        margin-bottom: 0.75rem !important;
        line-height: 1.5 !important;
    }

    /* --- TECH-STACK & INTERESSEN MOBILE OVERRIDES --- */
    #interests {
        padding-top: 2rem !important;
        /* pt-8 equivalent for reduced whitespace */
    }

    #interests .section-title {
        font-size: 1.4rem !important;
        /* Fits everything solidly on one single line */
        margin-bottom: 1.5rem !important;
        /* Consistent moderate spacing */
        padding: 0 !important;
    }

    .interests-wrapper {
        display: flex !important;
        flex-direction: column !important;
        /* Stack vertically */
        align-items: center !important;
        /* items-center */
        justify-content: center !important;
        gap: 1.5rem !important;
        /* Reduced margin/gap between illustration and text */
        margin-top: -1.5rem !important;
        /* Pull illustration slightly up towards title */
    }

    .interests-visual {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: auto !important;
        /* Prevents artificial whitespace injection */
        padding: 0 !important;
    }

    .interests-visual dotlottie-player {
        width: 80% !important;
        /* Responsive but bounded w/h */
        height: auto !important;
        margin: 0 auto !important;
        /* mx-auto */
    }

    .interests-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        /* Force all text blocks inside to center horizontally */
        padding: 0 0.5rem !important;
        /* px-2 reduced to maximize horizontal screen real estate for icons */
        width: 100% !important;
    }

    .profile-content {
        align-items: center !important;
    }

    .profile-content .lead-text {
        text-align: center !important;
        margin-bottom: 1.5rem !important;
        padding: 0 0.5rem !important;
        /* preserve comfortable text padding here explicitly if needed */
    }

    /* --- NEUE MOBILE TECH-STACK-REIHEN (EXAKTE GRID-STRUKTUR) --- */
    .tech-stack-mobile-optimised {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
        /* space-y-2 (extrem geringer vertikaler Abstand) */
        overflow-x: hidden !important;
        flex-wrap: nowrap !important;
        margin: 1.5rem 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .tech-stack-mobile-optimised .mobile-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
        /* gap-2 kept unchanged */
        width: 100% !important;
    }

    /* Override für die einzelnen Items auf Mobile in diesem speziellen Container */
    .tech-stack-mobile-optimised .tech-item {
        min-width: 0 !important;
        width: auto !important;
        padding: 0.2rem !important;
        margin: 0 !important;
    }

    /* Icons vergrößern */
    .tech-stack-mobile-optimised .tech-item i {
        font-size: 2rem !important;
        /* w-8/w-10 equivalent increase */
    }

    /* Schrift leicht vergrößern (text-xs) */
    .tech-stack-mobile-optimised .tech-item span {
        font-size: 0.70rem !important;
        /* text-xs */
        letter-spacing: normal !important;
    }

    /* --- PROJEKTE MOBILE OVERRIDES --- */
    #projects {
        padding-top: 3.5rem !important;
        /* pt-14: Etwas mehr Atempause nach der oberen Sektion */
    }

    #projects .section-title {
        font-size: clamp(1.1rem, 5.5vw, 1.35rem) !important;
        /* Garantiert, dass die Schrift sich auf Mini-Handys noch weiter verkleinert */
        font-weight: 800 !important;
        /* font-extrabold: Stärkere Präsenz gegen die Projektbilder */
        text-align: center !important;
        /* Sauber zentriert */
        white-space: nowrap !important;
        /* Verhindert den Umbruch physisch */
        letter-spacing: -0.02em !important;
        /* Sehr leicht kondensiert für Platzgewinn */
        margin-bottom: 2.5rem !important;
        /* mb-10: Deutlich mehr Luft zur ersten Projekt-Karte */
        padding: 0 !important;
    }

    .projects-bento-grid {
        grid-auto-rows: auto !important;
        /* Fixes the massive empty gaps in shorter cards caused by '1fr' */
    }

    .bento-card {
        height: auto !important;
    }

    .bento-desc {
        flex-grow: 0 !important;
        margin-bottom: 1.5rem !important;
        /* Default gap spacing */
    }

    .bento-actions {
        margin-top: 0 !important;
        /* Nullify the mt-auto that split apart the buttons */
    }

    /* --- BENTO DEMO BOX MOBILE --- */
    .bento-auth-creds {
        flex-direction: column !important;
        /* Staple text lines */
        gap: 0.25rem !important;
        /* space-y-1 */
    }

    .auth-divider {
        display: none !important;
        /* Verstecke den Trennstrich '|' */
    }

    /* --- ZERTIFIKATE MOBILE OVERRIDES --- */
    #certificates {
        padding-top: 2.5rem !important;
        /* pt-10: Stark reduziertes Padding, um exakt mit Projekte anzugleichen */
    }

    #certificates .container {
        padding: 0 5% !important;
        /* Exakt derselbe Seitenabstand wie bei Projekten (container-fluid) */
        max-width: none !important;
        width: 100% !important;
    }

    #certificates .section-title {
        font-size: 1.4rem !important;
        /* Einheitliches Mobile-Heading Format wie Tech-Stack etc. */
        font-weight: 800 !important;
        text-align: center !important;
        padding: 0 !important;
        margin-bottom: 2.5rem !important;
        /* mb-10: Exakter Rhythmus zur ersten Karte wie bei den Projekten */
    }

    .cert-gallery {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 1.5rem !important;
    }

    .simple-cert-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    /* --- KONTAKT MOBILE OVERRIDES --- */
    .contact-section {
        padding-top: 3.5rem !important;
        /* Rhythmus angleichen (vgl. Projekte & Zertifikate) */
    }

    .contact-info-col {
        padding: 2.5rem 1.25rem !important;
        /* Weniger horizontales Padding für mehr Platz für die E-Mail */
    }

    .detail-item {
        margin-bottom: 1rem !important;
        /* Kompakteres Layout (weniger vertikaler Abstand) */
        gap: 0.75rem !important;
    }

    /* Zeilenumbrüche verhindern & Textfarbe anpassen */
    .contact-details-list a,
    .contact-details-list .label {
        color: #f8fafc !important;
        font-size: 0.85rem !important;
        word-break: normal !important;
        white-space: nowrap !important;
    }

    /* Links farblich abheben und unterstreichen */
    .contact-details-list .value {
        color: #a5b4fc !important;
        /* text-indigo-300 hell */
        text-decoration: underline !important;
        text-underline-offset: 4px !important;
        font-size: 0.85rem !important;
        word-break: normal !important;
        white-space: nowrap !important;
    }

    /* Bei absolutem Platzmangel am Rand mit '...' abschneiden */
    .contact-details-list .value {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .icon-box-gradient {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
        flex-shrink: 0;
    }

    /* --- FOOTER MOBILE OVERRIDES --- */
    .contact-section {
        padding-bottom: 3.5rem !important;
        /* Entfernt den gigantischen, noch aktiven Desktop-Leerraum */
    }

    footer {
        padding: 1.5rem 0 !important;
        /* Verkleinert den Footer nach oben und unten */
    }

    .footer-content {
        flex-direction: column !important;
        /* Text untereinander stapeln */
        gap: 0.25rem !important;
        /* gap-1 (sehr nah beieinander) */
    }

    .footer-content span {
        font-size: 0.75rem !important;
        /* text-xs: Dezente Schriftgröße */
        color: #9ca3af !important;
        /* text-gray-400: Hellere Textfarbe */
    }

    .footer-divider.hidden-mobile {
        display: none !important;
        /* Vertikalen Strich auf Mobile ausblenden */
    }
}


/* ==========================================================================
   --- PORTFOLIO V4: BREITERES LAYOUT, EXPERIENCE-CARDS & REFINEMENTS ---
   ========================================================================== */

/* 1. BREITERER CONTAINER & GLOBALE SPACING-OPTIMIERUNG */
.container {
    max-width: 1460px !important;
    width: 100% !important;
    padding: 0 2rem !important;
    margin: 0 auto !important;
}

@media (min-width: 1536px) {
    .container {
        max-width: 1360px !important;
    }
}

section {
    scroll-margin-top: 85px !important;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.05rem;
    margin-top: -1.5rem;
    margin-bottom: 2.75rem;
    line-height: 1.5;
}

/* 2. HERO SECTION – BREITER & HARMONISCHER */
.hero {
    min-height: 90vh !important;
    display: flex !important;
    align-items: center !important;
    padding: 7rem 0 4rem !important;
}

.hero-content {
    display: grid !important;
    grid-template-columns: 1.25fr 0.75fr !important;
    gap: 3.5rem !important;
    align-items: center !important;
    max-width: 1280px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.75rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 0.85rem !important;
}

.hero-text h2 {
    font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
    color: #4b5563 !important;
    margin-bottom: 1.25rem !important;
    font-weight: 600 !important;
}

.hero-subtext {
    font-size: 1.12rem !important;
    line-height: 1.65 !important;
    color: #4b5563 !important;
    margin-bottom: 2rem !important;
    max-width: 680px !important;
}

.hero-buttons {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

.profile-pic {
    width: 320px !important;
    height: 320px !important;
    border-radius: 50% !important;
    background-image: url('Bewerbungsfoto.jpg') !important;
    background-size: cover !important;
    background-position: center top !important;
    box-shadow: 0 20px 45px -10px rgba(37, 99, 235, 0.28), 0 0 0 10px rgba(255, 255, 255, 0.8) !important;
    margin: 0 auto !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.profile-pic:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 25px 50px -10px rgba(37, 99, 235, 0.38), 0 0 0 12px rgba(255, 255, 255, 0.95) !important;
}

/* 3. AUSBILDUNG & WERDEGANG (REINES AKADEMISCHES TIMELINE-RASTER) */
.timeline {
    max-width: 960px !important;
    margin: 0 auto !important;
}

/* 4. NEUER BEREICH: BERUFSERFAHRUNG (REFERENZ-INSPIRIERT) */
.experience-section {
    padding: 5.5rem 0 !important;
}

.experience-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.experience-card {
    background: #ffffff !important;
    border-radius: 1.25rem !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.experience-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.12) !important;
}

.experience-card-banner {
    height: 110px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 1.5rem !important;
    text-align: center !important;
}

.experience-banner-caritas {
    background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
}

.experience-banner-transport {
    background: linear-gradient(135deg, #1e293b, #475569) !important;
}

.experience-company-title {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
}

.experience-logo-wrapper {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    margin: -40px auto 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
    padding: 4px !important;
    border: 2px solid #ffffff !important;
}

.experience-company-logo {
    width: 68px !important;
    height: 68px !important;
    border-radius: 50% !important;
    object-fit: contain !important;
}

.experience-card-body {
    padding: 0 2.2rem 2.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    flex-grow: 1 !important;
}

.experience-role {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 0.4rem !important;
}

.experience-date-pill {
    display: inline-block !important;
    background: #dbeafe !important;
    color: #1e40af !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 0.3rem 0.85rem !important;
    border-radius: 99px !important;
    margin-bottom: 1rem !important;
}

.experience-multi-dates {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
}

.experience-multi-dates .experience-date-pill {
    margin-bottom: 0 !important;
}

.experience-pill-tbd {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px dashed #cbd5e1 !important;
}

.experience-tagline {
    font-size: 0.95rem !important;
    color: #4b5563 !important;
    line-height: 1.55 !important;
    margin-bottom: 1.5rem !important;
    max-width: 480px !important;
}

.experience-tasks {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    width: 100% !important;
}

.experience-tasks li {
    font-size: 0.9rem !important;
    color: #374151 !important;
    margin-bottom: 0.65rem !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    line-height: 1.5 !important;
}

.experience-tasks li i {
    color: #10b981 !important;
    font-size: 0.85rem !important;
    margin-top: 0.25rem !important;
    flex-shrink: 0 !important;
}

/* 5. TECH-STACK & INTERESSEN – HARMONISCHE, KOMPAKTE EINHEIT */
#interests {
    padding: 5rem 0 5.5rem !important;
}

#interests .section-title {
    margin-bottom: 2.25rem !important;
    text-align: center !important;
}

#interests .container {
    max-width: 1540px !important;
}

.interests-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
    gap: 2.5rem !important;
}

.interests-visual {
    flex: 0 0 320px !important;
    width: 320px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.interests-visual dotlottie-player {
    width: 310px !important;
    height: 310px !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.interests-content {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    text-align: left !important;
}

.profile-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
    padding: 0 !important;
}

.profile-content .lead-text {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    margin: 0 !important;
}

/* WIE IM ORIGINAL: Alle Icons nebeneinander in EINER horizontalen Reihe */
.tech-stack-mobile-optimised {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0.75rem 0 !important;
    padding: 0.5rem 0.25rem !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.tech-stack-mobile-optimised::-webkit-scrollbar {
    display: none !important;
}

.tech-stack-mobile-optimised .mobile-row {
    display: contents !important;
}

.tech-stack-mobile-optimised .tech-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-width: 50px !important;
    padding: 0.2rem 0.35rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: default !important;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.tech-stack-mobile-optimised .tech-item:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

.tech-stack-mobile-optimised .tech-item i {
    font-size: 2.15rem !important;
    margin-bottom: 0.2rem !important;
    color: var(--hover-color, #4b5563) !important;
    transition: transform 0.22s ease, filter 0.22s ease !important;
}

.tech-stack-mobile-optimised .tech-item:hover i {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15)) !important;
}

.tech-stack-mobile-optimised .tech-item span {
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    letter-spacing: -0.1px !important;
}

.right-footer-info {
    margin-top: 0.25rem !important;
}

.right-footer-info ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
}

.right-footer-info li {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
}

.right-footer-info li i {
    color: #2563eb !important;
    font-size: 0.85rem !important;
    margin-top: 0.22rem !important;
    flex-shrink: 0 !important;
}

/* 6. PROJEKTE BENTO-GRID: 4 SPALTEN AUF DESKTOP (KOMPAKT & EINHEITLICH) */
.projects-bento-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 1.5rem auto 0 !important;
}

.bento-card {
    background: #ffffff !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    height: 100% !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.bento-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 28px -6px rgba(37, 99, 235, 0.12) !important;
    border-color: #93c5fd !important;
}

.bento-card-image {
    width: 100% !important;
    height: 175px !important;
    overflow: hidden !important;
    background: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.bento-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.bento-card:hover .bento-card-image img {
    transform: scale(1.05) !important;
}

.bento-card-content {
    padding: 1.2rem 1.1rem 1.3rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    text-align: left !important;
}

.bento-badge-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.65rem !important;
    flex-wrap: wrap !important;
}

.bento-label {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    color: #2563eb !important;
}

.github-badge {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 99px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.badge-green {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
}

.badge-blue {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #2563eb !important;
}

.badge-cyan {
    background: rgba(14, 165, 233, 0.1) !important;
    color: #0284c7 !important;
}

.bento-card-content h3 {
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.65rem !important;
    line-height: 1.3 !important;
    min-height: 2.8rem !important;
}

.bento-desc {
    margin-bottom: 1rem !important;
    flex-grow: 1 !important;
}

.bento-desc .desc-intro {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    color: #475569 !important;
    margin-bottom: 0.75rem !important;
    min-height: 3.8rem !important;
}

.desc-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
}

.desc-features li {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    color: #334155 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.45rem !important;
}

.desc-features li i {
    color: #10b981 !important;
    font-size: 0.75rem !important;
    margin-top: 0.2rem !important;
    flex-shrink: 0 !important;
}

.bento-login-box {
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.76rem !important;
    margin-bottom: 1rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.bento-auth-title {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.2rem !important;
}

.bento-auth-creds {
    font-size: 0.74rem !important;
    font-family: monospace !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    align-items: center !important;
}

.bento-actions {
    display: flex !important;
    gap: 0.5rem !important;
    margin-top: auto !important;
    flex-wrap: wrap !important;
}

.btn-bento-primary,
.btn-bento-secondary {
    flex: 1 1 calc(50% - 0.25rem) !important;
    padding: 0.55rem 0.65rem !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 7. NEUER MINIMALISTISCHER KONTAKTBEREICH (INSPIRIERT VON CEYDA PATAN) */
.contact-minimal-section {
    padding: 6.5rem 0 7.5rem !important;
    background: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
}

.contact-minimal-grid {
    display: grid !important;
    grid-template-columns: 1.25fr 0.95fr !important;
    align-items: center !important;
    gap: 4.5rem !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

.contact-minimal-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.contact-minimal-title {
    font-size: clamp(2.3rem, 4.5vw, 3.4rem) !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.15 !important;
    margin-bottom: 1.25rem !important;
    letter-spacing: -0.025em !important;
}

.contact-minimal-sub {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem) !important;
    color: #475569 !important;
    line-height: 1.65 !important;
    max-width: 520px !important;
    margin-bottom: 2.25rem !important;
}

.contact-primary-action {
    margin-bottom: 2.25rem !important;
}

.contact-email-large {
    display: inline-flex !important;
    align-items: center !important;
    gap: 1.15rem !important;
    padding: 1.05rem 1.85rem !important;
    background: #2563eb !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.contact-email-large:hover {
    background: #1d4ed8 !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 16px 32px -4px rgba(37, 99, 235, 0.45) !important;
    color: #ffffff !important;
}

.contact-email-large:active {
    transform: translateY(0) scale(0.98) !important;
}

.email-icon-box {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    font-size: 1.05rem !important;
}

.email-address-text {
    letter-spacing: -0.01em !important;
}

.email-arrow-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s ease !important;
    font-size: 1rem !important;
}

.contact-email-large:hover .email-arrow-icon {
    transform: translateX(5px) !important;
}

.contact-minimal-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.85rem !important;
    align-items: center !important;
}

.contact-badge-link,
.contact-badge-location {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    padding: 0.55rem 1.15rem !important;
    background: #f8fafc !important;
    color: #334155 !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

.contact-badge-link:hover {
    background: #f1f5f9 !important;
    color: #1d4ed8 !important;
    transform: translateY(-2px) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.contact-badge-link i,
.contact-badge-location i {
    color: #2563eb !important;
}

.contact-minimal-visual {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.contact-anim-container {
    width: 100% !important;
    max-width: 420px !important;
    position: relative !important;
}

.contact-ambient-svg {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: drop-shadow(0 14px 30px rgba(37, 99, 235, 0.08)) !important;
}

/* Keyframes für dezente, hochwertige Kontakt-Animation */
@keyframes ambientPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.35;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.55;
    }
}

@keyframes floatMessage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes floatBadge1 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

@keyframes floatBadge2 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes signalWave {
    0%, 100% {
        opacity: 0.2;
        stroke-dashoffset: 0;
    }
    50% {
        opacity: 0.85;
        stroke-dashoffset: 6;
    }
}

.ambient-pulse {
    transform-origin: 200px 180px !important;
    animation: ambientPulse 4s ease-in-out infinite !important;
}

.anim-float-message {
    animation: floatMessage 3.5s ease-in-out infinite !important;
}

.anim-float-badge-1 {
    animation: floatBadge1 4s ease-in-out infinite 0.5s !important;
}

.anim-float-badge-2 {
    animation: floatBadge2 4s ease-in-out infinite 1s !important;
}

.anim-wave-1,
.anim-wave-2 {
    animation: signalWave 2.5s ease-in-out infinite alternate !important;
}

@media (prefers-reduced-motion: reduce) {
    .ambient-pulse,
    .anim-float-message,
    .anim-float-badge-1,
    .anim-float-badge-2,
    .anim-wave-1,
    .anim-wave-2 {
        animation: none !important;
    }
}

@media (max-width: 900px) {
    .contact-minimal-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
    }

    .contact-minimal-text {
        align-items: center !important;
    }

    .contact-minimal-links {
        justify-content: center !important;
    }
}

/* 8. BUTTONS & MICROINTERACTIONS */
.cta-primary, .cta-secondary, .cta-resume,
.btn-bento-primary, .btn-bento-secondary,
.view-cert-btn {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.2s ease !important;
}

.cta-secondary i {
    margin-right: 8px !important;
}

.cta-primary:active, .cta-secondary:active, .cta-resume:active,
.btn-bento-primary:active, .btn-bento-secondary:active,
.view-cert-btn:active {
    transform: scale(0.97) !important;
}

/* 9. RESPONSIVE ANPASSUNGEN (TABLET & SMARTPHONE) */
@media (max-width: 1240px) {
    .projects-bento-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 860px !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2.5rem !important;
    }

    .hero-buttons {
        justify-content: center !important;
    }

    .hero-subtext {
        margin: 0 auto 2rem !important;
    }

    .experience-grid {
        grid-template-columns: 1fr !important;
        max-width: 650px !important;
        gap: 2rem !important;
    }

    .interests-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
    }

    .interests-visual {
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    .interests-content {
        text-align: center !important;
    }

    /* Auf Mobile/Tablet Reihen wiederherstellen */
    .tech-stack-mobile-optimised {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        overflow-x: visible !important;
        gap: 0.65rem !important;
        width: 100% !important;
        margin: 0.75rem 0 !important;
    }

    .tech-stack-mobile-optimised .mobile-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .right-footer-info ul {
        max-width: 540px !important;
        margin: 0 auto !important;
        text-align: left !important;
    }
}

@media (max-width: 680px) {
    .projects-bento-grid {
        grid-template-columns: 1fr !important;
        max-width: 440px !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem !important;
    }

    .profile-pic {
        width: 240px !important;
        height: 240px !important;
    }

    .experience-card-body {
        padding: 0 1.25rem 2rem !important;
    }

    .interests-visual dotlottie-player {
        width: 260px !important;
        height: 260px !important;
    }

    .tech-stack-mobile-optimised .tech-item {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0.2rem !important;
        min-width: 0 !important;
    }
}
