/* ==========================================================================
   Raurus – Main Stylesheet v1.0
   Alpenhof Wildschönau · raurus.eu
   ========================================================================== */

/* ── Variables ── */
:root {
  --transition: 0.3s ease;
  --shadow-sm: 0 2px 12px rgba(43,37,32,0.06);
  --shadow-md: 0 8px 30px rgba(43,37,32,0.12);
  --shadow-lg: 0 16px 48px rgba(43,37,32,0.16);
}

/* ── Prevent horizontal overflow on mobile ── */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* ── Self-hosted Fonts (DSGVO) ── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-600.woff2') format('woff2');
}
/* Playfair Display — high-contrast, dramatic display serif */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-display-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-700.woff2') format('woff2');
}
/* Marcellus — Roman-inspired classical, single weight only */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/marcellus-regular.woff2') format('woff2');
}
/* Cardo — book-style, soft classical serif */
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cardo-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cardo-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { margin: 0; padding: 0; }

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--wp--preset--color--primary);
  color: #fff;
  padding: 0.5em 1em;
  font-size: 0.9rem;
  z-index: 99999;
  text-decoration: none;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}
img, video { max-width: 100%; height: auto; display: block; }

/* ── Spacing resets (no gaps between full-width sections) ── */
.wp-site-blocks > *,
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-group.alignfull + .wp-block-group.alignfull,
.wp-block-cover.alignfull + .wp-block-group.alignfull,
.wp-block-group.alignfull + .wp-block-cover.alignfull { margin-top: 0 !important; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  border-bottom: 1px solid var(--wp--preset--color--muted);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(250,247,242,0.92) !important;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(1rem, 4vw, 3rem);
  align-items: center;
}

.site-header__right {
  align-items: center;
}

.site-header__logo img {
  height: 52px;
  width: auto !important;
  max-width: none !important;
}

/* Nav – custom shortcode-based navigation */
.raurus-nav {
  display: flex;
  align-items: center;
}

.raurus-nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Logo inside nav list – only visible in mobile overlay */
.raurus-nav__logo {
  display: none;
}

.raurus-nav__item a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--wp--preset--color--text);
  text-decoration: none;
  transition: color var(--transition);
}

.raurus-nav__item a:hover {
  color: var(--wp--preset--color--primary);
}

/* Active nav link – highlighted in Weinrot */
.raurus-nav__item.active a {
  color: var(--wp--preset--color--primary) !important;
}

/* Buchen / Book Now CTA */
.raurus-nav__item--cta a {
  background: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--white) !important;
  padding: 0.55em 1.3em !important;
  border-radius: 2px;
  transition: background var(--transition);
}

.raurus-nav__item--cta a:hover {
  background: var(--wp--preset--color--accent) !important;
  color: var(--wp--preset--color--text) !important;
}

/* Hamburger toggle – hidden on desktop */
.raurus-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10000;
  order: 2;
}

.raurus-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wp--preset--color--text);
  transition: all var(--transition);
}

.raurus-nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.raurus-nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.raurus-nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.lang-switch__link {
  color: #8C8178;
  text-decoration: none;
  transition: color var(--transition);
}

.lang-switch__link.active,
.lang-switch__link:hover {
  color: var(--wp--preset--color--primary);
}

.lang-switch__sep {
  color: #B5ADA6;
}


/* ==========================================================================
   HERO SLIDESHOW
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,14,10,0.25) 0%,
    rgba(20,14,10,0.45) 60%,
    rgba(20,14,10,0.55) 100%
  );
}

.hero__slide.active {
  opacity: 1;
  animation: kenburns 8s ease forwards;
}

/* Photo copyright credit — single fixed overlay at hero level (NOT inside
   the kenburns-scaled .hero__slide), so the credit text stays perfectly
   still while the image scales. Text is swapped by JS per active slide. */
