:root {

  --color-primary: #f05858;
  --color-secondary: #ffb03a;
  --color-headline: #231f20;
  --color-text: #231f20;
  --color-white: #ffffff;
  --color-bg-grey: #f5f5f5;
  --color-bg-grey-alt: #e0e0e0;
  --color-bg-footer: #a6221e;

  --fs-body: clamp(1rem, 0.98rem + 0.10vw, 1.0625rem);
  --fs-small: clamp(0.875rem, 0.85rem + 0.08vw, 0.9375rem);
  --fs-h6: clamp(1rem, 0.98rem + 0.10vw, 1.0625rem);
  --fs-h5: clamp(1.05rem, 1.02rem + 0.15vw, 1.125rem);
  --fs-h4: clamp(1.15rem, 1.10rem + 0.25vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.18rem + 0.35vw, 1.40rem);
  --fs-h2: clamp(1.45rem, 1.30rem + 0.60vw, 1.75rem);
  --fs-h1: clamp(1.90rem, 1.65rem + 1.00vw, 2.30rem);

    /* =========================================
     LINE HEIGHTS
  ========================================= */

  --lh-body: 1.65;
  --lh-small: 1.5;
  --lh-h6: 1.40;
  --lh-h5: 1.40;
  --lh-h4: 1.35;
  --lh-h3: 1.30;
  --lh-h2: 1.25;
  --lh-h1: 1.15;
}

/* Size */
.header-logo svg {
  height: 30px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .header-logo svg {
    height: 20px;
  }
}

/* Color — hover on the <a> triggers the color change */
.header-logo a svg {
  color: #231f20;
  transition: color 0.3s ease;
}

.header-logo a:hover svg {
  color: #f05858;
}

img.myresponsive {
    width: 100%;
    height: auto;
}
.myroundimage {
    border-radius: 6px;
}
p.myowntext {
    text-align: left;
}
.owl-carousel.navstyle_circle .owl-nav div {
    color: #FFFFFF;
    background-color: #f05858;
}
.owl-carousel.navstyle_circle .owl-nav div:hover {
    color: #FFFFFF;
    background-color: #a6221e!important;
}
.mynewsclass li {
    margin-bottom: 1.5rem!important;
}

body {
  background-image: url("/wp-content/uploads/2020/05/background.jpg");
  height: 100%;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: contain;
}

.myvideocontainer  {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
    margin-bottom: 10px;
    margin-top: 5px;
}
.myvideocontainer iframe,
.video-container-start object,
.video-container-start embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.owl-carousel div.owl-dots {
    display: none!important;
}
@media (max-width: 610px) {
    .owl-carousel div.owl-dots {
        display: block!important;
    }
}

/* Wohungen CSS */
.hero-section {
    padding-block: 2rem;
    background: var(--color-content-bg-grad);
}

/* Tablet and Mobile (Default state) */
.hero-section .vc_column-inner > .wpb_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Swap the order on mobile/tablet */
.hero-section .vc_column-inner > .wpb_wrapper > *:nth-child(1) {
    order: 2; /* Moves the first item to the bottom */
}

.hero-section .vc_column-inner > .wpb_wrapper > *:nth-child(2) {
    order: 1; /* Moves the second item to the top */
}

/* Desktop (Reset order to normal) */
@media (min-width: 1025px) {
    .hero-section .vc_column-inner > .wpb_wrapper {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Resetting order for desktop layout */
    .hero-section .vc_column-inner > .wpb_wrapper > *:nth-child(1) {
        order: 0;
    }
    .hero-section .vc_column-inner > .wpb_wrapper > *:nth-child(2) {
        order: 0;
    }
}

.information-section {
    padding-block: 2rem;
    background: var(--color-bg-grey-alt, #e0e0e0);
}

.information-section .vc_column-inner>.wpb_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1025px) {
    .information-section .vc_column-inner>.wpb_wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
}
}

