/* ======================================== */
/* 2. TABLET-QUERFORMAT (klassische Tablets) */
/* ======================================== */
    /* Greift bei:
       - Geräte mit Breite 769px bis 992px
       - UND Querformat (Breite > Höhe)
       - Typische Beispiele: iPad (10,2"), iPad Air, Samsung Galaxy Tab im Querformat
       - Auch schmale Desktop-Fenster in dieser Breite
    */
/* ======================================== */
@media (min-width: 769px) and (max-width: 992px) and (orientation: landscape){
    
    /* === TYPOGRAPHIE - FLUID === */

      body {
        background-color: #112c4b !important;
        font-size: 15px;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }


   html {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        width: 100% !important;     
    }


    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    

    
    .container {
        width: 90%;
        max-width: 960px;
        padding: 0 20px;
    }
    
    /* === SEKTIONSÜBERSCHRIFTEN === */
    .section-title {
        font-size: clamp(1.8rem, 4vw, 2.2rem) !important;
        margin-bottom: clamp(2rem, 3vw, 2.5rem) !important;
    }
    
    .section-title::after {
        width: clamp(60px, 8vw, 80px);
        height: 3px;
    }

    
    /* === HEADER & NAVIGATION === */
        /* === FLEXIBLE MENÜLEISTE === */
    header .container {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 1vw !important;
        padding: 0 20px !important;
    }
    
    .logo {
        font-size: 1.5rem !important;
        flex-shrink: 0 !important;
    }
    
    nav {
        margin: 0 5px !important;
        flex: 1 !important;
        min-width: 0 !important;
        overflow: visible !important;
    }
    
    nav ul {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    nav ul li {
        margin-left: 0 !important;
    }
    
    nav ul li a {
        font-size: 0.9rem !important;
        padding: 6px 8px !important;
        white-space: nowrap !important;
    }
    
    .header-right {
        display: flex !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        margin-left: 10px !important;
    }
    
    .language-selector select,
    .resume-btn {
        height: 32px !important;
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
        white-space: nowrap !important;
    }
    

   .language-selector select {
    padding-right: 24px !important;  /* Mehr Platz für Pfeil (von 24px auf 28px) */
}
    
    /* === HERO SECTION === */
   
    .hero {
    background-color: #112c4b !important;
    width: 100% !important;
   /* margin-top: 80px !important;*/
    /*min-height: calc(100vh - 80px) !important;*/
        padding-top: 80px !important;  /* ← padding-top stattdessen */
    min-height: 100vh !important;  /* ← volle Höhe */
    height: auto !important;
          display: flex !important;
    align-items: center !important;  
          justify-content: flex-start !important;
        flex-direction: column !important;
}


      .hero .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        margin: 0 auto !important;
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    
    .hero-content {
        max-width: 100%;
        margin-top: 0;
       order: 2;
    }
    
    .hero-content h1 {
        font-size: clamp(2.2rem, 5vw, 2.8rem);
    }
    
    .hero-content h2 {
        font-size: clamp(1.3rem, 3vw, 1.6rem);
    }
    
    .hero-content p {
        font-size: 1rem;
        max-width: 600px;
        margin: 0 auto 1.5rem auto;
    }



    .hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.hero-buttons .btn {
    flex: 1;
    padding: 10px 20px;
    font-size: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}  
    
    .hero-image {
        margin-top: 0;
        order: 1;
    }
    
    .profile-image {
        width: clamp(180px, 25vw, 220px);
        height: clamp(180px, 25vw, 220px);
        margin-top: 0;
    }
    
    .hero-brain {
        opacity: 0.2;
        left: -50%;
    }


    /* === VIDEO MODAL TABLET QUERFORMAT === */
.modal-headline {
    font-size: 1.2rem;
    margin-bottom: 35px;
    letter-spacing: 3px;
}

.video-modal-content {
    width: 85%;
    max-width: 600px;
}

.video-modal-content video {
    border-width: 2.5px;
}

#videoTrigger::before {
    filter: brightness(1.25);
    margin-right: 5px;
}
    
    /* === ABOUT SECTION === */
    .about-content {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .about-text p[style*="font-size: 1.25rem"] {
        font-size: 1.1rem !important;
    }
    
    .about-details ul li {
        font-size: 0.9rem;
    }
    
    .about-details > div:last-child,
    .about-details .detail-item:last-child {
        margin-top: 3rem !important;
    }
    
    /* === TIMELINE (EXPERIENCE) === */
    .timeline {
        max-width: 100%;
    }
    
    .timeline::after {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 20px !important;
        right: auto !important;
        transform: none;
    }
    
    .timeline-date {
        position: relative;
        top: auto;
        width: auto;
        text-align: left;
        margin-bottom: 10px;
        right: auto !important;
        left: auto !important;
        font-size: 0.85rem;
    }
    
    .timeline-content {
        padding: 18px 25px;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    .timeline-content ul li {
        font-size: 0.9rem;
    }

    
    /* === SKILLS SECTION === */
    .skills-category h3 {
        font-size: 1.4rem;
    }
    
    .technical-skills {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .soft-skills {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .language-skills {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .additional-skills-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .skill-percentage {
        font-size: 0.85rem;
    }
    
    .soft-skill-icon {
        font-size: 26px;
    }
    
    .soft-skill-name {
        font-size: 0.95rem;
    }
    
    .language-name {
        font-size: 0.95rem;
    }
    
    .star-rating {
        font-size: 20px;
    }
    
    /* === CAROUSEL - 2 SLIDES NEBENEINANDER === */
    .projects-carousel {
        padding: 30px 0;
    }
    
    .projects-carousel .carousel-container {
        margin: 0 40px;
        /*gap: 20px;
        justify-content: center;*/
       
       display: flex;
        gap: 0 !important;           /* Kein Abstand zwischen Slides */
        justify-content: flex-start; /* Slides linksbündig ausrichten */
        margin: 0 auto;
        width: fit-content;          /* Container nur so breit wie nötig */
        min-width: 100%;             /* Mindestens volle Breite */    
    }
    

       .carousel-slide {
        flex: 0 0 clamp(280px, 30vw, 380px) !important;
        max-width: 380px !important;
        min-width: 280px !important;
        border-right: 2px solid #ff8c42 !important;
        box-sizing: border-box;
    }
    
    .carousel-slide:last-child {
        border-right: none !important;
    }
    
    /* Verhindert, dass der Container breiter wird als nötig */
    .projects-carousel {
        overflow-x: auto !important;
        scrollbar-width: thin;
    }
   
    
    .project-card-carousel {
        height: 480px;
        min-height: 480px;
    }
    
    .carousel-image {
        height: 200px;
    }
    
    .carousel-header {
        padding: 1rem;
    }
    
    .carousel-header h3 {
        font-size: 1rem;
    }
    
    .carousel-header p {
        font-size: 0.7rem;
    }
    
    .carousel-body {
        padding: 0.8rem;
    }
    
    .carousel-body li {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-tags {
        padding: 0.7rem 0.8rem 0.9rem;
    }
    
    .carousel-tag {
        font-size: 0.6rem;
    }
    
    .carousel-button {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .carousel-button.prev {
        left: 5px;
    }
    
    .carousel-button.next {
        right: 5px;
    }
    
    .carousel-dots {
        gap: 10px;
        margin-top: 20px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    /* SAFETY FILM Schriftzüge */
    .safety-film-left,
    .safety-film-right,
    .safety-film-center {
        font-size: 10px;
        bottom: 15px;
    }
    
    .projects-carousel .carousel-container::before {
        font-size: 10px;
        top: -14px;
    }
    
    .projects-carousel::before,
    .projects-carousel::after {
        height: 16px;
        background: repeating-linear-gradient(
            90deg,
            transparent,
            transparent 16px,
            rgba(192, 168, 123, 0.8) 16px,
            rgba(192, 168, 123, 0.8) 24px
        );
    }
    
    /* === CONTACT SECTION === */
    .contact {
        padding: 50px 0 0 0 !important;
    }
    
    .contact-layout {
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .contact-left-column {
        padding-right: 1.5rem;
        min-width: 280px;
    }
    
    .contact-right-column {
        min-width: 280px;
    }
    
    .contact-textbox,
    .contact-form-container {
        padding: 1.2rem;
    }
    
    .contact-textbox h3,
    .contact-form-container h3 {
        font-size: 1.2rem;
    }
    
    .contact-content p,
    .contact-content a {
        font-size: 0.85rem;
    }
    
    .contact-form textarea {
        height: 130px;
        font-size: 0.95rem;
        padding-top: 30px;
    }
    
    .encryption-status {
        font-size: 0.7rem;
    }
    
    /* === MAP === */
    .map-section {
        margin-top: 1.5rem;
    }
    
    .map-section h3 {
        font-size: 1.2rem;
    }
    
    #map {
        height: 350px !important;
    }
    
    /* === FOOTER === */
    footer {
        padding: 1.5rem 0;
    }
    
    footer p {
        font-size: 0.85rem;
    }
    
    /* === SPEZIELLE ANPASSUNGEN === */
    h4[data-i18n="exp1_subtitle_strategic"] {
        margin-top: 0.75rem !important;
        font-size: 1rem;
    }
}




/* ======================================== */
/* 3. SMARTPHONE & SCHMALE FENSTER - HOCHFORMAT */
/* ======================================== */
    /* Greift bei:
       - Alle Geräte mit Breite <= 768px
       - UND Hochformat (Höhe > Breite)
       - Typische Beispiele: Smartphones im Hochformat, schmale Tablet-Fenster im Hochformat
       - Auch schmale Desktop-Fenster unter 769px im Hochformat
    */
/* ======================================== */
@media (max-width: 768px) and (orientation: portrait) {
    
    /* === BASIS-TYPOGRAFIE === */
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }
    
    p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* === SECTIONS === */
    section {
        padding: 40px 0 !important;
    }
    
    .container {
        width: 95%;
        padding: 0 12px;
    }
    
    /* === SEKTIONSÜBERSCHRIFTEN === */
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.2rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .section-title::after {
        width: 50px !important;
        height: 3px !important;
    }
    
    /* === HEADER & NAVIGATION === */
    .logo {
        display: none !important;
    }
    
    header {
        padding: 0.5rem 0 !important;
    }
    
    header .container {
        flex-direction: column;
        gap: 8px;
    }
    
    nav {
        width: 100%;
        order: 1;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 10px;
    }
    
    nav ul li {
        margin: 0 !important;
    }
    
    nav ul li a {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
        white-space: nowrap;
    }
    
    .header-right {
        order: 2;
        justify-content: center;
        gap: 8px;
    }
    
    .language-selector select,
    .resume-btn {
        height: 22px !important;
        font-size: 0.55rem !important;
        padding: 0px 6px !important;
        line-height: 1.2 !important;
    }
    
    .language-selector select {
        padding-right: 20px !important;
    }
    
    /* === HERO SECTION === */
    .hero {
        padding-top: 70px !important;
        min-height: auto !important;  /* Keine feste Display-Höhe mehr */
        height: auto !important;
    }

    
    .hero .container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 25px !important;
        padding-top: 0 !important;
    }
    
    .hero-image {
        order: 1 !important;
    }
    
    .hero-content {
        order: 2 !important;
    }
    
    .profile-image {
        width: 130px !important;
        height: 130px !important;
        border-width: 3px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .hero-content h2 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-content p {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-buttons {
        margin-top: 15px !important;
        gap: 10px !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-buttons .btn {
        min-width: 160px !important;
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
    }
    
    .hero-brain {
        display: none !important;
    }

    /* === VIDEO MODAL SMARTPHONE HOCHFORMAT === */
.modal-headline {
    font-size: 1rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.video-modal-content {
    width: 95%;
    max-width: 95%;
}

.video-modal-content video {
    border-width: 2px;
}

#videoTrigger::before {
    filter: brightness(1.2);
    margin-right: 4px;
}
    
    /* === ABOUT SECTION === */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .about-text p {
        font-size: 0.85rem !important;
    }
    
    .about-text p[style*="font-size: 1.25rem"] {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .about-details ul li {
        font-size: 0.85rem !important;
    }
    
    .about-details > div:last-child,
    .about-details .detail-item:last-child {
        margin-top: 1.5rem !important;
    }
    
    .interests-heading {
        margin-top: 15px !important;
    }
    
    /* === TIMELINE (EXPERIENCE) === */
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 45px;
        padding-right: 15px;
    }
    
    .timeline-item::after {
        left: 10px !important;
        right: auto !important;
    }
    
    .timeline-date {
        position: relative;
        top: auto;
        width: auto;
        text-align: left;
        margin-bottom: 8px;
        font-size: 0.75rem;
    }
    
    .timeline-content {
        padding: 12px 15px;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content ul li {
        font-size: 0.8rem;
    }


    
    /* === SKILLS SECTION === */
    .skills-category h3 {
        font-size: 1.2rem;
    }
    
    .technical-skills,
    .soft-skills,
    .language-skills,
    .additional-skills-tiles {
        grid-template-columns: 1fr !important;
    }
    
    .skill-name {
        font-size: 0.8rem !important;
    }
    
    .skill-percentage {
        font-size: 0.7rem !important;
    }
    
    .soft-skill-icon {
        font-size: 22px;
    }
    
    .soft-skill-name {
        font-size: 0.85rem;
    }
    
    .language-name {
        font-size: 0.85rem;
    }
    
    .star-rating {
        font-size: 16px;
    }
    
    /* === PROJECTS CAROUSEL === */
    .projects-carousel {
        padding: 15px 0;
    }
    
    .carousel-slide {
        width: 100% !important;
        flex: 0 0 100% !important;
        border-right: none !important;
    }
    
    .project-card-carousel {
        min-height: 380px;
    }
    
    .carousel-image {
        height: 160px;
    }
    
    .carousel-header {
        padding: 0.6rem;
    }
    
    .carousel-header h3 {
        font-size: 0.9rem;
    }
    
    .carousel-header p {
        font-size: 0.65rem;
    }
    
    .carousel-body li {
        font-size: 0.7rem;
    }
    
    .carousel-tag {
        font-size: 0.55rem;
    }
    
    /* === CONTACT SECTION === */
    .contact-layout {
        flex-direction: column !important;
    }
    
    .contact-left-column,
    .contact-right-column {
        padding-right: 0 !important;
        width: 100% !important;
    }
    
    .contact-textbox,
    .contact-form-container {
        padding: 0.8rem !important;
    }
    
    .contact-textbox h3,
    .contact-form-container h3 {
        font-size: 1.1rem !important;
    }
    
    .contact-content p,
    .contact-content a {
        font-size: 0.8rem !important;
    }
    
    .contact-form textarea {
        height: 100px !important;
        font-size: 0.85rem !important;
        padding-top: 25px !important;
    }
    
    /* === MAP === */
    #map {
        height: 250px !important;
    }
    
    /* === FOOTER === */
    footer {
        padding: 1rem 0 !important;
    }
    
    footer p {
        font-size: 0.7rem !important;
    }
}





/* ======================================== */
/* 4. Smartphones & schmale Fenster (egal ob Hoch- oder Querformat) */
/* ======================================== */
    /* Greift für ALLE Geräte mit Breite ≤ 768px 
       - unabhängig von der Orientierung (sowohl Hoch- als auch Querformat)
       - Typische Beispiele: Smartphones, schmale Tablets, schmale Desktop-Fenster
    */
/* ======================================== */
@media (max-width: 768px) {
    
    /* === BASIS-TYPOGRAFIE KOMPAKTER === */
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    
    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    
    /* === SECTIONS KOMPAKTER === */
    section {
        padding: 40px 0 !important;
    }
    
    .container {
        width: 95%;
        padding: 0 12px;
    }
    
    /* === SEKTIONSÜBERSCHRIFTEN === */
    .section-title {
        font-size: 1.6rem !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 0.6rem !important;
    }
    
    .section-title::after {
        width: 50px !important;
        height: 3px !important;
    }
    
    /* === HEADER & NAVIGATION === */
    .logo {
        display: none !important;
    }
    
    header {
        padding: 0.5rem 0 !important;
    }
    
    header .container {
        flex-direction: column;
        gap: 8px;
    }
    
    nav {
        width: 100%;
        order: 1;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
    }
    
    nav ul li {
        margin: 0 !important;
    }
    
    nav ul li a {
        font-size: 0.8rem !important;
        padding: 4px 10px !important;
        white-space: nowrap;
    }
    
    .header-right {
        order: 2;
        justify-content: center;
        gap: 10px;
    }


/* === HEADER & NAVIGATION === */

.language-selector select,
.resume-btn {
    height: 24px !important;      /* Von 28px auf 24px reduziert */
    font-size: 0.6rem !important; /* Von 0.65rem auf 0.6rem reduziert */
    padding: 0px 8px !important;  /* Von 2px 10px auf 0px 8px reduziert */
    line-height: 1.2 !important;
}

.language-selector select {
    padding-right: 24px !important;  /* Mehr Platz für Pfeil (von 24px auf 28px) */
}


    
    /* === HERO SECTION === */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 120px !important;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }
    
    .hero-content {
        order: 2;
        margin-top: 20px !important;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-image {
        order: 1;
        margin-top: 0 !important;
    }
    
    .profile-image {
        width: 160px !important;
        height: 160px !important;
        margin-top: 0 !important;
        border-width: 3px;
    }
    
    .hero-brain {
        display: none !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 25px;
    }
    
    .hero-buttons .btn {
        width: 220px !important; 
        min-width: 200px;
        padding: 10px 20px;
        font-size: 1rem;
    }


    /* === VIDEO MODAL SMARTPHONE === */
.modal-headline {
    font-size: 1rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 
                 0 0 10px rgba(255, 255, 255, 0.5);
}

.video-modal-content {
    width: 95%;
    max-width: 95%;
    top: 50%;
}

.video-modal-content video {
    border-width: 2px;
}

#videoTrigger::before {
    filter: brightness(1.2);
    margin-right: 4px;
}

#videoTrigger {
    font-size: 0.9rem;
}
    
    
    /* === ABOUT SECTION === */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    /* Einleitungssatz anpassen */
    .about-text p[style*="font-size: 1.25rem"] {
        font-size: 1.1rem !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.4 !important;
    }
    
    .about-details > div:last-child,
    .about-details .detail-item:last-child {
        margin-top: 2rem !important;
    }
    
    .interests-heading {
        margin-top: 20px;
    }
    
    /* === TIMELINE (EXPERIENCE) === */
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 10px !important;
        right: auto !important;
        transform: none;
    }
    
    .timeline-date {
        position: relative;
        top: auto;
        width: auto;
        text-align: left;
        margin-bottom: 10px;
        right: auto !important;
        left: auto !important;
    }
    
    .timeline-content {
        padding: 15px 20px;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .timeline-content ul li {
        font-size: 0.9rem;
    }

       /* === SPEZIELLE ANPASSUNGEN === */
    h4[data-i18n="exp1_subtitle_strategic"] {
        margin-top: 0.75rem !important;
        font-size: 1rem;
    }
    
    /* === SKILLS SECTION === */
    .skills-category h3 {
        font-size: 1.3rem;
    }
    
    .technical-skills,
    .soft-skills,
    .language-skills,
    .additional-skills-tiles {
        grid-template-columns: 1fr;
    }
    
    .skill-item {
        padding: 15px;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .skill-percentage {
        font-size: 0.85rem;
    }
    
    .soft-skill-icon {
        font-size: 24px;
    }
    
    .soft-skill-name {
        font-size: 0.95rem;
    }
    
    .language-name {
        font-size: 0.95rem;
    }
    
    .star-rating {
        font-size: 18px;
    }
    
    .skill-tile {
        padding: 12px;
        font-size: 0.9rem;
    }


    
    /* === PROJECTS CAROUSEL === */
    .projects-carousel {
        padding: 20px 0;
    }
    
    .projects-carousel .carousel-container {
        margin: 0 10px;
    }
    
    .carousel-slide {
        width: 100% !important;
        flex: 0 0 100% !important;
        min-width: 100% !important;
        border-right: none !important;
    }
    
    .project-card-carousel {
        height: auto;
        min-height: 420px;
    }
    
    .carousel-image {
        height: 180px;
    }
    
    .carousel-header {
        padding: 0.8rem;
    }
    
    .carousel-header h3 {
        font-size: 1rem;
    }
    
    .carousel-header p {
        font-size: 0.7rem;
    }
    
    .carousel-body {
        padding: 0.8rem;
    }
    
    .carousel-body li {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    .carousel-tags {
        padding: 0.6rem 0.8rem;
    }
    
    .carousel-tag {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
    }
    
    .carousel-button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .carousel-button.prev {
        left: 5px;
    }
    
    .carousel-button.next {
        right: 5px;
    }
    
    .carousel-dots {
        gap: 8px;
        margin-top: 15px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .safety-film-left,
    .safety-film-right {
        display: none;
    }
    
    .safety-film-center {
        display: block;
        font-size: 8px;
        bottom: 10px;
        opacity: 0.6;
    }
    
    .projects-carousel .carousel-container::before {
        font-size: 9px;
        top: -12px;
    }
    
    .projects-carousel::before,
    .projects-carousel::after {
        height: 12px;
        background: repeating-linear-gradient(
            90deg,
            transparent,
            transparent 12px,
            rgba(192, 168, 123, 0.8) 12px,
            rgba(192, 168, 123, 0.8) 18px
        );
    }
    
    /* === CONTACT SECTION === */
    .contact-layout {
        flex-direction: column;
    }
    
    .contact-left-column,
    .contact-right-column {
        padding-right: 0;
        width: 100%;
    }
    
    .contact-textbox,
    .contact-form-container {
        padding: 1rem;
    }
    
    .contact-textbox h3,
    .contact-form-container h3 {
        font-size: 1.2rem;
    }
    
    .contact-content p,
    .contact-content a {
        font-size: 0.85rem;
        word-break: break-all;
    }
    
    .encryption-status {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .faux-percentage {
        margin-left: 0;
        width: 100%;
        font-size: 0.7rem;
    }
    
    .contact-form textarea {
        height: 120px;
        font-size: 0.9rem;
        padding-top: 25px;
    }



    
    /* Deutsch */
    html[lang="de"] .captcha-container .captcha-question p[data-i18n="form_captcha"] {
        font-size: 0 !important;
    }
    
    html[lang="de"] .captcha-container .captcha-question p[data-i18n="form_captcha"]::before {
        content: "Kurzer Mathe-Check: 7 + 5 = ?" !important;
        font-size: 0.85rem !important;
        display: block !important;
    }
    
    /* Englisch */
    html[lang="en"] .captcha-container .captcha-question p[data-i18n="form_captcha"] {
        font-size: 0 !important;
    }
    
    html[lang="en"] .captcha-container .captcha-question p[data-i18n="form_captcha"]::before {
        content: "Quick Math Check: 7 + 5 = ?" !important;
        font-size: 0.85rem !important;
        display: block !important;
    }

    
    
    #captcha-answer {
        height: 50px;
        font-size: 0.7rem;
    }
    
    .map-section {
        margin-top: 1rem;
    }
    
    .map-section h3 {
        font-size: 1.1rem;
    }
    
    #map {
        height: 300px !important;
    }
    
    /* === FOOTER === */
    footer {
        padding: 1.5rem 0;
    }
    
    footer p {
        font-size: 0.8rem;
    }
}



/* ======================================== */
/* 5. TABLET-HOCHFORMAT & GROSSE HOCHFORMATE */
/* ======================================== */
    /* Greift bei:
       - Alle Geräte mit Breite >= 769px
       - UND Hochformat (Höhe > Breite)
       - Typische Beispiele: iPad im Hochformat, große Tablets, Desktop-Monitore im Hochformat
       - Achtung: Erfasst auch große Desktop-Monitore im Hochformat!
    */
/* ======================================== */
@media (orientation: portrait) and (min-width: 769px) {
        /* Header/Menü - KEINE SCROLLBAR */
    header .container {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.5vw !important;
        padding: 0 15px !important;
    }
    
    .logo {
        font-size: 1.4rem !important;
        flex-shrink: 0 !important;
    }
    
    nav {
        margin: 0 5px !important;
        flex: 1 !important;
        min-width: 0 !important;  /* Erlaubt Schrumpfen */
        overflow: visible !important;
    }
    
    nav ul {
        display: flex !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    nav ul li a {
        font-size: 0.8rem !important;
        padding: 4px 6px !important;
        white-space: nowrap !important;
    }
    
    .header-right {
        display: flex !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
         margin-left: 25px !important;
    }
    
    .language-selector select,
    .resume-btn {
        height: 26px !important;
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
        white-space: nowrap !important;
    }
    
    .language-selector select {
        padding-right: 20px !important;
        background-position: right 4px center !important;
    }




    /* ===== HERO SECTION bleibt unverändert ===== */
    .hero {
        min-height: 100vh !important;
        padding: 80px 0 !important;
        background: #0f2a4a !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-brain {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        left: -50% !important;
        width: 200% !important;
        height: auto !important;
        transform: translateY(-50%) rotate(-90deg) !important;
        opacity: 0.25 !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }
    
    .hero .container {
        position: relative !important;
        z-index: 3 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-align: left !important;
        width: 100% !important;
        max-width: 1100px !important;
        gap: 50px !important;
        padding: 0 40px !important;
    }
    
    .hero-content {
        order: 1 !important;
        max-width: 55% !important;
        width: 100% !important;
        margin-top: 0 !important;
        text-align: center !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-content h2 {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .hero-image {
        order: 2 !important;
        margin-top: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .profile-image {
        width: 260px !important;
        height: 260px !important;
        margin-top: 0 !important;
        border-width: 3px !important;
    }
    
    .hero-buttons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-top: 30px !important;
        width: 100% !important;
    }

        .hero-buttons .btn {
        width: 180px !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 44px !important;
        height: auto !important;
    }

    /* === VIDEO MODAL TABLET HOCHFORMAT === */
.modal-headline {
    font-size: 1.15rem;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.video-modal-content {
    width: 80%;
    max-width: 550px;
}

.video-modal-content video {
    border-width: 2.5px;
}
    
}


/* ======================================== */
/* 6. DESKTOP & GROSSE BILDSCHIRME (>992px) so wird hero mittig verkleinert*/
/* ======================================== */
@media (min-width: 993px) {
    
    /* Dem Body oder Main einen Padding-Top geben */
    main {
        padding-top: 80px !important;
    }
    
    /* Hero anpassen */
    .hero {
        margin-top: 0 !important;
        min-height: calc(100vh - 80px) !important;
    }
}










