/* ========================================
   RESPONSIVE LEISTUNGEN CSS - Karolin Wunderlich
   Nur für die Leistungen-Seite (leistungen.html)
   ======================================== */

@media screen and (max-width: 768px) {
    
    /* ========================================
       THREE-COL-ROW (2 Bilder nebeneinander, Text drunter)
       ======================================== */
    
    .three-col-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        margin: 1rem 0.5rem !important;
        width: calc(100% - 1rem) !important;
        max-width: 100%;
    }
    
    .three-col:nth-child(1),
    .three-col:nth-child(2) {
        flex: 0 0 calc(50% - 0.25rem) !important;
        width: calc(50% - 0.25rem) !important;
        max-width: calc(50% - 0.25rem);
    }
    
    .three-col:nth-child(3) {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100%;
        margin-top: 0.5rem;
    }
    
    .image-col {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        overflow: hidden;
    }
    
    .image-col img {
        width: 100%;
        height: auto !important;
        display: block;
    }
    
    .crop-middle-width {
        object-fit: cover !important;
        object-position: 70% 10% !important;
    }
    
    .text-col {
        width: 100%;
        padding: 1rem;
    }
    
    .text-col p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* ========================================
       DREI-SÄULEN SECTION
       ======================================== */
    
    .saeulen-background-container {
        height: auto !important;
        min-height: 100vh;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1.5rem 1rem !important;
        grid-template-rows: auto auto auto auto !important;
        gap: 1rem;
        background-position: center center;
        background-size: cover;
    }
    
    .trennstrich-background hr {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        box-shadow: none !important;
    }
    
    .title {
        font-size: 1.8rem !important;
        margin-left: 0 !important;
        text-align: center !important;
        padding: 0 0.5rem;
        line-height: 1.2;
        word-wrap: break-word;
        text-shadow: none !important;
    }
    
    .textbox-row {
        flex-direction: column !important;
        gap: 1.5rem;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center;
    }
    
    .circle-textbox {
        width: 350px !important;
        height: 350px !important;
        padding: 30px !important;
        font-size: 1rem !important;
    }
    
    .circle-textbox strong {
        font-size: 1.3rem !important;
    }
    
    /* ========================================
       TEXTBOXEN-CONTAINER (3 Spalten)
       ======================================== */
    
    .textboxen-wrapper {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        padding: 0 1rem !important;
        gap: 1rem !important;
    }
    
    .textbox-item {
        width: 100%;
    }
    
    .ueberschrift-textbox {
        width: 100%;
        text-align: left;
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .textbox-item ul {
        width: 100%;
        margin: 0 0 1rem 0;
        padding-left: 1.5rem;
    }
    
    .textbox-item p.text {
        width: 100%;
        text-align: left;
        font-size: 1rem;
        line-height: 1.6;
        margin: 0;
    }
    
    .zentriert {
        text-align: center !important;
        padding: 0 1rem;
        margin-top: 1rem;
    }
}

/* ========================================
   KLEINE SMARTPHONES (bis 480px)
   ======================================== */

@media screen and (max-width: 480px) {
    
    .three-col-row {
        gap: 0.5rem !important;
        margin: 0.5rem !important;
    }
    
    .three-col:nth-child(1),
    .three-col:nth-child(2) {
        flex: 0 0 calc(50% - 0.25rem) !important;
        width: calc(50% - 0.25rem) !important;
    }
    
    .three-col:nth-child(3) {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
    
    .image-col {
        height: auto !important;
    }
    
    .text-col {
        padding: 0.75rem;
    }
    
    .saeulen-background-container {
        padding: 1rem 0.5rem !important;
        min-height: auto;
        gap: 1rem;
    }
    
    .title {
        font-size: 1.4rem !important;
        padding: 0 0.25rem;
        text-shadow: none !important;
    }
    
    .textbox-row {
        gap: 1.5rem;
    }
    
    .circle-textbox {
        width: 300px !important;
        height: 300px !important;
        padding: 25px !important;
        font-size: 0.9rem !important;
    }
    
    .circle-textbox strong {
        font-size: 1.2rem !important;
    }
    
    .textboxen-wrapper {
        padding: 0 0.5rem !important;
        gap: 0.75rem !important;
    }
    
    .ueberschrift-textbox {
        font-size: 1.1rem;
    }
    
    .textbox-item p.text {
        font-size: 0.95rem;
    }
}

/* ========================================
   TABLET (769px - 1024px)
   ======================================== */

@media screen and (min-width: 769px) and (max-width: 1024px) {
    
    .three-col-row {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .three-col:nth-child(1),
    .three-col:nth-child(2) {
        flex: 0 0 48% !important;
    }
    
    .three-col:nth-child(3) {
        flex: 0 0 100% !important;
    }
}