:root {
  --body-bg-color: rgb(244, 239, 229);
}

* {
  box-sizing: border-box;
}

/* Visually hidden – accessible to screen readers & search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Offset for sticky header */
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: rgb(76, 71, 65);
  line-height: 1.6;
  background-color: var(--body-bg-color);
}

/* Hero Section */
.hero-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  /* Occupy full viewport height */
  box-sizing: border-box;
}

/* Background Image */
.background-image {
  max-width: 1200px;
  width: 90%;
  max-height: 90vh;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  box-shadow: none !important;
  filter: none !important;
}

@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
    /* Reduced height on mobile */
  }

  .background-image {
    width: 95%;
    max-height: 70vh;
  }
}

/* Main Content Container */
.main-content {
  max-width: 1750px;
  margin: 0 auto;
  padding: 0;
  color: rgb(76, 71, 65);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Sections (No Scroll Snap) */
.main-content>section {
  box-sizing: border-box;
  margin: 0;
  /* Add fade-in styles */
  opacity: 0;
  transform: translateY(30px);
  /* Reduced from 80px to prevent threshold oscillation */
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  /* Slower transition */
  will-change: opacity, transform;
}

.main-content>section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer (No Scroll Snap) */


/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.headline {
  /* Unified size */
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
  /* Reserved space for edges */
  text-shadow: none;
  /* Removed shadow */
  position: static;
  /* Remove absolute positioning */
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
  font-weight: bold;
  box-sizing: border-box;
}

h2 {
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
  margin-top: 60px;
}

h3 {
  color: rgb(76, 71, 65);
  /* Updated Header Color */
}

h4 {
  color: rgb(76, 71, 65);
  /* Updated Header Color */
}

p {
  font-size: 1rem;
  margin-bottom: 1.5em;
  max-width: 800px;
  /* Optimal reading width */
}

a {
  color: rgb(136, 138, 243);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: rgb(76, 71, 65);
  text-decoration: underline;
}

/* Standardized Design for Contact Links (#kontakt) */
.contact-link {
  color: rgb(76, 71, 65);
  text-decoration: underline;
  text-decoration-color: rgb(121, 135, 105);
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: rgb(121, 135, 105);
  text-decoration: underline;
}

/* Navigation Bar */
.container-navigation {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 820px;
  /* Narrower width requested */
  background-color: rgba(121, 135, 105, 0.95);
  backdrop-filter: blur(10px);
  margin: 0 auto 40px;
  display: flex;
  justify-content: center;
  /* Center all elements together */
  align-items: center;
  gap: 20px;
  /* Unified distance between all elements */
  padding: 8px 20px;
  border-radius: 0 0 16px 16px;
  border: 1px solid rgba(76, 71, 65, 0.2);
  border-top: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  box-sizing: border-box;
}

/* Updated centering logic */
.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  /* Matching the header gap */
}

/* Hide checkbox */
.menu-checkbox {
  display: none;
}

/* Hamburger icon styles (hidden by default) */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  position: absolute;
  transition: all 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  top: 20px;
}

/* Adjust scrolling for anchors due to sticky header */
section[id] {
  scroll-margin-top: 100px;
}

/* About Section Redesign */
.about-container {
  display: flex;
  gap: 40px;
  align-items: stretch;
  margin: 100px auto;
  max-width: 1750px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.about-image-column {
  flex: 0 0 25%;
  max-width: 325px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-image-wrap {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-image-wrap .about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

/* Ensure top image shows the head */
.about-image-column .about-image-wrap:first-child .about-image {
  object-position: center 10%;
}

.about-image {
  flex: 0 0 35%;
  /* Reduced from 40% to allow more space for text */
  max-width: 450px;
  width: 100%;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}


.about-text-block {
  flex: 1;
  background-color: rgba(121, 135, 105, 0.15);
  /* Significantly lighter green */
  padding: 40px;
  border-radius: 40px;
  color: rgb(76, 71, 65);
  /* Back to dark text for contrast */
  line-height: 1.8;
  border-left: 8px solid rgb(121, 135, 105);
  /* Slightly thicker accent border */
}

.about-text-block p {
  margin-bottom: 1.5rem;
  max-width: none;
}

@media (max-width: 768px) {
  .about-container {
    margin: 40px auto;
    gap: 30px;
  }

  .about-text-block {
    padding: 25px;
    border-left: 5px solid rgb(121, 135, 105);
    border-radius: 25px;
  }

  /* Removed overrides */

  .about-text-block p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
  }

  .about-image-column {
    flex: none;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .about-image-wrap {
    flex: none;
    /* Crucial: prevent collapse on mobile */
    height: 400px;
    width: 100%;
    overflow: hidden;
  }

  .about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 25px;
  }
}

#angebot,
#galerie,
#history,
#faq,
#kontakt {
  max-width: 1750px;
  width: 100%;
  margin: 100px auto;
  box-sizing: border-box;
}

#angebot,
#galerie,
#history {
  padding: 40px;
  border: 4px solid rgba(121, 135, 105, 0.4);
  border-radius: 40px;
}

