/* ============================================ */
/* RESPONSIVE CSS - FULL MOBILE OPTIMIZATION */
/* ============================================ */

/* Tablet Portrait - 768px und kleiner */
@media screen and (max-width: 768px) {
    /* Navigation Anpassungen */
    .nav {
        width: 95%;
        height: 60px;
        padding: 0 1rem;
    }

    .nav__logo {
        left: 1rem;
        font-size: 1rem;
    }

    .nav__bar {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0 0 15px 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        z-index: 999;
    }

    .nav__bar.active {
        height: 320px;
        padding: 20px 0;
        gap: 20px;
        transform: translateY(0);
        opacity: 1;
    }

    .nav__bar_item {
        font-size: 1rem;
        padding: 15px 30px;
        width: 80%;
        text-align: center;
        border-radius: 10px;
        margin: 5px 0;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav__bar.active .nav__bar_item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav__bar.active .nav__bar_item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav__bar.active .nav__bar_item:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav__bar.active .nav__bar_item:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav__bar.active .nav__bar_item:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav__mobile-menu {
        display: block;
        right: 1rem;
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .nav__mobile-menu:hover {
        transform: scale(1.1);
    }

    .nav__mobile-menu:active {
        transform: scale(0.9);
    }

    /* Hamburger Menu Animation */
    .nav__mobile-menu i {
        transition: transform 0.3s ease;
    }

    .nav__bar.active ~ .nav__mobile-menu i {
        transform: rotate(90deg);
    }

    .nav__button {
        right: 3.5rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    /* PORTFOLIO SECTION ZENTIERUNG FÜR GRÖSSERE MOBILE */
    .page_portfolio {
        padding: 4rem 2rem 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page_portfolio h1 {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        left: auto !important;
        top: auto !important;
    }

    .page_portfolio_strich {
        position: static !important;
        width: 80px !important;
        margin: 0 auto 1rem !important;
        left: auto !important;
        top: auto !important;
    }

    .page_portfolio_text {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 2rem !important;
        font-size: 1rem !important;
        text-align: center !important;
        left: auto !important;
        top: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        max-width: 100% !important;
    }

    .page_portfolio_catbar {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        margin-bottom: 2rem !important;
        padding: 0 !important;
        left: auto !important;
        top: auto !important;
        display: flex !important;
        justify-content: center !important;
        max-width: 100% !important;
    }

    .page_portfolio_items {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 0 !important;
        left: auto !important;
        top: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        max-width: 100% !important;
    }

    .page_portfolio_items_card {
        width: 100% !important;
        height: 200px !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    /* Home Section */
    .page_home {
        padding: 5rem 1.5rem 3rem;
        min-height: 100vh;
        /* Hintergrund-Rechtecke für Tablet sichtbar machen */
        background-size: 3%, 3% !important; /* Größere Rechtecke für mobile */
    }

    .page_home__header {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 0.8rem;
    }

    .page_home__header2 {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
        margin-bottom: 1.2rem;
    }

    .page_home__text {
        font-size: clamp(0.9rem, 3vw, 1rem);
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .home_interact_buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .home_interact_buttons_portfolio,
    .home_interact_buttons_kontakt {
        width: 100%;
        min-width: auto;
        max-width: none;
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }

    .page_home .home_socials {
        bottom: clamp(130px, 15vh, 150px);
        gap: 20px;
    }

    .page_home .scroll_down {
        bottom: clamp(30px, 6vh, 50px);
    }
}

/* Mobile Portrait - 640px und kleiner */
@media screen and (max-width: 640px) {
    /* NAVBAR BUTTON KOMPLETT IN DER MITTE */
    .nav__button {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    /* MOBILE MENU ANPASSUNG */
    .nav__mobile-menu {
        right: 1rem;
        z-index: 1002;
    }

    /* HOME SECTION ANPASSUNGEN - VIEL GRÖSSER */
    .page_home {
        padding: 6rem 1rem 4rem !important; /* Mehr Padding */
        min-height: 100vh !important; /* Mindestens volle Bildschirmhöhe */
        height: auto !important;
        /* Hintergrund-Rechtecke für Mobile sichtbar machen */
        background-size: 4%, 4% !important; /* Noch größere Rechtecke für kleine mobile */
    }

    /* HOME BUTTONS FÜR MOBILE OPTIMIERT */
    .home_interact_buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px !important; /* Kleiner für Mobile */
        margin: 0 auto;
    }

    .home_interact_buttons_portfolio,
    .home_interact_buttons_kontakt {
        width: 100% !important;
        min-width: auto !important;
        max-width: none !important;
        padding: 0.9rem 1.5rem !important; /* Kleinere Padding */
        font-size: 0.85rem !important; /* Kleinere Schrift */
        flex: none !important;
        box-sizing: border-box;
    }

    /* TIMELINE KOMPLETT WEG - NUR BOXEN MIT JAHRES-LABELS */
    .page_über-mich_timestamp_strich {
        display: none !important; /* Strich komplett weg */
    }

    /* ANIMATION KOMPLETT DEAKTIVIEREN FÜR MOBILE */
    .page_über-mich_timestamp_strich::before {
        display: none !important; /* Kein animiertes Element */
    }

    .page_über-mich_timestamp_strich.animate-timeline::before {
        display: none !important; /* Kein animiertes Element */
    }

    /* INTERSECTION OBSERVER FÜR TIMELINE DEAKTIVIEREN */
    .page_über-mich_content_timeline {
        width: 100%;
        height: auto;
        order: 2;
        background: transparent !important;
    }

    /* FRONTEND ENTWICKLER TEXT CENTER */
    .page_über-mich_content_header_1 {
        position: static;
        width: 100%;
        height: auto;
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 1rem;
    }

    /* SOCIALS WEITER RUNTER - ANGEPASST FÜR GRÖSSERE HOME */
    .page_home .home_socials {
        bottom: clamp(110px, 13vh, 130px) !important; /* Ausgewogene Position */
        gap: 20px;
    }

    /* MEINE PROJEKTE TEXT CENTER */
    .page_portfolio h1 {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        left: auto !important;
        top: auto !important;
    }

    /* SCHWARZES FELD UNTER PROJEKT STARTEN ENTFERNEN */
    .page_über-mich {
        background: linear-gradient(180deg, rgba(249, 249, 249, 0.37) 0%, rgba(255, 255, 255, 0.37) 100%), 
                    radial-gradient(32.28% 32.28% at 70.49% 50%, rgba(255, 255, 255, 0.83) 0%, #FFFFFF 100%) !important;
        background-size: 100%, 100% !important;
        background-repeat: no-repeat, no-repeat !important;
        min-height: auto !important;
        padding: 4rem 1rem 2rem !important;
    }

    /* Über Mich Section - Vollständig neu strukturiert */
    .page_über-mich_content {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: column;
        gap: 3rem;
        left: auto;
        top: auto;
        background: transparent !important;
    }

    .page_über-mich_content_header {
        width: 100%;
        height: auto;
        text-align: center;
        order: 1;
        background: transparent !important;
    }

    .page_über-mich_content_header_strich {
        position: static;
        width: 60%;
        margin: 0 auto 1.5rem;
    }

    .page_über-mich_content_header_2 {
        position: static;
        width: 100%;
        height: auto;
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .page_über-mich_content_header_button {
        position: static;
        width: auto;
        height: auto;
        margin: 0 auto;
        padding: 1rem 2rem;
        cursor: pointer;
        background: #000000 !important;
        color: #FFFFFF !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 16px !important;
    }

    .page_über-mich_content_timeline {
        width: 100%;
        height: auto;
        order: 2;
        background: transparent !important;
    }

    /* Timeline komplett neu strukturiert für Mobile */
    .page_über-mich_timestamp {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: transparent !important;
    }

    .page_über-mich_timestamp_strich {
        display: none !important; /* Strich komplett weg */
    }

    /* Timeline Punkte komplett weg */
    .page_über-mich_content_punkte {
        display: none !important;
    }

    .page_über-mich_timestamp_stamps {
        display: none !important; /* Alte Timestamps weg */
    }

    .page_über-mich_content_cards {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin: 2rem 0;
        background: transparent !important;
    }

    /* BOXEN MIT JAHRES-LABEL OBEN DRAUF */
    .page_über-mich_content_cards_1,
    .page_über-mich_content_cards_2,
    .page_über-mich_content_cards_3,
    .page_über-mich_content_cards_4 {
        position: relative !important;
        width: 100%;
        height: auto;
        padding: 2rem 1.5rem 1.5rem 1.5rem !important; /* Extra Platz oben für Jahr */
        border-radius: 10px;
        left: auto;
        top: auto;
        max-width: 400px;
        margin: 1.5rem auto 2rem auto !important; /* Extra Margin oben für Jahr */
        background: #FFFFFF !important;
        box-shadow: 0px 0px 14.5px rgba(0, 0, 0, 0.07) !important;
    }

    /* JAHRES-BOX OBEN AUF JEDER CARD */
    .page_über-mich_content_cards_1::before {
        content: "2021";
        position: absolute;
        top: -14px;
        left: 50%;
        transform: translateX(-50%);
        background: #000000;
        color: #ffffff;
        padding: 5px 15px;
        border-radius: 10px;
        font-family: 'Inter';
        font-weight: 600;
        font-size: 11px;
        line-height: 17px;
        text-align: center;
        z-index: 10;
    }

    .page_über-mich_content_cards_2::before {
        content: "2022";
        position: absolute;
        top: -14px;
        left: 50%;
        transform: translateX(-50%);
        background: #000000;
        color: #ffffff;
        padding: 5px 15px;
        border-radius: 10px;
        font-family: 'Inter';
        font-weight: 600;
        font-size: 11px;
        line-height: 17px;
        text-align: center;
        z-index: 10;
    }

    .page_über-mich_content_cards_3::before {
        content: "2023";
        position: absolute;
        top: -14px;
        left: 50%;
        transform: translateX(-50%);
        background: #000000;
        color: #ffffff;
        padding: 5px 15px;
        border-radius: 10px;
        font-family: 'Inter';
        font-weight: 600;
        font-size: 11px;
        line-height: 17px;
        text-align: center;
        z-index: 10;
    }

    .page_über-mich_content_cards_4::before {
        content: "2024";
        position: absolute;
        top: -14px;
        left: 50%;
        transform: translateX(-50%);
        background: #000000;
        color: #ffffff;
        padding: 5px 15px;
        border-radius: 10px;
        font-family: 'Inter';
        font-weight: 600;
        font-size: 11px;
        line-height: 17px;
        text-align: center;
        z-index: 10;
    }

    .page_über-mich_content_cards_1_header {
        width: 100%;
        height: auto;
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .page_über-mich_content_cards_1_text {
        width: 100%;
        height: auto;
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: center;
    }

    /* ALLE TIMELINE ELEMENTE KOMPLETT VERSTECKEN */
    .page_über-mich_content_punkte,
    .page_über-mich_content_punkte_1,
    .page_über-mich_content_punkte_2,
    .page_über-mich_content_punkte_3,
    .page_über-mich_content_punkte_4 {
        display: none !important;
    }

    .page_über-mich_timestamp_stamps,
    .page_über-mich_timestamp_stamps_2021,
    .page_über-mich_timestamp_stamps_2022,
    .page_über-mich_timestamp_stamps_2023,
    .page_über-mich_timestamp_stamps_2024 {
        display: none !important;
    }



    /* Portfolio Section */
    .page_portfolio {
        padding: 4rem 1rem 2rem;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .page_portfolio_strich {
        position: static !important;
        width: 80px !important;
        margin: 0 auto 1rem !important;
        left: auto !important;
        top: auto !important;
    }

    .page_portfolio_text {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 2rem !important;
        font-size: 1rem !important;
        text-align: center !important;
        left: auto !important;
        top: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .page_portfolio_catbar {
        position: static;
        width: 100%;
        height: auto;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 2rem;
        padding: 0;
        left: auto;
        top: auto;
        display: flex !important;
        justify-content: center !important;
    }

    .page_portfolio_items {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
        left: auto;
        top: auto;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .page_portfolio_catbar_item {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: calc(50% - 0.25rem);
        text-align: center;
    }

    .page_portfolio_items_card {
        width: 100%;
        height: 200px;
        max-width: 400px;
        margin: 0 auto !important; /* Explizit zentriert */
    }

    .page_portfolio_items_card_image {
        width: 100%;
        height: 160px;
    }

    /* Kontakt Section */
    .page_kontakt {
        padding: 4rem 1rem 2rem;
    }

    .page_kontakt h1 {
        position: static;
        width: 100%;
        height: auto;
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .page_kontakt_strich {
        position: static;
        width: 80px;
        margin: 0 auto 1rem;
    }

    .page_kontakt_text {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 3rem;
        font-size: 1rem;
    }

    .page_kontakt_forms {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .page_kontakt_forms_message {
        position: static;
        width: 100%;
        height: auto;
        padding: 1.5rem;
        order: 1;
    }

    .page_kontakt_forms_message_name,
    .page_kontakt_forms_message_mail,
    .page_kontakt_forms_message_betreff {
        width: 100%;
        height: 60px;
        padding: 0.5rem;
    }

    .page_kontakt_forms_message_nachricht {
        width: 100%;
        height: 120px;
        padding: 0.5rem;
    }

    #kontakt_name,
    #kontakt_email,
    #kontakt_betreff {
        width: 100%;
        height: 50px;
        padding: 0 1rem;
        text-align: left;
        font-size: 1rem;
    }

    #kontakt_nachricht {
        width: 100%;
        height: 100px;
        padding: 1rem;
        font-size: 1rem;
    }

    .page_kontakt_forms_message_button {
        width: 100%;
        height: 60px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .page_kontakt_form_daten {
        position: static;
        width: 100%;
        height: auto;
        padding: 1.5rem;
        gap: 1rem;
        order: 2;
    }

    .page_kontakt_form_daten_item {
        width: 100%;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .page_kontakt_form_daten_item_icon_box {
        width: 50px;
        height: 50px;
        padding: 15px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .page_kontakt_form_daten_item_texts {
        width: calc(100% - 60px);
        height: auto;
    }

    .page_kontakt_form_daten_item_texts p,
    .page_kontakt_form_daten_item_texts p2 {
        width: 100%;
        height: auto;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .page_kontakt_form_info {
        position: static;
        width: 100%;
        height: auto;
        padding: 1rem;
        margin-top: 1rem;
        order: 3;
    }

    .page_kontakt_form_info_inner {
        position: static;
        width: 100%;
        height: auto;
        padding: 1rem;
    }

    .page_kontakt_form_info_inner_text {
        position: static;
        width: 100%;
        height: auto;
        padding: 0;
    }

    .page_kontakt_form_info_inner_text p {
        width: 100%;
        height: auto;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .page_kontakt_form_info_inner_text p2 {
        width: 100%;
        height: auto;
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Mobile Portrait - 480px und kleiner */
@media screen and (max-width: 480px) {
    /* Weitere Mobile Optimierungen */
    .nav {
        top: 1rem;
        width: 98%;
        height: 55px;
    }

    .nav__logo {
        font-size: 0.9rem;
    }

    .nav__button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
    }

    .page_home {
        padding: 5rem 1rem 3rem !important; /* Größer als Standard */
        min-height: 100vh !important; /* Volle Bildschirmhöhe */
        /* Hintergrund-Rechtecke für kleine Mobile sichtbar machen */
        background-size: 5%, 5% !important; /* Noch größere Rechtecke für sehr kleine mobile */
    }

    .page_home__header {
        font-size: clamp(1.5rem, 9vw, 2rem);
    }

    .page_home__header2 {
        font-size: clamp(1rem, 6vw, 1.3rem);
    }

    .page_home__text {
        font-size: 0.9rem;
        padding: 0 0.5rem;
        margin-bottom: 3rem !important; /* Mehr Abstand für größere Home */
    }

    /* NOCH KLEINERE BUTTONS FÜR KLEINE MOBILE SCREENS */
    .home_interact_buttons {
        max-width: 260px !important;
    }

    .home_interact_buttons_portfolio,
    .home_interact_buttons_kontakt {
        padding: 0.8rem 1.2rem !important;
        font-size: 0.8rem !important;
    }

    /* Portfolio Cards noch kleiner */
    .page_portfolio_items_card {
        height: 180px;
    }

    .page_portfolio_items_card_image {
        height: 140px;
    }

    .page_portfolio_catbar_item {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: calc(50% - 0.25rem);
    }

    /* Kontakt Formulare */
    .page_kontakt_forms_message,
    .page_kontakt_form_daten {
        padding: 1rem;
    }

    .page_kontakt_form_daten_item {
        padding: 0.8rem;
        flex-direction: row;
        text-align: left;
        gap: 0.8rem;
    }

    .page_kontakt_form_daten_item_icon_box {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin: 0;
        flex-shrink: 0;
    }

    .page_kontakt_form_daten_item_texts {
        width: calc(100% - 48px);
        text-align: left;
    }

    /* Über Mich Cards noch kompakter */
    .page_über-mich_content_cards_1,
    .page_über-mich_content_cards_2,
    .page_über-mich_content_cards_3,
    .page_über-mich_content_cards_4 {
        padding: 1.2rem;
    }

    .page_über-mich_content_cards_1_header {
        font-size: 1.1rem;
    }

    .page_über-mich_content_cards_1_text {
        font-size: 0.85rem;
    }

    /* TIMESTAMP WEITERE ANPASSUNGEN - ANIMATION DEAKTIVIERT */
    .page_über-mich_timestamp_strich {
        height: 200px !important; /* Kleiner für Mobile */
        background: linear-gradient(180deg, #cccccc 0%, #999999 100%) !important;
        animation: none !important;
        transition: none !important;
        display: none !important; /* Komplett verstecken */
    }

    /* ALLE TIMELINE ELEMENTE VERSTECKEN */
    .page_über-mich_content_punkte,
    .page_über-mich_content_punkte_1,
    .page_über-mich_content_punkte_2,
    .page_über-mich_content_punkte_3,
    .page_über-mich_content_punkte_4,
    .page_über-mich_timestamp_stamps,
    .page_über-mich_timestamp_stamps_2021,
    .page_über-mich_timestamp_stamps_2022,
    .page_über-mich_timestamp_stamps_2023,
    .page_über-mich_timestamp_stamps_2024 {
        display: none !important;
    }
}

/* Extra Small Mobile - 360px und kleiner */
@media screen and (max-width: 360px) {
    .nav {
        height: 50px;
    }

    .nav__logo {
        font-size: 0.85rem;
    }

    .nav__button {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        gap: 0.4rem;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
    }

    .page_home {
        padding: 4.5rem 0.8rem 2.5rem !important; /* Auch hier größer */
        min-height: 100vh !important; /* Volle Bildschirmhöhe */
        /* Hintergrund-Rechtecke für sehr kleine Mobile sichtbar machen */
        background-size: 6%, 6% !important; /* Maximale Größe für kleinste mobile */
    }

    .page_home__text {
        padding: 0;
        margin-bottom: 2.5rem !important; /* Auch hier mehr Abstand */
    }

    /* EXTRA KLEINE BUTTONS FÜR SEHR KLEINE SCREENS */
    .home_interact_buttons {
        max-width: 240px !important;
        gap: 0.8rem !important;
    }

    .home_interact_buttons_portfolio,
    .home_interact_buttons_kontakt {
        padding: 0.7rem 1rem !important;
        font-size: 0.75rem !important;
    }

    .page_portfolio_catbar {
        gap: 0.3rem;
    }

    .page_portfolio_catbar_item {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }

    .page_kontakt_forms_message,
    .page_kontakt_form_daten,
    .page_kontakt_form_info {
        padding: 0.8rem;
    }

    .page_über-mich_content_cards_1,
    .page_über-mich_content_cards_2,
    .page_über-mich_content_cards_3,
    .page_über-mich_content_cards_4 {
        padding: 1rem;
    }

    /* TIMESTAMP NOCH KLEINER - ANIMATION DEAKTIVIERT */
    .page_über-mich_timestamp_strich {
        height: 150px !important;
        background: linear-gradient(180deg, #cccccc 0%, #999999 100%) !important;
        animation: none !important;
        transition: none !important;
        display: none !important; /* Komplett verstecken */
    }

    /* ALLE TIMELINE ELEMENTE VERSTECKEN */
    .page_über-mich_content_punkte,
    .page_über-mich_content_punkte_1,
    .page_über-mich_content_punkte_2,
    .page_über-mich_content_punkte_3,
    .page_über-mich_content_punkte_4,
    .page_über-mich_timestamp_stamps,
    .page_über-mich_timestamp_stamps_2021,
    .page_über-mich_timestamp_stamps_2022,
    .page_über-mich_timestamp_stamps_2023,
    .page_über-mich_timestamp_stamps_2024 {
        display: none !important;
    }
}

/* Landscape Mobile Optimierung */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .page_home {
        min-height: 100vh;
        justify-content: space-around;
        padding: 2rem 1rem 1rem;
    }

    .page_home .home_socials {
        bottom: 80px;
    }

    .page_home .scroll_down {
        bottom: 20px;
    }

    .nav {
        top: 0.5rem;
        height: 45px;
    }

    .page_home__header {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
        margin-bottom: 0.5rem;
    }

    .page_home__header2 {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        margin-bottom: 1rem;
    }

    .page_home__text {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
}

/* Touch-optimierte Interaktionen */
@media (hover: none) and (pointer: coarse) {
    .nav__bar_item:hover,
    .nav__button:hover,
    .home_interact_buttons_portfolio:hover,
    .home_interact_buttons_kontakt:hover {
        transform: none;
        background-color: initial;
    }

    /* Nav Button soll sich auf Touch-Geräten nicht transformieren */
    .nav .nav__button:hover {
        transform: none !important;
        background: #333333 !important;
        box-shadow: none !important;
    }

    .nav .nav__button:active {
        transform: none !important;
        background: #333333 !important;
        transition: background 0.1s ease !important;
        box-shadow: none !important;
    }

    .nav__bar_item:active,
    .home_interact_buttons_portfolio:active,
    .home_interact_buttons_kontakt:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .page_portfolio_items_card:hover {
        transform: none;
        box-shadow: 0px 0px 14.5px rgba(0, 0, 0, 0.144);
    }

    .page_portfolio_items_card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Accessibility Verbesserungen für Mobile */
@media screen and (max-width: 768px) {
    /* Nav Button Transform-Deaktivierung auf Mobile - höhere Spezifität */
    .nav .nav__button:hover {
        transform: none !important;
        box-shadow: none !important;
        background: #333333 !important;
    }

    .nav .nav__button:active {
        transform: none !important;
        box-shadow: none !important;
        background: #333333 !important;
    }

    /* Icon auch nicht transformieren */
    .nav .nav__button:hover i {
        transform: none !important;
    }

    /* Größere Touch-Targets */
    .nav__bar_item,
    .nav__button,
    .home_interact_buttons_portfolio,
    .home_interact_buttons_kontakt,
    .page_portfolio_catbar_item,
    .page_kontakt_forms_message_button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Bessere Lesbarkeit */
    .page_home__text,
    .page_über-mich_content_header_2,
    .page_kontakt_form_info_inner_text p2 {
        line-height: 1.6;
    }

    /* Scroll-Verhalten für mobile */
    html {
        scroll-padding-top: 80px;
    }
}

/* Dark Mode Support für responsive */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .nav__bar {
        background: rgba(20, 20, 20, 0.98);
    }

    .nav__bar_item {
        color: #ffffff;
    }
}

/* Animation Optimierungen für Mobile Performance */
@media screen and (max-width: 768px) {
    /* Reduzierte Animationen für bessere Performance */
    .nav,
    .nav__bar,
    .nav__bar_item,
    .page_portfolio_items_card,
    .page_kontakt_forms_message_button {
        transition-duration: 0.2s;
    }

    /* GPU-Beschleunigung für Transformationen */
    .nav__bar,
    .page_portfolio_items_card,
    .home_interact_buttons_portfolio,
    .home_interact_buttons_kontakt {
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    /* TIMELINE ANIMATION KOMPLETT DEAKTIVIEREN FÜR MOBILE */
    .page_über-mich_timestamp_strich,
    .page_über-mich_timestamp_strich::before,
    .page_über-mich_timestamp_strich.animate-timeline,
    .page_über-mich_timestamp_strich.animate-timeline::before {
        animation: none !important;
        transition: none !important;
    }

    /* TIMELINE INTERSECTION OBSERVER IGNORIEREN */
    .page_über-mich_content_timeline {
        pointer-events: none;
    }

    .page_über-mich_content_timeline * {
        pointer-events: auto;
    }
}

/* Print Styles für Mobile */
@media print {
    .nav,
    .nav__mobile-menu,
    .home_interact_buttons,
    .page_home .home_socials,
    .page_home .scroll_down,
    .page_portfolio_catbar,
    .page_kontakt_forms_message_button {
        display: none;
    }

    .page_home,
    .page_über-mich,
    .page_portfolio,
    .page_kontakt {
        padding: 1rem;
        min-height: auto;
        page-break-inside: avoid;
    }
}

/* Additional Mobile Improvements */
@media screen and (max-width: 768px) {
    /* Improved scrolling on iOS */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better text rendering on mobile */
    body, input, textarea {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Prevent zoom on form inputs */
    input, textarea, select {
        font-size: 16px;
        max-width: 100%;
    }
    
    /* Improved tap targets */
    a, button, .nav__bar_item, .home_interact_buttons_portfolio, 
    .home_interact_buttons_kontakt, .page_portfolio_catbar_item {
        touch-action: manipulation;
    }
    
    /* Mobile optimized focus states */
    input:focus, textarea:focus {
        outline: 2px solid #000000;
        outline-offset: 2px;
    }
    
    /* Prevent horizontal scroll */
    .container {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* Mobile-specific hover states */
@media (hover: none) {
    .nav__bar_item:hover,
    .nav__button:hover,
    .home_interact_buttons_portfolio:hover,
    .home_interact_buttons_kontakt:hover,
    .page_portfolio_catbar_item:hover,
    .page_kontakt_forms_message_button:hover {
        background-color: initial;
        transform: none;
        box-shadow: initial;
    }
    
    /* Active states for touch */
    .nav__bar_item:active,
    .nav__button:active,
    .home_interact_buttons_portfolio:active,
    .home_interact_buttons_kontakt:active {
        background-color: rgba(0, 0, 0, 0.1);
        transform: scale(0.98);
    }
}

/* Enhanced loading performance for mobile */
@media screen and (max-width: 768px) {
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        .nav__bar,
        .nav__bar_item,
        .page_portfolio_items_card,
        .home_interact_buttons_portfolio,
        .home_interact_buttons_kontakt {
            transition: none;
            animation: none;
        }
    }
    
    /* Optimize for low-end devices */
    .page_portfolio_items_card,
    .page_kontakt_forms_message,
    .page_kontakt_form_daten {
        will-change: auto;
    }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
    .nav {
        height: 50px;
    }
    
    .nav__bar.active {
        height: 280px;
        transform: translateY(0);
        opacity: 1;
    }
    
    .page_home {
        padding: 3rem 1.5rem 2rem;
    }
    
    .page_home__header {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
    
    .page_home__header2 {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .page_über-mich_content {
        gap: 100px;
        width: 90%;
        left: 5%;
    }
    
    .page_portfolio_items {
        width: 90%;
        left: 5%;
    }
    
    .page_kontakt_forms {
        width: 90%;
        left: 5%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .contact-message {
        position: fixed;
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        margin: 0;
        animation: slideInFromBottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@media (max-width: 768px) {
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer__left,
    .footer__right {
        align-items: center;
    }
    
    .footer__contact-info {
        text-align: center;
    }
    
    .footer__contact-info p {
        justify-content: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer__legal {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer__container {
        padding: 0 1rem;
    }
    
    .footer__content {
        gap: 1.5rem;
    }
    
    .footer__socials {
        gap: 0.8rem;
    }
    
    .footer__social {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer__legal {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer__socials {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer__legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer__logo {
        font-size: 1.3rem;
    }
    
    .footer__description,
    .footer__link,
    .footer__contact-info p {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 768px) {
    html body .container .nav .nav__button,
    html body .container .nav .nav__button:hover,
    html body .container .nav .nav__button:focus,
    html body .container .nav .nav__button:active,
    html body .container .nav .nav__button:visited,
    html body .container .nav .nav__button:link {
        transform: none !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        -o-transform: none !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        -webkit-transform: translate(-50%, -50%) !important;
        right: auto !important;
        background: #333333 !important;
        transition: background 0.2s ease !important;
    }
    
    html body .container .nav .nav__button i,
    html body .container .nav .nav__button:hover i,
    html body .container .nav .nav__button:focus i,
    html body .container .nav .nav__button:active i {
        transform: none !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        -o-transform: none !important;
    }
}

/* Für Touch-Geräte - Nuclear Option */
@media (hover: none) and (pointer: coarse) {
    html body .container .nav .nav__button,
    html body .container .nav .nav__button:hover,
    html body .container .nav .nav__button:focus,
    html body .container .nav .nav__button:active {
        transform: translate(-50%, -50%) !important;
        -webkit-transform: translate(-50%, -50%) !important;
        box-shadow: none !important;
        background: #333333 !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        right: auto !important;
    }
    
    html body .container .nav .nav__button i,
    html body .container .nav .nav__button:hover i,
    html body .container .nav .nav__button:focus i,
    html body .container .nav .nav__button:active i {
        transform: none !important;
        -webkit-transform: none !important;
    }
}