/* Ferienhaus Raadhuis – Stylesheet */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sand: #f7f2ea;
  --sand-2: #efe6d8;
  --papier: #fffdf9;
  --tinte: #1f2f3b;
  --tinte-2: #4b5a65;
  --meer: #1d4e6e;
  --meer-tief: #143a54;
  --himmel: #76a8ce;
  --dach: #b44e29;
  --dach-dunkel: #963f1f;
  --linie: #e2d8c7;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --schatten: 0 1px 2px rgb(20 40 60 / 0.06), 0 8px 28px rgb(20 40 60 / 0.08);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

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

a { color: var(--meer); text-underline-offset: 0.18em; }
a:hover { color: var(--dach); }

:focus-visible { outline: 3px solid var(--himmel); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--meer-tief);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--meer-tief); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #dbe9f4;
}
.eyebrow-dunkel { color: var(--dach); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--dach);
  background: var(--dach);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--dach-dunkel); border-color: var(--dach-dunkel); color: #fff; }
.btn-hell { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.85); }
.btn-hell:hover { background: #fff; border-color: #fff; color: var(--meer-tief); }
.btn-umriss { background: transparent; color: var(--meer); border-color: var(--meer); }
.btn-umriss:hover { background: var(--meer); border-color: var(--meer); color: #fff; }
.btn-small { min-height: 40px; padding: 0.45em 1.1em; }
.btn-gross { min-height: 56px; font-size: 1.1rem; padding-inline: 1.8em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 242 234 / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linie);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--meer-tief); }
.brand-sub { font-size: 0.8rem; color: var(--tinte-2); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--tinte); text-decoration: none; font-weight: 500;
}
.site-nav a:not(.btn):hover { background: var(--sand-2); color: var(--meer-tief); }
.site-nav a[aria-current="page"] { color: var(--dach); font-weight: 600; }
.site-nav .btn { margin-left: 8px; }

.nav-toggle { display: none; }

@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; border-radius: 10px;
    background: transparent; cursor: pointer; color: var(--meer-tief);
  }
  .nav-toggle:hover { background: var(--sand-2); }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
    position: relative; transition: transform 0.2s, background-color 0.2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-offen .nav-toggle-bars { background: transparent; }
  .nav-offen .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-offen .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--sand);
    border-bottom: 1px solid var(--linie);
    box-shadow: 0 12px 24px rgb(20 40 60 / 0.08);
    display: none;
  }
  .nav-offen .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: flex; align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.hero-bild {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(10 30 45 / 0.05) 20%, rgb(10 30 45 / 0.72) 100%);
}
.hero-inhalt { padding-block: 120px 120px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5rem);
  font-weight: 600;
  margin-bottom: 0.3em;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.25);
}
.hero-lead {
  max-width: 38em;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  margin-bottom: 1.6em;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.3);
}
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 12px; }

/* Fakten */
.fakten {
  list-style: none; margin: -64px 0 0; padding: 8px;
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--papier);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}
.fakten li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 10px;
}
.fakten li + li { border-left: 1px solid var(--linie); }
.fakten strong {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--meer-tief); line-height: 1.1;
}
.fakten span { font-size: 0.9rem; color: var(--tinte-2); margin-top: 4px; }

@media (max-width: 860px) {
  .fakten { grid-template-columns: repeat(3, 1fr); }
  .fakten li:nth-child(4) { border-left: 0; }
  .fakten li:nth-child(n+4) { border-top: 1px solid var(--linie); }
}
@media (max-width: 480px) {
  .fakten { grid-template-columns: repeat(2, 1fr); margin-top: -48px; }
  .fakten li { padding: 14px 6px; }
  .fakten li:nth-child(odd) { border-left: 0; }
  .fakten li:nth-child(4) { border-left: 1px solid var(--linie); }
  .fakten li:nth-child(n+3) { border-top: 1px solid var(--linie); }
  .fakten strong { font-size: 1.45rem; }
}

/* Abschnitte */
.abschnitt { padding-block: clamp(64px, 8vw, 112px); }
.abschnitt-sand { background: var(--sand-2); }

