/* ============================= */
/* RESPONSIVE DESIGN ANPASSUNGEN */
/* ============================= */

/* Tablets und kleinere Laptops */
@media (max-width: 1200px) {
    section {
        padding: 8rem 0rem;
    }
    h1 { font-size: 3.4rem; }
    h2 { font-size: 4.6rem; }
    p  { font-size: 1.2rem; }
    .Untertitel { font-size: 2.4rem;}
    .Handschrift { font-size: 3.4rem;}
    #BUCH .Untertitel{ font-size: 1.5rem;}

    .buttonGroß{
        display: none;
    }
    .buttonKlein{
        display: flex;
    }
    #BUCH .Bild_Text {
        flex-direction: column;
    }
    #BUCH .Text_Bild {
        flex-direction: column-reverse;
    }
    #BUCH h2{ 
        margin-top: 2rem;
    }
    #BUCH .TeilbildschirmText{
        width: 100%;
        padding: 0;
    }
    #BUCH .Text_links{
        padding: 0;
    }
    #BUCH h1 {font-size: 4rem;}
    .leseprobe {
        width: 80%;
        margin: 40px auto;
    }
}
@media (max-width: 1130px){
    .Gitter {
        grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); /* variabel anpassbar */
        }
}
@media (max-width: 1040px){
    .AbstandButton {
        flex-direction: column;
        width: 100%;
    }
    .AbstandButton a {
        margin: auto;
        margin-left: 0;
    }
}
@media (max-width: 1000px){
    .TeilbildschirmBild img{
        width: 19rem;
    }
    .Gitter {
        grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); /* variabel anpassbar */
    }
    #BUCH .Untertitel{
        margin-bottom: 5rem;
    }
}
@media (max-width: 950px){
    .Gitter {
        grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); /* variabel anpassbar */
        }
    .Banner{
        width: 120%;
    }
}
@media (max-width: 900px) {
    .Bild_Text {
        flex-direction: column;
    }
    .Text_Bild {
        flex-direction: column-reverse;
    }
    .TeilbildschirmText{
        width: 100%;
        padding: 0;
    }
    .Text_links{
        padding: 0;
    }
    .leseprobe {
        width: 80%;  
    }
    .textfeld {
        padding: 2.5rem;
    }
    .AbstandButton {
        flex-direction: row;
        width: 100%;
    }
    .AbstandButton a {
        margin: 0;
        margin-left: 0;
        margin-right: 1rem;
    }
}
/* Smartphones im Querformat und große Handys */
@media (max-width: 790px) {
    section {
        padding: 5rem 2rem;
    }

    h1 { font-size: 2.9rem; }
    h2 { font-size: 4.2rem; 
        margin-bottom: 1rem;}
    p  { font-size: 1.1rem; }
    .Untertitel{ font-size: 2rem; }
    .Handschrift { font-size: 2.9rem;}
    #BUCH h1 {font-size: 4rem;}
    .Inhaltsbreite {
        width: 95%;
    }

    .TeilbildschirmText {
        padding: 0;
        width: 100%;
    }

    .Button-rot, .Button-transp, .Button-hell, .Button-transp-hell {
        font-size: 1rem;
        padding: 0.4em 1.2em;
    }
    header{
        height: 9rem;
    }

    .InhaltHeader {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    header .ButtonContainer{
        align-items: center;
    }

    header img {
        height: 3.5rem;
    }
    .Banner{
        width: 310%;
        min-height: 20rem;
    }
}
@media (max-width: 730px) {
    /*FOOTER*/
    .Link_Text{
        margin-bottom: 1.5em;    
        /*border: 2px solid var(--global-color-hintergrund);*/
    }
    .Link_Text a{
        font-size: 1.25rem;
    }
    footer p{
        margin-top: 1em;
        /*border: 2px solid var(--global-color-hintergrund);*/
    }
    .Icon_Social{
        height: 1.75rem;        
    }
    .Icons_Footer a{
        margin-right: 2em;        
    }
}
@media (max-width: 710px){
    /*.Gitter {
        grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));  variabel anpassbar 
        }*/
    .flip-card p{
    font-size: 0.9rem;
    }
    .flip-card a{
    font-size: 0.9rem;
    }
    .headlineFlipcard{
    font-size: 1.25rem;
    }
    .flip-card-back .back-text {
        padding: 2rem;
    }
}
@media (max-width: 650px) {
    /*FOOTER*/
    footer{
        display: flex;
        flex-direction: row;
    }
    .LinksFooter {
        display: flex;
        flex-direction: row;
        justify-content: start;
        width: var(--global-Inhaltsbreite_relativ);
    }
    .Link_Text {
        flex-direction: column;
        align-items: start;
        margin: 0;
        /*margin-bottom: 1.75em;*/
    }
    .Link_Text a {
        margin-bottom: 0.5em;
    }
    .Icons_Footer a{
        margin: .75em;
        margin-top: 0;
        margin-right: .75em;
        line-height: 1.75;
    }
    .Icons_Footer {
        margin-left: 2em;
        height: auto;
        width: 50%;
    }
    #STOEBERN .ButtonGitter{
        grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    }
}
@media (max-width: 600px) {
    /*HEADER*/
    header{
        height: 9rem;
    }
    header .ButtonContainer{
        display: flex;
        flex-direction: row;
        margin-bottom: 1rem;
        padding: 0;
    }
    header .ButtonContainer a{
        font-size: 1em;
    }
    .InhaltHeader{
        flex-direction: row;
    }
    header .buttonKlein{
        display: none;
    }
    header img{
        height: 5rem;
    }
    .Bannergroß{
        display: none;
    }
    .Bannerklein{
        display: flex;
        width: 100%;
        height: auto;
        min-height: 0rem;
    }
}
@media (max-width: 560px) {
    /*Header*/
    header .ButtonContainer a {
        font-size: 0.9rem;
        margin: 0;
        margin-right: 0.5em;
    }
    #STOEBERN .klein{
        display: flex;
    }
    #STOEBERN .groß{
        display: none;
    }
    /* .Gitter {
        grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); variabel anpassbar 
    }*/
}
@media (max-width: 518px){
    #STOEBERN .klein{
        display: none;
    }
    #STOEBERN .groß{
        display: flex;
    }
}
    

