/* Alle Buttons kleiner auf Mobile */
@media screen and (max-width: 980px) {
  body #page-container .et_pb_button {
    font-size: 11px !important;
  }
}

/* Hero Buttons nebeneinander */
@media screen and (max-width: 980px) {
  .hero-sektion-start .et_pb_button_module_wrapper {
    float: left !important;
    margin-right: 5px !important;
    clear: none !important;
  }
  .et_pb_section.hero-sektion-start .et_pb_button_module_wrapper .et_pb_button {
    padding: 8px 8px !important;
    letter-spacing: 0px !important;
  }
  body #page-container .hero-sektion-start .et_pb_button_0 {
    border: 2px solid transparent !important;
  }
  .et_pb_section.hero-sektion-start .et_pb_button:after {
    display: none !important;
  }
}

/* Alle p Tags kleiner auf Mobile */
@media screen and (max-width: 980px) {
  body #page-container p {
    font-size: 14px !important;
  }
}

/* H1 kleiner auf Phone */
@media only screen and (max-width: 767px) {
  .et_pb_text_0 h1 {
    font-size: 28px !important;
  }
}

/* Hero Section padding-bottom */
@media only screen and (max-width: 980px) {
  body #page-container .hero-sektion-start {
    padding-bottom: 30px !important;
  }
}

/* Leistungen Icons 3 nebeneinander */
@media only screen and (max-width: 980px) {
  body.home #page-container .et_pb_row_inner_0,
  body.home #page-container .et_pb_row_inner_1 {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1px !important;
  }
  body.home #page-container .et_pb_row_inner_0 > .et_pb_column,
  body.home #page-container .et_pb_row_inner_1 > .et_pb_column {
    width: 33% !important;
    margin: 0 !important;
    padding: 5px !important;
  }
}

/* Leistungen Icons + Text kleiner */
@media only screen and (max-width: 980px) {
  body.home #page-container .et_pb_row_inner_0 .et-pb-icon,
  body.home #page-container .et_pb_row_inner_1 .et-pb-icon {
    font-size: 40px !important;
  }
  body.home #page-container .et_pb_row_inner_0 .et_pb_text_inner,
  body.home #page-container .et_pb_row_inner_1 .et_pb_text_inner,
  body.home #page-container .et_pb_row_inner_0 .et_pb_text_inner p,
  body.home #page-container .et_pb_row_inner_1 .et_pb_text_inner p {
    font-size: 11px !important;
  }
}

/* Icon margin nur auf Startseite */
body.home #page-container .et_pb_module.et_pb_icon.et_pb_icon_0 {
  margin-bottom: 28px;
}

/* Leistungen: Silbentrennung nur Erbschaftsimmobilien */
@media only screen and (max-width: 767px) {
  body #page-container .et_pb_column_inner_2 .et_pb_text_inner,
  body #page-container .et_pb_column_inner_2 .et_pb_text_inner p {
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
  }
}

/* H2 einheitlich auf Mobile */
@media only screen and (max-width: 767px) {
  body #page-container h2 {
    font-size: 26px !important;
  }
}

/* Datenschutz Checkbox margin-top */
@media only screen and (max-width: 767px) {
  body #page-container .et_pb_contact_field_6 {
    margin-top: 14px !important;
  }
}

/* Hero H1 kleiner auf kleinem Desktop/Tablet */
@media only screen and (min-width: 981px) and (max-width: 1280px) {
  body #page-container .hero-sektion-start .et_pb_text_0 h1 {
    font-size: 32px !important;
  }
}

/* Hero Buttons kleiner auf kleinem Desktop */
@media only screen and (min-width: 981px) and (max-width: 1280px) {
  .hero-sektion-start .et_pb_button_module_wrapper {
    float: left !important;
    margin-right: 8px !important;
    clear: none !important;
  }
  .et_pb_section.hero-sektion-start .et_pb_button_module_wrapper .et_pb_button {
    font-size: 13px !important;
    padding: 10px 16px !important;
  }
  .et_pb_section.hero-sektion-start .et_pb_button:after {
    display: none !important;
  }
}

/* Zertifikate Karussell kleiner unter 980px */
@media only screen and (max-width: 980px) {
  body #page-container .dsm_image_carousel_0 .swiper-slide {
    max-height: 350px !important;
    overflow: hidden !important;
  }
  body #page-container .dsm_image_carousel_0 .swiper-slide img {
    max-height: 350px !important;
    width: auto !important;
    object-fit: contain !important;
  }
}

