/* ============================================================
   Smartphone-/Tablet-Optimierung für Weingut Simon
   Ergänzt simon_styles.css, ohne es zu verändern.
   (Designer-Layout bleibt am Desktop unverändert.)
   ============================================================ */

/* Hamburger-Button: am Desktop ausgeblendet */
.nav-burger { display: none; }

/* ===== bis 900px: zweispaltige Bereiche untereinander ===== */
@media (max-width: 900px) {
    .startbereich .text  { float: none; width: 100%; margin: 24px 0 0 0; }
    .startbereich .bild  { float: none; width: 70%; max-width: 320px; margin: 24px auto 0 auto; }
    .startbereich .bild img { transform: rotate(0deg); }

    .weingut_text_bereich .links,
    .weingut_text_bereich .rechts,
    .weinstube_text_bereich .links,
    .weinstube_text_bereich .rechts { float: none; width: 100%; margin: 0 0 10px 0; }

    .aktuelles_text_bereich .links,
    .aktuelles_text_bereich .rechts { float: none; width: 100%; margin: 0 0 10px 0; }

    .kontakt_text_bereich .anschrift { float: none; width: 100%; margin: 30px 0 10px 0; }
    .kontakt_text_bereich .anfahrt   { float: none; width: 100%; margin: 10px 0 0 0; }

    .footer_l,
    .footer_r { float: none; width: 100%; text-align: center; }
    .footer_r { margin-top: 10px; }
}

/* ===== bis 768px: Smartphone ===== */
@media (max-width: 768px) {

    /* --- Kopf kompakt + Hamburger --- */
    .kopf         { height: auto; min-height: 72px; }
    .kopf.active  { height: auto; min-height: 58px; }
    .kopf_wrapper { min-height: 72px; padding: 0 16px; }
    .kopf .logo,
    .kopf.active .logo { float: left; width: 84px; margin: 14px 0; transform: none; }
    .kopf.active .logo { width: 56px; margin: 9px 0; }
    .kopf .logo img    { width: 100%; }

    .nav-burger {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        position: absolute; right: 14px; top: 24px;
        width: 44px; height: 44px; padding: 9px;
        background: transparent; border: 0; cursor: pointer; z-index: 996;
    }
    .kopf.active .nav-burger { top: 17px; }
    .nav-burger span {
        display: block; width: 100%; height: 3px; border-radius: 2px;
        background: #746e70; transition: all .25s ease;
    }
    .nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-burger.open span:nth-child(2) { opacity: 0; }
    .nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .navigation,
    .navigation.active {
        position: absolute; top: 100%; left: 0; width: 100%; margin: 0; padding: 0;
        text-align: left; background: #ffffff; box-shadow: 0 10px 16px rgba(0,0,0,.12);
        max-height: 0; overflow: hidden; transition: max-height .3s ease; z-index: 994;
    }
    .navigation.open { max-height: 85vh; }
    .navigation ul      { margin: 0; }
    .navigation ul li   { display: block; margin: 0; }
    .navigation ul li a {
        display: block; border-radius: 0; border-bottom: 1px solid #f1ece4;
        padding: 15px 18px; font-size: 17px; text-align: left;
    }

    /* --- Bildergalerien: 5 Streifen -> gestapelt --- */
    .weingut_bilder,
    .weinstube_bilder { width: 100%; margin: 14px 0 22px 0; min-height: 0; height: auto; }
    .weingut_bilder   [class^="bild"],
    .weinstube_bilder [class^="bild"] {
        position: static !important; left: auto !important; top: auto !important;
        width: 100% !important; height: 210px !important; transform: none !important;
        margin: 0; border-width: 3px;
    }
    .weingut_bilder   img,
    .weinstube_bilder img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
    .weingut_bilder_text,
    .weinstube_bilder_text { font-size: 46px !important; line-height: 58px !important; top: 8px !important; }

    /* --- Kontakt-Karte etwas niedriger --- */
    .anfahrt iframe { height: 280px; }

    /* --- Überschriften/Text etwas kompakter --- */
    .startbereich .text h1 { font-size: 22px; line-height: 30px; margin-bottom: 24px; }
    .startbereich .text p  { font-size: 17px; line-height: 26px; }
}
