/* =========================================================
   Ferienhaus Austernperle – Basis-Styles (Phase 1)
   ========================================================= */

/* ---- Design-Tokens ---- */
:root {
  /* Farben */
  --c-meerblau:    #1F5A7A;
  --c-meerblau-d:  #164560;
  --c-hellblau:    #BFD9E5;
  --c-sandbeige:   #F0E4CC;
  --c-honig:       #E6B769;
  --c-offwhite:    #FDFBF7;
  --c-text:        #2C3E50;
  --c-text-muted:  #6B7A88;
  --c-border:      #E4DDCC;

  /* Typo */
  --f-serif: Georgia, "Times New Roman", serif;
  --f-sans:  system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container-max: 1120px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.10);

  /* Abstände */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* Header */
  --header-h: 68px;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-offwhite);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--c-meerblau); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--f-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  margin: 0 0 var(--space-sm);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--space-md); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 var(--space-sm); }

.muted { color: var(--c-text-muted); }
.muted-sm { color: var(--c-text-muted); font-size: 0.9rem; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}
.section-alt {
  background: var(--c-sandbeige);
}

.section-intro {
  max-width: 60ch;
  color: var(--c-text-muted);
  margin-bottom: var(--space-lg);
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; color: var(--c-meerblau); }

.primary-nav ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.primary-nav a {
  color: var(--c-text);
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--c-meerblau);
  border-bottom-color: var(--c-meerblau);
  text-decoration: none;
}
.primary-nav a.btn.is-active { border-bottom-color: transparent; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-text);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--c-meerblau);
  color: #fff;
  border-color: var(--c-meerblau);
}
.btn-primary:hover {
  background: var(--c-meerblau-d);
  border-color: var(--c-meerblau-d);
}

.btn-sm { padding: 7px 14px; font-size: 0.9rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: min(80vh, 680px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.45)),
    url('../img/26.jpg') center / cover no-repeat;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) 0;
  width: 100%;
  text-align: center;
}
.hero h1 {
  color: #fff;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero-sub-headline {
  font-weight: 400;
  font-style: italic;
  font-size: 0.85em;
}
.hero-sub {
  font-size: 1.15rem;
  max-width: 40ch;
  margin: 0 auto var(--space-lg);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* ---- Two-Col Layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.two-col-text h2 { margin-top: 0; }

/* ---- Icons (SVG-Sprite) ---- */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--c-meerblau);
}
.icon-xl {
  width: 64px;
  height: 64px;
  color: var(--c-meerblau);
}

/* ---- Über das Haus – zweigeteiltes Layout ---- */
.haus-layout {
  display: grid;
  grid-template-columns: 2.32fr 2.68fr;
  gap: var(--space-xl);
  align-items: start;
  margin-top: var(--space-lg);
}
.haus-foto {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  object-fit: cover;
}
.haus-left p {
  margin: var(--space-md) 0 0;
  color: var(--c-text-muted);
}

/* ---- Highlights (2×2-Grid) ---- */
.highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
}
.highlights-grid {
  grid-template-columns: repeat(2, 1fr);
}
.highlights li {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  background: var(--c-offwhite);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}
.highlights h3 {
  margin: var(--space-sm) 0 0;
  font-size: 1rem;
  color: var(--c-text);
}
.highlights .icon-xl {
  background: var(--c-hellblau);
  border-radius: 50%;
  padding: 14px;
  box-sizing: content-box;
  width: 44px;
  height: 44px;
}

/* ---- Info-Box (Hinweise innerhalb Beschreibung) ---- */
.info-box {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: rgba(31, 90, 122, 0.07);
  border-left: 4px solid var(--c-meerblau);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--c-text);
}

/* ---- Text-Expander (Beschreibung) ---- */
.text-expander[hidden] { display: none; }

.btn-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: var(--space-sm) 0 var(--space-md);
  padding: 0;
  background: none;
  border: none;
  color: var(--c-meerblau);
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-expand:hover { text-decoration: underline; }