.gallery-section {
    padding-block: 2rem;
    background: var(--color-white, #ffffff);
}

.main-wohnungen-title {
    font-size: var(--fs-h2);
    margin-bottom: 0;
    font-weight: 700;
}

.main-wohnungen-subtitle {
    font-size: var(--fs-h3);
    margin-bottom: 0;
    font-weight: 700;
}

.main-wohnungen-content {
    font-size: var(--fs-body);
}

.fotogalerie-title {
    font-size: var(--fs-h3);
    margin-bottom: 0;
    font-weight: 700;
    text-align: center;
}

.main-wohnung-media img,
.wohnung-grid-media img {
    border-radius: 8px;
}

.main-wohnung-gallery .w-gallery-item,
.main-wohnung-gallery .w-gallery-item-img,
.main-wohnung-gallery .w-gallery-item img,
.main-wohnung-gallery .w-gallery-item-link {
  border-radius: 8px;
}

.main-section {
    padding-block: 2rem;
    background: var(--color-white, #ffffff);
}

.main-section .vc_column-inner > .wpb_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Swap the order on mobile/tablet */
.main-section .vc_column-inner > .wpb_wrapper > *:nth-child(1) {
    order: 1; /* Moves the first item to the bottom */
}

.main-section .vc_column-inner > .wpb_wrapper > *:nth-child(2) {
    order: 2; /* Moves the second item to the top */
}

/* Desktop (Reset order to normal) */
@media (min-width: 1025px) {
    .main-section .vc_column-inner > .wpb_wrapper {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Resetting order for desktop layout */
    .main-section .vc_column-inner > .wpb_wrapper > *:nth-child(1) {
        order: 0;
    }
    .main-section .vc_column-inner > .wpb_wrapper > *:nth-child(2) {
        order: 0;
    }
}

.wohnungen-section {
    padding-block: 2rem;
    background: var(--color-bg-grey-alt, #e0e0e0);
}

.main-footer-section {
    padding-block: 3rem;
    background: var(--color-primary, #f05858);
    color: var(--color-white, #ffffff);
}

.main-footer-section .vc_column-inner > .wpb_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

@media (min-width: 1025px) {
    .main-footer-section .vc_column-inner > .wpb_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}
}

.last-blogs-title, 
.last-blogs-title a {
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.25;
}

.last-blogs-title a:hover {
    color: var(--main-hover-color);
}

.last-blogs-meta {
    font-size: calc(var(--fs-small) * 0.8);
    font-weight: 300;
    line-height: 1.1;
}

.bottom-footer-section {
    padding-block: 0.4rem;
    background: var(--color-bg-footer, #a6221e);
    color: var(--color-white, #ffffff);
    text-align: center;
}

.blog-news-section {
    background: var(--color-bg-grey-alt, #e0e0e0);
    padding-block: 3rem;
}

/* Card white background */
.blog-card-item {
    background-color: var(--color-white, #ffffff);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

/* Image fills full width, no gap above */
.blog-card-media img {
    border-radius: 8px 8px 0 0;
}

.blog-card-title {
    margin-inline: 0.8rem;
}

/* Excerpt padding */
.blog-card-excerpt {
    margin-inline: 0.8rem;
}

/* CTA — pinned to bottom, aligned with excerpt */
.blog-card-cta {
    align-self: flex-start;
    margin-top: auto;
    margin-left: 0.8rem;
    margin-bottom: 0.6rem;
    border: none !important;
    box-shadow: none !important;
}

.blog-aktuelles-title {
    text-align: center;
}

.ronco-ascona-section {
    background: var(--color-white, #ffffff);
    padding-block: 3rem;
}

.ronco-ascona-inner-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Reverse: image first on mobile/tablet only */
.ronco-ascona-inner-wrapper.reverse .w-vwrapper:last-child {
    order: -1;
}

@media (min-width: 1025px) {
    .ronco-ascona-inner-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    /* Reset order on desktop */
    .ronco-ascona-inner-wrapper.reverse .w-vwrapper:last-child {
        order: 0;
    }
}

.ronco-ascona-inner-wrapper .w-image-h img {
    border-radius: 8px;
}

.single-blog-section {
    padding-block: 3rem;
}

.single-blog-section .vc_column-inner > .wpb_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

@media (min-width: 1025px) {
    .single-blog-section .vc_column-inner > .wpb_wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}
}

.single-blog-media {
    border-radius: 10px;
}

.single-blog-meta {

}

.single-blog-content {

}

.category-section {
    padding-block: 3rem;
}

.category-inner-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1025px) {
    .category-inner-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .category-inner-wrapper > .w-vwrapper:nth-child(2) {
        order: -1;
    }
}

.category-media {
    border-radius: 10px;
}

/* Category filter */
.category-filter .w-filter-item.values_as_btn.btns_in_row_auto .w-filter-item-values {
  justify-content: flex-start !important;
}

.category-filter .w-filter.layout_ver .w-filter-item.btns_in_row_auto .w-filter-item-value,
.category-filter .w-filter-item.btns_in_row_auto .w-filter-item-value {
  flex-grow: 0 !important;
}

.category-filter .w-filter-item {
  width: auto !important;
}

.category-filter .w-filter-item-content {
  width: auto !important;
}

.category-filter .w-filter-item-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start !important;
  width: auto !important;
}

.category-filter .w-filter-item-value {
  flex-grow: 0 !important;
  width: auto !important;
  padding: 0 !important;
  background: none !important;
}

.category-filter .w-filter-item-value label {
  display: inline-flex;
  width: auto;
  font-style: normal;
  text-transform: none;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0em;
  padding: 0.8em 1.2em;
  border-radius: var(--site-border-radius);
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

/* Active button */
.category-filter .w-filter-item-value:has(input:checked) label {
  background: var(--color-primary);
  border-color: transparent;
  color: var(--color-white) !important;
}

/* Hover on inactive */
.category-filter .w-filter-item-value:not(:has(input:checked)) label:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

.idn-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 2rem;
}

/* always 2 columns */
.idn-highlights--double {
  grid-template-columns: 1fr 1fr;
}

/* 2 columns only on desktop */
@media (min-width: 1024px) {
  .idn-highlights--single {
    grid-template-columns: 1fr;
  }
}

.idn-highlights__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
  margin-bottom: 0 !important;
  font-size: calc(var(--fs-small) * 0.9);
}

.idn-highlights__item .fal.fa-check-circle {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: currentColor;
}

.idn-highlights--single .idn-highlights__item {
  font-size: var(--fs-body);
  margin-left: 1.2rem;
}