html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  margin: 0;
  font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* Globale Link-Farbe wie im Original */

a {
    color: #4e8bcf;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
    text-decoration: none;
}

a:hover {
  color: #4e8bcf;
}

.clear-left {
  clear: left;
}

/* Globale Abschnittsabstände wie im Original */

section {
  padding: 3rem 0 !important;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Ubuntu", "Segoe UI", Arial, sans-serif;
    text-transform: uppercase;
    color: #6898af;
    font-weight: 400;
}

h1 {
  letter-spacing: 4px;
  font-size: 22px;
}

h2 {
  font-size: 1.75rem;
}

/* Navigation wie Original */

#mainNav {
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px #0000004f !important;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

#mainNav .navbar-brand {
  font-weight: 700;
  text-transform: uppercase;
  color: #4e8bcf;
}

#mainNav .navbar-brand:focus,
#mainNav .navbar-brand:hover {
  color: #4e8bcf;
}

#mainNav .navbar-nav > li.nav-item > a,
#mainNav .navbar-nav > li.nav-item > a:focus,
#mainNav .navbar-nav > li.nav-item > a:active {
  display: block;
  padding: 0.5rem 0.5rem;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  font-family: "Ubuntu", sans-serif;
  color: #6898af !important;
}

#mainNav .navbar-nav > li.nav-item > a:hover,
#mainNav .navbar-nav > li.nav-item > a:focus:hover {
  color: #4e8bcf !important;
}

.navbar-nav .dropdown-menu {
    background-color: #6898af !important;
    top: calc(100% - 2px);
}

    .navbar-nav .dropdown-menu .nav-item a {
        display: block;
        width: 100%;
        padding: 0.25rem 1.5rem;
        clear: both;
        font-weight: 400;
        color: #ffffff;
        text-align: inherit;
        white-space: nowrap;
        background-color: transparent;
        border: 0;
        text-decoration: none;
        font-size: 13px;
    }

.navbar-nav .dropdown-menu .nav-item a:hover {
  color: #212529 !important;
  background-color: #ffffff;
}

/* Buttons / Farben wie Original */

.bg-primary,
.btn-success,
.btn-success:hover,
.btn-primary,
.btn-primary:hover,
.btn-secondary {
  background-color: #6898af !important;
}

    .btn-primary,
    .btn-primary:hover,
    .btn-secondary,
    .btn-secondary:hover,
    .btn-success,
    .btn-success:hover {
        color: #ffffff !important;
        font-weight: normal;
        padding: 10px 40px;
        border: 0 none;
    }

/* Textfarbe wie im Original */

.text-primary {
  color: #4e8bcf !important;
}

/* Startseite URLAUBSART – Hero identisch */

header.masthead {
  min-height: 650px;
  position: relative;
  background-image: url("/img/Startseite/bg_start_schlei.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

header.masthead .home_container {
  top: 300px;
  position: absolute;
  left: calc(50% - 600px);
  width: 1200px;
}

header.masthead .home_container_text {
  background-color: rgba(255, 255, 255, 0.6);
  width: 800px;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 50px;
}

header.masthead .home_suche {
  background-color: rgba(255, 255, 255, 0.6);
  width: fit-content;
  width: -moz-fit-content;
  width: -webkit-fit-content;
  display: table;
  border-radius: 10px;
  margin: 0 auto;
}

    header.masthead h1 {
        font-size: 2rem;
        color: #6898af !important;
        font-weight: 400;
    }

    header.masthead p {
        margin: 0;
    }

@media (min-width: 768px) {
  header.masthead p {
    font-size: 1.15rem;
  }
}

@media (min-width: 992px) {
  header.masthead {
    height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
  }
  header.masthead h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 1700px) {
  header.masthead h1 {
    font-size: 3rem;
  }
}

.home-intro h2 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.home-intro p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Intro-Text unter Hero wie Original */

.txt p {
  margin-top: 15px;
}

/* Jumbotron-Ersatz (Bootstrap 4 Stil) */

.jumbotron {
  padding: 3rem 0;
  margin-bottom: 0;
  background-color: #f7f5f4;
  border-radius: 0;
}

/* Objektliste – Filterspalte und Ergebnisliste wie Original */

.listenfilter .form-inputs,
.checkies.dropdown {
  display: inline-block;
  margin-bottom: 10px;
  width: 100%;
}

.listenfilter .form-inputs .label,
.checkies.dropdown label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 2px;
  color: #666666;
}

.objliste .obj-row {
  border: 1px solid #e0e0e0;
}

.objliste h1 {
  font-size: 1.5rem;
}

.objliste .fewo_kurztext {
  margin-top: 10px;
  min-height: 75px;
  max-height: 75px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.objliste .fewo_infos {
  margin-bottom: 15px;
  font-weight: bold;
}

/* Objektliste: Teaserbilder immer gleich groß */
.objliste .obj-row .obj-list-image {
  height: 220px;
  object-fit: cover;
  width: 100%;
  display: block;
}

@media (max-width: 767.98px) {
  .objliste .obj-row .obj-list-image {
    height: 160px;
  }
}

/* Detailseite: Objekt-Galerie mit fester Höhe und Cover-Bildern */

.object-gallery-wrapper {
  position: relative;
  width: 100%;
  /* einheitliche, gut sichtbare Höhe auf Desktop */
  height: 500px;
  overflow: hidden;
}

.object-header-card .object-gallery-wrapper {
  margin-top: 15px;
  margin-bottom: 0;
  border-radius: 4px;
}

@media (max-width: 767.98px) {
  .object-gallery-wrapper {
    height: 220px;
  }
}

.object-gallery-wrapper .carousel-inner,
.object-gallery-wrapper .carousel-item {
  height: 100%;
}

.object-gallery-wrapper .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Vollbild-Galerie (Lightbox) */

.object-gallery-lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1055;
  display: none;
}

.object-gallery-lightbox.show {
  display: block;
}

.object-gallery-lightbox .carousel,
.object-gallery-lightbox .carousel-inner,
.object-gallery-lightbox .carousel-item {
  height: 100%;
}

.object-gallery-lightbox img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.object-gallery-lightbox-thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
}

