/* =========================================================================
   Ferienwohnung 187 – Dünenpark Binz
   Gemeinsames Stylesheet für alle Seiten.
   Mobile First. Kommentiert, damit du Farben/Abstände leicht anpassen kannst.
   ========================================================================= */

/* ---- 1. Design-Tokens (Farben, Schrift, Maße) ---------------------------
   Ändere die Ostsee-Farbwelt zentral an dieser Stelle. */
:root {
  --sand:        #f4ecdd;   /* heller Sandton – Seitenhintergrund */
  --sand-2:      #e9dcc3;   /* etwas kräftigerer Sand */
  --beige:       #d8c39c;   /* warmes Beige für Akzente */
  --ostsee:      #2f6d80;   /* Ostseeblau (dunkel) */
  --ostsee-hell: #4a90a4;   /* Ostseeblau (hell) */
  --tiefsee:     #1f3d47;   /* sehr dunkles Blau für Text/Footer */
  --weiss:       #ffffff;
  --text:        #24333a;   /* Fließtextfarbe */
  --text-leise:  #5d6b70;   /* gedämpfter Text */
  --rot:         #d3312a;   /* kräftiges Buchungs-Rot */
  --rot-dunkel:  #a81f19;

  --schatten:    0 10px 30px rgba(31, 61, 71, 0.12);
  --radius:      14px;
  --maxbreite:   1120px;

  /* Reine Systemschriften – keine externen Server, DSGVO-freundlich.
     (Möchtest du später eine eigene Schrift, hier den Namen voranstellen.) */
  --serif:  Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans:   system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- 2. Grund-Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ostsee); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--tiefsee);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

p { margin: 0 0 1em; }

/* Zentrierter Inhaltsbereich */
.wrap {
  width: 100%;
  max-width: var(--maxbreite);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: clamp(3rem, 8vw, 5.5rem) 0; }

.section-hell { background: var(--weiss); }
.section-sand { background: var(--sand-2); }

.lead { font-size: 1.15rem; color: var(--text-leise); max-width: 60ch; }

/* ---- 3. Kopfzeile / Navigation ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 236, 221, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 61, 71, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--maxbreite);
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--tiefsee);
  text-decoration: none;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.brand span { color: var(--ostsee-hell); }

/* Menü-Bereich (Dropdown / Burger) */
.menu { position: relative; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  color: var(--tiefsee);
  background: var(--weiss);
  border: 1px solid rgba(31, 61, 71, 0.15);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--ostsee-hell); }

/* Burger-Striche */
.burger { width: 18px; height: 12px; position: relative; display: inline-block; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--tiefsee); border-radius: 2px; transition: 0.25s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 5px; }
.burger span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Dropdown-Liste */
.menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  background: var(--weiss);
  border: 1px solid rgba(31, 61, 71, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  /* geschlossen: unsichtbar & nicht fokussierbar */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.menu.open .menu-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.menu-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.menu-list a:hover,
.menu-list a:focus-visible { background: var(--sand); color: var(--tiefsee); outline: none; }
.menu-list a .ext { font-size: 0.75rem; color: var(--text-leise); font-weight: 500; }

/* ---- 4. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-ostsee { background: var(--ostsee); color: var(--weiss); }
.btn-ostsee:hover { background: var(--tiefsee); }

.btn-outline {
  background: transparent;
  border-color: rgba(31, 61, 71, 0.25);
  color: var(--tiefsee);
}
.btn-outline:hover { border-color: var(--ostsee); }

/* Der auffällige „Jetzt buchen“-Button – Stopptasten-Optik, rot, mit Glow/Puls */
.btn-buchen {
  background: radial-gradient(circle at 35% 30%, #e8524b, var(--rot) 55%, var(--rot-dunkel));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 1.1rem 2.2rem;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 0 rgba(211, 49, 42, 0.6), 0 12px 26px rgba(168, 31, 25, 0.4);
  animation: pulse 2.2s infinite;
}
.btn-buchen:hover { transform: scale(1.04); }

.btn-buchen.gross {
  font-size: 1.25rem;
  width: 190px;
  height: 190px;
  border-radius: 50%;              /* runde „Stopptaste“ */
  padding: 0;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
}

/* Puls-/Glow-Effekt */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(211, 49, 42, 0.55), 0 12px 26px rgba(168, 31, 25, 0.4); }
  70%  { box-shadow: 0 0 0 22px rgba(211, 49, 42, 0), 0 12px 26px rgba(168, 31, 25, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(211, 49, 42, 0), 0 12px 26px rgba(168, 31, 25, 0.4); }
}

/* Sticky schwebender Buchungs-Button (immer erreichbar) */
.buchen-sticky {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
}
.buchen-sticky .btn-buchen { padding: 0.85rem 1.5rem; font-size: 0.95rem; }

/* Nutzer, die Bewegung reduzieren möchten */
@media (prefers-reduced-motion: reduce) {
  .btn-buchen { animation: none; }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1 !important; transform: none !important; }
}

/* ---- 5. Hero (Startseite) ---------------------------------------------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 4rem 1.25rem;
  /* Hero-Bild (echtes Foto). Zum Austauschen einfach hero-binz.jpg ersetzen.
     Die Grafik hero-binz.svg und der Farbverlauf dienen als Fallback. */
  background:
    linear-gradient(180deg, rgba(20,40,48,0.35), rgba(20,40,48,0.15) 40%, rgba(20,40,48,0.55)),
    url("../img/hero-binz.jpg") center / cover no-repeat,
    url("../img/hero-binz.svg") center / cover no-repeat,
    linear-gradient(180deg, #bfe3f0, #7fb6c4);
}
.hero-inner { max-width: 760px; }
.hero h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
  margin-bottom: 0.35em;
}
.hero .untertitel {
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: #f3f0e8;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  margin-bottom: 2rem;
}

