:root {
  --light: #fff;
  --ink: #111827;
  --accent: #6b3e2e;
  --parch: #fff;
}

html,
body {
  background: #fff;
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Inter,
    Arial,
    sans-serif;
  font-display: swap;
  margin: 0;
  padding: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}

#siteHeader {
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

#siteHeader .inner {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  height: 108px;
  position: relative;
}

#siteHeader .left,
#siteHeader .right {
  display: flex;
  gap: 24px;
}

#siteHeader .left {
  justify-content: flex-end;
}

#siteHeader .right {
  justify-content: flex-start;
}

#siteHeader .center img {
  display: block;
  height: 108px;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

#siteHeader.overlay {
  background: transparent;
  color: #fff;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 50;
}

#siteHeader.overlay a {
  color: #fff;
  text-shadow:
    0 2px 6px rgb(0 0 0 / 45%),
    0 0 1px rgb(0 0 0 / 25%);
}

#siteHeader.overlay .search-btn {
  background: transparent;
  border: 1px solid rgb(255 255 255 / 60%);
  color: #fff;
}

#siteHeader.overlay .search-btn:hover {
  background: rgb(255 255 255 / 12%);
}

#siteHeader.scrolled {
  backdrop-filter: saturate(120%) blur(6px);
  background: rgb(255 255 255 / 92%);
  color: var(--ink);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}

#siteHeader.scrolled .logo img {
  opacity: 1;
}

.hero {
  height: 80vh;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.hero .slides > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transition: opacity 0.6s ease;
  width: 100%;
}

.hero .slides > img.active {
  opacity: 1;
}

.hero .logo {
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 16%;
  transform: translate(-50%, -50%);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.hero .logo img {
  filter: drop-shadow(0 6px 18px rgb(0 0 0 / 35%));
  max-width: 320px;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .nav-spacer {
  height: 108px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.search-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 12%);
  display: none;
  margin-top: 8px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 100%;
  width: min(360px, 86vw);
  z-index: 60;
}

/* Desktop search panel - kann durch JavaScript gesteuert werden */
@media (min-width: 901px) {
  .search-panel {
    display: none;
  }
  
  .search-panel[style*="block"] {
    display: block !important;
  }
}

.search-panel input {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px 10px 36px;
  width: 100%;
}

.search-panel .icon {
  left: 14px;
  opacity: 0.5;
  position: absolute;
  top: 14px;
}

.tiles {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.tiles a {
  display: block;
  position: relative;
}

.tiles img {
  background: transparent;
  height: 220px;
  object-fit: contain;
  opacity: 0.85;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  width: 100%;
}

.tiles a:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.tiles .overlay {
  display: grid;
  font-weight: 700;
  inset: 0;
  place-items: center;
  position: absolute;
}

.section {
  padding: 64px 0;
}

.card {
  background: rgb(255 255 255 / 70%);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
}

/* Booking calendar (kept very basic) */
.cal {
  background: rgb(255 255 255 / 70%);
  border: 1px solid #e7d8c8;
  border-radius: 16px;
  padding: 12px;
}

.cal .bar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cal .grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, 1fr);
}

.cal .cell {
  aspect-ratio: 1/1;
  background: #fff;
  border: 1px solid #e7d8c8;
  border-radius: 10px;
}

.cal .oth {
  opacity: 0.4;
}

.cal .booked {
  background: #fecaca;
  border-color: #ef4444;
  color: #7f1d1d;
}

.cal .dis {
  opacity: 0.5;
}

.cal .in {
  background: #f5e9d6;
  border-color: #c8a167;
}

.cal .start,
.cal .end {
  background: #c8a167;
  border-color: #a47f43;
  color: #fff;
}

@media (width <= 900px) {
  :root {
    --header-height: 80px;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  #siteHeader .inner {
    grid-template-columns: 40px 1fr auto;
    height: var(--header-height);
  }

  .hero {
    min-height: 420px;
  }

  .hero .nav-spacer {
    height: var(--header-height);
  }

  .hero .logo img {
    max-width: 260px;
  }
}

/* Subtle gradient behind header in overlay mode for readability */
#siteHeader.overlay::before {
  background: linear-gradient(to bottom, rgb(0 0 0 / 18%), rgb(0 0 0 / 0%));
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

#siteHeader .inner {
  position: relative;
  z-index: 1;
}

/* Search icon styling */
.search-wrap {
  position: relative;
}

.search-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  color: var(--accent);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
  flex-shrink: 0;
}

#siteHeader.overlay .search-btn {
  background: transparent;
  border-color: rgb(255 255 255 / 60%);
  color: #fff;
}

.search-btn svg {
  display: block;
  height: 18px;
  width: 18px;
}

.search-btn:hover {
  filter: brightness(0.98);
}

/* Panel under the icon */
.search-panel {
  right: auto;
  top: calc(100% + 8px);
}

.search-wrap .search-panel {
  right: auto;
}

/* Social and search icons container */
#siteHeader .search-abs {
  align-items: center;
  display: flex;
  gap: 12px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

#siteHeader .search-abs .search-wrap {
  position: relative;
}

#siteHeader .search-abs .search-panel {
  left: auto;
  right: 0;
  top: calc(100% + 8px);
}

/* Social icon buttons behave like search button (same size) */
.icon-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  color: var(--accent);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
  flex-shrink: 0;
}

/* Ensure consistent button sizes in search-abs */
.search-abs .icon-btn,
.search-abs .search-btn {
  height: 36px !important;
  width: 36px !important;
  min-height: 36px !important;
  min-width: 36px !important;
  max-height: 36px !important;
  max-width: 36px !important;
}

/* Extra specific rule for search button */
#searchBtn {
  height: 36px !important;
  width: 36px !important;
  min-height: 36px !important;
  min-width: 36px !important;
  max-height: 36px !important;
  max-width: 36px !important;
}

/* Force search button size with maximum specificity */
#siteHeader #searchBtn {
  height: 36px !important;
  width: 36px !important;
  min-height: 36px !important;
  min-width: 36px !important;
  max-height: 36px !important;
  max-width: 36px !important;
}

/* Ultimate specificity for search button */
#siteHeader .search-abs #searchBtn {
  height: 36px !important;
  width: 36px !important;
  min-height: 36px !important;
  min-width: 36px !important;
  max-height: 36px !important;
  max-width: 36px !important;
}

/* Nuclear option - force all search buttons to 36px */
button.search-btn {
  height: 36px !important;
  width: 36px !important;
  min-height: 36px !important;
  min-width: 36px !important;
  max-height: 36px !important;
  max-width: 36px !important;
}

/* Force all buttons in search-abs to be 36px */
.search-abs button {
  height: 36px !important;
  width: 36px !important;
  min-height: 36px !important;
  min-width: 36px !important;
  max-height: 36px !important;
  max-width: 36px !important;
}

/* Force all icon buttons in search-abs to be 36px */
.search-abs .icon-btn {
  height: 36px !important;
  width: 36px !important;
  min-height: 36px !important;
  min-width: 36px !important;
  max-height: 36px !important;
  max-width: 36px !important;
}

/* Ultimate specificity for icon buttons */
#siteHeader .search-abs .icon-btn {
  height: 36px !important;
  width: 36px !important;
  min-height: 36px !important;
  min-width: 36px !important;
  max-height: 36px !important;
  max-width: 36px !important;
}

.icon-btn:hover {
  filter: brightness(0.98);
}

#siteHeader.overlay .icon-btn {
  background: transparent;
  border-color: rgb(255 255 255 / 60%);
  color: #fff;
}

.icon-btn svg {
  display: block;
  height: 18px;
  width: 18px;
}

/* Ensure consistent SVG sizes in search-abs buttons */
.search-abs .icon-btn svg,
.search-abs .search-btn svg {
  height: 18px !important;
  width: 18px !important;
}

/* Extra specific rule for search button SVG */
#searchBtn svg {
  height: 18px !important;
  width: 18px !important;
}

/* Force search button SVG size with maximum specificity */
#siteHeader #searchBtn svg {
  height: 18px !important;
  width: 18px !important;
}

/* Ultimate specificity for search button SVG */
#siteHeader .search-abs #searchBtn svg {
  height: 18px !important;
  width: 18px !important;
}

/* Nuclear option - force all search button SVGs to 18px */
button.search-btn svg {
  height: 18px !important;
  width: 18px !important;
}

