/* Ferienwohnung im Morgenbachtal – Stylesheet
   Farben & Schriften angelehnt an das bisherige Lodgify-Design. */

@font-face { font-family: "Arapey"; src: url("../fonts/arapey-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Arapey"; src: url("../fonts/arapey-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "News Cycle"; src: url("../fonts/news-cycle-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "News Cycle"; src: url("../fonts/news-cycle-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --rot: #9a2b22;
  --rot-dunkel: #7c2119;
  --rot-hell: #f6e9e7;
  --gruen: #285e00;
  --gruen-mittel: #3d6e1d;
  --text: #333;
  --text-leise: #666;
  --linie: #e2ded8;
  --flaeche: #f8f6f2;
  --weiss: #fff;
  --font-text: "News Cycle", "Arial Narrow", Arial, sans-serif;
  --font-titel: "Arapey", Georgia, "Times New Roman", serif;
  --radius: 12px;
  --pill: 999px;
  --schatten: 0 6px 24px rgba(0, 0, 0, .08);
  --breite: 1000px;
  --header-h: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-family: var(--font-text); font-size: 1.2rem; line-height: 1.6; color: var(--text); background: var(--weiss); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-underline-offset: 3px; }
a:hover { color: var(--rot-dunkel); }
h1, h2, h3, h4 { font-family: var(--font-titel); font-weight: 400; color: #222; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--weiss); padding: 8px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }

.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; }
.icon--lg { width: 40px; height: 40px; }

.container { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 24px; } }
.page { padding-top: 48px; padding-bottom: 72px; }
.page > * + h2, .page > * + .prose h2 { margin-top: 1.6em; }
.page > h1 + h2 { margin-top: 0; }
.page > figure, .page > .split, .page > .map-consent { margin-top: 40px; margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .6em 1.6em; border: 2px solid var(--rot); border-radius: var(--pill);
  background: var(--rot); color: var(--weiss); font: inherit; font-size: 1.05rem; letter-spacing: .05em;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); }
.btn--ghost { background: transparent; color: var(--rot); }
.btn--ghost:hover { background: var(--rot-hell); color: var(--rot-dunkel); }
.btn--light { background: rgba(255, 255, 255, .92); border-color: transparent; color: var(--rot); font-size: .95rem; }
.btn--light:hover { background: var(--weiss); color: var(--rot-dunkel); border-color: transparent; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: 1rem; color: var(--rot); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 12px 16px; background: var(--weiss);
}
@media (min-width: 700px) { .site-header { padding: 12px 32px; } }
.site-header__logo img { width: 84px; height: 84px; }
@media (min-width: 1000px) { .site-header__logo img { width: 104px; height: 104px; } }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.nav__list a, .nav__sub-toggle {
  font-family: var(--font-titel); font-size: 1.3rem; color: #111; text-decoration: none;
  background: none; border: 0; padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  border-bottom: 2px solid transparent;
}
.nav__list a:hover, .nav__sub-toggle:hover { border-bottom-color: currentColor; }
.nav__list a.is-active, .has-sub.is-active > .nav__sub-toggle { border-bottom-color: var(--rot); }
.nav__sub-toggle .icon { width: 16px; height: 16px; transition: transform .15s; }
.has-sub { position: relative; }
.nav__sub {
  list-style: none; margin: 0; padding: 10px 0; position: absolute; top: calc(100% + 8px); left: -16px; min-width: 290px;
  background: var(--weiss); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); display: none;
}
.nav__sub a { display: block; padding: 8px 20px; font-size: 1.15rem; color: #222; border: 0; }
.nav__sub a:hover { background: var(--flaeche); color: var(--rot); }
.has-sub.is-open > .nav__sub { display: block; }
.has-sub.is-open > .nav__sub-toggle .icon { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1001px) {
  .has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub { display: block; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
}
.nav-toggle { display: none; }

/* Header über Titelbild */
.has-hero .site-header { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0)); }
.has-hero .nav__list > li > a, .has-hero .nav__list > li > .nav__sub-toggle { color: var(--weiss); text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 0; border-radius: 50%; background: var(--weiss); color: #111; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15);
  }
  .nav-toggle .icon { width: 26px; height: 26px; }
  .nav-toggle .icon--close, .nav-open .nav-toggle .icon--open { display: none; }
  .nav-open .nav-toggle .icon--close { display: block; }
  .nav {
    position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 20px 24px; background: var(--weiss); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.2);
    display: none; max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .nav-open .nav { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--linie); }
  .nav__list a, .nav__sub-toggle, .has-hero .nav__list > li > a, .has-hero .nav__list > li > .nav__sub-toggle {
    color: #111; text-shadow: none; width: 100%; padding: 12px 0; justify-content: space-between; border-bottom: 0;
  }
  .nav__list a.is-active { color: var(--rot); }
  .nav__sub { position: static; box-shadow: none; min-width: 0; padding: 0 0 8px 12px; }
  .nav__sub a { padding: 8px 0; font-size: 1.1rem; }
  .nav__cta { align-self: stretch; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; place-items: center; min-height: min(88vh, 820px); overflow: hidden; background: #2d3a24; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.05) 40%, rgba(0,0,0,.35)); }
.hero__content { position: relative; z-index: 1; text-align: center; padding: 140px 16px 60px; max-width: 1000px; }
.hero__content h1 { color: var(--weiss); font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); text-shadow: 0 1px 4px rgba(0, 0, 0, .8); margin-bottom: .8em; }
.hero--property { min-height: min(70vh, 640px); place-items: end; }
.hero--property .hero__more { position: relative; z-index: 1; margin: 0 24px 24px 0; }

