/* Das Sommerhaus in Bingen am Rhein – Stylesheet */
/* Schriften lokal eingebunden (keine Verbindung zu Google) – Jost & Barlow Condensed, SIL Open Font License */
@font-face { font-family: "Jost"; font-weight: 300; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-condensed-latin-400-normal.woff2") format("woff2"); }

:root {
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #d9d9d9;
  --accent: #b8ad9b;      /* warmes Beige wie auf der Kontaktseite */
  --bg: #ffffff;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 2.3rem 1.5rem 2.6rem;
  gap: 1rem;
}
.logo {
  font-family: var(--font-head);
  font-stretch: condensed;
  font-size: 1.75rem; line-height: 1.0;
  text-decoration: none;
  border-left: 1px solid var(--text);
  padding-left: .65rem;
  margin-right: auto;
}
.nav { margin-right: 2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.6rem; }
.nav a { text-decoration: none; font-size: 1.05rem; transition: color .2s; }
.header-cta { padding: .45rem 2.2rem; font-size: .9rem; letter-spacing: .03em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--muted); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: .25s; }

/* ---------- Slider (Startseite) ---------- */
/* Großer Vollbreiten-Slider: füllt den Bildschirm unter dem Header, Bilder wechseln automatisch per Überblendung */
.slider { position: relative; width: 100%; height: max(480px, calc(100vh - 155px)); overflow: hidden; background: #ddd; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: none; border: 0; color: #fff; cursor: pointer;
  padding: 1rem .8rem; line-height: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.45));
  opacity: .9; transition: opacity .2s;
}
.slider-btn:hover { opacity: 1; }
.slider-btn.prev { left: .6rem; }
.slider-btn.next { right: .6rem; }

/* ---------- Allgemein ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
h1, h2 { font-family: var(--font-body); font-weight: 400; letter-spacing: .01em; }
h1 { font-size: 2.2rem; margin: 0 0 2rem; }
.btn {
  display: inline-block; text-decoration: none;
  border: 1px solid var(--text); padding: .8rem 2.2rem;
  font-size: .95rem; letter-spacing: .05em;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--text); color: #fff; }

.cta { text-align: center; padding: 4rem 1.5rem; }

/* ---------- Das Sommerhaus ---------- */
.intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  padding: 3rem 0 4rem;
}
.intro-text { padding: 0 1.5rem 0 max(1.5rem, calc((100vw - var(--max)) / 2 + 1.5rem)); }
.intro-text h1 { text-align: center; }
.intro-text p { color: #2e2e2e; }
.intro-img img { width: 100%; height: 100%; max-height: 760px; object-fit: cover; }

.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding-bottom: 4rem;
}
.gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; z-index: 200;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 1rem; }
.lb-close { top: .5rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Verfügbarkeit ---------- */
.availability { padding: 4rem 0 6rem; font-size: 1.15rem; }
.availability .btn { margin-top: 2rem; font-size: 1.05rem; }

/* ---------- Kontakt ---------- */
.contact-hero { display: grid; grid-template-columns: 1fr 3fr; min-height: 380px; margin-top: 1rem; }
.contact-hero .label {
  background: var(--accent); color: #fff;
  display: flex; align-items: flex-end; padding: 1.5rem;
  font-size: 2rem; font-weight: 400;
}
.contact-hero .map { background: #eee; }
.contact-hero .map img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 100%; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  padding: 3rem 0 5rem; border-top: 1px solid var(--line); margin-top: 2rem;
}
.contact-grid h2 { font-size: 1.2rem; margin-top: 0; }
.contact-grid p { margin: 0 0 1.4rem; }
.contact-grid .small { font-size: .92rem; color: #444; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }

/* ---------- Textseiten (Impressum / Datenschutz) ---------- */
.legal { max-width: 800px; padding: 3rem 1.5rem 5rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2.5rem; }
.legal p, .legal li { color: #2e2e2e; }
.legal ul { padding-left: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 1.5rem 2rem; text-align: center; font-size: .92rem; color: #444; }
.site-footer .btn { margin-bottom: 2rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.site-footer nav a { margin: 0 .6rem; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .copy { margin-top: 1rem; color: var(--muted); font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .header-inner { padding: 1.4rem 1.5rem; }
  .logo { margin-right: auto; }
  .header-cta { order: 2; padding: .4rem 1rem; }
  .nav-toggle { order: 3; }
  .nav { margin-right: 0; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.5rem 1.2rem; }
  .nav a { display: block; padding: .6rem 0; }
  .intro { grid-template-columns: 1fr; gap: 2rem; }
  .intro-text { padding: 0 1.5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-hero { grid-template-columns: 1fr; }
  .contact-hero .label { min-height: 90px; }
  .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
  .slider { height: 65vh; min-height: 360px; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .logo { font-size: 1.3rem; }
  .gallery { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
}