/* Force all SVGs in search-abs buttons to be 18px */
.search-abs button svg {
  height: 18px !important;
  width: 18px !important;
}

/* Force all SVGs in search-abs icon buttons to be 18px */
.search-abs .icon-btn svg {
  height: 18px !important;
  width: 18px !important;
}

/* Ultimate specificity for icon button SVGs */
#siteHeader .search-abs .icon-btn svg {
  height: 18px !important;
  width: 18px !important;
}

/* === Design Tooltips (Ranch) === */
.tip {
  outline: none;
  position: relative;
}

.tip:focus {
  outline: none;
}

.tip::after {
  background: var(--parch); /* Pergament */
  border: 1px solid #c8a167;
  border-radius: 10px;
  bottom: calc(100% + 6px); /* näher am Icon */
  box-shadow: 0 6px 18px rgb(0 0 0 / 12%);
  color: var(--accent); /* Ranch-Braun */
  content: attr(data-tip);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  padding: 6px 10px; /* etwas kompakter */
  pointer-events: none;
  position: absolute;
  right: 50%;
  transform: translateX(50%) scale(0.98);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
  z-index: 80;
}

.tip::before {
  border: 6px solid transparent;
  border-top-color: var(--parch);
  bottom: 100%;
  content: '';
  filter: drop-shadow(0 2px 0 #c8a167); /* dünne Kontur für Pfeil */
  opacity: 0;
  position: absolute;
  right: calc(50% - 6px);
  transition: opacity 0.18s ease;
  z-index: 79;
}

.tip:hover::after,
.tip:focus-visible::after,
.tip:hover::before,
.tip:focus-visible::before {
  opacity: 1;
  transform: translateX(50%) translateY(-1px) scale(1); /* weniger hoch */
}

/* Tooltips in der mobilen Ansicht generell verstecken */
@media (width <= 900px) {
  .tip::after,
  .tip::before {
    display: none !important;
  }
}

/* Tooltip verstecken wenn Suchpanel aktiv ist */
.tip.search-active::after,
.tip.search-active::before {
  opacity: 0 !important;
  transform: translateX(50%) scale(0.98) !important;
}

#siteHeader.overlay .tip::after {
  background: var(--parch);
  border-color: #c8a167;
  color: var(--accent);
}

#siteHeader.overlay .tip::before {
  border-top-color: var(--parch);
}

/* === Desktop/Mobile Header Umschaltung === */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Mobile Header Styles */
#mobileHeader {
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 80px;
  display: none; /* Hidden by default, shown on mobile */
  transition: all 0.3s ease;
}

/* Nur auf der Startseite transparent initial */
body.index #mobileHeader {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

body.index #mobileHeader.scrolled {
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: none;
}

/* Impressum und Datenschutz: Mobile Header immer sichtbar */
body:not(.index) #mobileHeader {
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: none;
}

body:not(.index) #mobileHeader .mobile-logo {
  opacity: 1 !important;
}

.mobile-header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 100%;
  position: relative;
}

/* Mobile logo styles moved to media query for better specificity */

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-actions .icon-btn,
.mobile-actions .search-btn {
  height: 24px !important;
  width: 24px !important;
  min-height: 24px !important;
  min-width: 24px !important;
  max-height: 24px !important;
  max-width: 24px !important;
}

.mobile-actions .icon-btn svg,
.mobile-actions .search-btn svg {
  height: 12px !important;
  width: 12px !important;
}

#searchPanelMobile {
  display: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 12%);
  margin-top: 8px;
  padding: 8px;
  position: absolute;
  right: 20px;
  top: 100%;
  width: min(360px, 86vw);
  z-index: 60;
}

#searchPanelMobile.active {
  display: block;
}

#searchPanelMobile input {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px 10px 36px;
  width: 100%;
}

#searchPanelMobile .icon {
  left: 14px;
  opacity: 0.5;
  position: absolute;
  top: 14px;
}

@media (width <= 900px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  /* Mobile Suchfelder verstecken */
  .search-panel {
    display: none !important;
  }
  
  #searchPanelMobile {
    display: none !important;
  }
  
  #searchPanelMobile.active {
    display: block !important;
  }

  /* Mobile Logo Zentrierung - spezifisch für Mobile Header */
  body #mobileHeader .mobile-logo {
    position: fixed !important;
    left: 50% !important;
    top: 0px !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    width: 180px !important;
    height: 90px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important; /* Immer sichtbar auf Subpages */
    transition: opacity 0.3s ease !important;
  }

  /* Nur auf der Startseite scroll-abhängig */
  body.index #mobileHeader .mobile-logo {
    opacity: 0 !important;
  }

  body.index #mobileHeader.scrolled .mobile-logo {
    opacity: 1 !important;
  }
  
  body #mobileHeader .burger {
    position: fixed !important;
    left: 20px !important;
    top: 20px !important;
    z-index: 1000 !important;
  }
  
  body #mobileHeader .mobile-actions {
    position: fixed !important;
    right: 20px !important;
    top: 20px !important;
    z-index: 1000 !important;
  }
  
  body #mobileHeader .mobile-logo img {
    height: 90px !important;
    width: 180px !important;
    max-width: 180px !important;
    max-height: 90px !important;
    min-width: 180px !important;
    min-height: 90px !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }

  /* Zusätzliche spezifische Regel für Mobile Logo Größe */
  body #mobileHeader .mobile-logo img {
    width: 180px !important;
    height: 90px !important;
    max-width: 180px !important;
    max-height: 90px !important;
    min-width: 180px !important;
    min-height: 90px !important;
  }


  /* Contact Section darf Mobile Header nicht beeinflussen */
  .contact .left {
    position: static !important;
  }

  .contact .left .content {
    position: static !important;
  }

  /* Signature kleiner für Mobile */
  .contact .signature {
    font-size: 24px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  /* Mobile Header wird sichtbar */
  body #mobileHeader {
    display: block !important;
    z-index: 1000 !important;
  }

  /* Desktop Header wird versteckt */
  #siteHeader {
    display: none !important;
  }
}

/* Desktop: Mobile Header versteckt, Desktop Header sichtbar */
@media (min-width: 901px) {
  #mobileHeader {
    display: none !important;
  }
  
  #siteHeader {
    display: block !important;
  }

  /* Desktop Buttons anzeigen */
  .search-abs {
    display: flex !important;
  }

  /* Alle Suchfelder verstecken */
  .search-panel {
    display: none;
  }
  
  #searchPanelMobile {
    display: none;
  }
  
  /* Desktop search panel anzeigen wenn aktiv */
  .search-panel[style*="block"] {
    display: block !important;
  }

  #siteHeader .center {
    justify-self: center;
  }

  #siteHeader .center img {
    height: 80px;
  }

  /* Responsive content grids */
  .two-cols {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .three-cards {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
  }
}