.hero__credit {
  position: absolute;
  right: 0.9rem;
  bottom: 0.6rem;
  z-index: 3;
  padding: 0.15rem 0.55rem;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--wp--preset--font-family--sans, system-ui);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  pointer-events: none;
  white-space: nowrap;
  max-width: 70vw;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
}
@media (max-width: 600px) {
  .hero__credit {
    font-size: 0.6rem;
    right: 0.5rem;
    bottom: 0.4rem;
    padding: 0.1rem 0.4rem;
  }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 820px;
}

.hero__tagline {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin: 0 0 1rem;
}

.hero__title {
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 0.8rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero__subtitle {
  font-family: var(--wp--preset--font-family--serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  margin: 0 0 2.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__btn {
  display: inline-block;
  padding: 0.85em 2.2em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all var(--transition);
}

.hero__btn--primary {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--text);
}

.hero__btn--primary:hover {
  background: var(--wp--preset--color--primary);
  color: #fff;
  transform: translateY(-2px);
}

.hero__btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.hero__btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Dots */
.hero__dots {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.hero__dot:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

.hero__dot.active {
  background: var(--wp--preset--color--accent);
  transform: scale(1.35);
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.wp-block-button__link {
  transition: all var(--transition);
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Default (Weinrot) hover */
.wp-block-button:not(.is-style-outline):not(.is-style-accent) .wp-block-button__link:hover {
  background: #5e1623 !important;
}

/* Accent (Gold) */
.wp-block-button.is-style-accent .wp-block-button__link {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--text);
}

.wp-block-button.is-style-accent .wp-block-button__link:hover {
  background: var(--wp--preset--color--primary);
  color: #fff;
}

/* Outline */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid currentColor;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--primary);
  color: #fff !important;
  border-color: var(--wp--preset--color--primary);
}

.wp-block-buttons {
  gap: 1rem !important;
}

/* ==========================================================================
   CARDS (front-page apartment grid)
   ========================================================================== */
.wp-block-group.is-style-card {
  background: var(--wp--preset--color--white);
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.wp-block-group.is-style-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.wp-block-group.is-style-card > figure.wp-block-image {
  margin: 0;
  flex-shrink: 0;
}

.wp-block-group.is-style-card > figure.wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Front page: Apartments & Region (wider, larger imagery on desktop) ── */
.section-apartments .wp-block-group.is-style-card,
.section-region-highlights .wp-block-column {
  border-radius: 12px;
}

.section-apartments .wp-block-group.is-style-card {
  box-shadow: 0 4px 24px rgba(43, 37, 32, 0.08);
  border: 1px solid rgba(43, 37, 32, 0.06);
}

.section-apartments .wp-block-group.is-style-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(43, 37, 32, 0.12);
}

.section-region-highlights .wp-block-columns {
  align-items: stretch;
}

.section-region-highlights .wp-block-column {
  display: flex;
  flex-direction: column;
  background: var(--wp--preset--color--white);
  box-shadow: 0 4px 24px rgba(43, 37, 32, 0.07);
  border: 1px solid rgba(43, 37, 32, 0.05);
  overflow: hidden;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.section-region-highlights .wp-block-column:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(43, 37, 32, 0.11);
}

.section-region-highlights .wp-block-column figure.wp-block-image {
  margin: 0;
}

.section-region-highlights .wp-block-image.is-style-rounded img {
  border-radius: 0;
}

.section-region-highlights .wp-block-column h3 {
  margin-top: 1.1rem;
  margin-bottom: 0.5rem;
  padding-inline: 1.35rem;
}

.section-region-highlights .wp-block-column p {
  padding-inline: 1.35rem;
  margin-top: 0;
  color: rgba(43, 37, 32, 0.78);
  line-height: 1.65;
}

.section-region-highlights .wp-block-column p:last-child {
  margin-bottom: 1.35rem;
  padding-bottom: 0.15rem;
}

.section-region-highlights .wp-block-column a {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  transition: color var(--transition), gap var(--transition);
}

.section-region-highlights .wp-block-column a:hover {
  color: var(--wp--preset--color--accent);
  gap: 0.55em;
}

@media (min-width: 1025px) {
  .section-apartments .wp-block-group.is-style-card figure.wp-block-image img {
    min-height: 300px;
    object-fit: cover;
  }

  .section-region-highlights .wp-block-column figure.wp-block-image img {
    min-height: 300px;
    width: 100%;
    object-fit: cover;
  }

  .section-apartments .wp-block-columns,
  .section-region-highlights .wp-block-columns {
    gap: 2rem 2.25rem !important;
  }
}

/* Equal-height columns with cards */
.wp-block-columns:has(.is-style-card) {
  align-items: stretch;
}

.wp-block-columns:has(.is-style-card) > .wp-block-column {
  display: flex;
}

/* ==========================================================================
   IMAGES
   ========================================================================== */
.wp-block-image.is-style-rounded img {
  border-radius: 4px;
}

/* ==========================================================================
   SEPARATOR – Ornament
   ========================================================================== */
.wp-block-separator.is-style-ornament {
  border: none;
  text-align: center;
  overflow: visible;
  height: 1.5rem;
}

.wp-block-separator.is-style-ornament::after {
  content: "\2726";
  color: var(--wp--preset--color--accent);
  font-size: 1.2rem;
}

/* ==========================================================================
   COVER BLOCK
   ========================================================================== */
.wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}


/* ==========================================================================
   PAGE HERO (subpage title banner)
   ========================================================================== */
.page-hero {
  text-align: center;
}

.page-hero h1,
.page-hero .wp-block-post-title {
  max-width: 700px;
  margin-inline: auto;
}

/* ==========================================================================
   PAGE CONTENT
   ========================================================================== */
.wp-block-post-content {
  max-width: 100%;
}

.wp-block-post-content > .alignfull {
  max-width: none;
  width: 100%;
}

/* Legacy raw-HTML pages (Datenschutz, Impressum, AGB) — content is just
   <h2>, <p>, <strong>, <div>, <ul> directly inside .wp-block-post-content
   with no wp-block-group wrapper. Constrain width and add horizontal
   padding so they're not flush against the screen edge on mobile. */
.wp-block-post-content > h1,
.wp-block-post-content > h2,
.wp-block-post-content > h3,
.wp-block-post-content > h4,
.wp-block-post-content > h5,
.wp-block-post-content > h6,
.wp-block-post-content > p,
.wp-block-post-content > strong,
.wp-block-post-content > em,
.wp-block-post-content > ul,
.wp-block-post-content > ol,
.wp-block-post-content > pre,
.wp-block-post-content > blockquote,
.wp-block-post-content > figure:not(.wp-block-image),
.wp-block-post-content > div:not([class*="wp-block"]):not(.alignfull):not(.alignwide) {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

/* ==========================================================================
   APARTMENT CARDS (detail page)
   ========================================================================== */
.apartment-card {
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.apartment-card:hover {
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   EASYBOOKING WIDGET — clearfix + minimal theming
   The widget uses old Bootstrap-2 floats (.EBCTG-span5 / .EBCTG-span7).
   Without clearfix the parent article collapses to 0 height and the
   following section overlaps the widget visually. Fix: clear floats,
   don't touch layout otherwise.
   ========================================================================== */
#ebCategories {
  max-width: 1200px;
  margin: 2rem auto 0;
  clear: both;
  /* display: flow-root establishes a new block formatting context,
     which contains the widget's floats without needing clearfix. */
  display: flow-root;
}

/* Also flow-root on each apartment article + row */
#ebCategories .EBCTG-onecat,
#ebCategories .EBCTG-row-fluid,
#ebCategories .EBCTG-eb-catlist-wrap {
  display: flow-root;
  position: relative;
}

/* Spacing between articles */
#ebCategories .EBCTG-onecat {
  margin-bottom: 1.5rem;
}
/* Last apartment shouldn't have big bottom margin — Preisinformationen follows */
#ebCategories .EBCTG-onecat:last-child {
  margin-bottom: 0.5rem;
}

