/* ==========================================================================
   Ferienwohnung im Erzgebirge — Stylesheet
   Design: helles, modernes Design mit warmen Holzakzenten
   ========================================================================== */

@font-face{
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Work Sans';
  src: url('../fonts/work-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Work Sans';
  src: url('../fonts/work-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Work Sans';
  src: url('../fonts/work-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root{
  /* Farben */
  --color-bg: #FBF8F3;
  --color-bg-alt: #F1E8D8;
  --color-bg-alt-2: #EDE3D0;
  --color-text: #2E2A22;
  --color-text-soft: #635B4A;
  --color-wood: #A9713C;
  --color-wood-dark: #7C5227;
  --color-sage: #6E7C61;
  --color-sage-dark: #566149;
  --color-line: #E3D8C4;
  --color-white: #FFFFFF;
  --color-footer-bg: #2E2A22;
  --color-footer-text: #D9CFBD;

  /* Typografie */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --content-width: 1400px;
  --radius: 2px;
}

*{ box-sizing: border-box; }
html{ font-size: 19px; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

html, body{ max-width: 100%; overflow-x: hidden; }

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

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }

.wrap{
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  color: var(--color-text);
}
h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; }
h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3{ font-size: 1.35rem; }

p{ margin: 0 0 1em 0; }
p:last-child{ margin-bottom: 0; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-wood-dark);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before{
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-wood);
}

:focus-visible{
  outline: 3px solid var(--color-sage);
  outline-offset: 3px;
}

/* ==========================================================================
   Signature-Element: Dachschräge / Balken-Diagonale
   ========================================================================== */
.beam-divider{
  position: relative;
  height: 40px;
  overflow: hidden;
}
.beam-divider svg{ width: 100%; height: 100%; display: block; }

.beam-corner{
  position: absolute;
  width: 46px;
  height: 46px;
  pointer-events: none;
}
.beam-corner.tl{ top: -10px; left: -10px; border-top: 3px solid var(--color-wood); border-left: 3px solid var(--color-wood); }
.beam-corner.br{ bottom: -10px; right: -10px; border-bottom: 3px solid var(--color-wood); border-right: 3px solid var(--color-wood); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.98);
  border-bottom: 1px solid var(--color-line);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand{
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text);
}
.brand span{ color: var(--color-wood-dark); }

.main-nav ul{ display: flex; gap: 2.2rem; }
.main-nav a{
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"]{ color: var(--color-wood-dark); }
.main-nav a[aria-current="page"]::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-wood);
}

