/* Ferienhaus De IJssel Eilanden — dezentes, maritim-editoriales Design.
   Nur System-Schriften, keine externen Ressourcen. Mobile-first. */

:root {
  --paper: #f6f3ec;
  --surface: #fffdf8;
  --ink: #1f2d36;
  --muted: #5f6d75;
  --accent: #175a72;
  --accent-dark: #0f4257;
  --line: #e5decf;
  --dots: #c9bfa8;
  --serif: ui-serif, "Iowan Old Style", Georgia, Cambria, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.7rem, 4.5vw + 0.5rem, 2.3rem); }
p { margin: 0 0 1em; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Kicker (Editorial-Label) ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1.1em;
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.kicker-light { color: #f0e8d8; }

/* ---------- Topbar ---------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  color: #fff;
}
.brand {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(15, 25, 32, 0.5);
}
.topbar-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.35em 1em;
  background: rgba(20, 32, 40, 0.25);
}
.topbar-link:hover { background: rgba(20, 32, 40, 0.5); }

/* Topbar-Variante für Unterseiten (Impressum) */
.topbar--solid {
  position: static;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.topbar--solid .brand { color: var(--ink); text-shadow: none; }
.topbar--solid .topbar-link {
  color: var(--accent);
  border-color: var(--line);
  background: none;
}
.topbar--solid .topbar-link:hover { background: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 76vh;
  min-height: 76svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(21, 33, 41, 0.35) 0%,
    rgba(21, 33, 41, 0.05) 38%,
    rgba(17, 28, 35, 0.82) 100%);
}
.hero-inner {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding: 5.5rem 1.25rem 2.75rem;
  color: #fff;
}
.hero h1 {
  font-size: clamp(2.2rem, 7vw + 0.5rem, 3.7rem);
  margin-bottom: 0.35em;
  text-shadow: 0 2px 18px rgba(10, 18, 24, 0.45);
}
.hero-sub {
  font-size: clamp(1.05rem, 2.5vw + 0.5rem, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 34ch;
  text-wrap: balance;
  margin-bottom: 1.6em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.72em 1.5em;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }

/* Sanfter Einstieg beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s ease forwards;
  }
  .hero-inner > :nth-child(2) { animation-delay: 0.12s; }
  .hero-inner > :nth-child(3) { animation-delay: 0.24s; }
  .hero-inner > :nth-child(4) { animation-delay: 0.36s; }
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- Eckdaten ---------- */
.facts {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.facts-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  max-width: 62rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.fact {
  padding: 1.1rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.fact:nth-last-child(-n+2) { border-bottom: none; }
.fact-value {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.2;
}
.fact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.15rem;
}
@media (min-width: 640px) {
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-last-child(-n+3) { border-bottom: none; }
}
@media (min-width: 960px) {
  .facts-grid { grid-template-columns: repeat(6, 1fr); }
  .fact { border-bottom: none; }
}

/* ---------- Beschreibung ---------- */
.about { padding-block: 4rem 3.5rem; }
.about .lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
}
.about p { max-width: 62ch; }

.distances {
  margin-top: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.5rem 1.1rem;
  max-width: 30rem;
}
.distances h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.9em;
}
.dist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dist-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  padding-block: 0.3em;
  font-variant-numeric: tabular-nums;
}
.dist-list .dots {
  flex: 1;
  border-bottom: 2px dotted var(--dots);
  transform: translateY(-4px);
}
.closing {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent-dark);
}

/* ---------- Galerie ---------- */
.gallery-section {
  background: linear-gradient(var(--surface), var(--paper));
  border-top: 1px solid var(--line);
  padding-block: 4rem;
}
.gallery-hint { color: var(--muted); font-size: 0.95rem; }

.gallery {
  list-style: none;
  margin: 1.75rem auto 0;
  padding-inline: 1.25rem;
  max-width: 74rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.g-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
@media (hover: hover) {
  .g-item:hover img { transform: scale(1.045); }
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gallery li:first-child { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Kontakt ---------- */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 4rem;
}
.contact p { max-width: 56ch; }

.contact-card {
  margin-top: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  max-width: 30rem;
}
.tel-link {
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration-color: var(--dots);
  text-underline-offset: 3px;
}
.contact-call { margin-top: 1.1rem; }
.contact-rows { margin: 0; }
.contact-rows > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 0.75em;
  padding-block: 0.3em;
}
.contact-rows dt { font-weight: 600; min-width: 9.5em; }
.contact-rows dd { margin: 0; }

/* ---------- Impressum ---------- */
.legal-heading {
  font-size: 1.15rem;
  margin-top: 2.2rem;
  margin-bottom: 0.4em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.footer-inner p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.fineprint { margin-top: 0.75rem; font-size: 0.82rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 25, 31, 0.96);
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }

.lb-figure {
  margin: 0;
  text-align: center;
  max-width: 100%;
}
#lb-img {
  max-width: min(94vw, 1600px);
  max-height: 76vh;
  max-height: 76svh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
  background: #0b1216;
}
.lb-figure figcaption {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  padding-inline: 3.5rem;
}
.lb-counter {
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lb-btn {
  position: fixed;
  z-index: 51;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }

/* Mobil: Pfeile unten mittig – gut erreichbar mit dem Daumen */
.lb-prev { bottom: max(16px, env(safe-area-inset-bottom)); left: calc(50% - 64px); }
.lb-next { bottom: max(16px, env(safe-area-inset-bottom)); right: calc(50% - 64px); }

@media (min-width: 720px) {
  .lb-prev { bottom: auto; top: 50%; left: 18px; transform: translateY(-50%); }
  .lb-next { bottom: auto; top: 50%; right: 18px; transform: translateY(-50%); }
  #lb-img { max-height: 84vh; }
  .lb-figure figcaption { padding-inline: 0; }
}