/* Primary buttons: Anfrage / Buchen / Details */
#ebCategories .EBCTG-booking-link,
#ebCategories .EBCTG-enquiry-link,
#ebCategories .EBCTG-details-link {
  background-color: var(--wp--preset--color--primary) !important;
  background-image: none !important;
  border-color: var(--wp--preset--color--primary) !important;
  color: #fff !important;
}
#ebCategories .EBCTG-booking-link:hover,
#ebCategories .EBCTG-enquiry-link:hover,
#ebCategories .EBCTG-details-link:hover {
  background-color: #5d1422 !important;
  border-color: #5d1422 !important;
}

/* Outline buttons: Preise anzeigen / Grundriss / Verfügbarkeit */
#ebCategories .EBCTG-prices-link,
#ebCategories .EBCTG-availability-link,
#ebCategories .EBCTG-layout-link {
  background-color: transparent !important;
  background-image: none !important;
  border-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--primary) !important;
}
#ebCategories .EBCTG-prices-link:hover,
#ebCategories .EBCTG-availability-link:hover,
#ebCategories .EBCTG-layout-link:hover {
  background-color: var(--wp--preset--color--primary) !important;
  color: #fff !important;
}

.apartment-card .wp-block-image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 4px;
}

/* Clickable apartment images */
.apartment-card .wp-block-image {
  cursor: pointer;
  position: relative;
}