/* Desktop grids */
@media (width >= 901px) {
  .two-cols {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
  }

  .three-cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile menu panel */
.mobile-menu {
  backdrop-filter: saturate(120%) blur(6px);
  background: rgb(255 255 255 / 98%);
  border-top: 1px solid #e5e7eb;
  display: none;
  inset: 80px 0 auto;
  position: fixed;
  z-index: 60;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu nav {
  display: grid;
  font-size: 18px;
  gap: 10px;
  padding: 16px 20px;
}

.mobile-menu a {
  border-radius: 8px;
  padding: 10px 4px;
}

.mobile-menu a:hover {
  background: #f1f5f9;
}

/* Ensure search panel stays above mobile menu */
.search-panel {
  z-index: 70;
}

/* --- Mobile menu visibility fix --- */
@media (width <= 900px) {
  .mobile-menu {
    display: none !important;
  } /* closed by default */
  .mobile-menu.open {
    display: block !important;
  } /* open only when toggled */
}

/* === Home tiles adjustments === */
.tiles-section {
  padding-bottom: 0;
  padding-top: 32px;
} /* reduced gap to slider */
.tiles img {
  height: 300px;
} /* bigger visuals */
.tiles .overlay {
  color: #fff;
  text-shadow: 0 2px 6px rgb(0 0 0 / 45%);
}

.tiles .overlay .label {
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 0;
  text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.18s ease,
    box-shadow 0.18s ease,
    text-shadow 0.18s ease;
}

.tiles a:hover img {
  opacity: 1;
  transform: translateY(-14px) scale(1.02);
}

.tiles a:hover .overlay .label,
.tiles a:focus-visible .overlay .label {
  background: rgb(0 0 0 / 45%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 28%);
  padding: 6px 12px;
  text-shadow:
    0 4px 14px rgb(0 0 0 / 55%),
    0 0 1px rgb(0 0 0 / 35%);
}

@media (width <= 900px) {
  .tiles img {
    height: 220px;
  }

  .tiles-section {
    padding-top: 24px;
  }
}

/* === Tile label emphasis & hover contrast === */
.tiles .overlay .label {
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 0;
  text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.18s ease,
    box-shadow 0.18s ease,
    text-shadow 0.18s ease;
}

.tiles a:hover .overlay .label,
.tiles a:focus-visible .overlay .label {
  background: rgb(0 0 0 / 45%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 28%);
  padding: 6px 12px;
  text-shadow:
    0 4px 14px rgb(0 0 0 / 55%),
    0 0 1px rgb(0 0 0 / 35%);
}

@media (width <= 900px) {
  .tiles .overlay .label {
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 0;
    text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
    transition:
      transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      background 0.18s ease,
      box-shadow 0.18s ease,
      text-shadow 0.18s ease;
  }
}

/* === Full-bleed 2-column stripe (home) === */
.stripe-wrapper {
  width: 100%;
  background: #fff;
  position: relative;
  overflow: visible !important;
}

.stripe {
  width: 100%;
  background: transparent;
}

.stripe .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.stripe .media {
  min-height: 520px;
}

.stripe .media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.stripe .content {
  align-items: center;
  background: url('../img/stripe-bg.webp') center/cover no-repeat;
  display: flex;
  justify-content: center;
  padding: 48px 48px 80px 48px; /* Mehr Padding unten für CTA-Button */
}

.stripe .content .inner {
  max-width: 720px;
}

.stripe .content h2 {
  color: var(--ink);
  font-size: 34px;
  margin: 0 0 12px;
}

.stripe .content p {
  font-size: 18px;
  margin: 0 0 18px;
}

.stripe .content .cta {
  background: #6b3e2e;
  border-radius: 12px;
  color: #fff;
  display: inline-block;
  padding: 12px 18px;
}

.stripe .content .cta:hover {
  filter: brightness(1.02);
  text-decoration: none;
}

@media (width <= 900px) {
  .stripe .grid {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .stripe .media {
    height: 320px;
  }

  .stripe .content {
    padding: 24px 24px 60px 24px; /* Mehr Padding unten für CTA-Button auf Mobile */
  }

  .stripe .content h2 {
    font-size: 28px;
  }

  .stripe .content p {
    font-size: 16px;
  }
}

/* === Torn paper edge helpers === */
.tear-top {
  overflow: visible;
  position: relative;
  z-index: 4;
}

.tear-top::before {
  background: #fff;
  content: '';
  height: 64px;
  left: 0;
  mask: url('../img/tear-edge-bottom-irregular.svg') repeat-x left top / 1024px 64px;
  -webkit-mask: url('../img/tear-edge-bottom-irregular.svg') repeat-x left top / 1024px 64px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}

/* bottom torn edge */
.tear-bottom {
  overflow: visible;
  position: relative;
}

.tear-bottom::after {
  background: #fff;
  bottom: 0;
  content: '';
  height: 64px;
  left: 0;
  mask: url('../img/tear-edge-bottom-irregular.svg') repeat-x left top / 1024px 64px;
  -webkit-mask: url('../img/tear-edge-bottom-irregular.svg') repeat-x left top / 1024px 64px;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: scaleY(-1);
  z-index: 5;
}

/* === Über uns / People === */
.people {
  padding: 56px 20px;
}

.people .wrap {
  margin: 0 auto;
  max-width: 1200px;
}

.people h2 {
  color: var(--ink);
  font-size: 34px;
  margin: 0 0 28px;
}

.people .grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
}

.people .person {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.people .arch {
  aspect-ratio: 1/1;
  background: #f1f5f9;
  border-radius: 36px 36px 0 0;
  box-shadow: 0 6px 24px rgb(0 0 0 / 8%);
  margin: 0 auto 14px;
  max-width: 360px;
  overflow: hidden;
  width: 100%;
}

.people .arch img {
  display: block;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 0.35s ease;
  width: 100%;
}

.people .person:hover .arch img {
  transform: scale(1.03);
}

.people figcaption strong {
  color: var(--ink);
  display: block;
  font-size: 20px;
}

.people figcaption span {
  color: #6b7280;
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

@media (width <= 1024px) {
  .people .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width <= 700px) {
  .people .grid {
    grid-template-columns: 1fr;
  }

  .people {
    padding: 40px 16px;
  }

  .people h2 {
    font-size: 28px;
  }
}

/* === Section heading (Das sind wir) === */
.section-head {
  margin: 0 0 28px;
  text-align: center;
}

.section-head h2 {
  color: var(--ink);
  font-size: 48px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.section-head .divider {
  display: inline-block;
  margin: 6px auto 10px;
}

.section-head .divider img {
  display: block;
  height: auto;
  margin: 0 auto;
  opacity: 0.9;
  width: 86px;
}

.section-head .sub {
  color: #6b7280;
  font-size: 18px;
  margin: 0 auto;
  max-width: 820px;
}

@media (width <= 900px) {
  .section-head h2 {
    font-size: 38px;
  }

  .section-head .sub {
    font-size: 16px;
  }
}

/* === Contact section === */
.contact {
  padding: 72px 20px 100px 20px; /* Mehr Padding unten für Risseffekt */
}

.contact .wrap {
  margin: 0 auto;
  max-width: 1200px;
}

.contact .grid {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1.2fr;
}

.contact .lead {
  color: #6b7280;
  font-size: 20px;
  line-height: 1.7;
  margin: 14px 0 28px;
  max-width: 640px;
}

.contact .signature {
  color: #1f2937;
  font-family: 'Segoe Script', 'Snell Roundhand', 'Brush Script MT', cursive;
  font-size: 46px;
  line-height: 1.2;
  margin-top: 8px;
}

/* form */
.form {
  width: 100%;
}

.form label {
  color: #374151;
  display: block;
  font-size: 14px;
  margin: 0 0 6px;
}

.form .row {
  margin-bottom: 16px;
}

.form input[type='text'],
.form input[type='email'],
.form textarea {
  background: #fff;
  border: 2px solid #cbe8b0;
  border-radius: 6px;
  color: #111827;
  outline: none;
  padding: 18px 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  width: 100%;
}

.form textarea {
  min-height: 280px;
  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #9aa2af;
}

.form input:focus,
.form textarea:focus {
  border-color: #9bd082;
  box-shadow: 0 0 0 3px rgb(155 208 130 / 25%);
}

.form .actions {
  margin-top: 10px;
}

.form button {
  background: #2f5233;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgb(47 82 51 / 25%);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 24px;
}

.form button:hover {
  filter: brightness(1.05);
}

@media (width <= 980px) {
  .contact .grid {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 48px 16px 80px 16px; /* Mehr Padding unten für Risseffekt auf Mobile */
  }

  .form textarea {
    min-height: 220px;
  }
}

/* === Contact map background & signature image === */
.contact .left {
  border-radius: 12px;
  min-height: 340px;
  overflow: hidden;
  position: relative;
}

.contact .left .map-bg {
  inset: 0;
  position: absolute;
  z-index: 0;
}

.contact .left .map-bg iframe {
  border: 0;
  filter: grayscale(25%) contrast(1.05) brightness(0.98);
  height: 100%;
  width: 100%;
}

.contact .left .content {
  backdrop-filter: saturate(120%) blur(2px);
  background: rgb(255 255 255 / 75%);
  border-radius: 12px;
  display: inline-block;
  padding: 18px 20px;
  position: relative;
  z-index: 1;
}

.contact .signature-image {
  display: block;
  height: auto;
  margin-top: 18px;
  max-width: 520px;
  width: 100%;
}

@media (width <= 980px) {
  .contact .left {
    min-height: 300px;
  }

  .contact .left .content {
    padding: 14px 16px;
  }

  .contact .signature-image {
    max-width: 420px;
  }
}

/* === Contact refinements === */
.contact .left {
  border-radius: 0;
  min-height: auto;
  overflow: visible;
  position: static;
}

.contact .left .content {
  backdrop-filter: none;
  background: transparent;
  padding: 0;
}

.contact .signature {
  color: #111827;
  font-family: 'Segoe Script', 'Snell Roundhand', 'Brush Script MT', cursive;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  margin-top: 18px;
  white-space: nowrap;
}

/* brand-tinted form */
:root {
  --brandGreen: #2f5233;
  --brandBrown: #6b3e2e;
  --formBorder: #cab59e;
  --formFocus: #6b3e2e;
}

.form input[type='text'],
.form input[type='email'],
.form textarea {
  border: 2px solid var(--formBorder);
}

.form input:focus,
.form textarea:focus {
  border-color: var(--formFocus);
  box-shadow: 0 0 0 3px rgb(107 62 46 / 20%);
}

.form button {
  background: var(--brandBrown);
}

.form .agree {
  color: #374151;
  font-size: 14px;
}

.form .agree a {
  color: var(--brandBrown);
  text-decoration: underline;
}

.form .agree input {
  margin-right: 8px;
}

.form .captcha {
  margin: 14px 0;
}

/* Map embed below */
.map-embed {
  padding: 0 20px 60px;
}

.map-embed .wrap {
  margin: 0 auto;
  max-width: 1200px;
}

.map-embed .map-box {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
  height: 380px;
  overflow: hidden;
}

.map-embed iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

@media (width <= 980px) {
  .map-embed {
    padding: 0 16px 48px;
  }

  .map-embed .map-box {
    height: 320px;
  }
}

/* === Contact polishing === */
.contact {
  background: #e7ddd0;
  position: relative;
}

.contact .grid {
  gap: 32px;
  grid-template-columns: 1fr 0.95fr;
}

.form .row {
  margin-bottom: 12px;
}

.form input[type='text'],
.form input[type='email'],
.form textarea {
  border-width: 1.5px;
  padding: 14px;
}

.form textarea {
  min-height: 220px;
}

.form .actions {
  margin-top: 8px;
}

.form button {
  border-radius: 6px;
  padding: 12px 20px;
}

.contact .signature {
  margin-bottom: 8px;
}

/* Map directly under signature */
.contact .left .map-box {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 8%);
  height: 280px;
  margin-top: 10px;
  overflow: hidden;
}

.contact .left .map-box iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

/* Ensure torn edges layer nicely */
.contact.tear-top::before,
.contact.tear-bottom::after {
  background: #fff;
}

.stripe-wrapper.tear-top::before,
.stripe-wrapper.tear-bottom::after {
  background: #fff !important;
  z-index: 100 !important;
  pointer-events: none !important;
}

.testimonials.tear-top::before,
.testimonials.tear-bottom::after {
  background: #fff;
}

@media (width <= 980px) {
  .contact .grid {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .contact .left .map-box {
    height: 240px;
  }
}

.cta-between {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 8px 0 14px;
}

/* --- CTA primary button (matches form button color) --- */
.cta {
  align-items: center;
  background: #6b3e2e;
  border-radius: 9999px;
  box-shadow:
    0 10px 24px rgb(47 82 51 / 22%),
    0 1px 0 rgb(0 0 0 / 15%);
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  gap: 0.6rem;
  isolation: isolate;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  position: relative;
  text-decoration: none;
  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease,
    background 0.2s ease;
}

.cta:hover {
  background: #5d3527;
  box-shadow: 0 14px 28px rgb(47 82 51 / 28%);
}

.cta:focus-visible {
  outline: 3px solid #c5e0cc;
  outline-offset: 2px;
}

/* arrow indicator */
.cta::after {
  border-bottom: 3px solid currentcolor;
  border-right: 3px solid currentcolor;
  content: '';
  display: inline-block;
  height: 10px;
  transform: rotate(-45deg) translateY(-1px);
  transition: transform 0.2s ease;
  width: 10px;
}

.cta:hover::after {
  transform: rotate(-45deg) translate(3px, -2px);
}

/* wobble on hover */
@keyframes cta-wobble {
  0% {
    transform: translate3d(0, 0, 0) rotate(0);
  }

  30% {
    transform: translate3d(0, -2px, 0) rotate(-0.3deg);
  }

  60% {
    transform: translate3d(0, -1px, 0) rotate(0.2deg);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
}

.cta:hover {
  animation: cta-wobble 0.6s ease both;
}

/* optional pulse halo to boost CTA visibility */
.cta::before {
  background: radial-gradient(
    closest-side,
    rgb(47 82 51 / 18%),
    transparent 70%
  );
  border-radius: inherit;
  content: '';
  filter: blur(8px);
  inset: -6px;
  opacity: 0;
  position: absolute;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.cta:hover::before {
  opacity: 0.9;
}

/* --- Intro Offers Block --- */
.intro-offers {
  padding: 18px 0 8px;
}

.intro-title {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
  text-align: center;
}

.intro-lead {
  font-size: clamp(15px, 1.7vw, 18px);
  margin: 0 auto 18px;
  max-width: 950px;
  opacity: 0.9;
  text-align: center;
}

.intro-grid {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  margin: 14px auto 8px;
  width: min(1100px, 98%);
}

.intro-card {
  background: #f4eee8;
  border: 1px solid rgb(0 0 0 / 6%);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 6%);
  padding: 16px 16px 14px;
}

.intro-h3 {
  font-size: clamp(17px, 2vw, 20px);
  margin: 0 0 8px;
}

.intro-list {
  margin: 0 0 8px;
  padding-left: 22px;
}

.intro-list li {
  margin: 6px 0;
}

.intro-ideal {
  margin: 6px 0 8px;
}

/* Outline style for small links */
.cta-outline {
  align-items: center;
  border: 2px solid #6b3e2e;
  border-radius: 9999px;
  color: #6b3e2e;
  display: inline-flex;
  font-weight: 800;
  gap: 0.5rem;
  padding: 8px 14px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.12s ease;
}

.cta-outline:hover {
  background: #6b3e2e;
  color: #fff;
  transform: translateY(-1px);
}

/* Note and two-column */
.intro-note {
  background: #fff;
  border-left: 4px solid #6b3e2e;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgb(0 0 0 / 5%);
  margin: 14px auto 12px;
  max-width: 1100px;
  padding: 12px 14px;
}

.intro-note h4 {
  margin: 0 0 6px;
}

.intro-columns {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  margin: 6px auto;
  width: min(1100px, 98%);
}

.intro-columns h4 {
  margin: 0 0 6px;
}

.intro-faq {
  margin: 0;
  padding-left: 18px;
}

.intro-faq li {
  margin: 8px 0;
}

@media (width <= 900px) {
  .intro-grid,
  .intro-columns {
    grid-template-columns: 1fr;
  }
}

/* Equal height cards */
.intro-grid {
  align-items: stretch;
}

.intro-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.intro-card .intro-list {
  flex: 0 0 auto;
}

.intro-card .intro-ideal {
  margin-top: auto;
}

/* Hero title overlay */
.hero {
  position: relative;
}

.hero-overlay {
  backdrop-filter: saturate(120%) blur(2px);
  background: rgb(0 0 0 / 28%); /* subtle for readability over bright images */

  border-radius: 12px;
  left: 50%;
  padding: 10px 14px;
  position: absolute;
  text-align: center;
  top: 62%;
  transform: translate(-50%, -50%);
  z-index: 6;
}

.hero-overlay h1 {
  color: #fff;
  font-size: clamp(22px, 4.2vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  text-shadow:
    0 3px 10px rgb(0 0 0 / 45%),
    0 1px 0 rgb(0 0 0 / 20%);
}

/* FAQ accordions */
.faq .faq-item {
  background: #fff;
  border: 1px solid rgb(0 0 0 / 8%);
  border-radius: 10px;
  margin: 8px 0;
  overflow: hidden;
}

.faq summary {
  color: #2f2b28;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 12px 14px;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  border-bottom: 2px solid currentcolor;
  border-right: 2px solid currentcolor;
  content: '';
  height: 10px;
  opacity: 0.7;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.2s ease;
  width: 10px;
}

.faq .answer {
  color: #4b453f;
  padding: 0 14px 14px;
}

.faq .answer p {
  margin: 8px 0 0;
}

.faq .faq-item[open] summary::after {
  transform: translateY(-50%) rotate(-135deg);
}

/* Small tweak for spacing */
.intro-offers {
  padding-top: 10px;
}

/* spacing fix between note and columns */
.intro-note {
  margin: 16px auto 28px;
}

.intro-columns {
  margin: 22px auto 10px;
}

@media (width <= 900px) {
  .intro-note {
    margin: 14px 12px 24px;
  }

  .intro-columns {
    margin: 18px 12px 8px;
  }
}

/* --- spacing hotfix between note and columns (with !important) --- */
.intro-offers .intro-note {
  box-shadow: 0 8px 18px rgb(0 0 0 / 4%) !important;
  margin: 24px auto 44px !important;
}

.intro-offers .intro-columns {
  margin: 40px auto 12px !important;
}

/* --- spacing hotfix v2 (more gap, enforce stacking context) --- */
.intro-offers .intro-note {
  box-shadow: 0 6px 14px rgb(0 0 0 / 3.5%) !important;
  margin: 28px auto 64px !important;
  position: relative;
  z-index: 1;
}

.intro-offers .intro-columns {
  margin: 56px auto 16px !important;
  position: relative;
  z-index: 0;
}

/* extra: faq heading top margin */
.intro-columns h4 {
  margin-top: 0;
}

/* --- spacing hotfix v3 (extra-large gap) --- */
.intro-offers .intro-note {
  box-shadow: 0 6px 14px rgb(0 0 0 / 3.5%) !important;
  margin: 32px auto 96px !important; /* noch mehr Luft */
  position: relative;
  z-index: 1;
}

.intro-offers .intro-columns {
  margin: 84px auto 20px !important; /* großer Einstieg oben */
  position: relative;
  z-index: 0;
}

/* mobile: ebenfalls klarer Abstand, aber etwas kompakter */
@media (width <= 900px) {
  .intro-offers .intro-note {
    margin: 22px 12px 64px !important;
  }

  .intro-offers .intro-columns {
    margin: 48px 12px 14px !important;
  }
}

/* --- spacing hotfix v4 (gap between cards grid and note) --- */
.intro-offers .intro-grid {
  margin-bottom: 72px !important; /* großer Abstand unter den beiden Boxen */
}

.intro-offers .intro-note {
  margin-top: 28px !important; /* zusätzlicher Abstand über der Note */
}

@media (width <= 900px) {
  .intro-offers .intro-grid {
    margin-bottom: 44px !important;
  }

  .intro-offers .intro-note {
    margin-top: 18px !important;
  }
}

/* --- mobile card spacing hotfix --- */
@media (width <= 900px) {
  .intro-offers .intro-grid {
    gap: 22px !important;
    row-gap: 22px !important;
    row-gap: 22px !important;
  }

  .intro-offers .intro-grid > * {
    margin-bottom: 22px !important;
  }

  .intro-offers .intro-grid > *:last-child {
    margin-bottom: 0 !important;
  }
}

/* --- mobile card spacing hotfix v2 (force single column + sibling gap) --- */
@media (width <= 900px) {
  .intro-offers .intro-grid {
    display: grid !important;
    gap: 0 !important;
    grid-template-columns: 1fr !important;
    row-gap: 0 !important;
    row-gap: 0 !important;
  }

  /* robust sibling spacing in single column */
  .intro-offers .intro-grid > * {
    margin: 0 !important;
  }

  .intro-offers .intro-grid > * + * {
    margin-top: 32px !important; /* deutlicher Abstand zwischen 1. und 2. Karte */
  }
}

/* --- mobile card stack normalize v3 --- */
@media (width <= 900px) {
  /* sichere 1-Spalten-Darstellung */
  .intro-offers .intro-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  /* einheitlicher vertikaler Rhythmus zwischen den zwei Karten */
  .intro-offers .intro-grid > * {
    margin: 0 0 24px !important;
  }

  .intro-offers .intro-grid > *:last-child {
    margin-bottom: 0 !important;
  }

  /* einheitlicher Abstand zum nächsten Bereich (Note) */
  .intro-offers .intro-note {
    margin-top: 24px !important;
  }

  /* und davor (falls .intro-columns mobil extra Margin hatte) */
  .intro-offers .intro-columns {
    margin-top: 24px !important;
  }
}

/* --- mobile spacing strong v4 --- */
@media (width <= 900px) {
  /* Abstand zwischen den beiden Karten */
  .intro-offers .intro-grid > * {
    margin: 0 0 32px !important;
  }

  .intro-offers .intro-grid > *:last-child {
    margin-bottom: 0 !important;
  }

  /* Deutlich mehr Abstand vor der Ranchleben-Note */
  .intro-offers .intro-note {
    margin-top: 48px !important;
  }
}

/* --- mobile spacing strong v5 (grid+columns, sibling margin) --- */
@media (width <= 900px) {
  /* Falls die Offers mobil auf columns umstellen, beide Varianten abdecken */
  .intro-offers .intro-grid,
  .intro-offers .intro-columns {
    display: block !important;
  }

  /* jegliche auto-margins der direkten Kinder neutralisieren */
  .intro-offers .intro-grid > *,
  .intro-offers .intro-columns > * {
    margin: 0 !important;
  }

  /* robuster Vertikalabstand zwischen direkt aufeinanderfolgenden Kindern */
  .intro-offers .intro-grid > * + *,
  .intro-offers .intro-columns > * + * {
    margin-top: 40px !important; /* deutlich sichtbar */
  }

  /* extra Abstand vor der Ranchleben-Box */
  .intro-offers .intro-note {
    margin-top: 56px !important;
  }
}

/* --- tear overlap fix v1 --- */

/* All tear/grunge overlays must never sit above interactive UI */
.torn-edge,
.torn-edge-top,
.torn-edge-bottom,
.rip-edge,
.rip-edge-top,
.rip-edge-bottom,
.grunge-edge,
.grunge-edge-top,
.grunge-edge-bottom,
.section-rip::before,
.section-rip::after,
.section--rip::before,
.section--rip::after,
.section--torn::before,
.section--torn::after,
.paper-tear,
.paper-tear-top,
.paper-tear-bottom {
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Ensure sections are stacking contexts so z-index works predictably */
.section,
section,
.hero,
header,
main {
  position: relative;
}

/* Bring hero CTA above any rip overlay from the next section */
.hero-cta,
.cta-hero,
.btn-cta,
.cta,
.cta-primary {
  position: relative !important;
  z-index: 5 !important;
}

/* Give a bit more breathing room at the bottom of the hero overlay on mobile */
@media (width <= 900px) {
  .hero-overlay,
  .hero-content {
    padding-bottom: 16px !important;
  }
}

/* --- hero CTA over tear fix v2 --- */

/* Ensure the hero and its CTA sit above any decorative overlays */
.hero,
.section-hero,
.hero-section {
  position: relative;
  z-index: 2;
}

/* Buttons inside hero */
.hero .btn,
.hero .button,
.hero a.btn,
.hero a.button,
.hero .cta,
.hero .cta-primary,
.hero .cta-hero,
.hero-cta {
  position: relative !important;
  z-index: 6 !important;
}

/* Any tear/grunge inside hero must be below content */
.hero .torn-edge,
.hero .torn-edge-bottom,
.hero .torn-edge-top,
.hero .rip-edge,
.hero .rip-edge-bottom,
.hero .rip-edge-top,
.hero .paper-tear,
.hero .paper-tear-bottom,
.hero .paper-tear-top,
.hero .grunge-edge,
.hero .grunge-edge-bottom,
.hero .grunge-edge-top,
.hero.section-rip::after,
.hero.section-rip::before,
.hero.section--rip::after,
.hero.section--rip::before,
.hero.section--torn::after,
.hero.section--torn::before {
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Also for the next section's pseudo tears */
.section::before,
.section::after,
section::before,
section::after {
  pointer-events: none !important;
  z-index: 0 !important;
}

/* extra breathing room below hero overlay on small screens */
@media (width <= 900px) {
  .hero-overlay,
  .hero .overlay,
  .hero-content {
    padding-bottom: 24px !important;
  }
}

/* --- Hotfix v12: keep hero CTA inside hero + better mobile contact form --- */

/* 1) Make sure the next section's rip never climbs over the hero content */
.hero,
.section-hero,
.hero-section {
  position: relative;
  z-index: 2;
}

/* Add extra breathing room at hero bottom on small screens so CTA won't touch the rip */
@media (width <= 900px) {
  .hero,
  .section-hero,
  .hero-section {
    padding-bottom: 28px;
  }

  .hero-overlay,
  .hero .overlay,
  .hero-content {
    padding-bottom: 36px !important;
  }
}

@media (width <= 600px) {
  .hero,
  .section-hero,
  .hero-section {
    padding-bottom: 36px;
  }

  .hero-overlay,
  .hero .overlay,
  .hero-content {
    padding-bottom: 48px !important;
  }
}

/* If the next section uses a negative top margin to pull the rip up, neutralise it on mobile */
@media (width <= 900px) {
  .section,
  section {
    margin-top: 0 !important;
  }
}

/* 2) Mobile-friendly contact form */
@media (width <= 900px) {
  .contact,
  .contact-section,
  .contact-form,
  form#contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-grid,
  .form-grid,
  .grid-2,
  .grid-2col,
  .grid-2-cols {
    display: block !important;
    gap: 0 !important;
  }

  .contact-grid > *,
  .form-grid > *,
  .grid-2 > *,
  .grid-2col > *,
  .grid-2-cols > * {
    width: 100% !important;
  }

  .contact-form .field,
  form#contact .field,
  form .field {
    margin-bottom: 14px !important;
  }

  .contact-form label,
  form#contact label,
  form label {
    display: block;
    font-weight: 600;
    margin: 0 0 6px;
  }

  .contact-form input[type='text'],
  .contact-form input[type='email'],
  .contact-form input[type='tel'],
  .contact-form input[type='date'],
  .contact-form select,
  .contact-form textarea,
  form#contact input[type='text'],
  form#contact input[type='email'],
  form#contact input[type='tel'],
  form#contact input[type='date'],
  form#contact select,
  form#contact textarea,
  form input[type='text'],
  form input[type='email'],
  form input[type='tel'],
  form input[type='date'],
  form select,
  form textarea {
    box-sizing: border-box;
    font-size: 16px; /* prevent iOS zoom */
    padding: 12px 14px;
    width: 100% !important;
  }

  .contact-form textarea,
  form#contact textarea,
  form textarea {
    min-height: 120px;
  }

  .contact-form .actions button,
  .contact-form button[type='submit'],
  form#contact .actions button,
  form#contact button[type='submit'],
  form button[type='submit'] {
    display: block;
    padding: 14px 18px;
    width: 100%;
  }

  .privacy,
  .consent,
  .gdpr,
  .data-consent {
    display: block;
    margin: 10px 0 0;
  }
}

/* --- Hotfix v13 --- */

/* A) Hero CTA should not enter the tear area on mobile */
@media (width <= 1024px) {
  .hero,
  .section-hero,
  .hero-section {
    padding-bottom: 56px !important;
  }

  .hero .btn,
  .hero .button,
  .hero .cta,
  .hero a.btn,
  .hero a.button {
    margin-bottom: 16px !important;
  }
}

@media (width <= 720px) {
  .hero,
  .section-hero,
  .hero-section {
    padding-bottom: 72px !important;
  }

  .hero .btn,
  .hero .button,
  .hero .cta,
  .hero a.btn,
  .hero a.button {
    margin-bottom: 20px !important;
  }
}

/* If the next section is pulled upward, neutralise that on mobile */
@media (width <= 900px) {
  .section,
  section,
  .section-rip,
  .section--rip,
  .with-rip,
  .rip-top,
  .torn-top,
  .grunge-top,
  .paper-tear-top {
    margin-top: 0 !important;
    top: 0 !important;
  }
}

/* Optional: mask edge overlap safely by a tiny inner fade (kept under CTA) */
.hero::after {
  background: linear-gradient(
    to bottom,
    rgb(231 221 208 / 0%) 0%,
    rgb(231 221 208 / 100%) 100%
  );
  bottom: 0;
  content: '';
  height: 20px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 1;
}

/* CTA itself above that small fade but still inside hero */
.hero .btn,
.hero .button,
.hero .cta,
.hero a.btn,
.hero a.button {
  position: relative;
  z-index: 3;
}

/* B) Mobile: place map AFTER the form */
@media (width <= 900px) {
  .contact-layout,
  .contact-grid,
  .form-grid,
  .grid-2,
  .grid-2col,
  .grid-2-cols {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* Try common map wrappers */
  .contact .map,
  .contact .map-embed,
  .contact .map-wrapper,
  .contact .mapBox,
  .contact .mapbox,
  .contact iframe[src*='maps'],
  .contact iframe[src*='google.com/maps'] {
    margin-top: 16px !important;
    order: 2 !important;
    width: 100% !important;
  }

  .contact .contact-form,
  .contact form,
  form#contact {
    order: 1 !important;
  }
}

/* === Hotfix v14 (aggressive) === */

/* Ensure hero has higher stacking than rip edges */
.hero,
.section-hero,
.hero-section,
[class*='hero'] {
  position: relative;
  z-index: 3 !important;
}

/* Put tear/rip/grunge section behind the hero content */
[class*='rip'],
[class*='tear'],
[class*='grunge'] {
  margin-top: 0 !important;
  position: relative;
  top: 0 !important;
  z-index: 1 !important;
}

[class*='rip']::before,
[class*='rip']::after,
[class*='tear']::before,
[class*='tear']::after,
[class*='grunge']::before,
[class*='grunge']::after {
  z-index: 0 !important;
}

/* Add extra space inside the hero on small screens so CTA never touches tear */
@media (width <= 1024px) {
  .hero,
  .section-hero,
  .hero-section,
  [class*='hero'] {
    padding-bottom: 96px !important;
  }

  .hero a,
  .hero button,
  [class*='hero'] a,
  [class*='hero'] button {
    margin-bottom: 16px !important;
  }
}

@media (width <= 760px) {
  .hero,
  .section-hero,
  .hero-section,
  [class*='hero'] {
    padding-bottom: 120px !important;
  }

  .hero a,
  .hero button,
  [class*='hero'] a,
  [class*='hero'] button {
    margin-bottom: 20px !important;
  }
}

/* Make sure the CTA itself is above the inner gradient if any */
.hero .btn,
.hero .button,
.hero .cta,
.hero a.btn,
.hero a.button,
[class*='hero'] .btn,
[class*='hero'] .button,
[class*='hero'] .cta {
  position: relative;
  z-index: 4 !important;
}

/* Mobile: map below form – try to stack by flex and order */
@media (width <= 900px) {
  .contact,
  .contact-section {
    display: block;
  }

  .contact .contact-layout,
  .contact .contact-grid,
  .contact .grid,
  .contact .grid-2,
  .contact .grid-2col,
  .contact .grid-2-cols {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* form first */
  .contact form,
  .contact .contact-form,
  .contact [class*='form'] {
    order: 1 !important;
    width: 100% !important;
  }

  /* map second */
  .contact iframe[src*='google.com/maps'],
  .contact iframe[src*='maps.google'],
  .contact .map,
  .contact .map-embed,
  .contact .map-wrapper,
  .contact .mapBox,
  .contact .mapbox {
    order: 2 !important;
    width: 100% !important;
  }
}

/* --- Contact section mobile heading spacing & tear clearance --- */
.contact-section,
.contact,
section.contact,
#contact-section {
  position: relative;
}

@media (width <= 760px) {
  .contact-section,
  .contact,
  section.contact,
  #contact-section {
    padding-top: 56px !important; /* space from top tear */
  }

  .contact-section h2,
  .contact-section h1,
  .contact h2,
  .contact h1 {
    margin-top: 12px !important;
  }
}

/* Ensure tear edges never overlap contact content */
.contact-section,
.contact {
  overflow: visible !important;
}

/* === Impressum & Datenschutz === */
.impressum-content,
.datenschutz-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  padding-top: 160px; /* Mehr Abstand für Desktop-Header */
}

.impressum-section,
.datenschutz-section {
  margin-bottom: 32px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #6b3e2e;
}

.impressum-section h3,
.datenschutz-section h3 {
  color: #1f2937;
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Hauptüberschriften mit extra Abstand */
.impressum-content h1,
.datenschutz-content h1 {
  margin-top: 0;
  margin-bottom: 32px;
}

.impressum-section p,
.datenschutz-section p {
  margin-bottom: 12px;
  color: #4b5563;
}

.impressum-section ul,
.datenschutz-section ul {
  margin: 12px 0;
  padding-left: 24px;
}

.impressum-section li,
.datenschutz-section li {
  margin-bottom: 8px;
  color: #4b5563;
}

.impressum-section a,
.datenschutz-section a {
  color: #6b3e2e;
  text-decoration: none;
  font-weight: 500;
}

.impressum-section a:hover,
.datenschutz-section a:hover {
  color: #5d3527;
  text-decoration: underline;
}

/* Desktop Impressum & Datenschutz */
@media (min-width: 901px) {
  .impressum-content,
  .datenschutz-content {
    padding-top: 180px; /* Extra Abstand für Desktop-Header mit Social Media */
  }
}

/* Mobile Impressum & Datenschutz */
@media (width <= 900px) {
  .impressum-content,
  .datenschutz-content {
    padding-top: 100px; /* Weniger Abstand auf Mobile */
  }

  .impressum-section,
  .datenschutz-section {
    padding: 16px;
    margin-bottom: 24px;
  }

  .impressum-section h3,
  .datenschutz-section h3 {
    font-size: 1.125rem;
  }
}

/* === Footer === */
footer {
  background: #f8f9fa;
  padding: 24px 20px;
  margin-top: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-right a {
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: #374151;
}

.footer-right .separator {
  color: #d1d5db;
  font-size: 14px;
}

/* Mobile Footer */
@media (width <= 900px) {
  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .footer-right {
    justify-content: center;
  }
}

.contact-section * {
  position: relative;
  z-index: 2;
}

.contact-section .torn-edge-top,
.contact-section .paper-tear-top,
.contact-section .rip-edge-top {
  z-index: 1 !important;
}

@media (width <= 600px) {
  #siteHeader .search-abs {
    gap: 8px;
  }

  #siteHeader .search-abs .icon-btn {
    display: none;
  }
  
  /* Override for desktop - show icon buttons */
  @media (min-width: 769px) {
    #siteHeader .search-abs .icon-btn {
      display: inline-flex !important;
      height: 36px !important;
      width: 36px !important;
    }
  }

  #siteHeader .search-abs .search-btn {
    height: 36px !important;
    width: 36px !important;
  }

  #siteHeader .search-abs .search-btn svg {
    height: 18px !important;
    width: 18px !important;
  }
}

/* === Active Page Highlighting === */
#siteHeader .left a.active,
#siteHeader .right a.active {
  color: var(--ink);
  font-weight: 600;
  position: relative;
  opacity: 0.8;
  text-decoration: none !important; /* Verhindert doppelte Unterstreichung */
}

#siteHeader .left a.active::after,
#siteHeader .right a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  border-radius: 1px;
  opacity: 0.6;
}

/* Verhindere Hover-Unterstreichung für aktive Links */
#siteHeader .left a.active:hover,
#siteHeader .right a.active:hover {
  text-decoration: none !important;
}

/* === Integrated Breadcrumbs in Header === */
.breadcrumbs {
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(120%) blur(6px);
  padding: 8px 0;
  font-size: 13px;
  color: #6b7280;
  display: block;
  position: fixed;
  top: 108px;
  left: 0;
  right: 0;
  z-index: 5;
  width: 100%;
  margin-top: 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.breadcrumbs .breadcrumb-content {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  padding-left: 20px;
  padding-right: 20px;
}

.breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumbs .separator {
  color: #9ca3af;
  margin: 0 4px;
}

.breadcrumbs .current {
  color: var(--ink);
  font-weight: 500;
}

/* Header overlay mode breadcrumbs */
#siteHeader.overlay .breadcrumbs {
  color: rgba(255,255,255,0.8);
  border-top-color: rgba(255,255,255,0.2);
}

#siteHeader.overlay .breadcrumbs a {
  color: rgba(255,255,255,0.8);
}