.object-gallery-lightbox-thumb {
  width: 70px;
  height: 50px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.object-gallery-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.object-gallery-lightbox-thumb.active {
  border-color: #ffffff;
}

/* Objekt-Detailseite – Layout ähnlich Referenz, modernisiert */

.object-header-card {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 18px 22px;
  border-left: 5px solid #6898af;
}

.object-header-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.object-header-meta {
  font-size: 0.9rem;
  color: #777777;
}

.object-header-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999999;
}

.object-price-card {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 18px 18px 16px;
}

.object-price-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: #6898af;
}

.object-price-meta {
  font-size: 1rem;
  color: #555555;
}

.object-price-teaser {
  font-size: 1rem;
  color: #333333;
  line-height: 1.45;
}

.object-booking-buttons .btn {
  margin-bottom: 6px;
}

/* Buchung: Vollbild-Overlay mit iframe (Booking-Ansicht) */

.object-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1070;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.object-booking-modal.show {
  display: flex;
}

.object-booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
}

.object-booking-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1100px, calc(100vw - 24px));
  max-height: min(92vh, 960px);
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.object-booking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.object-booking-modal-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #333333;
}

.object-booking-modal-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 0.85;
  color: #666666;
  cursor: pointer;
  padding: 4px 8px;
}

.object-booking-modal-close:hover {
  color: #333333;
}

.object-booking-modal-body {
  flex: 1;
  min-height: 0;
  position: relative;
}

.object-booking-modal-iframe {
  display: block;
  width: 100%;
  height: min(85vh, 880px);
  min-height: 420px;
  border: 0;
}

.object-contact-card {
  background-color: #f9f9f9;
  border-radius: 4px;
  padding: 10px 12px;
  text-align: center;
  margin-bottom: 12px;
}

.object-contact-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.object-contact-card img {
  max-width: 250px;
  height: auto;
  margin-bottom: 8px;
}

.object-contact-card p {
  margin-bottom: 2px;
  font-size: 0.85rem;
}

.object-price-info {
  text-align: left;
}

/* Beim geöffneten Vollbild-Carousel oder Buchungs-Overlay Scrollen im Hintergrund verhindern */
body.object-lightbox-open,
body.object-booking-modal-open {
  overflow: hidden;
}

.object-section {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 20px;
  margin-bottom: 20px;
}

.object-section-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.object-amenities-table th,
.object-amenities-table td {
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
  vertical-align: top;
}

.object-amenities-table th {
  width: 30%;
  font-weight: 600;
}

.object-location-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.object-location-pill {
  background-color: #f1f1f1;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.object-amenities-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.object-amenity-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6fbff, #edf5fa);
  border: 1px solid #d7e4f0;
  font-size: 0.8rem;
  color: #35546a;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.object-amenity-chip::before {
  content: "•";
  font-size: 0.9rem;
  margin-right: 4px;
  color: #6898af;
}

.object-gallery-lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
  z-index: 1060;
}

.btn-outline-primary{
  color: #6898af !important;
  border-color: #6898af !important;
}
.btn-outline-primary:hover{
  background-color: #6898af !important;
  color: #ffffff !important;
}