/* ---- 6. Ton-Button (oben rechts, immer sichtbar) ----------------------- */
.sound-toggle {
  position: fixed;
  top: 0.75rem;
  right: 0.9rem;
  z-index: 60;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 61, 71, 0.18);
  color: var(--tiefsee);
  cursor: pointer;
  box-shadow: var(--schatten);
  transition: background 0.2s;
}
.sound-toggle:hover { background: #fff; }
.sound-toggle svg { width: 22px; height: 22px; }
.sound-toggle .icon-on  { display: none; }
.sound-toggle.is-on .icon-on  { display: block; }
.sound-toggle.is-on .icon-off { display: none; }
/* kleiner Hinweis, wenn keine Audiodatei vorhanden ist */
.sound-hint {
  position: fixed;
  top: 3.3rem;
  right: 0.9rem;
  z-index: 60;
  max-width: 220px;
  background: var(--tiefsee);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  box-shadow: var(--schatten);
  display: none;
}

/* ---- 7. Highlights (Icon-Liste) ---------------------------------------- */
.highlights {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.highlights li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--weiss);
  border: 1px solid rgba(31, 61, 71, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--schatten);
}
.highlights .ic {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--sand);
  color: var(--ostsee);
}
.highlights .ic svg { width: 24px; height: 24px; }
.highlights strong { display: block; color: var(--tiefsee); }
.highlights span.sub { color: var(--text-leise); font-size: 0.92rem; }

/* Kurzbeschreibung + Buchungsblock */
.center { text-align: center; }
.buchen-block { text-align: center; }
.buchen-block .hinweis { color: var(--text-leise); font-size: 0.95rem; margin-top: 1rem; }

/* ---- 8. Galerie (bilder.html) ------------------------------------------ */
.galerie {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.galerie figure {
  margin: 0;
  background: var(--weiss);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
}
.galerie button.foto {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
}
.galerie img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.4s ease; }
.galerie button.foto:hover img { transform: scale(1.05); }
.galerie figcaption { padding: 0.75rem 1rem; color: var(--text-leise); font-size: 0.95rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(15, 28, 33, 0.9);
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox figcaption { color: #f3f0e8; text-align: center; margin-top: 0.9rem; font-size: 1rem; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff; border: 0;
  font-size: 1.6rem; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,0.3); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-close { top: 1rem; right: 1rem; transform: none; width: 46px; height: 46px; font-size: 1.4rem; }

/* ---- 9. Umgebung (umgebung.html) --------------------------------------- */
.orte { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.ort {
  background: var(--weiss);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
  border: 1px solid rgba(31, 61, 71, 0.06);
}
.ort img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.ort .ort-text { padding: 1.1rem 1.25rem 1.4rem; }
.ort h3 { margin-bottom: 0.3em; }

.karte {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
  border: 1px solid rgba(31, 61, 71, 0.1);
}
.karte iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Klick-zum-Laden-Platzhalter der Karte (DSGVO-freundlich) */
.karte-laden {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 420px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  border: 0;
  color: var(--tiefsee);
  font: inherit;
  background:
    linear-gradient(rgba(47,109,128,0.05), rgba(47,109,128,0.05)),
    repeating-linear-gradient(45deg, var(--sand) 0 14px, var(--sand-2) 14px 28px);
}
.karte-laden svg { width: 40px; height: 40px; color: var(--ostsee); }
.karte-laden strong { font-size: 1.15rem; }
.karte-laden span { max-width: 42ch; color: var(--text-leise); font-size: 0.9rem; }
.karte-laden:hover { filter: brightness(0.98); }

/* ---- 10. Kontakt (kontakt.html) ---------------------------------------- */
.kontakt-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.formular {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--schatten);
}
.feld { margin-bottom: 1.1rem; }
.feld label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--tiefsee); }
.feld input, .feld textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(31, 61, 71, 0.2);
  border-radius: 10px;
  background: var(--sand);
}
.feld input:focus, .feld textarea:focus { outline: 2px solid var(--ostsee-hell); background: #fff; }
.feld textarea { min-height: 130px; resize: vertical; }

.hinweisbox {
  background: var(--sand-2);
  border-left: 4px solid var(--rot);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
.hinweisbox h3 { margin-top: 0; }

.rechtstext { color: var(--text-leise); font-size: 0.95rem; }
.rechtstext h3 { color: var(--tiefsee); }

/* ---- 11. Footer -------------------------------------------------------- */
.site-footer {
  background: var(--tiefsee);
  color: #cdd8dc;
  padding: 2.5rem 0;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
  align-items: start;
}
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #8ec3d4; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copy { color: #90a2a8; margin-top: 1.5rem; font-size: 0.85rem; }

/* ---- 12. Scroll-Fade-in ------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.sichtbar { opacity: 1; transform: none; }

/* ---- 13. Responsive: ab Tablet/Desktop --------------------------------- */
@media (min-width: 640px) {
  .highlights { grid-template-columns: 1fr 1fr; }
  .galerie    { grid-template-columns: 1fr 1fr; }
  .orte       { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .highlights { grid-template-columns: 1fr 1fr 1fr; }
  .galerie    { grid-template-columns: 1fr 1fr 1fr; }
  .kontakt-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-grid  { grid-template-columns: 1.5fr 1fr; }
}

/* Zweispaltiger Text-/Bild-Block auf der Startseite */
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--schatten); }