/* Sehr kleine Handys im Hochformat */
@media (max-width: 480px) {
    section {
        padding: 3rem 1rem;
    }

    h1 { font-size: 2.3rem; }
    h2 { font-size: 3.2rem; }
    p  { font-size: 1rem; }
    .Untertitel{ font-size: 1.6rem; }
    .Handschrift { font-size: 2.3rem;
        margin-bottom: 2rem;}
    #BUCH h1 {font-size: 3rem;}
    #BUCH .Untertitel{ font-size: 1.25rem;}

    .Button-rot, .Button-transp, .Button-hell, .Button-transp-hell {
        font-size: 0.9rem;
        padding: 0.3em 1em;
        text-align: center;
    }
    .leseprobe {
        width: 90%;  
    }
    .textfeld {
        padding: 1.5rem;
    }
    #MEHRREIHEN img{
        width: 12rem;
    }
}
@media (max-width: 390px) {
    /*Header*/
    header{
        height: 9rem;
    }
    header img{
        height: 4.5rem;
    }
    header .ButtonContainer a {
        font-size: 0.75rem;
        margin: 0;
        margin-right: 0.5em;
    }
    .TeilbildschirmBild img{
        width: 15rem;
    }
    #BUCH h2{ 
        font-size: 2rem;
        margin-top: 1rem;
    }
    #BUCH .Untertitel{
        margin-bottom: 2rem;
    }
    h2 { font-size: 3rem; }

    .flip-card {
        perspective: 1000px;
        width: 100%;
        aspect-ratio: 2 / 3;
        position: relative;
        overflow: hidden;
        max-width: 15rem; /* Kachelgröße variabel */
    }
}   
@media (max-width: 350px) {
    /*Header*/
    header img{
        height: 4rem;
    }
    header .ButtonContainer a {
        font-size: 0.7rem;
        margin: 0;
        margin-right: 0.5em;
    }
    #STOEBERN .ButtonGitter{
        grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    }
}
@media (max-width: 330px){
    #STOEBERN .klein{
        display: flex;
    }
    #STOEBERN .groß{
        display: none;
    }
}
@media (max-width: 320px){
    .AbstandButton {
        flex-direction: column;
    }
    
    #BUCH h1 {font-size: 2.5rem;}
    #BUCH .Untertitel{ font-size: 1rem;}
}