/* Responsive Ergänzungen zum Originaltheme der Fliegenfischerschule. */
.anfrage-aktionen {
    margin: .75rem 0 1.15rem;
}

#main .anfrage-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: .45rem 1rem;
    border-radius: .3rem;
    background: #155e40;
    color: #fff;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

#main .anfrage-link:hover { background: #104831; }
#main .kontakt-direkt { color: #155e40; text-decoration: underline; text-underline-offset: .15em; }
#main picture img { max-width: 100%; height: auto; }
.event .veranstaltungszeiten dt { font-weight: 600; }
.event .veranstaltungszeiten dd { margin: .15em 0 0; }
a:focus-visible, button:focus-visible {
    outline: 3px solid #0759ac;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px white;
}

/* Contao 5 gibt den aktiven Menüpunkt als strong aus, Contao 3 als span. Die span-Regeln des Originaltheme
   gelten hier auch für strong: Einzug und Hinterlegung im Untermenü, Unterstreichung oben, normale Schriftstärke. */
:is(.NaviTop, .NaviMain, .NaviSub, .NaviBottom) ul li strong { font-weight: inherit; }
.NaviTop ul li strong, .NaviMain ul li strong { text-decoration: underline; }
.NaviSub ul li strong {
    display: block;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 20px;
    background-image: url("../../files/Kunstfliegen/background/bg_main.png");
    background-position: right top;
}

@media (max-width: 1023px) {
    html, body#top {
        min-width: 0;
        width: auto;
        margin: 0;
    }
    body#top {
        font-size: 16px;
        font-weight: 400;
        letter-spacing: normal;
        line-height: 1.55;
        -webkit-text-size-adjust: 100%;
    }
    body #wrapper, #wrapper #CustomWrapper {
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        box-sizing: border-box;
    }
    #wrapper #header { height: auto; }
    #header > .inside {
        --bildhoehe: clamp(150px, 34vw, 236px);
        display: grid;
        grid-template: var(--bildhoehe) auto / minmax(0, 1fr);
    }
    #header .HeaderPicture, #header .HeaderLogo, #header .NaviTop {
        grid-area: 1 / 1;
        position: relative;
        inset: auto;
        margin: 0;
    }
    #header .HeaderPicture, #header .HeaderPicture figure, #header .HeaderPicture img {
        display: block;
        width: 100%;
        height: 100%;
    }
    #header .HeaderPicture img { object-fit: cover; object-position: center; }
    #header .HeaderLogo {
        align-self: end;
        justify-self: start;
        width: clamp(94px, 26vw, 146px);
        margin: 0 0 .55rem .7rem;
    }
    #header .HeaderLogo figure { margin: 0; }
    #header .HeaderLogo img { display: block; width: 100%; height: auto; }
    #header .NaviTop { align-self: start; height: auto; }
    #header .NaviTop > ul, #header .NaviMain > ul {
        display: flex;
        float: none;
        flex-wrap: wrap;
        align-items: center;
        margin: 0;
    }
    #header .NaviTop > ul { justify-content: end; padding: 0 .5rem; }
    #header .NaviMain {
        grid-area: 2 / 1;
        height: auto;
        margin: 0;
        background-color: #242d24;
    }
    #header .NaviMain > ul { justify-content: center; padding: .1rem .25rem; }
    #header .NaviMain > ul > li, #header .NaviTop > ul > li {
        display: block;
        float: none;
        padding: 0;
    }
    #header .NaviMain li > :is(a,span,strong), #header .NaviTop li > :is(a,span,strong) {
        display: flex;
        min-height: 44px;
        align-items: center;
        box-sizing: border-box;
        padding: .25rem .5rem;
        line-height: 1.25;
    }
    #wrapper #container {
        display: flex;
        flex-direction: column;
        min-width: 0;
        padding: 0;
    }
    #wrapper #main, #wrapper #left, #wrapper #right {
        float: none;
        inset: auto;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    #wrapper #left { order: -1; }
    #left .NaviSub { margin: 0; padding: .65rem 1rem; }
    #left .NaviSub :is(h1,h2) { margin: 0; padding: 0; font-size: 1rem; }
    #left .NaviSub ul { display: flex; flex-wrap: wrap; gap: 0 1rem; }
    #left .NaviSub li > :is(a,span,strong) {
        display: inline-flex;
        align-items: center;
        padding: .25rem 0;
        min-height: 44px;
        box-sizing: border-box;
        background: none;
        color: #245d40;
    }
    #wrapper #main > .inside {
        padding: 1rem clamp(1rem, 4vw, 1.75rem) 1.4rem;
        min-height: 0;
        overflow-wrap: anywhere;
        border-radius: 0;
    }
    #main :is(h1,h2,h3), #main #H1Home { letter-spacing: normal; line-height: 1.24; }
    #main h1, #main #H1Home { font-size: clamp(1.55rem, 5.8vw, 1.95rem); }
    #main h2 { font-size: 1.32rem; }
    #main h3 { font-size: 1.1rem; }
    #main :is(img,video,iframe,table), #left img { max-width: 100%; }
    #main :is(img,video), #left img { height: auto; }
    #main :is(.ImgRight,.ImgRightLast,.ImgLeft,.float_left,.float_right) {
        float: none;
        max-width: 100%;
        margin-inline: 0;
        padding-inline: 0;
    }
    #main .mod_article, #main figure { min-width: 0; max-width: 100%; }
    #main figure { margin-inline: 0; }
    #main .rte table { width: 100%; box-sizing: border-box; }
    #main :is(sub,sup) { line-height: 1; }
    #DivHome { display: grid; gap: 1rem; }
    #DivHome > * { min-width: 0; }
    #DivHome :is(.HomeLeft,.HomeMiddle,.HomeRight) {
        float: none;
        box-sizing: border-box;
        width: 100%;
        height: auto;
        margin: 0;
        padding-bottom: .7rem;
    }
    #DivHome :is(.HomeLeft,.HomeMiddle,.HomeRight) img {
        display: block;
        width: 100%;
        height: auto;
    }
    #DivHome :is(.HomeLeft,.HomeMiddle,.HomeRight) > div:last-child {
        padding: .55rem .75rem 0;
    }
    #left .DivKalender {
        width: min(100%, 35rem);
        box-sizing: border-box;
        margin: 0 auto .85rem;
        padding: 0 clamp(.4rem, 2vw, .85rem);
    }
    .DivKalender table.minicalendar { width: 100%; box-sizing: border-box; border-spacing: 2px; }
    .DivKalender .minicalendar :is(td,th) { height: 44px; padding: 0; }
    .DivKalender .minicalendar td a, .DivKalender .minicalendar th a {
        display: grid;
        place-items: center;
        min-height: 44px;
    }
    .DivKalender .minicalendar th { letter-spacing: normal; }
    #wrapper #footer { height: auto; margin: 0; padding: .9rem 1rem; background: #374238; }
    #footer .NaviBottom { float: none; }
    #footer .NaviBottom ul { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
    #footer .NaviBottom li { float: none; padding: 0; }
    #TopArrow { width: 44px; height: 44px; background-size: contain; }
    .cookiebar { max-height: 40vh; overflow: auto; font-size: .94rem; line-height: 1.35; }
    .cookiebar button { min-height: 44px; }
}