/* ---------- Texte ---------- */
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; line-height: 1.5; }
.prose h2 { margin-top: 1.4em; }
.prose h1 + h2 { margin-top: .4em; }
.intro { text-align: center; max-width: 880px; margin: 0 auto 48px; }
.intro h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); line-height: 1.35; }
.eyebrow { font-family: var(--font-titel); font-size: 1rem; color: var(--text-leise); margin-bottom: .4em; }
.lead-quote { font-family: var(--font-titel); font-style: italic; font-size: 1.45rem; line-height: 1.45; color: #222; border-left: 3px solid var(--rot); padding-left: 20px; }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.split { display: grid; gap: 24px 40px; align-items: start; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Startseite ---------- */
.prices { display: grid; gap: 20px; margin: 8px 0 32px; }
@media (min-width: 700px) { .prices { grid-template-columns: 1fr 1fr; } }
.price-card { border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px 28px; background: var(--flaeche); }
.price-card h3 { margin-bottom: .1em; }
.price-card .season { color: var(--text-leise); margin-bottom: .8em; }
.price-card .price { font-size: 1.15rem; margin: 0; }
.price-card .price strong { font-family: var(--font-titel); font-weight: 400; font-size: 2.4rem; color: var(--rot); line-height: 1; margin-right: .15em; }
.price-card .extra { margin: .3em 0 0; color: var(--text-leise); font-size: 1.05rem; }
.cta-box { margin-top: 48px; padding: 32px; text-align: center; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie); }
.cta-box h2 { margin-bottom: .3em; }
.cta-box p { margin-bottom: 1.2em; }
.cta-box .cta-box__alt { margin: 1em 0 0; font-size: 1.05rem; color: var(--text-leise); }