#siteHeader.overlay .breadcrumbs a:hover {
  color: #fff;
}

#siteHeader.overlay .breadcrumbs .current {
  color: #fff;
  font-weight: 600;
}

#siteHeader.overlay .breadcrumbs .separator {
  color: rgba(255,255,255,0.6);
}

/* Mobile breadcrumbs positioning */
@media (width <= 900px) {
  .breadcrumbs {
    top: 80px;
  }
  
  /* Mobile header breadcrumbs positioning */
  #mobileHeader + .breadcrumbs {
    top: 80px;
  }
}

/* ===== Testimonials Slider ===== */
.testimonials {
  padding: 50px 0 80px;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.testimonials .wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.testimonials .section-head {
  text-align: center;
  margin-bottom: 32px;
}

.testimonials .section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  margin-bottom: 10px;
}

.testimonials .divider {
  margin: 12px auto;
  max-width: 80px;
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 50px;
}

.testimonials-track {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  position: relative;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  flex: 0 0 240px;
  max-width: 240px;
  min-height: 170px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.92);
  position: absolute;
  left: 50%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(-50%) scale(1.0);
  z-index: 3;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  border-color: #d1d5db;
  pointer-events: auto;
  position: absolute;
  left: 50%;
}

.testimonial-card.left {
  opacity: 0.45;
  transform: translateX(calc(-50% - 265px)) scale(0.92);
  z-index: 1;
  pointer-events: auto;
  position: absolute;
  left: 50%;
}

