/* Ferienhaus Oy – www.ferienhaus-oy.de */

:root {
  --forest: #2f4a3a;
  --forest-dark: #1f3328;
  --wood: #b5763c;
  --wood-dark: #8f5a2a;
  --cream: #f7f2ea;
  --sand: #ece3d4;
  --ink: #2a2622;
  --muted: #6b6259;
  --line: #ddd2c1;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 12px 34px rgba(31, 51, 40, .14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wood-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--forest-dark); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--wood);
  margin-bottom: .6em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--wood); color: var(--white); }
.btn-primary:hover { background: var(--wood-dark); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-outline { border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 234, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--forest-dark); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--forest); display: grid; place-items: center; }
.brand-mark svg { width: 28px; height: 28px; fill: var(--cream); }
.brand-text { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.05; }
.brand-text small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .06em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav a:hover { color: var(--wood-dark); }
.nav a.nav-cta { background: var(--forest); color: var(--white); padding: .5em 1.1em; border-radius: 999px; }
.nav a.nav-cta:hover { background: var(--forest-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--forest-dark); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; color: var(--white); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,24,.15) 0%, rgba(20,30,24,.25) 45%, rgba(20,30,24,.78) 100%); }
.hero-content { position: relative; padding: 5rem 0 4.5rem; max-width: 760px; margin-left: max(20px, calc((100% - 1180px) / 2)); }
.hero h1 { color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero .eyebrow { color: #f1c99a; }
.hero .lead { font-size: 1.2rem; max-width: 36em; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Facts */
.facts { background: var(--forest); color: var(--cream); }
.facts-list { list-style: none; margin: 0 auto; padding: 1.4rem 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; text-align: center; }
.facts-list li { display: flex; flex-direction: column; }
.facts-list strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--white); }
.facts-list span { font-size: .82rem; opacity: .8; letter-spacing: .03em; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--sand); }
.section-dark { background: var(--forest-dark); color: var(--cream); }
.section-dark h2 { color: var(--white); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-even { grid-template-columns: 1fr 1fr; align-items: start; }
.split-text p { color: #3d3732; }

.highlights { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .55rem; }
.highlights li { padding-left: 1.8rem; position: relative; }
.highlights li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 9px; border-left: 2.5px solid var(--wood); border-bottom: 2.5px solid var(--wood); transform: rotate(-45deg); }

.stack { position: relative; margin: 0; padding-bottom: 18%; }
.stack img { border-radius: var(--radius); box-shadow: var(--shadow); }
.stack img:first-child { width: 88%; }
.stack img:last-child { position: absolute; width: 55%; right: 0; bottom: 0; border: 6px solid var(--cream); }

.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2rem; }
.room { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(31,51,40,.07); display: flex; flex-direction: column; }
.room img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.room div { padding: 1.1rem 1.2rem 1.3rem; }
.room p { font-size: .95rem; color: var(--muted); margin: 0; }

.floorplan { margin: 3rem auto 0; max-width: 620px; background: var(--white); border-radius: var(--radius); padding: 1.2rem; box-shadow: 0 4px 16px rgba(31,51,40,.07); }
.floorplan figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: .6rem; }

