

@media (max-width: 900px) {
    html, body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    .section,
    #software-engineer-esslingen,
    #itkenntnisse,
    #lektion,
    .content,
    .content-wrapper,
    .lessons-container,
    .horizontal-scrolling {
        width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding-right: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    
    h2 {
        font-size: 3.2em;
    }
    
    /* Navigation - horizontal für Tablets */
    nav ul {
        flex-direction: row;
    }
    
    nav li a {
        font-size: 1.5em;
        padding: 18px 15px;
    }
    
    /* Über mich - nebeneinander Layout */
    .row {
        display: flex;
        align-items: center;
    }
    
    .content-col-1 {
        flex: 0 0 58%;
        padding-right: 1.5rem;
    }
    
    .content-col-2 {
        flex: 0 0 42%;
    }
    
    .content-wrapper {
        width: 100%;
        padding: 0 !important;
        justify-content: center;
        align-self: center;
        font-size: 16px;
        margin-top: 20px;
        font-size: 22px;
    }
    
    /* IT-Kenntnisse */
    #itkenntnisse .content {
        max-width: 75vw;
        margin: 0 auto;
        padding: 2.5rem 3rem;
    }
    
     .knowlege-item p {
        font-size: 1em;
    }
    
    .knowlege-item .knowlege-item-progress {
        height: 32px;
        line-height: 32px;
        font-size: 16px;
    }
    
    /* Lektion fürs Leben */
    .content .col-inner {
        padding: 3vw;
    }
    
    .content .col-inner h2 {
        font-size: 3.1rem;
    }
    
    .content .col-inner p {
        font-size: 21px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {

    
    h1 {
        font-size: 45px;
    }
    
    h2 {
        font-size: 3.8em;
    }
    
    /* Navigation */
    nav li a {
        font-size: 1.9em;
        padding: 28px 25px;
    }
    
    /* Über mich */
    .content-wrapper {
        width: 100%;
        margin: 30px auto 0;
        font-size: 25px;
        padding: 0 !important;
        justify-content: center;
        align-self: center;
        margin-top: 20px;
    }
    
    .content-col-1 {
        flex: 0 0 56%;
    }
    
    .content-col-2 {
        flex: 0 0 44%;
    }
    
    .content-col-2 .col-inner {
        min-height: 450px;
    }
    
    /* IT-Kenntnisse */
    #itkenntnisse .content {
        max-width: 55vw;
        padding: 3.5rem 4rem;
    }
    
     .knowlege-item p {
        font-size: 1em;
    }
    
    .knowlege-item .knowlege-item-progress {
        height: 42px;
        line-height: 42px;
        font-size: 21px;
    }
    
    /* Lektion fürs Leben */
    .content .col-inner {
        max-width: 950px;
        margin: 0 auto;
        padding: 4vw;
    }
    
    .content .col-inner h2 {
        font-size: 3.8rem;
    }
    
    .content .col-inner p {
        font-size: 20px;
        line-height: 1.7;
    }
}

@media (min-width: 1400px) {

    h1 {
        font-size: 50px;
    }
    
    h2 {
        font-size: 4.2em;
    }
    
    .section {
        padding: 60px 80px;
    }
    
    /* Navigation */
    nav li a {
        font-size: 2.1em;
        padding: 32px 30px;
    }
    
    /* Über mich */
    .content-wrapper {
        width: 100%;
        font-size: 28px;
        padding: 0 !important;
        justify-content: center;
        margin-top: 20px;
    }
    
    .content-col-1 .col-inner {
        padding: 3rem;
    }
    
    .content-col-2 .col-inner {
        min-height: 500px;
    }
    
    /* IT-Kenntnisse */
    #itkenntnisse .content {
        max-width: 50vw;
        padding: 4rem 5rem;
    }
    
    .knowlege-item {
        margin-bottom: 2.5rem;
    }
    
     .knowlege-item p {
        font-size: 1em;
    }
    
    .knowlege-item .knowlege-item-progress {
        height: 48px;
        line-height: 48px;
        font-size: 20px;
    }
    
    /* Lektion fürs Leben */
    .content .col-inner {
        max-width: 1100px;
        padding: 5vw;
    }
    
    .content .col-inner h2 {
        font-size: 4.2rem;
    }
    
    .content .col-inner p {
        font-size: 1rem;
        line-height: 1.8;
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    h2 {
        margin-top: 80px;
    }
    
    .content .col-inner h2 {
        margin-top: 60px;
    }

    .knowlege-item p {
        color: #1a1a1a;
        font-weight: 700;
        font-size: 1.1em;
        line-height: 1.4;
    }

    .knowlege-item {
        padding: 0.8rem;
        margin-bottom: 1remt;
    }

    .knowlege-item .knowlege-item-progress {
        height: 24px;
        line-height: 24px;
        font-size: 13px;
    }
    
    #lektion,
    .horizontal-scrolling {
        height: 85vh;
        min-height: 85vh;
        max-height: 85vh;
    }
    
    .content .col-inner {
        padding: 3vw 4vw;
    }
}

@media print {
    .header-top,
    nav,
    .toggle-menu,
    .scroll-hint {
        display: none !important;
    }
    
    .section {
        break-inside: avoid;
        padding: 15px;
        min-height: auto;
    }
    
    h2 {
        margin-top: 0;
        color: black !important;
        font-size: 2.5em;
    }
    
    .content .col-inner h2,
    .content .col-inner p {
        color: black !important;
    }
    
    #lektion {
        display: block;
        overflow: visible;
        height: auto;
    }
    
    .horizontal-scrolling {
        display: block;
        height: auto;
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .knowlege-item .knowlege-item-progress::before {
        left: -10%;
    }
}

@media (prefers-contrast: high) {
  .knowlege-item p {
    color: #000000;
    font-weight: 900;
    text-shadow: none;
  }

  .knowlege-item {
    border: 3px solid #000000;
    background: #ffffff;
  }

  .knowlege-item-progress {
    border: 3px solid #000000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .knowlege-item {
    transition: none;
  }

  .knowlege-item:hover {
    transform: none;
  }
}

/* Tablet Hochformat */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .blog-card {
    flex: 1 1 calc(33% - 2rem) !important;
    max-width: calc(33% - 2rem) !important;
  }
}

/* Tablet Querformat */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .blog-card {
    flex: 1 1 calc(80% - 2rem) !important;
    max-width: calc(80% - 2rem) !important;
    margin: 0 auto;
  }
}