/* ==========================================================================
   Alpenglück³ – Design System
   ========================================================================== */

/* Schrift liegt jetzt im selben Ordner – kein Verweis mehr auf die alte Seite.
   So bleibt css/ eigenständig und der Ordner kann komplett ersetzt werden. */
@font-face {
  font-family: 'Lustria';
  src: url('Lustria-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #faf7f1;
  --color-bg-alt: #f1ebe0;
  --color-surface: #ffffff;
  --color-ink: #2a2620;
  --color-ink-soft: #5c564c;
  --color-header: #1e2420;
  --color-header-ink: #f3ede1;
  --color-accent: #b5652f;
  --color-accent-dark: #954f22;
  /* Heller Akzent als Hintergrund (z. B. Button-Hover) – dreht im Dark Mode ins Dunkle */
  --color-accent-soft: #e8c9a6;
  /* Akzent-SCHRIFT auf dauerhaft dunklem Grund (Kopf-/Fußzeile).
     Bleibt in beiden Themes hell – Header und Footer sind immer dunkel. */
  --color-on-dark-accent: #e8c9a6;
  --color-sage: #74806a;
  --color-border: #e4dbc9;

  --font-display: 'Lustria', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 6px;
  --shadow: 0 12px 32px -16px rgba(30, 36, 32, 0.35);

  --hero-overlay-top: rgba(20,20,18,0.55);
  --hero-overlay-mid: rgba(20,20,18,0.35);
  --hero-overlay-bottom: rgba(20,20,18,0.75);
  color-scheme: light;
}

/* Bewusst kein Dark Mode: Bei einer Ferienwohnung sind die Fotos und die warme
   Farbwelt das Verkaufsargument, die wirken auf hellem Grund einladender.
   color-scheme:light oben verhindert außerdem, dass der Browser selbst
   Formularfelder & Co. abdunkelt. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* [hidden] muss jedes display aus einer Klassenregel schlagen */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; overflow-wrap: break-word; }
