/* ============================================================
   Hotel Adrian – style.css
   Mediteranes Design: Blau / Sand / Terracotta
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary:     #1a5276;   /* Mediterranes Blau */
  --color-primary-dk:  #154360;
  --color-primary-lt:  #2e86c1;
  --color-secondary:   #f5e6ca;   /* Sand */
  --color-accent:      #e67e22;   /* Koralle / Terracotta */
  --color-accent-dk:   #ca6f1e;
  --color-text:        #2c3e50;
  --color-text-muted:  #6c757d;
  --color-white:       #ffffff;
  --color-bg-alt:      #f8f4ef;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --nav-height:   70px;
  --radius:       8px;
  --radius-lg:    16px;
  --shadow:       0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.15);
  --transition:   0.3s ease;
  --max-width:    1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus { color: var(--color-accent); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--color-primary);
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }
.section-alt { background: var(--color-bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dk);
  border-color: var(--color-accent-dk);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.15rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
}

#main-nav {
  height: 100%;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
#main-nav.scrolled {
  background: var(--color-primary-dk);
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo:hover { color: var(--color-secondary); text-decoration: none; }
.logo-icon { font-size: 1.5rem; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link:focus {
  color: var(--color-white);
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}
.nav-link.nav-cta {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.5rem 1.1rem;
}
.nav-link.nav-cta:hover {
  background: var(--color-accent-dk);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.2rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255,255,255,0.3);
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.lang-btn:hover, .lang-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      160deg,
      #0e3d6e 0%,
      #1a5276 30%,
      #1f8fa8 65%,
      #2eb8c7 85%,
      #a3d8e0 100%
    );
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 70%, rgba(230,126,34,0.15) 0%, transparent 60%),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Decorative wave at bottom */
#hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 2rem 1.5rem;
  max-width: 700px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-style: italic;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
  margin-bottom: 2.5rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   ÜBER UNS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p { margin-bottom: 1rem; }
.about-text .btn { margin-top: 1rem; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.feature-card {
  background: var(--color-white);
  border: 1px solid rgba(26,82,118,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }

/* ============================================================
   ZIMMER
   ============================================================ */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.room-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.room-img {
  width: 100%;
  aspect-ratio: 4/3;
}

/* Placeholder images */
.placeholder-img {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-lt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-img--large { aspect-ratio: 16/9; }
.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-style: italic;
}
.placeholder-content span:first-child { font-size: 3rem; }

.room-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.room-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.room-info p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  flex: 1;
}
.room-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  margin-bottom: 1.25rem;
}
.room-features li { font-size: 0.88rem; color: var(--color-text-muted); }
.rooms-note {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--color-text-muted);
}

/* ============================================================
   RESTAURANT
   ============================================================ */
.restaurant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.restaurant-img-wrap { position: sticky; top: calc(var(--nav-height) + 1rem); }
.restaurant-img-wrap .placeholder-img { border-radius: var(--radius-lg); overflow: hidden; }