.apartment-card .wp-block-image::after {
  content: '';
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
  /* SVG expand/fullscreen icon */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}

.apartment-card .wp-block-image:hover::after {
  opacity: 1;
  transform: scale(1.08);
}

/* Hidden gallery inside apartment cards */
.apartment-card .wp-block-gallery.apartment-gallery {
  display: none !important;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.raurus-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

.raurus-lightbox.open {
  display: flex;
}

.raurus-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  transition: opacity 0.3s ease;
}

.raurus-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 100000;
  padding: 0.5rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.raurus-lightbox__close:hover {
  opacity: 1;
}

.raurus-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 100000;
}

.raurus-lightbox__nav:hover {
  background: rgba(255,255,255,0.3);
}

.raurus-lightbox__nav--prev { left: 1.5rem; }
.raurus-lightbox__nav--next { right: 1.5rem; }

.raurus-lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* Hide nav arrows when only 1 image */
.raurus-lightbox[data-total="1"] .raurus-lightbox__nav,
.raurus-lightbox[data-total="1"] .raurus-lightbox__counter {
  display: none;
}

@media (max-width: 781px) {
  .raurus-lightbox__nav { width: 40px; height: 40px; font-size: 1.1rem; }
  .raurus-lightbox__nav--prev { left: 0.75rem; }
  .raurus-lightbox__nav--next { right: 0.75rem; }
}

/* ==========================================================================
   SCROLL-REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(.22,.61,.36,1),
              transform 0.55s cubic-bezier(.22,.61,.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.04s; }
.reveal--delay-2 { transition-delay: 0.09s; }
.reveal--delay-3 { transition-delay: 0.14s; }
.reveal--delay-4 { transition-delay: 0.19s; }
.reveal--delay-5 { transition-delay: 0.24s; }
.reveal--delay-6 { transition-delay: 0.29s; }

/* ==========================================================================
   SCROLL-TO-TOP
   ========================================================================== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--wp--preset--color--accent);
  transform: translateY(-3px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 0 !important;
}

.site-footer a {
  color: var(--wp--preset--color--text);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--wp--preset--color--primary);
}

.footer-logo img {
  height: 44px;
  width: auto !important;
  max-width: none !important;
}

/* ==========================================================================
   BOOKING WIDGET
   ========================================================================== */
.booking-widget {
  max-width: 100%;
  overflow-x: auto;
}

/* ==========================================================================
   FAMILY SLIDER (Über uns)
   ========================================================================== */
.family-slider {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.family-slider__track {
  display: flex;
  transition: transform 0.5s ease;
}

.family-slider__slide {
  min-width: 100%;
  position: relative;
}

.family-slider__slide img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  display: block;
  background: #3B2A20;
}