.btn-expand-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.btn-expand[aria-expanded="true"] .btn-expand-icon {
  transform: rotate(180deg);
}

.beschreibung-video {
  margin-top: var(--space-sm);
}

/* ---- Preise – Hinweise unterhalb der Tabelle ---- */
.price-notes {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--c-sandbeige);
  border-radius: var(--radius-lg);
}
.price-notes h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--c-meerblau-d);
}
.price-notes ul {
  margin: 0;
  padding-left: 1.4em;
}
.price-notes li {
  font-size: 0.95rem;
  margin-bottom: 0.5em;
  color: var(--c-text);
}
.price-notes li:last-child { margin-bottom: 0; }

/* ---- Amenities (detaillierte Ausstattungsliste) ---- */
.amenity-category {
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: 1.05rem;
  color: var(--c-meerblau-d);
  letter-spacing: 0.3px;
}
.amenity-category:first-of-type { margin-top: 0; }

.amenities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px var(--space-md);
}
.amenities li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--c-text);
}

/* ---- Cards (Ausstattung) ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.card {
  background: var(--c-offwhite);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; color: var(--c-meerblau); }
.card p { margin: 0; }

/* ---- Galerie ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item.placeholder {
  background:
    repeating-linear-gradient(45deg,
      var(--c-hellblau) 0 10px,
      #D8EAF0 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-meerblau-d);
  font-weight: 600;
}

/* ---- Map / Placeholder ---- */
.map-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--c-hellblau);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.map-click {
  text-align: center;
  padding: var(--space-md);
}
.map-click p:first-child { font-size: 1.2rem; margin-bottom: var(--space-xs); }

/* ---- Preise ---- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-offwhite);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}
.price-table th, .price-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.price-table th {
  background: var(--c-sandbeige);
  font-family: var(--f-serif);
}
.price-table tr:last-child td { border-bottom: 0; }

/* ---- Belegung Placeholder ---- */
.calendar-placeholder {
  background: var(--c-offwhite);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}
.calendar-placeholder p:first-child {
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

/* ---- Formular ---- */
.inquiry-form {
  max-width: 720px;
  background: var(--c-offwhite);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.inquiry-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--space-sm);
}
.inquiry-form textarea {
  resize: vertical;
}
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  font: inherit;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-weight: 400;
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--c-meerblau);
  box-shadow: 0 0 0 3px rgba(31, 90, 122, 0.15);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-sm);
}
.form-row label.grow { grid-column: span 2; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.inquiry-readonly {
  background: #f0f0f0 !important;
  color: #888 !important;
  cursor: default;
}
.inquiry-form-heading {
  font-size: 1.25rem;
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--c-meerblau);
}
.field-optional {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--c-text-light, #6b7280);
  margin-left: 4px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--c-meerblau-d);
  color: #E7EEF3;
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xl);
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-md);
  color: #B7C4CE;
}