.restaurant-text .lead { margin-bottom: 2rem; }
.menu-highlights { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.menu-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.menu-icon { font-size: 1.75rem; flex-shrink: 0; margin-top: 0.1rem; }
.menu-item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.menu-item p { font-size: 0.93rem; color: var(--color-text-muted); margin: 0; }

.opening-hours {
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.opening-hours h3 { margin-bottom: 1rem; }
.opening-hours table { width: 100%; border-collapse: collapse; }
.opening-hours td { padding: 0.4rem 0; }
.opening-hours td:first-child { font-weight: 700; width: 45%; }
.opening-hours .note { margin-top: 0.75rem; font-size: 0.85rem; color: var(--color-text-muted); }

/* ============================================================
   STRAND & UMGEBUNG
   ============================================================ */
.beach-intro { text-align: center; margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.beach-intro .lead { margin: 0; }

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.activity-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.activity-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.activity-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.activity-card p { font-size: 0.92rem; color: var(--color-text-muted); margin: 0; }

.map-section h3 { text-align: center; margin-bottom: 1.5rem; font-size: 1.5rem; }
.map-placeholder {
  background: linear-gradient(135deg, #d6eaf8 0%, #aed6f1 50%, #85c1e9 100%);
  border-radius: var(--radius-lg);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-primary-lt);
}
.map-placeholder-content {
  text-align: center;
  color: var(--color-primary);
  padding: 2rem;
}
.map-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.map-placeholder-content p { margin-bottom: 0.5rem; }
.map-hint { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1.5rem !important; }

/* ============================================================
   BUCHEN / IBE
   ============================================================ */
.ibe-container {
  min-height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ibe-fallback {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #fdf6e3 100%);
  border: 2px dashed var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}
.ibe-fallback-icon { font-size: 3rem; margin-bottom: 1rem; }
.ibe-fallback h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.ibe-fallback > p { color: var(--color-text-muted); margin-bottom: 2rem; }
.ibe-contact-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.ibe-contact-btn { min-width: 200px; }
.ibe-note { font-size: 0.9rem; color: var(--color-text-muted); }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
address { font-style: normal; }

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-item a { color: var(--color-primary); font-weight: 600; }

.arrival-info { margin-top: 2.5rem; }
.arrival-info h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.arrival-info li { padding: 0.4rem 0; font-size: 0.95rem; }

.contact-form-wrap h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 700; font-size: 0.95rem; }
.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid #d0d7de;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,82,118,0.15);
}
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-status { font-size: 0.95rem; font-weight: 700; padding: 0; }
.form-status.success { color: #27ae60; }
.form-status.error   { color: #e74c3c; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--color-primary-dk);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.95rem; margin-bottom: 0.5rem; }

.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  transition: background var(--transition), color var(--transition);
}
.social-link:hover {
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

.footer-nav h4, .footer-legal h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.footer-nav li, .footer-legal li { margin-bottom: 0.5rem; }
.footer-nav a, .footer-legal a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--color-accent);
  text-decoration: none;
}
.footer-contact { margin-top: 1.25rem; }
.footer-contact p { margin-bottom: 0.4rem; }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-credits a { color: rgba(255,255,255,0.5); }
.footer-credits a:hover { color: var(--color-accent); text-decoration: none; }

/* ============================================================
   RESPONSIVE – Tablet (max 960px)
   ============================================================ */
@media (max-width: 960px) {
  .about-grid,
  .restaurant-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .restaurant-img-wrap { position: static; }
  .rooms-grid { grid-template-columns: 1fr 1fr; }
  .activities-grid { grid-template-columns: 1fr 1fr; }
  .about-features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE – Mobile (max 640px)
   ============================================================ */
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }

  /* Mobile Nav */
  .hamburger { display: flex; z-index: 10; }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-primary-dk);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    transform: translateY(-110%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-link { padding: 0.9rem 1rem; border-radius: var(--radius); }
  .lang-switcher {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    margin-left: 0;
    justify-content: center;
  }

  /* Hero */
  .hero-title { font-size: 2.5rem; }
  #hero::after { height: 40px; }

  /* Grids */
  .rooms-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .ibe-contact-options { flex-direction: column; align-items: center; }
  .ibe-contact-btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ============================================================
   FADE-IN ANIMATIONS (via IntersectionObserver in main.js)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Active nav link */
.nav-link.active-link {
  color: var(--color-accent) !important;
}

/* ============================================================
   ACCESSIBILITY – Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
}

/* ============================================================
   SECTION BACKGROUND IMAGES
   Jede Sektion kann ein eigenes Hintergrundbild erhalten.
   Einfach das Bild in den passenden Ordner unter images/ hochladen
   und den auskommentierten CSS-Block weiter unten aktivieren.

   Empfohlene Bildgrößen:
   - Desktop: 1920x1080px (16:9), WebP oder JPEG
   - Mobile:  768x1024px (3:4), WebP oder JPEG
   - Max. Dateigröße: 200-300 KB (komprimiert)
   ============================================================ */

/* ----------------------------------------------------------
   Basis-Klasse für Sektionen mit Hintergrundbild
   Klasse "has-bg-image" zur jeweiligen <section> hinzufügen
   ---------------------------------------------------------- */
.has-bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay via ::before Pseudo-Element */
.has-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Inhalt über dem Overlay */
.has-bg-image > .container,
.has-bg-image > .hero-content {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------
   Parallax-Effekt für Desktop
   Klasse "parallax" zusätzlich zu "has-bg-image" hinzufügen
   ---------------------------------------------------------- */
.has-bg-image.parallax {
  background-attachment: fixed;
}

/* Parallax deaktivieren auf Mobile und bei reduced-motion */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .has-bg-image.parallax {
    background-attachment: scroll;
  }
}

/* Mobile: Parallax generell deaktivieren (Performance) */
@media (max-width: 768px) {
  .has-bg-image {
    background-attachment: scroll !important;
  }
}

/* ==============================================================
   SEKTIONS-SPEZIFISCHE HINTERGRUNDBILDER
   Aktivierung: Kommentarzeichen (/* und *‌/) entfernen +
   Klasse "has-bg-image" zur <section> in index.html hinzufügen
   ============================================================== */

/* --------------------------------------------------------------
   HERO-SEKTION (#hero)
   Bild: images/hero/hero-desktop.jpg  (1920×1080, Querformat)
   Hinweis: Das .hero-bg Element erhält das Bild, der bestehende
   Gradient bleibt als Fallback erhalten.
   -------------------------------------------------------------- */

#hero.has-bg-image .hero-bg {
  background-image: url('../images/hero/hero-desktop.jpg');
  background-size: cover;
  background-position: center;
}
#hero.has-bg-image .hero-bg::after {
  background: rgba(0,0,0,0.25);
}