/* Menu: Hamburger ab 1380px statt 980px */
@media only screen and (max-width: 1380px) {
  body #page-container .et_pb_menu .et_pb_menu__menu {
    display: none !important;
  }
  body #page-container .et_pb_menu .et_mobile_nav_menu {
    display: flex !important;
  }
  body #page-container .header-button-1,
  body #page-container .header-button-2 {
    display: none !important;
  }
}

/* Menu: Desktop Menu sichtbar ueber 1380px */
@media only screen and (min-width: 1381px) {
  body #page-container .et_pb_menu .et_pb_menu__menu {
    display: flex !important;
  }
  body #page-container .et_pb_menu .et_mobile_nav_menu {
    display: none !important;
  }
}

/* Logo Position fix unter 1380px */
@media only screen and (max-width: 1380px) {
  body #page-container .et_pb_menu__logo {
    top: -5px !important;
    position: relative !important;
  }
}

/* Mobile Menu Styling 980-1380px */
@media only screen and (max-width: 1380px) {
  /* Menu Items links ausrichten */
  body #page-container .et_mobile_menu li a {
    text-align: left !important;
  }
  /* Sub-menu toggle icon */
  body #page-container ul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon::after {
    color: #fff !important;
    content: "3" !important;
  }
  body #page-container ul.et_mobile_menu li.menu-item-has-children.mobile-toggle-open > .mobile-toggle-icon::after {
    content: "2" !important;
  }
  /* Menu font-weight + font-size */
  body #page-container .et_pb_menu_0_tb_header.et_pb_menu ul li a {
    font-weight: 500 !important;
    font-size: 14px !important;
  }
}
/* Hero Bild begrenzte Hoehe unter 980px */
@media only screen and (max-width: 980px) {
  body #page-container .hero-sektion-start-column .hero-bg-image {
    width: 100% !important;
    max-height: 400px !important;
    object-fit: cover !important;
    object-position: top center !important;
  }
}

/* Immobilien Karten responsive */
@media only screen and (max-width: 1340px) {
  .oo-listobject {
    width: 48% !important;
  }
}
@media only screen and (max-width: 767px) {
  .oo-listobject {
    width: 100% !important;
  }
  .oo-listheadline h1 {
    font-size: 26px !important;
  }
}

/* Immobilien Karten: Text nicht abschneiden */
.oo-listtitle {
  height: auto !important;
  min-height: 60px;
}
.oo-listinfotableview .oo-listtd {
  word-break: break-word !important;
}

/* Plugin H1/H2 stylen */
.oo-listheadline h1,
.oo-listheadline h2 {
  font-size: 26px !important;
  color: #ddb980 !important;
  padding-top: 30px !important;
}

/* Portfolio Hero H1 einheitlich */
@media only screen and (max-width: 1280px) {
  body #page-container .hero-sektion .et_pb_text h1 {
    font-size: 32px !important;
  }
}
@media only screen and (max-width: 767px) {
  body #page-container .hero-sektion .et_pb_text h1 {
    font-size: 28px !important;
  }
}

/* Plugin H1 vizuell als H2 - SEO fix via JS */


/* Online-Bewertung: 5 Faktoren Blurbs — 2er Grid auf Mobile */
@media only screen and (max-width: 980px) {
  body.page-id-34044 #page-container .et_pb_section_1 .et_pb_row_inner_0 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
  }
  body.page-id-34044 #page-container .et_pb_section_1 .et_pb_row_inner_0 > .et_pb_column {
    width: 100% !important;
    margin: 0 !important;
  }
  body.page-id-34044 #page-container .et_pb_section_1 .et_pb_row_inner_1 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
  }
  body.page-id-34044 #page-container .et_pb_section_1 .et_pb_row_inner_1 > .et_pb_column {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* Online-Bewertung: Blurbs 1 Spalte unter 560px */
@media only screen and (max-width: 560px) {
  body.page-id-34044 #page-container .et_pb_section_1 .et_pb_row_inner_0,
  body.page-id-34044 #page-container .et_pb_section_1 .et_pb_row_inner_1 {
    grid-template-columns: 1fr !important;
  }
}

/* Blog: Featured Image Styling */
.single-post .et_post_meta_wrapper > img {
  border-radius: 15px !important;
  margin-top: 15px !important;
}