/* Kartenlayout auf kleineren Bildschirmen verbessern */
@media (max-width: 767.98px) {
  .objliste .obj-row {
    text-align: left;
  }

  .objliste .obj-row .col-md-4,
  .objliste .obj-row .col-md-5,
  .objliste .obj-row .col-md-3 {
    margin-bottom: 10px;
  }
}

.home-service {
  background-color: #f8f9fa;
}

.service-box {
  background-color: transparent;
  padding: 20px 10px;
  border-radius: 5px;
  text-align: center;
}

    .service-box h3 {
        margin-top: 20px;
        font-size: 18px;
        font-weight: 600;
        color: #6898af;
    }

.service-icon-img {
  background-color: #4e8bcf;
  border-radius: 50%;
  padding: 15px;
}

.bg_kontaktlink {
  background-image: url("/img/kontakt_bg.jpg");
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

.kontakt_box {
  background-color: #ffffffd4;
}

/* Kontaktbox-Innenlayout wie im Original (float-basiert) */

.kontakt_box .col-lg-2,
.kontakt_box .col-lg-6,
.kontakt_box .col-lg-4 {
  float: left;
}

@media (min-width: 992px) {
  .kontakt_box .col-lg-2 {
    width: 16.6667%;
  }

  .kontakt_box .col-lg-6 {
    width: 50%;
    padding-right: 30px;
  }

  .kontakt_box .col-lg-4 {
    width: 33.3333%;
  }
}

/* Kontaktseite */
.kontakt-seite .kontakt-ueberschrift {
  color: #6898af;
  margin-bottom: 2rem;
}

.kontakt-form .form-control {
  border: 1px solid #ced4da;
}

/* Rechtstexte (Impressum, Datenschutz, AGB) */
.legal-content .legal-nav a {
  margin-right: 1.25rem;
  font-weight: 600;
}

.legal-content .legal-section {
  scroll-margin-top: 90px;
}

.legal-content .legal-heading {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content .legal-subheading {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.legal-content p.legal-lines {
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.legal-content p.legal-lines + .legal-subheading,
.legal-content p.legal-lines + .legal-heading {
  margin-top: 1.25rem;
}

/* Footer wie Original */

.footer1 {
  padding: 30px 0 0 0;
  font-size: 14px;
}

    .footer1,
    .footer1 a,
    .footer2,
    .footer2 a {
        font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
        color: #6898af !important;
    }

.footer1 .widget {
  margin-bottom: 30px;
}

    .footer1 .widget-body,
    .footer1 .widget-body a {
        font-size: 22px;
        color: #6898af !important;
    }

    .footer1 .widget-kontakt a,
    .footer1 .entry-meta a {
        color: #6898af !important;
    }

    .footer1 .widget-title {
        font-size: 20px;
        font-weight: 400;
        margin: 0 0 20px;
        color: #6898af !important;
    }

    .footer1 .widget-link a {
        border: solid 1px #666666;
        padding: 3px 15px;
        display: inline-block;
        margin-bottom: 5px;
        margin-right: 5px;
        color: #6898af !important;
    }

.footer1 .entry-meta {
  border-top: 1px solid #666666;
  border-bottom: 1px solid #cccccc;
  margin: 0 0 35px 0;
  padding: 2px 0;
  color: #888888;
  font-size: 0.75rem;
}

.footer1 .entry-meta .meta-in {
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  padding: 10px 0;
}

.footer1 i {
  margin-right: 5px;
}

/* Font-Awesome-Icons im Footer sichtbar halten (Schrift nicht überschreiben) */
#footer .fa {
  font-family: "FontAwesome" !important;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  line-height: 1;
}

/* Override wie in urlaubsart.css: Widgets ohne zusätzlichen Abstand nach unten */
.footer1 .widget {
  margin-bottom: 0;
}

.footer2 {
    padding: 15px 0;
    color: #ffffff !important;
    font-size: 12px;
}

.footer2 a {
  color: #ffffff;
}

.footer2 a:hover {
  color: #ffffff;
}

    .footer2 p {
        margin: 0;
        font-size: 16px !important;
    }

/* Favoriten-Anzeige im Header ("0 Objekte") */

#mainNav .merkerlink::before {
  content: "❤";
  font-size: 16px;
  color: #ffffff;
}

#mainNav .merkerlink {
  position: relative;
  background-color: #4e8bcf;
  padding: 5px 10px;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
}

#mainNav .merkerlink .fewo_merk_value {
  font-weight: bold;
  margin-left: 5px;
  margin-right: 5px;
  color: #ffffff;
}