/* Überarbeitung Mobilansicht – Brandfisher, Nov. 2026
   Ergänzt custom.css, Desktop-Optik bleibt unverändert. */

/* Slider-Bilder scharf auch auf hochauflösenden Displays (Bild liegt in doppelter Größe vor) */
#Slider .cycle-slideshow > div,
.cycle-slide {
    background-size: cover !important;
}

@media only screen and (max-width: 40em) {
    /* Kopfbereich: Logo links, Menü-Button sauber daneben */
    .meta { height: auto; padding: 6px 0; }
    .meta a { font-size: 1.3em; margin-left: 10px; }
    .header { height: auto; }
    #Header { padding: 10px 0; }
    .brand.nopaddingright > a { display: inline-block; background: transparent; }
    #Logo { max-width: 190px; height: auto; }
    #Header { position: relative; }
    #Header > .columns { position: static; }
    #Navigation { overflow: visible; position: static; }
    /* Menü-Button: dunkler Kasten wie das Logo, drei weiße Linien per CSS (altes Icon war dunkel auf dunkel) */
    .nav-open-button {
        top: 30px; right: 15px; width: 44px; height: 44px; border-radius: 3px; cursor: pointer;
        background-color: #212123 !important;
        background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff) !important;
        background-repeat: no-repeat !important;
        background-size: 24px 3px !important;
        background-position: center 13px, center 20.5px, center 28px !important;
    }
    .mainmenu { top: 100%; margin-top: 0; }
    .mainmenu li { width: 100% !important; margin: 0 !important; border-bottom: 1px solid #ddd; background-image: none !important; }
    #Navigation ul li a { color: #212123; font-style: normal; font-size: 17px; }
    #Navigation ul li.current a,
    #Navigation ul li.section a { font-weight: bold; }

    /* Slider: Person im Bild, Text lesbar unten im Bild */
    #Slider { min-height: 0; }
    .cycle-slideshow,
    .cycle-slide { height: 300px !important; }
    .cycle-slide { background-position: 92% top !important; }
    .SliderContent {
        opacity: 1;
        position: absolute;
        left: 0; right: 0; bottom: 0;
        width: auto;
        margin: 0;
        padding: 8px 12px 10px;
        background: rgba(255, 255, 255, 0.9);
    }
    .SliderTitle1, .SliderTitle2 { font-size: 16px; line-height: 1.25; float: none; display: block; }
    .SliderText { display: none; }

    /* Lesbare Schriftgrößen im Inhalt */
    .maincontent p,
    .maincontent ul,
    .maincontent li { font-size: 16px; line-height: 1.5; }
    .maincontent h1 { font-size: 1.6rem; }
    .maincontent h2 { font-size: 1.4rem; }
    .maincontent h3 { font-size: 1.2rem; }
    .contentrow { padding-top: 50px !important; }
    #LexikonLink { top: 8px; right: 10px; }
    .large-4.columns, .large-8.columns { width: 100%; }

    /* Startseiten-Kästen */
    #mycarousel2 { height: auto; min-height: 175px; }
    #mycarousel2 li a { padding: 26px 20px; }
    .BoxTitle1 { font-size: 1.8em; }
    .BoxTitle2 { font-size: 1.5em; }
    .BoxText p { font-size: 1.5em; }

    /* Kontaktbox und Fußzeile untereinander */
    .KontaktBox { width: 100%; }
    #KontaktInfo { margin-left: 0; }
    .info, .Telefoninfo { float: none; display: block; width: auto; font-size: 15px; margin: 4px 0; }
    #Footer { padding-top: 30px; margin-bottom: 40px; }
    #FooterPicture, #FooterText { float: none; margin-left: 0; }
    #FooterText p { font-size: 1.4em; }
}
