/* Mobile Responsivität Verbesserungen */

/* Bild-Optimierungen für schnellere Ladung */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: auto;
}

/* Preload-Optimierungen */
img[loading="eager"] {
    display: block;
}

/* Spezielle Optimierungen für KatharinaLanger.jpg */
img[src*="KatharinaLanger"] {
    content-visibility: auto;
    contain: layout style paint;
}

/* Allgemeine mobile Optimierungen */
@media (max-width: 767px) {
    /* Text-Größen anpassen */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    h1 {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }
    
    h2 {
        font-size: 1.5em !important;
        margin-bottom: 12px !important;
    }
    
    h3 {
        font-size: 1.3em !important;
        margin-bottom: 10px !important;
    }
    
    /* Abstände reduzieren */
    .jtpl-content {
        padding: 20px 15px !important;
    }
    
    .jtpl-sidebar {
        padding: 15px !important;
    }
    
    /* Grid-Spalten auf mobile anpassen */
    .cc-m-hgrid-column {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px !important;
    }
    
    /* Bilder responsiv machen */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Navigation verbessern */
    .jtpl-mobile-navigation {
        background-color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .jtpl-mobile-navigation ul {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .jtpl-mobile-navigation li {
        border-bottom: 1px solid #eee !important;
        padding: 12px 15px !important;
    }
    
    .jtpl-mobile-navigation a {
        display: block !important;
        padding: 8px 0 !important;
        font-size: 16px !important;
    }
    
    /* Google Maps responsive */
    iframe {
        max-width: 100% !important;
        height: 250px !important;
    }
    
    /* Kontakt-Informationen */
    .j-module.j-text p {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    /* Footer für ALLE Seiten kompakter machen */
    .jtpl-footer {
        padding: 10px 0 !important;
        margin: 0 !important;
    }
    
    .jtpl-footer__inner {
        padding: 10px 20px !important;
    }
    
    .j-meta-links {
        text-align: center !important;
        font-size: 12px !important;
    }
    
    /* Sidebar für ALLE Seiten kompakter */
    .jtpl-sidebar {
        padding: 15px 20px !important;
    }
    
    .jtpl-sidebar__inner {
        padding: 10px 0 !important;
    }
    
    /* Content-Bereich mehr Platz für ALLE Seiten */
    .jtpl-content {
        padding-bottom: 20px !important;
    }
    
    /* Zitat-Bereich auf Startseite */
    .j-module.j-text h2 {
        font-size: 1.4em !important;
        line-height: 1.3 !important;
        padding: 0 10px !important;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    .jtpl-content {
        padding: 15px 10px !important;
    }
    
    h1 {
        font-size: 1.6em !important;
    }
    
    h2 {
        font-size: 1.3em !important;
    }
    
    h3 {
        font-size: 1.1em !important;
    }
    
    /* Kontakt-Formular falls aktiviert */
    form {
        padding: 0 10px !important;
    }
    
    .form-control {
        font-size: 16px !important; /* Verhindert Zoom auf iOS */
    }
    
    /* Footer für ALLE Seiten auf sehr kleinen Bildschirmen noch kompakter */
    .jtpl-footer {
        padding: 8px 0 !important;
    }
    
    .jtpl-footer__inner {
        padding: 8px 15px !important;
    }
    
    .j-meta-links {
        font-size: 11px !important;
    }
    
    /* Sidebar für ALLE Seiten auf sehr kleinen Bildschirmen */
    .jtpl-sidebar {
        padding: 10px 15px !important;
    }
    
    .jtpl-sidebar__inner {
        padding: 8px 0 !important;
    }
    
    /* Content-Bereich mehr Platz für ALLE Seiten */
    .jtpl-content {
        padding-bottom: 15px !important;
    }
    
    /* About-Seite auf sehr kleinen Bildschirmen */
    #cc-matrix-3930860824 {
        margin-bottom: 15px !important;
    }
    
    #cc-m-13535986924 img {
        margin: 0 auto 10px auto !important;
    }
    
    /* Text-Größen auf sehr kleinen Bildschirmen */
    #cc-m-13522097524 li,
    #cc-m-13590168024 li {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
    
    /* Abstände reduzieren */
    #cc-m-13522097324,
    #cc-m-13522097624 {
        margin-bottom: 15px !important;
    }
}

/* Tablet-Optimierungen */
@media (min-width: 768px) and (max-width: 1024px) {
    .jtpl-content {
        padding: 30px 40px !important;
    }
    
    .cc-m-hgrid-column {
        width: 48% !important;
        margin-bottom: 30px !important;
    }
}

/* Touch-Optimierungen */
@media (hover: none) and (pointer: coarse) {
    /* Größere Touch-Targets */
    a, button {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Navigation-Touch-Targets */
    .jtpl-mobile-navigation a {
        padding: 15px 0 !important;
    }
}

/* Performance-Optimierungen */
@media (max-width: 767px) {
    /* Reduzierte Animationen auf mobilen Geräten */
    * {
        animation-duration: 0.1s !important;
        transition-duration: 0.1s !important;
    }
}

/* Spezielle Fixes für bestimmte Seiten */
/* Kontakt-Seite */
@media (max-width: 767px) {
    #cc-m-13522084824 h3 {
        font-size: 1.2em !important;
        margin-bottom: 15px !important;
    }
    
    #cc-m-13590261624 p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}

/* Psychotherapie-Seiten */
@media (max-width: 767px) {
    .j-module.j-text ul {
        padding-left: 20px !important;
    }
    
    .j-module.j-text li {
        margin-bottom: 8px !important;
        font-size: 15px !important;
    }
}

/* About-Seite */
@media (max-width: 767px) {
    #cc-matrix-3930860824 {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    #cc-matrix-3930860924 img {
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Grid-Layout für mobile About-Seite reparieren */
    #cc-m-13535986824 .cc-m-hgrid-column {
        width: 100% !important;
        float: none !important;
        margin-bottom: 30px !important;
        display: block !important;
    }
    
    /* Text und Bild untereinander auf mobile */
    #cc-matrix-3930860824,
    #cc-matrix-3930860924 {
        width: 100% !important;
        float: none !important;
    }
    
    /* Bild-Größe auf mobile anpassen */
    #cc-m-13535986924 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Werdegang und Qualifikationen Sektionen - SPEZIELLE FIXES */
    #cc-m-13522097324 .cc-m-hgrid-column,
    #cc-m-13522097624 .cc-m-hgrid-column {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px !important;
        display: block !important;
    }
    
    /* Text-Bereiche auf mobile */
    #cc-matrix-3927587624,
    #cc-matrix-3927588024 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px !important;
    }
    
    /* Überschriften auf mobile zentrieren */
    #cc-m-13522097424 h3,
    #cc-m-13522097724 h3 {
        text-align: center !important;
        margin-bottom: 15px !important;
    }
    
    /* Listen auf mobile */
    #cc-m-13522097524 ul,
    #cc-m-13590168024 ul {
        padding-left: 20px !important;
        margin-bottom: 20px !important;
    }
    
    #cc-m-13522097524 li,
    #cc-m-13590168024 li {
        margin-bottom: 10px !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
    
    /* Footer auf mobile kleiner machen */
    .jtpl-footer {
        padding: 10px 0 !important;
        margin: 0 !important;
    }
    
    .jtpl-footer__inner {
        padding: 10px 30px !important;
    }
    
    .j-meta-links {
        font-size: 12px !important;
        text-align: center !important;
    }
    
    /* Sidebar auf mobile kompakter */
    .jtpl-sidebar {
        padding: 15px 30px !important;
    }
    
    .jtpl-sidebar__inner {
        padding: 10px 0 !important;
    }
    
    /* Content-Bereich mehr Platz geben */
    .jtpl-content {
        padding-bottom: 20px !important;
    }
    
    /* Spezielle Fixes für die Grid-Container */
    #cc-m-13522097324,
    #cc-m-13522097624 {
        margin-bottom: 30px !important;
    }
    
    /* Sicherstellen dass alle Grid-Spalten vollständig angezeigt werden */
    .j-hgrid .cc-m-hgrid-column {
        width: 100% !important;
        float: none !important;
        display: block !important;
        margin-bottom: 15px !important;
    }
    
    /* Clear-Fix für Grid-Container */
    .j-hgrid:after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }
}

/* Impressum/Datenschutz */
@media (max-width: 767px) {
    #cc-matrix-3801400624 p {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    #cc-matrix-3801400624 strong {
        font-size: 15px !important;
    }
}

/* Einblicke-Seite */
@media (max-width: 767px) {
    .cc-m-gallery-container {
        margin: 0 -10px !important;
    }
    
    .cc-m-gallery-cool-item {
        margin-bottom: 10px !important;
    }
} 