/* --------------------------------------------------------------
   ÜBER UNS-SEKTION (#about)
   Bild: images/about/about-desktop.jpg  (1920×1080)
   Overlay: hell (rgba 255,255,255,0.88) für lesbaren Text
   Parallax: Klasse "parallax" zur <section> hinzufügen
   -------------------------------------------------------------- */

#about.has-bg-image {
  background-image: url('../images/about/about-desktop.jpg');
  background-attachment: fixed;
}
#about.has-bg-image::before {
  background: rgba(255,255,255,0.60);
}


/* --------------------------------------------------------------
   ZIMMER-SEKTION (#rooms)
   Bild: images/rooms/rooms-bg.jpg  (1920×1080)
   Overlay: sehr hell (rgba 248,244,239,0.92) passend zu --color-bg-alt
   -------------------------------------------------------------- */

#rooms.has-bg-image {
  background-image: url('../images/rooms/rooms-bg.jpg');
}
#rooms.has-bg-image::before {
  background: rgba(248,244,239,0.60);
}


/* --------------------------------------------------------------
   RESTAURANT-SEKTION (#restaurant)
   Bild: images/restaurant/restaurant-desktop.jpg  (1920×1080)
   Overlay: warm sandig (rgba 245,230,202,0.85) für Restaurant-Atmosphäre
   -------------------------------------------------------------- */

#restaurant.has-bg-image {
  background-image: url('../images/restaurant/restaurant-desktop.jpg');
}
#restaurant.has-bg-image::before {
  background: rgba(245,230,202,0.60);
}


/* --------------------------------------------------------------
   STRAND-SEKTION (#beach)
   Bild: images/beach/beach-desktop.jpg  (1920×1080)
   Overlay: leicht (rgba 232,244,255,0.80) für Strandatmosphäre
   Parallax: Klasse "parallax" zur <section> hinzufügen
   -------------------------------------------------------------- */

#beach.has-bg-image {
  background-image: url('../images/beach/beach-desktop.jpg');
  background-attachment: fixed;
}
#beach.has-bg-image::before {
  background: rgba(232,244,255,0.70);
}


/* --------------------------------------------------------------
   BUCHUNGS-SEKTION (#booking)
   Bild: images/booking/booking-desktop.jpg  (1920×1080)
   Overlay: dunkelblau (rgba 26,82,118,0.80) für weißen Text
   Hinweis: Section-Header und Text werden automatisch weiß
   -------------------------------------------------------------- */

#booking.has-bg-image {
  background-image: url('../images/booking/booking-desktop.jpg');
}
#booking.has-bg-image::before {
  background: rgba(26,82,118,0.70);
}
#booking.has-bg-image .section-header h2,
#booking.has-bg-image .section-header .section-subtitle {
  color: #ffffff;
}


/* --------------------------------------------------------------
   KONTAKT-SEKTION (#contact)
   Bild: images/contact/contact-desktop.jpg  (1920×1080)
   Overlay: hell (rgba 255,255,255,0.90) für lesbaren Text
   -------------------------------------------------------------- */
/*
#contact.has-bg-image {
  background-image: url('../images/contact/contact-desktop.jpg');
}
#contact.has-bg-image::before {
  background: rgba(255,255,255,0.90);
}
*/

/* ==============================================================
   MOBILE VARIANTEN (optional)
   Schmalere, höhere Bilder für bessere Darstellung auf Smartphones
   ============================================================== */
/*
@media (max-width: 768px) {
  #hero.has-bg-image .hero-bg {
    background-image: url('../images/hero/hero-mobile.jpg');
  }
  #about.has-bg-image {
    background-image: url('../images/about/about-mobile.jpg');
  }
  #restaurant.has-bg-image {
    background-image: url('../images/restaurant/restaurant-mobile.jpg');
  }
  #beach.has-bg-image {
    background-image: url('../images/beach/beach-mobile.jpg');
  }
  #booking.has-bg-image {
    background-image: url('../images/booking/booking-mobile.jpg');
  }
  #contact.has-bg-image {
    background-image: url('../images/contact/contact-mobile.jpg');
  }
}
*/