/* Region slider variant: constrained width, landscape cover fit */
.region-slider {
  max-width: 1400px;
  width: calc(100% - 2rem);
  margin: 0 auto var(--wp--preset--spacing--md) auto;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}
.region-slider .family-slider__slide img {
  aspect-ratio: 21/9;
  object-fit: cover;
  background: transparent;
}
.region-slider .family-slider__caption {
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
}
.region-slider .family-slider__nav {
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
}
@media (max-width: 781px) {
  .region-slider {
    width: calc(100% - 1rem);
    margin-bottom: var(--wp--preset--spacing--sm);
  }
  .region-slider .family-slider__slide img {
    aspect-ratio: 4/3;
  }
  .region-slider .family-slider__caption {
    font-size: 0.85rem;
    padding: 1.25rem 1rem 0.85rem;
  }
  .region-slider .family-slider__nav {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

.family-slider__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.5rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  font-family: var(--wp--preset--font-family--serif);
  font-style: italic;
  font-size: 0.9rem;
}

/* Photo copyright credit — top-right corner of each region slide */
.family-slider__credit {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  z-index: 3;
  padding: 0.15rem 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--wp--preset--font-family--sans, system-ui);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 1.4rem);
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .family-slider__credit {
    font-size: 0.58rem;
    top: 0.4rem;
    right: 0.4rem;
  }
}

.family-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.family-slider__nav:hover {
  background: var(--wp--preset--color--accent);
}

.family-slider__nav--prev { left: 0.75rem; }
.family-slider__nav--next { right: 0.75rem; }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form__field {
  margin-bottom: 0.5rem;
}

.contact-form__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text);
  margin-bottom: 0.35rem;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--wp--preset--color--muted);
  border-radius: 3px;
  background: var(--wp--preset--color--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--wp--preset--color--text);
  transition: border-color var(--transition);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary);
}

.contact-form__note {
  font-size: 0.75rem;
  color: #7A7068;
  margin: 0.5rem 0 1rem;
}

.contact-form__submit {
  display: inline-block;
  padding: 0.75em 2.5em;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  border: none;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.contact-form__submit:hover {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--text);
  transform: translateY(-2px);
}

.contact-form__msg {
  padding: 1rem 1.25rem;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-form__msg--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.contact-form__msg--error {
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

@media (max-width: 600px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LEGACY CLEANUP
   ========================================================================== */
.wpb_wrapper, .vc_row, .vc_column_container {
  all: unset;
  display: block;
}

/* ==========================================================================
   MOBILE NAV OVERLAY (appended to body via JS)
   ========================================================================== */
.raurus-nav-overlay {
  display: none;
}

.raurus-nav-overlay.open {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--wp--preset--color--background);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 10000;
  padding: 2rem;
  list-style: none;
  margin: 0;
}

.raurus-nav-overlay__logo {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.raurus-nav-overlay__logo img {
  height: 48px;
  width: auto;
}

.raurus-nav-overlay__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--wp--preset--color--text);
  z-index: 10001;
  line-height: 1;
  padding: 0.5rem;
}

.raurus-nav-overlay a {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wp--preset--color--text);
  transition: color var(--transition);
}

.raurus-nav-overlay a:hover {
  color: var(--wp--preset--color--primary);
}

.raurus-nav-overlay .nav-overlay-cta a {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white) !important;
  padding: 0.7em 2em;
  border-radius: 2px;
}

.raurus-nav-overlay .nav-overlay-cta a:hover {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--text) !important;
}

/* ==========================================================================
   COLUMNS – IMAGE HEIGHT MATCHING TEXT
   ========================================================================== */
/* Stretch columns so image fills full height beside text */
.wp-block-columns.are-vertically-aligned-center > .wp-block-column > .wp-block-image,
.wp-block-columns.are-vertically-aligned-center > .wp-block-column > figure.wp-block-image {
  height: 100%;
}