.testimonial-card.right {
  opacity: 0.45;
  transform: translateX(calc(-50% + 265px)) scale(0.92);
  z-index: 1;
  pointer-events: auto;
  position: absolute;
  left: 50%;
}

.testimonial-card .stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.testimonial-card .quote-preview {
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
  margin-bottom: 8px;
  flex-grow: 1;
}

.testimonial-card .read-more {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 10px;
  transition: color 0.2s ease;
  text-align: left;
}

.testimonial-card .read-more:hover {
  color: #5d3527;
}

.testimonial-card .author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  margin-top: auto;
}

.testimonial-card .author strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.testimonial-card .author span {
  color: #9ca3af;
  font-size: 11px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  color: #9ca3af;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.slider-nav:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 4px rgba(107, 62, 46, 0.12);
}

.slider-nav svg {
    width: 16px;
  height: 16px;
}

.slider-nav.prev {
  left: 0;
}

.slider-nav.next {
  right: 0;
}

.slider-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}

.slider-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

.slider-dots .dot:hover {
  background: #9ca3af;
}

/* Mobile Responsiveness */
@media (width <= 1200px) {
  .testimonials-slider {
    padding: 0 60px;
  }
  
  .testimonial-card {
    flex: 0 0 300px;
    max-width: 300px;
    padding: 32px;
  }
}