p, li, td, th, dd, dt { overflow-wrap: break-word; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-ink);
  /* Lange Komposita (z. B. „Universalschlichtungsstelle") sonst über den Rand */
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-header); color: var(--color-header-ink); }
.section--dark h2, .section--dark h3 { color: var(--color-header-ink); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 62ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(181, 101, 47, 0.65);
}
.btn--primary:hover { background: var(--color-accent-dark); }
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--color-header-ink);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--outline {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}
.btn--outline:hover { background: var(--color-accent-soft); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header);
  color: var(--color-header-ink);
}
.topbar {
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a {
  text-decoration: none;
  color: var(--color-on-dark-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar a:hover { color: #fff; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-header-ink);
}
.brand img { height: 52px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-on-dark-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--color-header-ink);
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}

@media (max-width: 480px) {
  .brand img { height: 42px; }
  .brand-text { font-size: 1.1rem; }
  .brand-text small { display: none; }
}

@media (max-width: 860px) {
  .topbar { font-size: 0.76rem; }
  .topbar .container { justify-content: center; gap: 14px; }
  .topbar a { white-space: nowrap; }
  .topbar a .label { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--color-header);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .main-nav a { display: block; padding: 14px 4px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: #1e2420;
}
.hero picture, .hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-overlay-top) 0%, var(--hero-overlay-mid) 45%, var(--hero-overlay-bottom) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1, .hero h2 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.45); }
.hero .eyebrow { color: #f0c9a4; text-shadow: 0 1px 8px rgba(0,0,0,0.7); }
.hero .lead { text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
.hero-content { max-width: 640px; }
.hero-content p.lead { color: rgba(255,255,255,0.88); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.6em; }

.page-hero {
  position: relative;
  padding: 120px 0 64px;
  color: #fff;
  background: #1e2420;
  overflow: hidden;
}
.page-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--hero-overlay-bottom), var(--hero-overlay-top));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1, .page-hero h2 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
.page-hero .eyebrow { color: #f0c9a4; text-shadow: 0 1px 8px rgba(0,0,0,0.7); }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 0.4em; }
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .card { padding: 20px 16px; }
  .section { padding: 56px 0; }
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ---------- Raum-Zeilen (Bild/Text im Wechsel) ---------- */
.room-row {
  align-items: center;
  margin-bottom: 28px;
}
.room-row:last-of-type { margin-bottom: 0; }
/* Ab Tablet: jede zweite Zeile spiegeln */
@media (min-width: 861px) {
  .room-row__media { order: 2; }
  .room-row__text { order: 1; }
}
/* Auf Mobil steht immer erst das Bild, dann der Text */
@media (max-width: 860px) {
  .room-row__media { order: 1; }
  .room-row__text { order: 2; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
/* Tier-Galerie: nur zwei Bilder, daher zweispaltig und zentriert */
.gallery--tiere {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .gallery--tiere { grid-template-columns: 1fr; }
}

.gallery button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery button:hover img { transform: scale(1.06); }

dialog#lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}
dialog#lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; }
dialog#lightbox::backdrop { background: rgba(10,10,8,0.88); }
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
/* Die Frage steht als <h2> im summary – wichtig für die Überschriften-
   Hierarchie und damit Google die Fragen als Inhalt wertet. Optisch soll
   sie aber wie zuvor aussehen, nicht wie eine Seitenüberschrift. */
.faq-item summary h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--color-accent);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 20px; color: var(--color-ink-soft); }

/* ---------- Price table ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.price-table th { background: var(--color-bg-alt); font-family: var(--font-display); font-weight: 400; }
.price-table tr:last-child td { border-bottom: none; }
/* Preisangaben wie „85–110 €" nie umbrechen lassen. Der Halbgeviertstrich ist für
   den Browser eine Umbruchgelegenheit – ohne diese Regel steht auf schmalen Displays
   „85–" in der einen und „110 €" in der nächsten Zeile. Nur die Zahl selbst schützen,
   Zusätze wie „pro Nacht" sollen weiter umbrechen dürfen. */
.price-table .preis { white-space: nowrap; }


.notice-box {
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-alt);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.contact-list a { text-decoration: none; color: var(--color-accent-dark); font-weight: 600; }

/* Rückmeldung nach dem Absenden des Kontaktformulars */
.form-hinweis {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.95rem;
  border-left: 4px solid;
}
.form-hinweis--ok {
  background: var(--color-bg-alt);
  border-left-color: #4a7c4e;
  color: var(--color-ink);
}
.form-hinweis--fehler {
  background: var(--color-bg-alt);
  border-left-color: #b03328;
  color: var(--color-ink);
}

/* ---------- Map & route planner ---------- */
.map-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  /* Höhe direkt setzen statt aspect-ratio + min-height:
     die Kombination würde die Breite über den Viewport hinaus aufblähen */
  height: clamp(320px, 42vw, 460px);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.route-planner { margin-top: 28px; }
.route-planner__row { display: flex; gap: 12px; flex-wrap: wrap; }
.route-planner__row input {
  flex: 1 1 260px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font: inherit;
}
.route-planner__hint { margin: 12px 0 0; font-size: 0.85rem; color: var(--color-ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-header);
  color: var(--color-header-ink);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3.footer-head {
  color: var(--color-on-dark-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; color: rgba(243,237,225,0.85); }
.site-footer a:hover { color: #fff; }
.social-row { display: flex; gap: 14px; margin-top: 16px; }
.social-row img { width: 22px; height: 22px; filter: invert(1); opacity: 0.85; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(243,237,225,0.6);
}

/* ---------- Smoobu-Belegungskalender ----------
   Der Kalender wird direkt in die Seite geschrieben (kein iframe). Smoobu gibt
   ihm einen festen hellen Hintergrund (#f9f9f9) und ändert den im Dark Mode
   NICHT. Ohne die feste dunkle Schrift hier würde er unsere helle
   Dark-Mode-Textfarbe erben – der Monatsname wäre dann weiß auf weiß.
   Deshalb bewusst feste Farben statt der Theme-Variablen. */
.calendarWidget {
  background: #f9f9f9;
  border-radius: var(--radius);
  padding: 6px;
  overflow-x: auto;
}

.calendarWidget,
.calendarWidget * {
  color: #2a2620;
}

/* Monatsüberschriften im Kalender an die Seitentypografie angleichen */
.calendarWidget h2 {
  color: #2a2620;
  font-family: var(--font-display);
}

/* ---------- Consent-Platzhalter ---------- */
.consent-gate { position: relative; }
/* Solange keine Einwilligung vorliegt, bleiben die leeren Einbettungs-Container verborgen */
.consent-gate:not(.is-unlocked) > *:not(.consent-gate__notice) { display: none; }
.consent-gate__notice {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  padding: 40px 28px;
  text-align: center;
}
.consent-gate__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.4em;
  color: var(--color-ink);
}
.consent-gate__text {
  font-size: 0.93rem;
  color: var(--color-ink-soft);
  max-width: min(46ch, 100%);
  margin: 0 auto 1.4em;
}
.consent-gate__text a { color: var(--color-accent-dark); }

/* Karte: Platzhalter liegt über dem Kartenrahmen */
.map-wrap .consent-gate__notice {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(30,36,32,0.75), rgba(30,36,32,0.75)),
    url('../images/wohnzimmer_01-454.webp') center/cover;
}
.map-wrap .consent-gate__title { color: #fff; }
.map-wrap .consent-gate__text { color: rgba(255,255,255,0.85); }
.map-wrap .consent-gate__text a { color: var(--color-on-dark-accent); }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 900;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 32px -18px rgba(0,0,0,0.5);
  padding: 24px 0;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.3em;
}
.cookie-banner__text {
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  max-width: 70ch;
  margin-bottom: 1.2em;
}
.cookie-banner__text a { color: var(--color-accent-dark); }
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner__actions .btn { font-size: 0.92rem; padding: 0.75em 1.5em; }
.cookie-banner__link {
  background: none;
  border: 0;
  color: var(--color-ink-soft);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.75em 0.4em;
}
.cookie-banner__settings {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 14px;
}
.cookie-banner__settings[hidden] { display: none; }
.cookie-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cookie-option input { margin-top: 4px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--color-accent); }
.cookie-option__label { font-weight: 600; display: block; margin-bottom: 2px; }
.cookie-option__desc { font-size: 0.86rem; color: var(--color-ink-soft); }

@media (max-width: 600px) {
  .cookie-banner { max-height: 85vh; overflow-y: auto; }
  .cookie-banner__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