#angebot,
#history {
  background-color: rgba(76, 71, 65, 0.08);
}

#galerie {
  background-color: rgba(121, 135, 105, 0.15);
}


@media (max-width: 768px) {

  #angebot,
  #galerie,
  .faq-section-frame,
  .section-card {
    margin: 40px auto;
    width: calc(100% - 30px);
    /* 15px space on each side, perfectly centered */
    padding: 20px;
    border-radius: 25px;
  }

  /* History section frame alignment */
  #history {
    margin: 40px auto;
    width: calc(100% - 30px);
    padding: 20px 0 0;
    /* No horizontal or bottom padding */
    border-radius: 25px;
    overflow: hidden;
    /* Ensure child clips to border-radius */
  }

  /* Keep headline indented while contents are full-width */
  #history .headline {
    padding: 0 20px;
  }

  .headline {
    margin-bottom: 25px;
  }
}

/* Consolidated sections above */

.history-layout {
  display: flex;
  gap: 30px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.history-tile {
  flex: 1 1 0;
  background-color: rgba(121, 135, 105, 0.22);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-top: 6px solid rgb(121, 135, 105);
}

.history-tile-heading {
  font-weight: bold;
  color: rgb(121, 135, 105);
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(121, 135, 105, 0.2);
  padding-bottom: 15px;
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.history-image-column {
  flex: 0 0 25%;
  max-width: 325px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
}

.history-image-tile {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.history-image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.history-image-tile img.history-image-bobby {
  object-position: center 84%;
  /* Adjusted to show more of the lower area as requested */
}

.history-image-tile img.history-image-jata {
  object-position: center 15%;
  /* Shifted up to show more head/hair at the top */
}

@media (max-width: 768px) {
  .history-layout {
    flex-direction: column;
  }

  .history-image-column {
    flex: none;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .history-image-tile {
    flex: none;
    height: 400px;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    /* Soft rounded corners */
    margin-bottom: 16px;
  }

  .history-image-column .history-image-tile:last-child {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    /* Clipped by #history overflow */
  }

  .history-tile {
    padding: 25px 20px;
    border-radius: 16px;
    /* Soft rounded corners */
    margin: 0 0 16px 0;
    border-left: none;
    border-right: none;
  }

  .history-layout {
    gap: 0;
  }
}

#angebot .headline {
  color: rgb(76, 71, 65);
}

.tiles-grid {
  display: flex;
  flex-wrap: wrap;
  /* Changed from nowrap to allow price note to wrap */
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 1750px;
  width: 100%;
}

.offer-price-note {
  width: 100%;
  min-width: 100%;
  /* Force full width */
  flex: 0 0 100%;
  /* Force new line in flex container */
  text-align: left;
  margin-top: 20px;
  padding-left: 10px;
  box-sizing: border-box;
}

/* ── FAQ Section Frame ──────────────────────────────────────────────────── */
#faq,
#kontakt {
  padding: 0;
  border: none;
  background: none;
}

.faq-section-frame {
  background-color: rgba(76, 71, 65, 0.08);
  border: 1px solid rgba(121, 135, 105, 0.3);
  border-left: 6px solid rgb(121, 135, 105);
  border-radius: 40px;
  padding: 40px 36px 30px 30px; /* Right padding 36px to balance 6px border + 30px left padding */
  max-width: 1750px;
  margin: 100px auto;
}

.faq-section-frame .headline {
  font-weight: bold;
  color: rgb(76, 71, 65);
  margin-top: 0;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ── FAQ Expand Panel ───────────────────────────────────────────────────── */
.faq-expand-panel {
  grid-column: 3 / 4;
  grid-row: 1 / 6;
  display: block;
  background-color: rgba(121, 135, 105, 0.05);
  border-radius: 16px;
  border: 1px dashed rgba(121, 135, 105, 0.3);
  box-sizing: border-box;
  position: relative;
  padding: 32px 40px;
  align-self: stretch;
}

.faq-expand-panel.visible {
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  border-left: 6px solid rgb(121, 135, 105);
  box-shadow: 0 6px 24px rgba(121, 135, 105, 0.15);
}

.faq-expand-panel:not(.visible) .faq-expand-close,
.faq-expand-panel:not(.visible) .faq-expand-content {
  display: none;
}

.faq-expand-panel:not(.visible)::before {
  content: '?';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  font-weight: 700;
  color: rgba(121, 135, 105, 0.2);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.faq-expand-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: rgb(121, 135, 105);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.faq-expand-close:hover {
  background: rgba(121, 135, 105, 0.1);
}

.faq-expand-content h3 {
  color: rgb(76, 71, 65);
  margin-top: 0;
  margin-bottom: 20px;
}

.faq-expand-content h4 {
  color: rgb(76, 71, 65);
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

.faq-expand-content p,
.faq-expand-content li {
  font-size: 1rem;
  line-height: 1.7;
  max-width: none;
}

.faq-expand-content img {
  max-width: 320px;
  border-radius: 10px;
  margin: 10px 0;
}

.faq-expand-content .video-container {
  margin: 16px 0;
}


.faq-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 3fr;
  gap: 20px;
  margin: 40px auto;
  max-width: 1750px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  align-items: start;
}

.faq-footer-note {
  grid-column: 1 / -1;
  text-align: left;
  margin-top: 20px;
  padding-left: 10px;
  width: 100%;
}

.gallery-footer-note {
  text-align: left;
  margin-top: 15px;
  padding-left: 0;
  width: 100%;
  font-size: 1rem;
  color: rgb(76, 71, 65);
}

.faq-footer-note a {
  color: rgb(76, 71, 65);
  text-decoration: underline;
  text-decoration-color: rgb(121, 135, 105);
}

.faq-footer-note a:hover {
  color: rgb(121, 135, 105);
}

/* tile-content in faq-tiles ist versteckt – Inhalt wird im Expand-Panel angezeigt */
.faq-tile .tile-content {
  display: none;
}

.faq-tile {
  cursor: pointer;
  user-select: none;
  grid-column: span 1;
}

.faq-tile .offer-tile-header {
  margin-bottom: 0;
}

.offer-tile-arrow {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 300;
  color: rgb(121, 135, 105);
  line-height: 1;
  padding-left: 8px;
}

/* Aktive Kachel hervorheben */
.faq-tile.open {
  border-top-color: rgb(90, 105, 75);
  box-shadow: 0 4px 16px rgba(121, 135, 105, 0.25);
}


.offer-tile {
  flex: 1 1 0;
  min-width: 0;
  background-color: rgba(121, 135, 105, 0.12);
  padding: 24px 20px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  border-top: 6px solid rgb(121, 135, 105);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.offer-tile-special {
  border-top-color: rgb(52, 105, 100) !important;
  background-color: rgba(52, 105, 100, 0.12) !important;
}


.offer-tile-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.offer-tile h2,
.offer-tile h3 {
  color: rgb(76, 71, 65);
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.3;
  min-height: 2.6rem;
  /* Enforce 2-line height for alignment */
  display: flex;
  align-items: center;
  /* Vertically center 1-line titles within the 2-line space */
}

.tile-content {
  color: rgb(76, 71, 65);
  font-size: 1rem;
  line-height: 1.6;
}


.history-tile .tile-content p {
  margin-bottom: 0.6em;
  max-width: none;
}

.tile-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.tile-content li {
  margin-bottom: 8px;
}

.offer-price-note {
  text-align: left;
  margin-top: 20px;
  padding-left: 10px;
}

.offer-price-note a {
  color: rgb(76, 71, 65);
  font-size: 1rem;
  text-decoration: underline;
}

.offer-price-note a:hover {
  text-decoration: none;
  /* Optional: remove underline on hover for effect */
  color: rgb(121, 135, 105);
}

/* Responsive Mobile Menu */
@media (max-width: 768px) {
  .container-navigation {
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
    border-radius: 0;
    margin-bottom: 20px;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden off-screen */
    width: 280px;
    height: auto;
    max-height: 90vh;
    background-color: rgba(121, 135, 105, 1);
    /* Fully opaque for better mobile performance */
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    padding-bottom: 30px;
    transition: 0.4s ease-in-out;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 30px;
  }

  /* Show menu when checkbox is checked */
  .menu-checkbox:checked~.nav-links {
    right: 0;
  }

  /* Hamburger transform when open */
  .menu-checkbox:checked~.hamburger span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
  }

  .menu-checkbox:checked~.hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-checkbox:checked~.hamburger span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
  }

  .menu-link {
    width: 80%;
    text-align: center;
    padding: 15px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
  }

  .menu-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .home-button {
    width: 40px;
    height: 40px;
  }
}

/* Special Hair Button Overlay */
#angebot {
  position: relative;
  /* Context for absolute positioning */
}

/* Special Hair Section (Legacy styles removed, now integrated as tile) */

.special-hair-tile {
  /* Animation for revealing */
  animation: fadeInTile 0.7s ease-out;
}

@keyframes fadeInTile {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.menu-link {
  color: white;
  font-weight: 600;
  padding: 10px 18px;
  font-size: 1rem;
  transition: all 0.3s;
  border-radius: 20px;
  white-space: nowrap;
}

.menu-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
}

/* Hide toggle and old home button fixed positioning */
.menu-toggle {
  display: none !important;
}

.home-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  z-index: 1005;
  flex-shrink: 0;
}

.home-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}



