/* Ferienhaus Elfi – Stylesheet (2026) */
:root {
  --rot: #a3262a;
  --rot-dunkel: #7d1b1f;
  --gruen: #4f6b2c;
  --creme: #faf6ef;
  --sand: #f1e9dc;
  --text: #2b2522;
  --text-hell: #6b625c;
  --rand: #e3d9ca;
  --radius: 14px;
  --schatten: 0 10px 30px rgba(60, 35, 20, .12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-underline-offset: .2em; }
a:hover { color: var(--rot-dunkel); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
h3 { font-size: 1.25rem; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Kopfbereich / Navigation ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rand);
}
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.logo { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.1; }
.logo small { display: block; font-family: var(--sans); font-size: .75rem; font-weight: 400; color: var(--text-hell); letter-spacing: .02em; }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo .rad { width: 2.6rem; height: 2.6rem; flex: none; color: var(--rot); transition: transform .8s ease; }
.logo:hover .rad { transform: rotate(-40deg); }
.logo-text span { color: var(--rot); }
@media (prefers-reduced-motion: reduce) { .logo .rad { transition: none; } }

.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav a { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--text); text-decoration: none; font-size: .95rem; }
.nav a:hover { background: var(--sand); color: var(--text); }
.nav .cta { background: var(--rot); color: #fff; }
.nav .cta:hover { background: var(--rot-dunkel); color: #fff; }

.menue-knopf { display: none; background: none; border: 1px solid var(--rand); border-radius: 10px; padding: .55rem .7rem; cursor: pointer; color: var(--text); }
.menue-knopf svg { display: block; }

@media (max-width: 820px) {
  .menue-knopf { display: block; }
  .nav { position: absolute; inset: 100% 0 auto 0; background: var(--creme); border-bottom: 1px solid var(--rand); display: none; }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; padding: .75rem 1.25rem 1.25rem; }
  .nav a { padding: .75rem 1rem; border-radius: 10px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(25,15,10,.72) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: 3rem 3.5rem; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 4.75rem); margin-bottom: .2em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero p { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); max-width: 38ch; margin: 0 0 1.75rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

.knopf { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--rot); color: #fff; border: 2px solid var(--rot); transition: background .2s, transform .2s; }
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; transform: translateY(-1px); }
.knopf.hell { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); }
.knopf.hell:hover { background: #fff; color: var(--text); }
.knopf.rand { background: transparent; color: var(--rot); }
.knopf.rand:hover { background: var(--rot); color: #fff; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Eckdaten-Leiste ---------- */
.eckdaten { background: #fff; border-bottom: 1px solid var(--rand); }
.eckdaten ul { list-style: none; margin: 0; padding: 1.25rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.eckdaten strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--rot); }
.eckdaten span { color: var(--text-hell); font-size: .92rem; }
@media (max-width: 640px) { .eckdaten ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Abschnitte ---------- */
section { padding-block: clamp(3.5rem, 2rem + 5vw, 6rem); }
section.sand { background: var(--sand); }
.einleitung { color: var(--text-hell); max-width: 60ch; margin: -.25rem 0 2.5rem; font-size: 1.1rem; }
.kicker { display: inline-block; color: var(--gruen); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: .5rem; }

.zwei-spalten { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .zwei-spalten { grid-template-columns: 1fr; } }

.liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.liste li { display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; align-items: start; }
.liste svg { width: 1.4rem; height: 1.4rem; color: var(--gruen); margin-top: .15rem; }
.liste small { display: block; color: var(--text-hell); }

.karten-stapel { display: grid; gap: 1.25rem; }
.karte { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--schatten); }

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.galerie button { all: unset; cursor: zoom-in; display: block; width: 100%; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 3 / 2; background: var(--sand); box-shadow: 0 4px 14px rgba(60,35,20,.1); }
.galerie button:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galerie button:hover img { transform: scale(1.04); }
.galerie .gross { grid-column: span 2; }
@media (max-width: 540px) { .galerie .gross { grid-column: auto; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1000px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 12, 8, .88); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: .75rem; font-family: var(--serif); font-size: 1.15rem; }
.lb-knopf { position: fixed; top: 50%; translate: 0 -50%; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-knopf:hover { background: rgba(255,255,255,.3); }
.lb-zurueck { left: 1rem; } .lb-vor { right: 1rem; }
.lb-zu { position: fixed; top: 1rem; right: 1rem; translate: none; }

/* ---------- Preise ---------- */
.preise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 860px) { .preise { grid-template-columns: repeat(2, 1fr); } }
.preis { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; }
.preis.hervor { border-color: var(--rot); box-shadow: var(--schatten); }
.preis .personen { color: var(--text-hell); font-size: .95rem; }
.preis .betrag { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.preis .einheit { color: var(--text-hell); font-size: .85rem; }
.zusatz { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.zusatz div { background: rgba(255,255,255,.6); border-radius: 10px; padding: 1rem 1.25rem; }
.zusatz strong { display: block; }
.zusatz small { color: var(--text-hell); }
.hinweis { color: var(--text-hell); font-size: .95rem; margin-top: 1.5rem; }

/* ---------- Umgebung ---------- */
.umgebung { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.umgebung li { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.umgebung .entf { white-space: nowrap; color: var(--gruen); font-weight: 600; font-size: .9rem; }
.umgebung small { display: block; color: var(--text-hell); }

/* Schaufelrad als Wasserzeichen (Bezug zum Tagebau) */
.mit-rad { position: relative; overflow: hidden; isolation: isolate; }
.mit-rad::before {
  content: ""; position: absolute; z-index: -1;
  width: min(520px, 90vw); aspect-ratio: 1;
  right: -110px; bottom: -150px;
  background: url("img/schaufelrad.svg") center / contain no-repeat;
  opacity: .14;
}
@media (max-width: 640px) { .mit-rad::before { right: -45%; bottom: auto; top: -40px; opacity: .1; } }

/* ---------- Kontakt ---------- */
.kontakt-liste { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.kontakt-liste li { display: flex; gap: .9rem; align-items: flex-start; }
.kontakt-liste svg { width: 1.35rem; height: 1.35rem; flex: none; color: var(--rot); margin-top: .2rem; }
address { font-style: normal; }

/* ---------- Fuß ---------- */
.fuss { background: #2b2522; color: #d9cfc4; padding-block: 2.5rem; font-size: .95rem; }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.fuss a { color: #fff; }
.fuss nav { display: flex; gap: 1.25rem; }

/* ---------- Unterseiten (Impressum/Datenschutz) ---------- */
.rechtstext { padding-block: 3rem 5rem; max-width: 75ch; }
.rechtstext h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.rechtstext h2 { font-size: 1.35rem; margin-top: 2rem; }