.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 8px;
}
.nav-toggle span{
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--color-wood-dark); color: #fff; }
.btn-primary:hover{ background: #62401E; }
.btn-outline{ background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn-outline:hover{ background: var(--color-text); color: var(--color-bg); }
.btn-sage{ background: var(--color-sage); color: #fff; }
.btn-sage:hover{ background: var(--color-sage-dark); }

/* ==========================================================================
   Hero / Slideshow
   ========================================================================== */
.hero{
  position: relative;
  height: min(88vh, 780px);
  min-height: 480px;
  overflow: hidden;
  color: #fff;
}
.hero-slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active{ opacity: 1; }
.hero-slide::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,25,15,0.15) 0%, rgba(30,25,15,0.35) 55%, rgba(30,25,15,0.65) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 76px;
}
.hero-eyebrow{
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  color: #F1E8D8;
}
.hero h1{ color: #fff; max-width: 800px; margin-bottom: 0.3em; }
.hero-sub{ font-size: 1.15rem; max-width: 560px; color: #EFE9DD; margin-bottom: 2em; }
.hero-cta{ display: flex; gap: 16px; flex-wrap: wrap; }

.hero-dots{
  position: absolute;
  bottom: 28px;
  right: 32px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dots button{
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active{ background: #fff; }

/* ==========================================================================
   Sections
   ========================================================================== */
section{ padding: 96px 0; }
section.alt{ background: var(--color-bg-alt); }
.section-head{ max-width: 720px; margin-bottom: 56px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   Split layout (Über mich / Text+Bild)
   ========================================================================== */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.reverse .split-media{ order: 2; }
.split-text .lede{ font-size: 1.15rem; color: var(--color-text-soft); }

/* ==========================================================================
   Bilderrahmen — versetzter Rahmen (Signature)
   ========================================================================== */
.framed{
  position: relative;
  display: inline-block;
  width: 100%;
}
.framed::before{
  content: "";
  position: absolute;
  top: 18px; left: 18px;
  width: 100%; height: 100%;
  border: 2px solid var(--color-wood);
  z-index: 0;
}
.framed img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.framed.reverse::before{ top: 18px; left: auto; right: 18px; }

/* ==========================================================================
   Ausstattung / Feature Grid
   ========================================================================== */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}
.feature-card{
  background: var(--color-bg);
  padding: 34px 28px;
  transition: background 0.2s ease;
}
.feature-card:hover{ background: var(--color-bg-alt); }
.feature-card .icon{ margin-bottom: 18px; color: var(--color-wood-dark); }
.feature-card h4{ font-size: 1.02rem; margin-bottom: 6px; }
.feature-card p{ font-size: 0.92rem; color: var(--color-text-soft); margin: 0; }

/* ==========================================================================
   Gallery / Lightbox
   ========================================================================== */
.room-block{ margin-bottom: 88px; }
.room-block:last-child{ margin-bottom: 0; }
.room-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.room-head p{ max-width: 560px; color: var(--color-text-soft); }

.gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.gallery.cols-3{ grid-template-columns: repeat(3, 1fr); }
.gallery-item{
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}
.gallery-item img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img{ transform: scale(1.05); }
.gallery-item .zoom-icon{
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(46,42,34,0.55);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover .zoom-icon{ opacity: 1; }

.lightbox{
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 17, 12, 0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open{ display: flex; }
.lightbox img{
  max-width: min(1100px, 90vw);
  max-height: 82vh;
  object-fit: contain;
  border: 3px solid var(--color-wood);
}
.lightbox-caption{
  position: absolute;
  bottom: 32px; left: 0; right: 0;
  text-align: center;
  color: #EFE9DD;
  font-size: 0.95rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: rgba(255,255,255,0.2); }
.lightbox-close{ top: 28px; right: 32px; }
.lightbox-prev{ left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 24px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Grundriss
   ========================================================================== */
.floorplan{
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 32px;
  text-align: center;
}
.floorplan img{ cursor: zoom-in; }
.floorplan-caption{ margin-top: 18px; font-size: 0.9rem; color: var(--color-text-soft); }

/* ==========================================================================
   Preise
   ========================================================================== */
.price-table{
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border: 1px solid var(--color-line);
}
.price-table th, .price-table td{
  text-align: left;
  padding: 20px 26px;
  border-bottom: 1px solid var(--color-line);
}
.price-table th{
  font-family: var(--font-display);
  font-weight: 500;
  background: var(--color-bg-alt);
}
.price-table tr:last-child td{ border-bottom: none; }
.price-table td.amount{ text-align: right; font-weight: 600; font-family: var(--font-display); font-size: 1.1rem; }
.price-notes{
  margin-top: 28px;
  padding: 26px 30px;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-wood);
}
.price-notes ul{ margin-top: 10px; }
.price-notes li{ position: relative; padding-left: 22px; margin-bottom: 8px; }
.price-notes li::before{
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 8px;
  background: var(--color-sage);
}

.calendar-embed{
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 8px;
}
.calendar-embed iframe{ width: 100%; height: 560px; border: 0; display: block; }

.map-embed{
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 8px;
}
.map-embed iframe{ width: 100%; height: 420px; border: 0; display: block; }

/* ==========================================================================
   Umgebung
   ========================================================================== */
.poi-list{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--color-line); border: 1px solid var(--color-line); }
.poi-item{ background: var(--color-bg); padding: 26px 30px; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.poi-item .name{ font-weight: 600; }
.poi-item .dist{ color: var(--color-text-soft); font-size: 0.88rem; white-space: nowrap; }

.activity-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.activity-card{ background: var(--color-white); border: 1px solid var(--color-line); padding: 30px; }
.activity-card .icon{ color: var(--color-sage-dark); margin-bottom: 16px; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-card{
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 40px;
}
.contact-row{ display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color-line); }
.contact-row:last-child{ border-bottom: none; }
.contact-row .label{ width: 130px; flex-shrink: 0; color: var(--color-text-soft); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-row > span{ min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.contact-actions{ display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer-top{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand{ font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.footer-nav ul{ display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a{ font-size: 0.92rem; color: var(--color-footer-text); }
.footer-nav a:hover{ color: #fff; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(217,207,189,0.6);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal a{ margin-left: 20px; }
.footer-legal a:hover{ color: #fff; }

.footer-credit{
  text-align: center;
  font-size: 0.78rem;
  color: rgba(217,207,189,0.45);
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-credit a{ color: rgba(217,207,189,0.75); }
.footer-credit a:hover{ color: #fff; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-content{ max-width: 780px; }
.legal-content h2{ margin-top: 2em; }
.legal-content h2:first-child{ margin-top: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px){
  .wrap{ padding: 0 24px; }
  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery{ grid-template-columns: repeat(3, 1fr); }
  .poi-list{ grid-template-columns: 1fr; }
  .activity-grid{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 860px){
  html{ font-size: 18px; }
  .main-nav{
    position: fixed;
    z-index: 99;
    top: 84px; left: 0; right: 0; bottom: 0;
    background: var(--color-bg);
    padding: 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; gap: 0; }
  .main-nav a{ display: block; padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--color-line); }
  .nav-toggle{ display: block; }
  .split{ grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media{ order: 0; }
  .gallery{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery.cols-3{ grid-template-columns: repeat(2, 1fr); }
  .feature-grid{ grid-template-columns: 1fr 1fr; }
  section{ padding: 64px 0; }
  .hero{ height: 76vh; }
  .hero-cta{ flex-direction: column; align-items: flex-start; }
  .activity-grid{ grid-template-columns: 1fr; }
  .framed::before{ display: none; }
  .lightbox-prev, .lightbox-next{ width: 40px; height: 40px; }
}

@media (max-width: 520px){
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .room-head{ flex-direction: column; align-items: flex-start; }
  .calendar-embed iframe{ height: 460px; }
  .contact-row{ flex-direction: column; gap: 4px; }
  .contact-row .label{ width: auto; }
  .contact-card{ padding: 28px 22px; }
}