/* ---- Galerie – echte Bilder ---- */
.gallery-item {
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-item:focus-visible { outline: 3px solid var(--c-meerblau); outline-offset: 2px; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.90);
}
.lb-figure {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1200px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  display: block;
}
.lb-close,
.lb-nav {
  position: fixed;
  z-index: 2;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev  { left: 12px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close .icon, .lb-nav .icon { width: 22px; height: 22px; }

/* ---- Belegungskalender ---- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.cal-month {
  background: var(--c-offwhite);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  box-shadow: var(--shadow-sm);
}
.cal-month-title {
  font-family: var(--f-serif);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: var(--c-meerblau);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 6px;
}
.cal-weekdays,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-weekday {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--c-text-muted);
  padding: 3px 0;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  color: var(--c-text);
  background: transparent;
}
.cal-day.empty { background: none; }
.cal-day.past  { color: var(--c-text-muted); opacity: 0.4; }
.cal-day.today {
  font-weight: 700;
  color: var(--c-meerblau);
  box-shadow: inset 0 0 0 1.5px var(--c-meerblau);
  border-radius: 50%;
}
.cal-day.occupied {
  background: #E8B0B5;
  color: #6B1E26;
}
/* Anreisetag: linke Hälfte frei, rechte belegt */
.cal-day.arrival {
  background: linear-gradient(135deg, transparent 50%, #E8B0B5 50%);
}
/* Abreisetag: linke Hälfte belegt, rechte frei */
.cal-day.departure {
  background: linear-gradient(135deg, #E8B0B5 50%, transparent 50%);
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
  font-size: 0.83rem;
  color: var(--c-text-muted);
  align-items: center;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cal-swatch {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid var(--c-border);
  flex-shrink: 0;
}
.cal-swatch.free     { background: var(--c-offwhite); }
.cal-swatch.occupied { background: #E8B0B5; }
.cal-swatch.arrival  { background: linear-gradient(135deg, transparent 50%, #E8B0B5 50%); }
.cal-swatch.departure{ background: linear-gradient(135deg, #E8B0B5 50%, transparent 50%); }
.cal-day.restricted {
  background: repeating-linear-gradient(
    135deg,
    #d4d4d4,
    #d4d4d4 3px,
    #e8e8e8 3px,
    #e8e8e8 7px
  );
  color: #999;
  cursor: default;
}
.cal-swatch.restricted {
  background: repeating-linear-gradient(
    135deg,
    #d4d4d4,
    #d4d4d4 3px,
    #e8e8e8 3px,
    #e8e8e8 7px
  );
}
.cal-status { padding: var(--space-lg) 0; color: var(--c-text-muted); font-style: italic; }

/* ─ Kalender-Auswahl-States ─ */
.cal-day.selectable { cursor: pointer; }
.cal-day.selectable:hover {
  background: var(--c-hellblau);
  color: var(--c-meerblau);
}
.cal-day.selectable.arrival:hover {
  background: linear-gradient(135deg, var(--c-hellblau) 50%, #E8B0B5 50%);
}
.cal-day.selectable.departure:hover {
  background: linear-gradient(135deg, #E8B0B5 50%, var(--c-hellblau) 50%);
}
.cal-day.sel-arrival,
.cal-day.sel-departure {
  background: var(--c-meerblau) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: none;
}
.cal-day.in-range {
  background: var(--c-hellblau);
  color: var(--c-meerblau);
  border-radius: 0;
}
.cal-swatch.sel-marker { background: var(--c-meerblau); }
.cal-hint-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}
.cal-hint {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  min-height: 1.4em;
  margin: 0;
  flex: 1;
}
.cal-reset-btn {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 0.8rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-offwhite);
  color: var(--c-text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cal-reset-btn:hover {
  background: #fce8ea;
  border-color: #c0666d;
  color: #6B1E26;
}

/* ─ Buchungs-Panel ─ */
.booking-panel {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 2px solid var(--c-hellblau);
}
.booking-panel-inner {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.booking-price-col {
  flex: 1;
  min-width: 0;
}
.booking-guests {
  flex-shrink: 0;
  width: 300px;
  background: var(--c-offwhite);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}
.booking-guests-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-meerblau);
  margin-bottom: var(--space-sm);
}
.guest-rows { display: flex; flex-direction: column; gap: 10px; }
.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.guest-label { font-size: 0.9rem; }
.guest-hint  { color: var(--c-text-muted); font-size: 0.8rem; }
.guest-stepper { display: flex; align-items: center; gap: 6px; }
.guest-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-meerblau);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}
.guest-btn:hover { background: var(--c-hellblau); border-color: var(--c-meerblau); }
.guest-num {
  width: 42px;
  text-align: center;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 4px;
  font-size: 0.9rem;
  -moz-appearance: textfield;
}
.guest-num::-webkit-inner-spin-button,
.guest-num::-webkit-outer-spin-button { -webkit-appearance: none; }
/* Toggle-Switch */
.toggle-wrap {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.toggle-wrap input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.toggle-track {
  width: 44px; height: 24px;
  background: var(--c-border);
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-wrap input:checked ~ .toggle-track { background: var(--c-meerblau); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.toggle-wrap input:checked ~ .toggle-track .toggle-thumb { transform: translateX(20px); }
.toggle-label-text { font-size: 0.85rem; color: var(--c-text-muted); min-width: 24px; }
.guest-age-note {
  margin-top: var(--space-sm); margin-bottom: 0;
  font-size: 0.78rem; color: var(--c-text-muted); font-style: italic;
}

/* ─ Preistabelle ─ */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.price-table td { padding: 5px 8px; vertical-align: top; }
.pb-val {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 88px;
}
.pb-period td {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-meerblau);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}
.pb-section td {
  font-weight: 600;
  padding-top: 14px;
  color: var(--c-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pb-sub td { padding-left: 14px; color: var(--c-text-muted); }
.pb-kaution td {
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
  padding-top: 8px;
}
.pb-note { font-size: 0.75rem; opacity: 0.8; }
.pb-total td {
  font-weight: 700;
  font-size: 1rem;
  border-top: 2px solid var(--c-text);
  padding-top: 8px;
}
.pb-total .pb-val { color: var(--c-meerblau); }
.pb-anfrage {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

.pb-hinweis {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* ---- Kalender-Navigation ---- */
.cal-nav-wrap {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.cal-nav-wrap .cal-grid { flex: 1; min-width: 0; }
.cal-arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-offwhite);
  color: var(--c-meerblau);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 38px; /* vertically aligns with calendar day content */
}
.cal-arrow:hover:not(:disabled) {
  background: var(--c-hellblau);
  border-color: var(--c-meerblau);
}
.cal-arrow:disabled { opacity: 0.25; cursor: default; }
.cal-arrow .icon { width: 16px; height: 16px; }

/* ---- Karte (DSGVO two-click) ---- */
.map-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-consent-overlay {
  position: absolute;
  inset: 0;
  background: var(--c-hellblau);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-consent-inner {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  max-width: 300px;
}
.map-consent-inner p { margin-bottom: var(--space-sm); line-height: 1.5; }
.map-frame {
  position: absolute;
  inset: 0;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-open-link {
  display: inline-block;
  margin-top: var(--space-xs);
  font-size: 0.85rem;
}

/* ---- Adresse-Highlight (Lage) ---- */
.address-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--c-offwhite);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-meerblau);
  border-radius: var(--radius);
  padding: 10px var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  line-height: 1.5;
  width: fit-content;
}
.address-highlight .icon { margin-top: 2px; flex-shrink: 0; }

/* ---- Formular Feedback ---- */
.form-feedback {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  display: none;
}
.form-feedback.success {
  display: block;
  background: #D4EDDA;
  border: 1px solid #B1DFC1;
  color: #155724;
}
.form-feedback.error {
  display: block;
  background: #F8D7DA;
  border: 1px solid #F1AEB5;
  color: #721C24;
}
.form-sending { opacity: 0.65; pointer-events: none; }

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .haus-layout { grid-template-columns: 1fr; gap: var(--space-lg); }
  .cal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --header-h: 60px; }

  .section { padding: var(--space-lg) 0; }
  .section-intro { margin-bottom: var(--space-md); }

  /* Nav → Mobile-Menü */
  .nav-toggle { display: block; }

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--c-offwhite);
    border-bottom: 1px solid var(--c-border);
    padding: var(--space-sm) var(--space-md);
    display: none;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav li {
    border-bottom: 1px solid var(--c-border);
  }
  .primary-nav li:last-child { border-bottom: 0; padding-top: var(--space-sm); }
  .primary-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 0;
  }
  .primary-nav .btn { text-align: center; }

  /* Two-Col → stacken */
  .two-col { grid-template-columns: 1fr; gap: var(--space-lg); }

  /* Grids reduzieren */
  .haus-layout { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .cal-grid { grid-template-columns: 1fr; }
  .booking-panel-inner { flex-direction: column; }
  .booking-guests { width: 100%; }

  /* Lightbox nav buttons – weiter innen auf kleinen Screens */
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }

  /* Formular */
  .form-row { grid-template-columns: 1fr; }
  .form-row label.grow { grid-column: auto; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}