.wp-block-columns.are-vertically-aligned-center > .wp-block-column > .wp-block-image img,
.wp-block-columns.are-vertically-aligned-center > .wp-block-column > figure.wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

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

/* ── Tablet (iPad Mini 768px, iPad 820px, up to 1024px) ── */
@media (max-width: 1024px) {

  /* ── Mobile header layout ── */
  .site-header__right {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-direction: row-reverse !important; /* hamburger far right, lang-switch left of it */
  }

  .raurus-nav {
    display: flex;
    align-items: center;
  }

  /* Show hamburger */
  .raurus-nav__toggle {
    display: flex;
  }

  /* Hide desktop nav list – fullscreen overlay when open */
  .raurus-nav__list {
    display: none;
  }

  .raurus-nav__toggle {
    position: relative;
    z-index: 10001;
  }

  /* Nav list stays hidden on tablet/mobile — overlay is built by JS */
  .raurus-nav__list {
    display: none !important;
  }

  /* Stack columns on tablets */
  .wp-block-columns:not(.is-not-stacked-on-mobile) {
    flex-wrap: wrap !important;
  }

  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* ── Mobile (phones) ── */
@media (max-width: 781px) {
  .hero {
    min-height: 80vh;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .site-header__inner {
    padding-inline: 1rem;
  }

  .scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Family slider nav buttons closer on mobile */
  .family-slider__nav--prev { left: 0.4rem; }
  .family-slider__nav--next { right: 0.4rem; }
}

/* ==========================================================================
   COMPLIANZ COOKIE BANNER – Theme Styling
   ========================================================================== */
.cmplz-cookiebanner {
  font-family: var(--wp--preset--font-family--sans) !important;
}

.cmplz-cookiebanner .cmplz-title {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-weight: 500 !important;
}

/* Accept button → Weinrot */
.cmplz-cookiebanner .cmplz-btn.cmplz-accept {
  background-color: var(--wp--preset--color--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 2px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  transition: background var(--transition) !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover {
  background-color: var(--wp--preset--color--accent) !important;
  color: var(--wp--preset--color--text) !important;
}

/* Deny / Preferences buttons → Outline */
.cmplz-cookiebanner .cmplz-btn.cmplz-deny,
.cmplz-cookiebanner .cmplz-btn.cmplz-manage {
  background-color: transparent !important;
  color: var(--wp--preset--color--text) !important;
  border: 1px solid var(--wp--preset--color--muted) !important;
  border-radius: 2px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  transition: all var(--transition) !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover,
.cmplz-cookiebanner .cmplz-btn.cmplz-manage:hover {
  border-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--primary) !important;
}

/* Banner background matches site */
.cmplz-cookiebanner.cmplz-bottom {
  background-color: var(--wp--preset--color--background) !important;
  border-top: 1px solid var(--wp--preset--color--muted) !important;
  box-shadow: 0 -4px 24px rgba(43,37,32,0.08) !important;
}

/* Link colors in banner */
.cmplz-cookiebanner a {
  color: var(--wp--preset--color--primary) !important;
}

/* Complianz "Zustimmung verwalten" floating revoke button — shrink on
   mobile so it doesn't overlap page buttons. Keeps the rectangular pill
   shape, just smaller and more discreet. */
@media (max-width: 781px) {
  #cmplz-manage-consent-container .cmplz-manage-consent,
  .cmplz-manage-consent-container .cmplz-manage-consent,
  button.cmplz-manage-consent,
  #cmplz-manage-consent .cmplz-manage-consent {
    padding: 0.3rem 0.7rem !important;
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
    min-width: 0 !important;
    height: auto !important;
    border-radius: 3px !important;
    letter-spacing: 0 !important;
  }
  /* Move the whole container tighter into the corner */
  #cmplz-manage-consent-container,
  .cmplz-manage-consent-container,
  #cmplz-manage-consent {
    right: 0.5rem !important;
    bottom: 0.5rem !important;
    opacity: 0.85;
  }
}

.cmplz-cookiebanner .cmplz-message {
  color: var(--wp--preset--color--text) !important;
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
}