@media (width <= 900px) {
  .testimonials {
    padding: 60px 0;
  }
  
  .testimonials-slider {
    padding: 0 50px;
  }
  
  .testimonials-track {
    min-height: 350px;
  }
  
  .testimonial-card {
    flex: 0 0 280px;
    max-width: 280px;
    padding: 28px;
  }
  
  .testimonial-card .quote {
    font-size: 15px;
    min-height: 100px;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
  }
  
  .slider-nav svg {
    width: 20px;
    height: 20px;
  }
}

/* Medium Mobile (600px - 768px) */
@media (width <= 768px) and (width > 600px) {
  .testimonials-slider {
    padding: 0 60px;
  }
  
  .testimonial-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 24px;
    margin: 0 !important;
    position: relative !important;
    transform: none !important;
    left: auto !important;
    opacity: 1 !important;
    display: none !important;
  }
  
  .testimonial-card.active {
    display: flex !important;
  }
  
  .testimonial-card.left,
  .testimonial-card.right {
    display: none !important;
  }
}

@media (width <= 600px) {
  .testimonials {
    padding: 40px 0 60px;
  }
  
  .testimonials-slider {
    padding: 0 70px;
  }
  
  .testimonials-track {
    min-height: 280px;
    justify-content: center;
    overflow: hidden;
  }
  
  .testimonial-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 24px 20px;
    margin: 0 !important;
    position: relative !important;
    transform: none !important;
    left: auto !important;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    display: none !important;
  }
  
  .testimonial-card.active {
    display: flex !important;
  }
  
  .testimonial-card.left,
  .testimonial-card.right {
    display: none !important;
  }
  
  .testimonial-card .quote-preview {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    min-height: 60px;
  }
  
  .testimonial-card .read-more {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .testimonial-card .author strong {
    font-size: 14px;
  }
  
  .testimonial-card .author span {
    font-size: 12px;
  }
  
  .slider-nav {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }
  
  .slider-nav.prev {
    left: 15px;
  }
  
  .slider-nav.next {
    right: 15px;
  }
  
  .slider-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .slider-dots {
    margin-top: 24px;
    gap: 8px;
  }
  
  .slider-dots .dot {
    width: 10px;
    height: 10px;
  }
}