/* Images & Media */
img {
  max-width: 100%;
  height: auto;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* FAQ Accordion Styles */
.faq-container {
  max-width: 1750px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(76, 71, 65, 0.2);
  border-radius: 32px;
  overflow: hidden;
  transition: transform 0.3s;
}

.faq-item:not(:has(.static)):hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.faq-question {
  width: 100%;
  background-color: rgba(121, 135, 105, 0.95);
  border: none;
  color: white;
  text-align: left;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 20px;
  background-color: var(--body-bg-color);
  color: rgb(76, 71, 65);
}

.faq-item.active .faq-answer {
  padding: 20px;
  /* max-height is now managed dynamically by script.js */
}

/* Static FAQ Styles */
.faq-question.static {
  cursor: default;
}

.faq-question.static::after {
  content: none;
}

.faq-answer.static {
  max-height: none;
  padding: 20px;
  overflow: visible;
}

/* Utilities */
.text-center {
  text-align: center;
}

.content-container {
  width: 100%;
  max-width: 1750px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.section-card {
  background: rgba(255, 255, 255, 0.4);
  padding: 40px;
  border-radius: 40px;
  margin: 100px auto;
  backdrop-filter: blur(5px);
}

/* ── Bewertungen ───────────────────────────────────────────────────────── */
.reviews-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 40px auto;
  max-width: 1200px;
}

.review-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(121, 135, 105, 0.25);
  border-top: 4px solid rgb(121, 135, 105);
  border-radius: 20px;
  padding: 28px 28px 24px;
  flex: 1 1 280px;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card.expanded {
  aspect-ratio: auto;
}

.review-stars {
  color: rgb(200, 160, 40);
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.review-text {
  color: rgb(76, 71, 65);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Review Modal Overlay ── */
.review-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.review-modal-content {
  background: rgb(244, 239, 229);
  border: 1px solid rgba(121, 135, 105, 0.25);
  border-top: 6px solid rgb(121, 135, 105);
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.review-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: rgb(76, 71, 65);
  cursor: pointer;
}

.review-modal-text {
  color: rgb(76, 71, 65);
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.review-author {
  font-weight: 700;
  color: rgb(76, 71, 65);
  font-size: 0.9rem;
}

.review-date {
  font-size: 0.8rem;
  color: rgb(121, 135, 105);
}

.reviews-cta {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 40px;
}

.reviews-link {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid rgb(121, 135, 105);
  border-radius: 30px;
  color: rgb(121, 135, 105);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.reviews-link:hover {
  background-color: rgb(121, 135, 105);
  color: white;
  text-decoration: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  margin-top: auto;
  /* Push to bottom */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: rgb(76, 71, 65);
  /* New Footer Color */
}

.footer-copy {
  font-size: 0.8rem;
  color: rgb(76, 71, 65);
  /* Updated color */
  max-width: 100%;
}



.footer-copy a {
  color: rgb(76, 71, 65);
  font-weight: 500;
}

.impressum-button {
  padding: 10px 20px;
  border: 1px solid rgb(76, 71, 65);
  /* Updated border */
  border-radius: 30px;
  color: rgb(76, 71, 65);
  /* Updated text color */
  transition: all 0.3s;
  font-size: 0.9rem;
  text-decoration: none;
}

@media (min-width: 768px) {
  footer {
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    gap: 40px;
  }
}

.impressum-button:hover {
  background: rgb(76, 71, 65);
  /* Inverted hover */
  color: white;
  text-decoration: none;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 80%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  transform: scale(0.9);
  transition: transform 0.3s;
  cursor: default;
  z-index: 2001;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-disclaimer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 20px;
  pointer-events: none;
  display: none;
  z-index: 2004;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 2003;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2002;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

/* Name + Titel Block */
.contact-name-block {
  margin-bottom: 20px;
}

.contact-name {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: 1rem;
  color: rgb(76, 71, 65);
  margin: 0 0 4px;
}

.contact-subtitle {
  font-size: 1rem;
  color: rgb(121, 135, 105);
  margin: 0 0 16px;
  letter-spacing: 0.03em;
  max-width: none;
}

.contact-divider {
  border: none;
  border-top: 1px solid rgba(76, 71, 65, 0.2);
  margin: 0 0 20px;
  width: 60%;
}

/* Begrüßungstext */
.contact-intro {
  font-size: 1rem;
  color: rgb(76, 71, 65);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: none;
}

/* Kontaktzeilen */
.contact-details {
  list-style: none;
  padding: 0;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 1rem;
}

.contact-details li a {
  color: rgb(76, 71, 65);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-details li a:hover {
  color: rgb(121, 135, 105);
}

/* Icon-Kreise */
.contact-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background-color: rgb(121, 135, 105);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  display: block;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  height: 420px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Adjusments */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 300px;
  }
}


/* Make images in grid clickable */
.image-grid img {
  cursor: pointer;
  transition: transform 0.2s;
}

.image-grid img:hover {
  transform: scale(1.05);
}

/* Responsive Adjusments */
@media (max-width: 768px) {
  .main-content {
    padding-top: 70px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Removed overrides */

  .section-card {
    padding: 25px;
  }
}

/* Homepage Horizontal Navigation */
.homepage-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 40px 0;
  padding: 0 20px;
}

.homepage-link {
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(76, 71, 65, 0.2);
  border-radius: 10px;
  color: rgb(76, 71, 65);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  text-align: center;
  min-width: 150px;
}

.homepage-link:hover {
  background: rgb(76, 71, 65);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

@media (max-width: 768px) {
  .homepage-nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .homepage-link {
    width: 80%;
    max-width: 300px;
  }
}

/* Gallery Refactoring */
.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

/* Horizontal preview row */
.gallery-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.gallery-preview-row .gallery-category {
  flex: 1 1 180px;
  max-width: 260px;
  margin-bottom: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.gallery-preview-row .gallery-category h2 {
  min-height: 2.5rem;
  /* Reduced from 5rem for smaller font */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: none;
}

.gallery-preview-item {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-preview-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 992px) {
  .gallery-container {
    flex-direction: row;
    align-items: flex-start;
  }
}

.gallery-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 250px;
}

.gallery-btn {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(76, 71, 65, 0.2);
  border-radius: 12px;
  color: rgb(76, 71, 65);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  font-weight: 500;
}

.gallery-btn.active {
  background: rgb(121, 135, 105);
  color: rgb(76, 71, 65);
  border-color: rgb(76, 71, 65);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-display {
  flex-grow: 1;
  min-height: 400px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /* Distribute space */
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}

.gallery-grid.loading {
  opacity: 0;
}

.gallery-item {
  flex: 1 1 200px;
  /* Allow growth to fill the row */
  height: 200px;
  /* Increased height for better presence */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-category {
  margin-bottom: 50px;
  width: 100%;
}

.gallery-category h2 {
  color: rgb(76, 71, 65);
  border-bottom: 2px solid rgba(76, 71, 65, 0.2);
  padding-bottom: 10px;
  margin-bottom: 25px;
  margin-top: 0;
}

/* FAQ Image Reveal Styles */
.faq-media-container {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.reveal-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(76, 71, 65, 0.2);
  border-radius: 8px;
  color: rgb(76, 71, 65);
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reveal-btn.inline {
  display: inline;
  padding: 2px 8px;
  background: rgba(121, 135, 103, 0.6);
  border: none;
  border-bottom: 1px dashed rgba(76, 71, 65, 0.5);
  border-radius: 32px;
  font-size: 1rem;
  color: rgb(76, 71, 65);
  margin: 0 2px;
  vertical-align: baseline;
}

.reveal-btn.inline.active {
  background: rgba(121, 135, 103, 0.6);
  color: rgb(76, 71, 65);
  border-bottom: 1px solid rgb(76, 71, 65);
}

.reveal-btn.inline.active::after {
  transform: none;
  /* Reset rotation for inline emoji */
}

.reveal-btn::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.reveal-btn.active {
  background: rgb(76, 71, 65);
  color: white;
}

.reveal-btn.active::after {
  transform: rotate(180deg);
}

.reveal-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.reveal-content.active {
  max-height: 600px;
  margin-top: 15px;
  margin-bottom: 25px;
}

.reveal-content img {
  max-width: 100%;
  max-height: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.mt-4 {
  margin-top: 1.5rem;
}

/* ── Responsive: Offer & FAQ Tiles ─────────────────────────────────────── */

/* Mobiles Inline-Panel (wird per JS nach der Kachel eingefügt) */
.faq-inline-panel {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  border-left: 6px solid rgb(121, 135, 105);
  box-shadow: 0 6px 24px rgba(121, 135, 105, 0.15);
  padding: 24px 28px;
  position: relative;
  box-sizing: border-box;
  display: none;
  overflow-wrap: break-word;
  /* Prevents long words from overrunning bounds */
  word-break: break-word;
  max-width: 100%;
}

.faq-inline-panel.visible {
  display: block;
}

.faq-inline-panel .faq-expand-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: rgb(121, 135, 105);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.faq-inline-panel h3 {
  color: rgb(76, 71, 65);
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 16px;
}

.faq-inline-panel h4 {
  color: rgb(76, 71, 65);
  margin-top: 1em;
  margin-bottom: 0.4em;
}

.faq-inline-panel p,
.faq-inline-panel li {
  font-size: 1rem;
  line-height: 1.7;
  max-width: none;
}

/* Mittlere Bildschirme: Angebot 3 Kacheln, FAQ einspaltg + festes Panel weg */
@media (max-width: 1200px) {
  .tiles-grid {
    flex-wrap: wrap;
  }

  .offer-tile {
    flex: 1 1 calc(33% - 20px);
  }

  .faq-tiles-grid {
    grid-template-columns: 1fr;
  }

  .faq-tile {
    grid-column: span 1;
  }

  #faqExpandPanel {
    display: none !important;
  }
}

/* Kleine Bildschirme */
@media (max-width: 768px) {
  .offer-tile {
    flex: 1 1 calc(50% - 20px);
  }

  .faq-section-frame {
    padding: 24px 6px 20px 0px; /* Right padding 6px to balance 6px left border */
    /* Removed horizontal padding within frame */
  }

  /* Keep headline indented while grid is full-width */
  .faq-section-frame .headline {
    padding: 0 20px;
  }

  #faq,
  #kontakt {
    padding: 0;
    /* Align frame width with other container-sections */
  }


  .offer-tile,
  .faq-tile,
  .history-tile,
  .history-image-tile,
  .contact-link,
  .menu-link,
  .about-image,
  .history-image-tile img {
    transition: none !important;
    transform: none !important;
  }

  /* Ensure hover states are flat on touch devices */
  .offer-tile:hover,
  .faq-tile:hover,
  .history-tile:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .faq-tiles-grid {
    padding: 0;
    /* Tiles take full frame width */
  }

  .faq-tile {
    /* Ensure no local padding constrains it */
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
    /* Maintain some rounding if it's not looking right */
  }

  .faq-inline-panel {
    padding: 20px 20px;
    border-radius: 0;
    /* Match tile style for full width feel */
    margin: 0;
    border-left: none;
    border-right: none;
    background-color: rgba(255, 255, 255, 0.6);
  }

  /* Popover adjustments for mobile */
  .faq-img-popover {
    max-width: calc(100vw - 40px);
    width: auto;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    /* Re-enable for this specific element if needed */
  }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
  .offer-tile {
    flex: 1 1 100%;
  }

}

/* ── FAQ Bild-Popover (Desktop) ──────────────────────────────────────────── */
.faq-img-popover {
  position: absolute;
  z-index: 1500;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  padding: 10px;
  max-width: 300px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.faq-img-popover.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-img-popover img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: none;
}

.faq-img-popover-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(76, 71, 65, 0.08);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: rgb(76, 71, 65);
  padding: 2px 7px;
  border-radius: 20px;
  line-height: 1.6;
  transition: background 0.2s;
}

.faq-img-popover-close:hover {
  background: rgba(76, 71, 65, 0.18);
}

/* ── Kontakt Section (Visitenkarte) ──────────────────────────────────────── */
.section-card {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  /* Soft shadow */
  padding: 0;
  /* Let grid handle layout */
  overflow: hidden;
  /* Ensure rounded corners clip map */
  max-width: 1200px;
  /* Standard content width */
  margin: 100px auto;
}

.impressum-content p,
.impressum-content h3 {
  font-size: 1rem;
}

.impressum-page .headline {
  margin-bottom: 20px;
}

.impressum-page .section-card {
  margin-top: 30px;
}



.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 450px;
}

.contact-info {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-name-block {
  margin-bottom: 0;
}

.contact-brand-wrapper {
  display: inline-block;
  /* Matches width of contents */
  margin-bottom: 5px;
}

.contact-logo {
  display: block;
  max-width: 270px;
  /* Reduced by an additional 20% (from 338px to 270px) */
  height: auto;
  margin-left: 0;
  /* Aligned with the left edge of the divider */
  margin-bottom: 5px;
  box-shadow: none !important;
  filter: none !important;
}

.contact-divider {
  border: none;
  border-top: 4px solid rgb(121, 135, 105);
  width: 100%;
  /* Takes full width of the wrapper (fits text) */
  margin: 15px 0 0 0;
}

.contact-intro {
  font-size: 1rem;
  line-height: 1.6;
  color: rgb(76, 71, 65);
  margin-bottom: 30px;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1rem;
}

.contact-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background-color: rgb(121, 135, 105);
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-details a {
  text-decoration: none;
  color: rgb(76, 71, 65);
  transition: color 0.2s;
}

.contact-details a:hover {
  color: rgb(121, 135, 105);
}

.map-container {
  background-color: #eee;
  width: 100%;
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  vertical-align: bottom;
  /* Fix gap */
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 300px;
  }

  .contact-info {
    padding: 30px 20px;
  }

  .contact-logo {
    max-width: 200px;
  }
}

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 40px 20px;
  background-color: transparent;
  margin-top: 60px;
  /* Reduced from 100px */
  border-top: 1px solid rgba(121, 135, 105, 0.2);
}

.footer-copy {
  margin-bottom: 20px;
  color: rgb(76, 71, 65);
  font-size: 0.85rem;
}

.footer-copy a {
  color: rgb(76, 71, 65);
  text-decoration: none;
}

.impressum-button {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgb(121, 135, 105);
  border-radius: 20px;
  color: rgb(121, 135, 105);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
}

.impressum-button:hover {
  background-color: rgb(121, 135, 105);
  color: white;
}

/* ── Kein Ton-Button für stummgeschaltete Videos ─────────────────────────── */
video.no-audio::-webkit-media-controls-mute-button {
  display: none !important;
}

video.no-audio::-webkit-media-controls-volume-slider {
  display: none !important;
}

video.no-audio::-webkit-media-controls-volume-control-container {
  display: none !important;
}