/* Amenities */
.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2rem; }
.amenity-group { border-top: 3px solid var(--wood); padding-top: 1rem; }
.amenity-group ul { list-style: none; padding: 0; margin: 0; }
.amenity-group li { padding: .38rem 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.note { margin-top: 2rem; color: var(--muted); font-style: italic; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 10px; margin-top: 2rem; }
.gallery a { display: block; overflow: hidden; border-radius: 10px; background: #13221a; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.gallery a:hover img { transform: scale(1.05); opacity: .92; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }

/* Prices */
.price-card { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border-left: 5px solid var(--wood); }
.price-from { font-size: 1.15rem; margin-bottom: .3rem; }
.price-from strong { font-family: var(--serif); font-size: 2.2rem; color: var(--forest-dark); }
.price-sub { color: var(--muted); font-size: .94rem; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checks li { padding: .45rem 0 .45rem 1.8rem; position: relative; border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 1em; width: 12px; height: 7px; border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(-45deg); }

.info-list { margin: 3.2rem 0 0; display: grid; gap: 0; }
.info-list div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 700; color: var(--forest-dark); }
.info-list dd { margin: 0; }

/* Location */
.address { font-style: normal; font-size: 1.1rem; line-height: 1.6; padding: 1rem 1.2rem; background: var(--white); border-radius: 10px; display: inline-block; margin: .4rem 0 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0; }
.contact-list li { display: grid; grid-template-columns: 6rem 1fr; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.host { color: var(--muted); }

.inquiry { background: var(--white); padding: 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: .9rem; }
.inquiry h3 { margin: 0; }
.inquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.inquiry label { display: grid; gap: .3rem; font-size: .88rem; font-weight: 600; color: var(--forest-dark); }
.inquiry input, .inquiry textarea {
  font: inherit; font-weight: 400; font-size: 1rem;
  padding: .65em .8em; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--cream); color: var(--ink); width: 100%;
}
.inquiry input:focus, .inquiry textarea:focus { outline: none; border-color: var(--wood); background: var(--white); }
.inquiry .check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.inquiry .check input { width: auto; }
.inquiry .btn { justify-self: start; }
.form-msg { margin: 0; color: #a23a1d; font-size: .9rem; min-height: 1em; }
.form-hint { margin: 0; font-size: .8rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--forest-dark); color: rgba(247,242,234,.85); padding: 2.4rem 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem; }
.site-footer strong { color: var(--white); font-family: var(--serif); font-size: 1.1rem; }
.site-footer nav { display: flex; gap: 1.4rem; }
.site-footer a { color: var(--cream); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,18,14,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; margin: auto; border-radius: 6px; }
.lightbox figcaption { color: var(--cream); margin-top: .8rem; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: var(--white); border: 0; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Legal pages */
.legal { padding: 4rem 0 5rem; }
.legal .wrap { max-width: 780px; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }

/* Responsive */
@media (max-width: 1024px) {
  .rooms, .amenities { grid-template-columns: repeat(2, 1fr); }
  .facts-list { grid-template-columns: repeat(3, 1fr); row-gap: 1.2rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1.2rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a.nav-cta { margin-top: .8rem; text-align: center; border-bottom: 0; }
  .split, .split-even { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  #kontakt .split-media, #preise .split-media { order: 0; }
  .info-list { margin-top: 1rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .rooms, .amenities { grid-template-columns: 1fr; }
  .facts-list { grid-template-columns: repeat(2, 1fr); }
  .inquiry .row { grid-template-columns: 1fr; }
  .info-list div { grid-template-columns: 1fr; gap: .2rem; }
  .hero-content { padding-bottom: 3rem; }
  .lightbox button { width: 44px; height: 44px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Navigation auf Unterseiten */
.nav.nav-static { position: static; display: flex; padding: 0; border: 0; background: none; }
.nav.nav-static a.nav-cta { margin: 0; padding: .5em 1.1em; }

/* Sprachumschalter */
.lang-switch { display: flex; gap: .15rem; margin-left: .4rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.nav .lang-switch a { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); padding: .3em .45em; border-radius: 6px; }
.nav .lang-switch a:hover { color: var(--forest-dark); background: var(--sand); }
.nav .lang-switch a[aria-current="page"] { color: var(--white); background: var(--forest); }
@media (max-width: 1240px) and (min-width: 1181px) { .nav { gap: 1.1rem; } .nav a { font-size: .92rem; } }

/* Burger-Menü ab 1180px (6 Menüpunkte + 6 Sprachen) */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1.2rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a.nav-cta { margin-top: .8rem; text-align: center; border-bottom: 0; }
  .lang-switch { margin: .9rem 0 0; padding: 0; border: 0; justify-content: center; flex-wrap: wrap; gap: .4rem; }
  .nav .lang-switch a { border-bottom: 0; padding: .45em .8em; font-size: .9rem; }

  /* Unterseiten: kein Burger, Umschalter bleibt sichtbar */
  .nav.nav-static { flex-direction: row; align-items: center; gap: .8rem; }
  .nav.nav-static .lang-switch { margin: 0; }
  .nav.nav-static .lang-switch a { padding: .3em .45em; font-size: .8rem; }
}
@media (max-width: 640px) {
  .header-inner:has(.nav-static) { height: auto; flex-wrap: wrap; gap: .6rem; padding: .7rem 0; }
  .nav.nav-static { width: 100%; justify-content: space-between; flex-wrap: wrap; }
}
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