/* ===== Testimonial Modal ===== */
.testimonial-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.testimonial-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease;
  padding: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--ink);
  background: #f3f4f6;
}

.modal-body {
  padding: 48px;
}

.modal-body .stars {
  color: #f59e0b;
  font-size: 24px;
  margin-bottom: 24px;
  letter-spacing: 4px;
}

.modal-body .quote-full {
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 32px;
  font-style: italic;
}

.modal-body .author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 2px solid #e5e7eb;
  padding-top: 24px;
}

.modal-body .author strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.modal-body .author span {
  color: #6b7280;
  font-size: 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (width <= 600px) {
  .modal-body {
    padding: 32px 24px;
  }
  
  .modal-body .quote-full {
    font-size: 16px;
  }
  
  .modal-close {
    top: 12px;
    right: 12px;
  }
}

/* ===== Gallery test pages ===== */

/* tiles + overlay (test1) */
.gal-tiles {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

/* Mobile Gallery Grid */
@media (width <= 768px) {
  .gal-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (width <= 480px) {
  .gal-tiles {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.gal-tile {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.gal-tile .stack {
  aspect-ratio: 4/3;
  position: relative;
  width: 100%;
}

.gal-tile .stack img {
  border: 8px solid #fff;
  box-shadow: 0 4px 8px rgb(0 0 0 / 15%);
  height: 100%;
  left: 50%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.gal-tile .stack img:nth-child(1) {
  transform: translate(-50%, -50%) rotate(-4deg);
}

.gal-tile .stack img:nth-child(2) {
  transform: translate(-50%, -50%) rotate(4deg);
}

.gal-tile .stack img:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-1deg);
}

.gal-tile .label {
  display: block;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

/* Mobile Gallery Tiles */
@media (width <= 768px) {
  .gal-tile .stack {
    aspect-ratio: 1/1;
  }
  
  .gal-tile .stack img {
    border: 4px solid #fff;
  }
  
  .gal-tile .label {
    font-size: 14px;
    margin-top: 6px;
  }
  
  .gal-tile .label strong {
    display: block;
    margin-bottom: 2px;
  }
}

@media (width <= 480px) {
  .gal-tile .stack {
    aspect-ratio: 4/3;
  }
  
  .gal-tile .label {
    font-size: 13px;
  }
}

.gal-overlay {
  align-items: center;
  background: rgb(0 0 0 / 80%);
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 100;
}

.gal-overlay.open {
  display: flex;
}

.gal-overlay .inner {
  color: #fff;
  position: relative;
  text-align: center;
}

.gal-overlay img {
  background: #fff;
  border: 8px solid #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 40%);
  max-height: 80vh;
  max-width: 90vw;
  transform: rotate(1deg);
}

.gal-overlay .prev,
.gal-overlay .next {
  background: rgb(0 0 0 / 50%);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  height: 48px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
}

.gal-overlay .prev {
  left: -60px;
}

.gal-overlay .next {
  right: -60px;
}

.gal-overlay .close {
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  height: 32px;
  position: absolute;
  right: -40px;
  top: -40px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
}

/* Mobile Gallery Overlay */
@media (width <= 768px) {
  .gal-overlay .inner {
    width: 95vw;
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .gal-overlay img {
    max-height: 70vh;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .gal-overlay .prev,
  .gal-overlay .next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    font-size: 24px;
    z-index: 101;
  }
  
  .gal-overlay .prev {
    left: 10px;
  }
  
  .gal-overlay .next {
    right: 10px;
  }
  
  .gal-overlay .close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    z-index: 101;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .gal-overlay .meta {
    margin-top: 20px;
    padding: 0 20px;
  }
  
  .gal-overlay .meta div {
    font-size: 14px;
    line-height: 1.4;
  }
}

.gal-overlay .meta {
  margin-top: 12px;
}

.gal-overlay .meta div + div {
  margin-top: 4px;
}

/* accordion (test2) */
.acc-item {
  border-bottom: 1px solid #e5e7eb;
}

.acc-head {
  background: var(--card);
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  padding: 16px;
  text-align: left;
  width: 100%;
}

.acc-item.open .acc-head {
  background: var(--accent);
  color: #fff;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.acc-item.open .acc-body {
  padding: 16px 0;
}

.acc-body .slider {
  position: relative;
}

.acc-body img {
  border-radius: 12px;
  display: block;
  max-height: 60vh;
  object-fit: cover;
  width: 100%;
}

.acc-body .prev,
.acc-body .next {
  background: rgb(0 0 0 / 50%);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  height: 40px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
}

.acc-body .prev {
  left: 10px;
}

.acc-body .next {
  right: 10px;
}

/* masonry + modal (test3) */
.masonry {
  column-count: 3;
  column-gap: 16px;
}

@media (width <= 800px) {
  .masonry {
    column-count: 2;
  }
}

@media (width <= 500px) {
  .masonry {
    column-count: 1;
  }
}

.masonry img {
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 16px;
  width: 100%;
}

.gal-modal {
  align-items: center;
  background: rgb(0 0 0 / 80%);
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 100;
}

.gal-modal.open {
  display: flex;
}

.gal-modal .inner {
  color: #fff;
  position: relative;
  text-align: center;
}

.gal-modal img {
  border-radius: 12px;
  max-height: 80vh;
  max-width: 90vw;
}

.gal-modal .prev,
.gal-modal .next {
  background: rgb(0 0 0 / 50%);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  height: 48px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
}

.gal-modal .prev {
  left: -60px;
}

.gal-modal .next {
  right: -60px;
}

.gal-modal .close {
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  height: 32px;
  position: absolute;
  right: -40px;
  top: -40px;
  width: 32px;
}

/* Unsere Tiere Seite */
.animal-section {
  text-align: center;
  margin: 40px 0;
}

.highlands-section {
  margin-bottom: 60px;
}

.animal-link {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s ease;
}

.animal-link:hover {
  text-decoration: none;
  transform: translateY(-5px);
}

.animal-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.highlands-image {
  max-width: 500px;
  margin-bottom: 20px;
}

.animal-link:hover .animal-image {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.animals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.animal-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.animal-item:hover {
  transform: translateY(-5px);
}

.animal-item .animal-image {
  max-width: 300px;
  margin-bottom: 16px;
}

.animal-item h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.highlands-section h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
}

@media (width <= 768px) {
  .animals-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .highlands-image {
    max-width: 350px;
  }
  
  .animal-item .animal-image {
    max-width: 250px;
  }
}

/* === FINAL BUTTON SIZE FIX === */
/* Force all buttons in search-abs to be exactly 36x36px */
#siteHeader .search-abs .icon-btn,
#siteHeader .search-abs .search-btn,
#siteHeader .search-abs button {
  height: 36px !important;
  width: 36px !important;
  min-height: 36px !important;
  min-width: 36px !important;
  max-height: 36px !important;
  max-width: 36px !important;
}

/* Force all SVGs in search-abs to be exactly 18x18px */
#siteHeader .search-abs .icon-btn svg,
#siteHeader .search-abs .search-btn svg,
#siteHeader .search-abs button svg {
  height: 18px !important;
  width: 18px !important;
}

/* Specific rules for scrolled header */
#siteHeader.scrolled .search-abs .icon-btn,
#siteHeader.scrolled .search-abs .search-btn,
#siteHeader.scrolled .search-abs button {
  height: 36px !important;
  width: 36px !important;
  min-height: 36px !important;
  min-width: 36px !important;
  max-height: 36px !important;
  max-width: 36px !important;
}

#siteHeader.scrolled .search-abs .icon-btn svg,
#siteHeader.scrolled .search-abs .search-btn svg,
#siteHeader.scrolled .search-abs button svg {
  height: 18px !important;
  width: 18px !important;
}