.zweispaltig {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.zweispaltig .text p { max-width: 36em; }
@media (max-width: 860px) { .zweispaltig { grid-template-columns: 1fr; } }
@media (min-width: 861px) {
  .zweispaltig.umgekehrt { grid-template-columns: 1fr 1.05fr; }
  .zweispaltig.umgekehrt > .text { order: 2; }
}
.zweispaltig .text .btn { margin-top: 8px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }

.bildpaar { margin: 0; position: relative; padding: 0 0 72px 0; }
.bildpaar img { border-radius: var(--radius); box-shadow: var(--schatten); object-fit: cover; }
.bildpaar img:first-child { width: 100%; aspect-ratio: 3 / 2; }
.bildpaar img:last-child {
  position: absolute; left: -24px; bottom: 0;
  width: 46%; aspect-ratio: 4 / 3;
  border: 6px solid var(--papier);
}
@media (max-width: 860px) {
  .bildpaar { padding-bottom: 56px; }
  .bildpaar img:last-child { left: 12px; width: 44%; border-width: 4px; }
}

.karten {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  margin-top: 40px;
}
.karten.drei {
  /* höchstens drei Spalten, darunter automatisch weniger */
  grid-template-columns: repeat(auto-fit, minmax(max(260px, calc((100% - 32px) / 3)), 1fr));
}
#haus .karten.drei { margin-top: 56px; }
.karte {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 24px;
}
.karte p:last-child, .karte ul:last-child { margin-bottom: 0; }
.karte ul { margin: 0; padding-left: 1.1em; }
.karte li { margin-bottom: 0.35em; }
.karte li::marker { color: var(--himmel); }
.hinweis {
  display: inline-block; margin-left: 4px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--meer); background: #e3eef7; border-radius: 999px; padding: 1px 8px;
  vertical-align: 0.1em;
}

.zwischentitel { margin-top: 64px; margin-bottom: 0; }

/* Ausstattung */
.ausstattung {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 28px;
  margin-top: 40px;
}
.ausstattung h3 { font-size: 1.15rem; margin-bottom: 0.6em; }
.haken { list-style: none; margin: 0; padding: 0; }
.haken li { position: relative; padding-left: 28px; margin-bottom: 0.5em; }
.haken li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--meer); border-bottom: 2.5px solid var(--meer);
  transform: rotate(-45deg);
}

/* Galerie */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 24px; }
.filter button {
  font: inherit; font-size: 0.95rem; font-weight: 500;
  min-height: 42px; padding: 0.4em 1.1em;
  border-radius: 999px; border: 1px solid var(--linie);
  background: var(--papier); color: var(--tinte); cursor: pointer;
}
.filter button:hover { border-color: var(--meer); }
.filter button[aria-pressed="true"] { background: var(--meer-tief); border-color: var(--meer-tief); color: #fff; }

.galerie {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px;
}
.galerie li[hidden] { display: none; }
.galerie a {
  display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3;
  background: var(--sand-2);
}
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.galerie a:hover img { transform: scale(1.04); }
@media (max-width: 520px) {
  .galerie { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .galerie a { border-radius: 8px; }
}

/* Lage */
.adresse {
  background: var(--papier); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--schatten);
}
.adresse h3 { font-size: 1.2rem; }
.adresse p { font-size: 1.05rem; }

/* Tipps & Neuigkeiten: Karten */
.abschnitt-kopf {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px;
  margin-bottom: 32px;
}
.abschnitt-kopf h2 { margin-bottom: 0; }
.mehr-link { font-weight: 600; text-decoration: none; padding-block: 8px; }
.mehr-link:hover { text-decoration: underline; }

.beitraege {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(max(260px, calc((100% - 40px) / 3)), 1fr));
}
.beitrag-karte a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.beitrag-karte a:hover { box-shadow: var(--schatten); transform: translateY(-2px); color: inherit; }
.beitrag-karte img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.beitrag-karte-text { padding: 20px 22px 24px; }
.beitrag-karte h2, .beitrag-karte h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
.beitrag-karte p:last-child { margin-bottom: 0; color: var(--tinte-2); font-size: 0.98rem; }
.beitrag-meta { font-size: 0.85rem; font-weight: 600; color: var(--dach); margin-bottom: 0.5em; }

/* Beitragsseite */
.brotkrumen { font-size: 0.9rem; margin-bottom: 24px; color: var(--tinte-2); }
.brotkrumen a { color: var(--tinte-2); }
.seitentitel { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); }
.einleitung { max-width: 40em; font-size: 1.15rem; color: var(--tinte-2); margin-bottom: 40px; }

.beitrag-kopf { max-width: 800px; padding-top: 48px; }
.beitrag-kopf h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem); }
.beitrag-lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--tinte-2); }
.beitrag-bild { margin: 32px auto 0; max-width: 1000px; }
.beitrag-bild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }

