/* ==========================================================================
   Die Scheune – Ferienwohnung Bammersdorf
   Statisches Stylesheet (Nachbau der Elementor-Seite, ohne Abhängigkeiten)
   Breakpoints: Tablet ≤ 1024px, Mobil ≤ 767px
   ========================================================================== */

/* ---------- Fonts (lokal, DSGVO-konform) ---------- */
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/raleway-v28-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/raleway-v28-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/raleway-v28-latin-800.woff2") format("woff2"); }
@font-face { font-family: "Lustria"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lustria-v13-latin-regular.woff2") format("woff2"); }

/* ---------- Design-Tokens ---------- */
:root {
  --primary: #968b75;
  --secondary: #fefce8;
  --text: #414141;
  --white: #fff;
  --dark: #222;
  --line: #efefef;
  --link: #c36;
  --link-hover: #336;
  --content: 960px;
  --font: "Raleway", sans-serif;
  --font-serif: "Lustria", serif;
  --shadow: 0 0 10px 0 rgba(0, 0, 0, .05);
}
@media (max-width: 1024px) { :root { --content: 1024px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { border-style: none; height: auto; max-width: 100%; }
a { color: var(--link); text-decoration: none; background-color: transparent; }
a:hover, a:active { color: var(--link-hover); }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0 0 .9rem; }
ul, ol { margin: 0; }
b, strong { font-weight: 700; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #000; outline-offset: 2px; box-shadow: 0 0 0 4px #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto; background: #fff; color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.site-header__inner { display: flex; align-items: stretch; max-width: var(--content); margin: 0 auto; }
.site-logo { flex: 0 0 16.964%; padding: 10px; }
.site-logo img { display: block; width: 100%; }
.main-nav { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.main-nav ul { display: flex; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: block;
  padding: 13px 20px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color .4s;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.is-active { color: var(--primary); }
.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .site-logo { flex-basis: 16.964%; }
  .main-nav { flex: 1 1 auto; align-items: flex-end; }
  .main-nav ul { display: none; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    padding: 5.5px;
    border: 0;
    border-radius: 3px;
    background: var(--white);
    color: var(--primary);
    font-size: 22px;
    cursor: pointer;
  }
  .nav-toggle svg { width: 1em; height: 1em; fill: currentColor; }
  .nav-toggle .icon-close, .nav-open .nav-toggle .icon-burger { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .mobile-nav {
    position: absolute;
    top: calc(100% - 3px);
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    transition: max-height .3s, transform .3s;
    transform: scaleY(0);
    transform-origin: top;
  }
  .nav-open .mobile-nav { max-height: 100vh; transform: scaleY(1); }
  .mobile-nav ul { margin: 0; padding: 0; list-style: none; }
  .mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #33373d;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
  }
  .mobile-nav a:hover, .mobile-nav a:focus, .mobile-nav a.is-active { background: var(--primary); color: var(--white); }
}
@media (min-width: 1025px) { .mobile-nav { display: none; } }
@media (max-width: 767px) {
  .site-header__inner { padding: 10px 25px; }
  .site-logo { flex: 0 0 140px; padding: 0; }
}

/* ---------- Sektionen & Layout ---------- */
.sec { padding: var(--p, 100px 0); background: var(--bg, transparent); }
.sec > .inner { display: flex; flex-direction: column; gap: 20px; max-width: var(--content); margin: 0 auto; }
.sec--secondary { --bg: var(--secondary); }
.sec--primary { --bg: var(--primary); }
.sec--tree { background: url("../img/bg-baum-2x.jpg") no-repeat center bottom / contain; }

.banner { min-height: var(--h, 350px); background: var(--img) no-repeat var(--pos, center center) / cover; }
.sep { padding: 10px; }
.sep > .divider { max-width: var(--content); margin-inline: auto; }

.row { display: flex; gap: var(--gap, 20px); }
.row > * { flex: 1 1 0; min-width: 0; }
.row--center { align-items: center; }
.self-center { align-self: center; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--middle { justify-content: center; }
.col-65 { flex: 0 0 65% !important; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
@media (max-width: 1024px) { .mt-md-30 { margin-top: 30px; } }
.spacer { height: 20px; }

@media (max-width: 1024px) {
  .sec { padding: var(--p-md, 50px); }
  .row { gap: var(--gap-md, var(--gap, 20px)); }
  .row--stack-md { flex-direction: column; align-items: stretch; }
  .row--stack-md > *, .row--stack-md > .col-65 { flex: 0 0 auto !important; align-self: stretch; }
  .banner { background-position: var(--pos-md, var(--pos, center center)); }
}
@media (max-width: 767px) {
  .sec { padding: var(--p-sm, 50px 25px); }
  .row { flex-direction: column; align-items: stretch; gap: var(--gap-sm, var(--gap-md, var(--gap, 20px))); }
  .row > *, .row > .col-65 { flex: 0 0 auto !important; align-self: stretch; }
  .banner { min-height: var(--h-sm, var(--h, 350px)); background-position: var(--pos-sm, var(--pos-md, var(--pos, center center))); }
}

/* ---------- Typografie-Bausteine ---------- */
.eyebrow {
  margin-bottom: -20px;
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}
.title {
  padding-right: var(--pr, 0);
  color: var(--text);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.subtitle {
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.center { text-align: center; }
.c-primary { color: var(--primary); }
@media (max-width: 1024px) { .title { padding-right: var(--pr-md, var(--pr, 0)); } }
@media (max-width: 767px) {
  .eyebrow { font-size: 18px; }
  .title { font-size: 32px; padding-right: 0; }
  .subtitle { font-size: 20px; }
}

.divider { width: 214px; height: 0; margin: 15px 0; border: 0; border-top: 1px solid var(--primary); }
.divider.full { width: 100%; }
.divider.light { border-top-color: var(--line); }

.text { color: var(--text); }
.text ul, .text ol { padding-left: 40px; }
.text h1, .text h2, .text h3, .text h4, .text h5, .text h6 { margin: .5rem 0 1rem; font-weight: 500; line-height: 1.2; }
.text h1 { font-size: 2.5rem; }
.text h2 { font-size: 2rem; }
.text h3 { font-size: 1.75rem; }
.text h4 { font-size: 1.5rem; }
.text--source { color: #c4c4c4; font-size: 12px; }
.text--caption { font-size: 10px; text-align: center; }

/* Dunkle Sektion (Hintergrund in Primärfarbe) */
.sec--primary .eyebrow { color: var(--secondary); }
.sec--primary .title, .sec--primary .subtitle, .sec--primary .text { color: var(--white); }
.sec--primary .divider { border-top-color: var(--secondary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  align-self: flex-start;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  transition: all .3s;
}
.btn:hover, .btn:focus { color: var(--white); }
.btn--light { background: var(--secondary); color: var(--text); text-transform: uppercase; }
.btn--light:hover, .btn--light:focus { color: var(--text); }
.btn--upper { text-transform: uppercase; }
.btn--lg { margin-top: 20px; font-size: 22px; }
@media (max-width: 767px) { .btn--lg { font-size: 18px; } }

/* ---------- Bilder ---------- */
.img { display: block; margin: 0 auto; }
.img--full { width: 100%; }
.rounded { border-radius: 20px; box-shadow: var(--shadow); }
.rounded-sm { border-radius: 15px; box-shadow: var(--shadow); }
.icon-img { display: block; width: auto; height: 100px; margin: 0 auto; }

/* ---------- Galerie + Lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}
.gallery__item { position: relative; display: block; overflow: hidden; border-radius: 20px; aspect-ratio: 3 / 2; }
.gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background-color .8s;
}
.gallery__item:hover::after, .gallery__item:focus::after { background: rgba(0, 0, 0, .5); }
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(var(--cols-md, var(--cols, 3)), minmax(0, 1fr)); } }
@media (max-width: 767px) { .gallery { grid-template-columns: repeat(var(--cols-sm, 1), minmax(0, 1fr)); } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .87);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  -webkit-user-select: none;
  user-select: none;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; box-shadow: 0 0 30px rgba(0, 0, 0, .3); }
.lightbox button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(238, 238, 238, .9);
  cursor: pointer;
  transition: color .3s;
}
.lightbox button:hover { color: #fff; }
.lightbox button svg { width: 1em; height: 1em; fill: currentColor; }
.lightbox__close { top: 0; right: 0; width: 70px; height: 70px; font-size: 26px; }
.lightbox__prev, .lightbox__next { top: 50%; width: 80px; height: 120px; font-size: 25px; transform: translateY(-50%); }
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }
.lightbox__counter { position: absolute; top: 0; left: 0; padding: 25px; color: rgba(238, 238, 238, .9); font-size: 14px; }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next, .lightbox--single .lightbox__counter { display: none; }

/* ---------- Icon-Liste ---------- */
.icon-list { margin: 0; padding: 0; list-style: none; }
.icon-list li { display: flex; align-items: center; }
.icon-list li + li { margin-top: var(--space, 15px); }
.icon-list svg { flex: 0 0 auto; width: var(--icon, 19px); height: var(--icon, 19px); margin-right: var(--icon-gap, 24.8px); fill: var(--primary); }
.icon-list a { color: inherit; }

/* ---------- Startseite ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 760px;
  padding: 0 10px;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background: var(--img) no-repeat center / cover;
  opacity: 0;
  transition: opacity 1.5s;
}
.hero__slide.is-active { opacity: 1; }
.hero .inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; max-width: var(--content); margin: 0 auto; }
.hero__title {
  display: inline-block;
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  color: var(--text);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
}
@media (max-width: 1024px) { .hero { padding: 0 50px; } }
@media (max-width: 767px) {
  .hero { min-height: 500px; padding: 0 25px; }
  .hero__title { font-size: 25px; }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  border-radius: 20px;
  background: var(--secondary);
  box-shadow: var(--shadow);
  text-align: center;
}
.card .icon-img { margin-bottom: 30px; }
.card .btn { align-self: center; }

.feature { display: flex; flex-direction: column; gap: 20px; padding: 10px; text-align: center; }


/* ---------- Karte / Buchung / Formular ---------- */
.map iframe { display: block; width: 100%; height: 350px; border: 0; }
.booking { padding-bottom: 6px; }
.booking iframe { display: block; width: 100%; height: 1250px; border: 0; overflow: scroll; }
@media (max-width: 769px) { .booking iframe { height: 1450px; } }
@media (max-width: 480px) { .booking iframe { height: 2200px; } }

.form { display: flex; flex-direction: column; gap: 19px; }
.form input, .form textarea {
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 5px 14px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  transition: all .3s;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { border-color: #333; outline: 0; }
.form ::placeholder { color: var(--primary); opacity: .6; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button {
  width: 100%;
  padding: 20px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s;
}
.form button:disabled { opacity: .6; cursor: wait; }
.form__msg { margin: 0; padding: 0; font-size: 16px; }
.form__msg:empty { display: none; }
.form__msg.is-success { color: #46b450; }
.form__msg.is-error { color: #d9534f; }

/* ---------- Wartungsseite ---------- */
.sec--fullheight { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; --p: 10px; --p-md: 10px; --p-sm: 10px; }
.sec--fullheight > .inner { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 45px; background: var(--dark); }
.site-footer__inner { display: flex; max-width: var(--content); margin: 0 auto; }
.footer-brand { flex: 0 1 34.93%; display: flex; flex-direction: column; gap: 20px; padding-right: 125px; }
.footer-brand img { display: block; width: 100%; }
.footer-brand p { margin: 0 0 .9rem; color: var(--white); font-size: 12px; text-align: center; text-transform: uppercase; }
.footer-col { display: flex; flex-direction: column; gap: 20px; padding: 10px; }
.footer-col--contact { flex: 0 1 34.61%; }
.footer-col--legal { flex: 0 1 30.46%; }
.footer-col h2 { color: var(--primary); font-size: 24px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.footer-col--contact h2 { color: #918a72; }
.footer-col .icon-list { --space: 10px; --icon: 18px; --icon-gap: 17.5px; margin-top: 20px; color: var(--white); }
.footer-col .icon-list a:hover { color: var(--white); }
@media (max-width: 767px) {
  .site-footer { padding: 50px 25px; }
  .site-footer__inner { flex-direction: column; }
  .footer-brand { padding-right: 0; }
  .footer-brand p { font-size: 10px; }
  .footer-col h2 { font-size: 20px; }
  .footer-col { margin-top: 30px; }
}
