/* =========================================================
   TTC ST. LEON-ROT – GLOBALE RESPONSIVE-REGELN
   Aus style.css ausgelagert – Phase 1b
   ========================================================= */

/* =========================================================
   13. RESPONSIVE – TABLET / MOBILE
   ========================================================= */

@media(max-width:800px){

    /* -----------------------------------------------------
       Header
       ----------------------------------------------------- */

    .site-header .nav{
        width:100%;
        max-width:none;
        height:72px;

        padding-inline:18px;

        gap:10px;
    }

    .ttc-brand{
        min-width:0;
        flex:0 1 auto;
    }

    .ttc-brand img{
        width:42px;
        height:50px;
    }

    .ttc-brand strong{
        font-size:22px;
    }

    .ttc-brand small{
        font-size:10.5px;
    }

    .menu-toggle{
        display:block;

        margin-left:auto !important;
        margin-right:0 !important;

        flex:0 0 auto;
    }

    .main-nav{
        position:absolute;
        top:72px;
        right:0;
        left:0;

        display:none;
        flex-direction:column;
        align-items:stretch;
        gap:4px;

        margin:0;
        padding:18px 4%;

        background:#fff;

        box-shadow:0 18px 35px rgba(15,45,67,.15);
    }

    .main-nav.open{
        display:flex;
    }

    .main-nav a{
        padding:12px;
    }


    /* -----------------------------------------------------
       Hero
       ----------------------------------------------------- */

    .ttc-hero-photo{
        inset:0;

        background-position:center;
    }

    .ttc-hero.has-photo::before{
        background:
            linear-gradient(
                90deg,
                rgba(6,27,62,.96) 0%,
                rgba(8,47,108,.84) 55%,
                rgba(8,47,108,.48) 100%
            );
    }

    .ttc-hero-grid{
        min-height:310px;

        grid-template-columns:1fr;
    }

    .ttc-hero-copy{
        padding:44px 0 105px;
    }

    .ttc-hero h1{
        font-size:40px;
    }

    .ttc-claim{
        font-size:25px;
    }

    .ttc-lead{
        max-width:315px;

        font-size:14px;
    }

    .ttc-hero-art{
        position:absolute;
        right:-55px;
        bottom:-15px;

        width:270px;
        height:220px;
        min-height:220px;
    }

    .ttc-paddle{
        top:28px;
        right:26%;

        width:145px;
        height:145px;
    }

    .ttc-paddle::after{
        right:-70px;

        width:100px;
        height:28px;
    }

    .ttc-ball{
        top:130px;
        right:55%;

        width:44px;
        height:44px;
    }


    /* -----------------------------------------------------
       News
       ----------------------------------------------------- */

    .ttc-news-stack{
        width:92%;

        margin-top:-18px;
        margin-bottom:10px;
    }

    .ttc-news-notice{
        gap:12px;

        padding:14px 15px;

        border-radius:10px;
    }

    .ttc-news-symbol{
        width:36px;
        height:36px;
        flex-basis:36px;

        font-size:17px;
    }

    .ttc-news-copy > strong{
        font-size:15px;
    }

    .ttc-news-copy p{
        font-size:12px;
    }


    /* -----------------------------------------------------
       Nächste Altpapiersammlung
       ----------------------------------------------------- */

    .ttc-next-paper{
        width:92%;

        margin-top:-18px;
        padding:15px 16px;

        gap:13px;
    }

    .ttc-news-stack + .ttc-next-paper{
        margin-top:0;
    }

    .ttc-next-icon{
        width:42px;
        height:42px;
        flex-basis:42px;

        font-size:22px;
    }

    .ttc-next-paper strong{
        font-size:15px;
    }

    .ttc-next-paper small{
        font-size:11px;
        line-height:1.4;
    }


    /* -----------------------------------------------------
       Leitmotive auf Mobile ausblenden
       ----------------------------------------------------- */

    .desktop-only,
    .ttc-values{
        display:none !important;
    }


    /* -----------------------------------------------------
       Training / Altpapier
       ----------------------------------------------------- */

    .ttc-maincards{
        padding-top:0;
        padding-bottom:16px;
    }

    .ttc-card-grid{
        grid-template-columns:1fr;
        gap:16px;
    }

    .ttc-card{
        padding:18px;
    }

    .ttc-card h2{
        font-size:18px;
    }

    .ttc-training-row{
        grid-template-columns:1fr auto;
        gap:3px 12px;
    }

    .ttc-training-row div{
        grid-row:1 / span 2;
    }

    .ttc-training-row > span:last-child{
        text-align:left;
    }


    /* -----------------------------------------------------
       Footer
       ----------------------------------------------------- */

    .ttc-footer-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .ttc-footer-bottom{
        flex-direction:column;
    }

    .ttc-footer-bottom span:last-child{
        flex-wrap:wrap;
    }


    /* -----------------------------------------------------
       Allgemeine Seiten / Modals
       ----------------------------------------------------- */

    .grid2{
        grid-template-columns:1fr;
    }

    .section{
        padding:42px 0;
    }

    .event-modal{
        padding:12px;
    }

    .event-modal-dialog{
        max-height:88vh;

        padding:22px 18px;

        border-radius:14px;
    }

    .event-modal-dialog h3{
        font-size:22px;
    }


    /* -----------------------------------------------------
       Dark Mode Navigation
       ----------------------------------------------------- */

    html[data-theme="dark"] .main-nav{
        background:#0b2940;

        box-shadow:0 18px 35px rgba(0,0,0,.30);
    }
}

/* =========================================================
   PHASE 3 – MOBILE-TYPOGRAFIE / GLOBAL
   Nur Lesbarkeit; keine Änderung an Desktop oder Hero.
   ========================================================= */
@media (max-width:900px){
    .ttc-footer-grid{font-size:14px;line-height:1.5;}
    .ttc-footer-grid h3,
    .ttc-footer-grid strong{font-size:15px;}
    .ttc-footer-grid a,
    .ttc-footer-grid p,
    .ttc-footer-grid span{font-size:14px;line-height:1.5;}
    .ttc-footer-bottom{font-size:13px;line-height:1.45;}
    .ttc-footer-bottom a{font-size:13px;}
}
