/* ============= RESPONSIVE OPTIMIERUNGEN ============= */

/* Allgemein: Bilder im Blog & Artikeln responsiv machen */
.blog img,
.article-content img,
.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 5px auto;
    overflow: hidden;
}

/* Eingebettete Videos skalieren automatisch */
iframe,
embed,
object,
.video-container {
    max-width: 100%;
    height: auto;
}

/* Header zentriert & Abstand darunter */
#header {
    text-align: center;
    padding: 1px 0;
}

/* Menü darunter mit sauberem Abstand */
#mainmenu,
#menu {
    margin-bottom: 2px;
}

/* Text in Artikeln lesbarer machen */
.article-content,
.blog-content,
.content {
    font-size: 1rem;
    line-height: 1.6;
    padding: 10px;
}

/* Überschriften nicht zu groß auf Smartphone */
h1, h2, h3 {
    word-wrap: break-word;
    font-weight: 600;
}

/* ✅ Korrekte Media Query für Smartphone */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.1em;
    }

    #mainmenu ul {
        text-align: center;
        padding-left: 0;
    }

    #mainmenu li {
        display: inline-block;
        margin: 0 10px;
    }

    /* Slideshow: Höhe begrenzen auf Smartphone */
    .besps,
    .besps_slideshow,
    .besps_container {
        max-height: 180px !important;
      overflow: hidden
    }

    .besps img {
        height: 180px !important;
        object-fit: cover;
      width: 100% !important!
        display: block !important!
    }
}
@media screen and (max-width: 768px) {
  .besps,
  .besps_slideshow,
  .besps_container {
    height: 180px !important;  /* fixe Höhe */
    max-height: 180px !important;
    overflow: hidden !important;
  }

  .besps img {
    height: 180px !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
}