/* ---------- Ferienwohnung ---------- */
.inquiry-bar { background: var(--weiss); border-bottom: 1px solid var(--linie); box-shadow: 0 4px 16px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 10; }
.inquiry-bar__inner { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.inquiry-bar__title { flex: 1 1 260px; min-width: 0; }
.inquiry-bar__title strong { display: block; font-family: var(--font-titel); font-weight: 400; font-size: 1.3rem; line-height: 1.2; color: #222; }
.inquiry-bar__title span { font-size: 1rem; color: var(--text-leise); }
.inquiry-bar form { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.inquiry-bar label { display: flex; flex-direction: column; font-size: .8rem; color: var(--text-leise); border: 1px solid var(--linie); border-radius: 8px; padding: 4px 10px; }
.inquiry-bar input, .inquiry-bar select { border: 0; padding: 0; font: inherit; font-size: 1rem; color: var(--text); background: transparent; min-width: 0; }
.inquiry-bar input[type="date"] { width: 9.2em; }
@media (max-width: 760px) {
  .inquiry-bar { position: static; }
  .inquiry-bar form { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .inquiry-bar input[type="date"] { width: 100%; }
  .inquiry-bar .btn { grid-column: 1 / -1; }
}
.subnav { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 32px; font-size: 1.05rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 20px 0 28px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .icon { width: 24px; height: 24px; color: #555; }
.location { display: inline-flex; align-items: center; gap: 6px; color: var(--text-leise); margin-bottom: 0; }

.collapsible { position: relative; }
.collapsible.is-collapsed .collapsible__body { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.collapsible__toggle { display: block; margin: 12px auto 0; text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; text-decoration: none; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #555; border-radius: var(--pill); padding: 6px 16px; }
.chips .icon { width: 22px; height: 22px; }

.section { padding-top: 48px; }
.section > h2 { margin-bottom: .8em; }

.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px 16px; }
.gallery.is-collapsed .is-extra { display: none; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--flaeche); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery__caption { display: block; margin-top: 6px; font-size: 1.05rem; }
.gallery__more { margin-top: 20px; }

.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tiles li { border: 1px solid var(--linie); border-radius: 8px; padding: 14px 16px; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.tiles .icon { display: block; width: 24px; height: 24px; margin-bottom: 8px; color: #555; }

.amenities { display: grid; gap: 28px 32px; }
@media (min-width: 640px) { .amenities { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .amenities { grid-template-columns: 1fr 1fr 1fr; } }
.amenities h3 { font-family: var(--font-text); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; margin-bottom: .4em; color: #222; }
.amenities h3 .icon { width: 22px; height: 22px; color: #555; }
.amenities p { font-size: 1.05rem; margin: 0; line-height: 1.55; }

.rules { display: grid; gap: 24px 40px; }
@media (min-width: 700px) { .rules { grid-template-columns: 3fr 2fr; } }
.rules ul { list-style: none; padding: 0; margin: 0; }
.rules li { display: flex; gap: 10px; align-items: baseline; margin-bottom: .5em; }
.rules li .icon { width: 20px; height: 20px; color: var(--gruen); position: relative; top: 3px; }
.rules li.is-no .icon { color: var(--rot); }
.times p { display: flex; align-items: center; gap: 10px; margin-bottom: .7em; }
.times .icon { width: 24px; height: 24px; color: #555; }

/* ---------- Kontakt ---------- */
.host { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; margin-bottom: 48px; }
.host__avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.host__name { font-family: var(--font-titel); font-size: 1.5rem; margin-bottom: .3em; color: #222; }
.host__info { flex: 1 1 280px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 10px; align-items: center; margin-bottom: .35em; }
.contact-list .icon { color: #555; }

.form-card { max-width: 680px; margin: 0 auto; padding: 32px 24px; border-radius: var(--radius); box-shadow: 0 6px 30px rgba(0, 0, 0, .1); background: var(--weiss); }
@media (min-width: 700px) { .form-card { padding: 40px 56px; } }
.form-card > p { color: var(--text-leise); font-size: 1.05rem; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 1rem; margin-bottom: 4px; color: #222; }
.field label .optional { color: var(--text-leise); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--text); padding: 10px 12px;
  border: 1px solid #c9c4bc; border-radius: 8px; background: var(--weiss);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px var(--rot-hell); }
.form-actions { margin-top: 24px; }
.form-note { font-size: 1rem; color: var(--text-leise); margin: 12px 0 0; }
.form-error { color: var(--rot); font-size: 1rem; margin: 12px 0 0; }
.form-error:empty { display: none; }
.form-fallback { margin-top: 20px; padding: 16px 20px; border-radius: 8px; background: var(--flaeche); font-size: 1.05rem; }
.form-fallback[hidden] { display: none; }
.form-fallback pre { white-space: pre-wrap; font: inherit; font-size: .95rem; background: var(--weiss); border: 1px solid var(--linie); border-radius: 6px; padding: 10px 12px; margin: 10px 0; max-height: 220px; overflow: auto; }

/* ---------- Karte (2-Klick) ---------- */
.map-consent { position: relative; border-radius: var(--radius); overflow: hidden; background: #e8efe2; border: 1px solid #d5dfcc; min-height: 380px; display: grid; place-items: center; text-align: center; }
@media (min-width: 760px) { .map-consent { aspect-ratio: 2 / 1; min-height: 0; } }
.map-consent__inner { max-width: 520px; padding: 24px; }
.map-consent__inner .icon { color: var(--gruen); margin: 0 auto 8px; display: block; }
.map-consent__inner p { font-size: 1.05rem; margin-bottom: .6em; }
.map-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(10, 10, 10, .94); color: var(--weiss); }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox__stage { position: absolute; inset: 56px 16px 72px; display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox__caption { position: absolute; left: 16px; right: 16px; bottom: 20px; text-align: center; font-size: 1.1rem; }
.lightbox button { position: absolute; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: var(--weiss); cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox button .icon { width: 28px; height: 28px; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 20px; left: 20px; font-size: 1rem; opacity: .8; }

/* ---------- Footer ---------- */
.site-footer { color: var(--weiss); font-size: 1.05rem; }
.site-footer a { color: var(--weiss); }
.site-footer__nav { background: var(--gruen-mittel); padding: 18px 0; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 40px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__main { background: var(--gruen); padding: 32px 0 40px; }
.site-footer__main .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer__copy { margin: 0; align-self: flex-end; opacity: .9; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 80px 0 100px; }