.prosa { max-width: 720px; margin: 48px auto 0; font-size: 1.08rem; }
.prosa h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); margin-top: 1.8em; }
.prosa h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prosa h2 a, .prosa h3 a {
  color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em;
  text-decoration-color: var(--himmel);
}
.prosa h2 a:hover, .prosa h3 a:hover { color: var(--dach); }
.prosa ul, .prosa ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prosa li { margin-bottom: 0.45em; }
.prosa li::marker { color: var(--himmel); }
.abzeichen {
  display: inline-block; margin-left: 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: var(--dach); border-radius: 999px; padding: 2px 9px;
  vertical-align: 0.12em; white-space: nowrap;
}
.tipp {
  margin: 1.6em 0; padding: 18px 22px;
  background: #e8f1f8; border-left: 4px solid var(--himmel); border-radius: 0 10px 10px 0;
}
.tipp p { margin: 0; }
.tipp .tipp-titel {
  font-family: var(--serif); font-weight: 600; color: var(--meer-tief); margin-bottom: 4px;
}

.beitrag-cta {
  max-width: 900px; margin: 64px auto 88px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: center;
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--schatten);
}
.beitrag-cta h2 { font-size: 1.7rem; }
.beitrag-cta p:last-child { margin-bottom: 0; }
.beitrag-cta-aktionen { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 700px) {
  .beitrag-cta { grid-template-columns: 1fr; padding: 24px; }
}
.abschnitt .beitrag-cta { margin-bottom: 0; }

.sprungmarken {
  margin: 0 0 40px; padding: 18px 20px;
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius);
}
.sprungmarken p { margin: 0 0 10px; font-weight: 600; font-size: 0.9rem; color: var(--tinte-2); }
.sprungmarken ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sprungmarken li { margin: 0; }
.sprungmarken a {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--sand); border: 1px solid var(--linie);
  color: var(--meer-tief); font-size: 0.95rem; font-weight: 500; text-decoration: none;
}
.sprungmarken a:hover { border-color: var(--meer); color: var(--meer); }
.stand { margin-top: 2.5em; font-size: 0.9rem; color: var(--tinte-2); }

/* Häufige Fragen */
.schmal { max-width: 860px; }
.fragen { margin-top: 32px; border-top: 1px solid var(--linie); }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 4px;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--meer-tief);
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: "+"; flex: none; font-family: var(--sans); font-size: 1.5rem; font-weight: 400;
  color: var(--meer); transition: transform 0.2s;
}
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details p { margin: 0 4px 20px; max-width: 44em; }

/* Buchen */
.buchen {
  background: var(--meer-tief);
  background-image: radial-gradient(1200px 400px at 85% 120%, rgb(118 168 206 / 0.28), transparent 60%);
  color: #e8f0f6;
  padding-block: clamp(56px, 7vw, 96px);
}
.buchen h2 { color: #fff; }
.buchen p { max-width: 36em; }
.buchen-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.buchen-aktion { justify-self: end; text-align: center; }
.buchen .klein { font-size: 0.85rem; color: #b9cde0; margin-top: 12px; }
@media (max-width: 860px) {
  .buchen-inner { grid-template-columns: 1fr; }
  .buchen-aktion { justify-self: start; text-align: left; }
}

/* Kontakt */
.kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.kontakt-karte {
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 28px 32px; font-size: 1.1rem;
}
.kontakt-karte p { margin-bottom: 0.6em; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.kontakt-karte p:last-child { margin-bottom: 0; }
.kontakt-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--meer-tief); }
.kontakt-karte .label { min-width: 5.5em; color: var(--tinte-2); }
.kontakt-karte a { font-weight: 600; word-break: break-word; }
@media (max-width: 860px) { .kontakt { grid-template-columns: 1fr; gap: 24px; } }

/* Footer */
.site-footer { background: var(--tinte); color: #c9d2d9; font-size: 0.95rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding-block: 28px;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--himmel); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #0b161f; color: #fff;
}
.lightbox::backdrop { background: #0b161f; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 16px 24px; }
.lightbox img { max-width: min(92vw, 1400px); max-height: calc(100dvh - 160px); width: auto; height: auto; border-radius: 6px; }
.lightbox figcaption { text-align: center; font-size: 1rem; color: #dbe5ec; }
.lb-btn {
  position: absolute; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 999px;
  background: rgb(255 255 255 / 0.12); color: #fff;
  font-size: 2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: rgb(255 255 255 / 0.25); }
.lb-zu { top: 14px; right: 14px; }
.lb-zurueck { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-weiter { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-zurueck, .lb-weiter { top: auto; bottom: 18px; transform: none; }
  .lightbox figure { padding-bottom: 88px; }
  .lightbox img { max-height: calc(100dvh - 200px); }
}

/* Unterseiten (Impressum, Datenschutz) */
.rechtstext { padding-block: 56px 88px; }
.rechtstext .container { max-width: 800px; }
.rechtstext h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); }
.rechtstext h2 { font-size: 1.4rem; margin-top: 2em; }
.rechtstext h3 { font-size: 1.1rem; margin-top: 1.5em; }
.zurueck { display: inline-block; margin-bottom: 24px; font-weight: 500; }

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