/* =========================================================
   Fewo am Eck — Duttweiler / Pfalz
   Statisches Stylesheet, keine externen Abhängigkeiten
   ========================================================= */

/* ---------- Schriften (selbst gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "SourceSerif";
  src: url("../fonts/sourceserif-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "SourceSerif";
  src: url("../fonts/sourceserif-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "SourceSerif";
  src: url("../fonts/sourceserif-latin-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #2b2b28;
  --sky: #4a90d2;
  --sky-deep: #2f6fae;
  --sky-deeper: #1f4f80;
  --sky-pale: #9cc7ec;
  --chalk: #f7f5f0;
  --chalk-deep: #ece7dc;
  --paper: #ffffff;
  --muted: #6f6d66;

  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: "SourceSerif", Georgia, "Times New Roman", serif;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 3px;
  --section-space: clamp(4.5rem, 9vw, 8rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.55vw + 0.94rem, 1.1875rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-color: var(--sky); text-underline-offset: 0.22em; }
a:hover { color: var(--sky-deep); }

:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--chalk);
  padding: 0.75rem 1.25rem;
  z-index: 300;
}
.skip-link:focus { left: 0; }

/* ---------- Abschnittsmarke ---------- */
.eyebrow {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { flex: none; width: 1.05em; height: 1.05em; }
.btn--solid { background: var(--sky-deep); color: #fff; }
.btn--solid:hover { background: var(--sky-deeper); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--chalk); }
.btn--ghost:hover { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--chalk); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--chalk) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--chalk-deep);
  box-shadow: 0 8px 24px -20px rgba(0, 0, 0, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: auto; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.brand-place {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-block: 0.35rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--sky);
  transition: width 0.25s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }
.nav a.btn { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.nav a.btn::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--chalk-deep);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--chalk);
    border-bottom: 1px solid var(--chalk-deep);
    padding: 0.5rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--chalk-deep); }
  .nav a::after { display: none; }
  .nav a.btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex;
  align-items: flex-end;
  color: var(--chalk);
  overflow: hidden;
  background: var(--chalk);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-body {
  position: relative;
  margin-block: clamp(3.5rem, 9vw, 6rem);
  max-width: 42rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: 1.25rem;
  background: rgba(18, 18, 16, 0.45);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.hero .eyebrow { color: var(--sky-pale); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.25rem); font-weight: 700; margin-bottom: 0.3em; }
.hero-lead {
  font-size: clamp(1.15rem, 1.1vw + 0.95rem, 1.4rem);
  color: color-mix(in srgb, var(--chalk) 88%, transparent);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Kennzahlen ---------- */
.facts { background: var(--chalk); color: var(--ink); }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--chalk-deep);
  margin: 0;
}
.fact { background: var(--chalk); padding: clamp(1.5rem, 3vw, 2.25rem) clamp(0.75rem, 2vw, 1.5rem); text-align: center; }
.fact dt {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.fact dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sky-deep);
}
@media (max-width: 700px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section-space); }
.section--paper { background: var(--paper); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-intro { max-width: 44rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split--contact { align-items: stretch; }

/* Ausstattung */
.amenities { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--chalk-deep); }
.amenities li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--chalk-deep);
  font-size: 0.98rem;
}
.amenities li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
  transform: translateY(-2px);
}
.amenities-head {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

/* ---------- Galerie ---------- */
.gallery { columns: 3; column-gap: 12px; margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 520px) { .gallery { columns: 1; } }

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 12px;
  border: 0;
  background: var(--chalk-deep);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
  line-height: 0;
}
.gallery img { width: 100%; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.4s ease; }
.gallery button:hover img { transform: scale(1.04); filter: saturate(1.08); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-counter {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--chalk) 70%, transparent);
}
.lb-btn {
  position: absolute;
  background: rgba(239, 238, 229, 0.1);
  border: 1px solid rgba(239, 238, 229, 0.28);
  color: var(--chalk);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease;
}
.lb-btn:hover { background: rgba(239, 238, 229, 0.25); }
.lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lb-prev { left: clamp(0.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(0.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

/* ---------- Highlights ---------- */
.highlights {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1rem;
}
.highlights li { background: var(--paper); padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--chalk-deep); }
.highlights h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.highlights p { font-size: 0.96rem; color: var(--muted); margin: 0; }

/* ---------- Kontakt ---------- */
.contact-card {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius);
  border: 1px solid var(--chalk-deep);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-card .eyebrow { color: var(--sky-deep); }
.contact-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-lines { margin: 1.5rem 0 0; font-style: normal; line-height: 1.9; }
.contact-lines a { color: var(--ink); }
.contact-lines a:hover { color: var(--sky-deep); }
.contact-big {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--sky-deep);
  margin-bottom: 0.15em;
}
.contact-label {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.portrait { border-radius: var(--radius); overflow: hidden; margin: 0; }
.portrait img { border-radius: var(--radius); background: var(--chalk-deep); }
.portrait figcaption { font-size: 0.85rem; color: var(--muted); padding-top: 0.7rem; font-style: italic; }

/* ---------- Preise ---------- */
.pricing { max-width: 40rem; margin-inline: auto; text-align: center; }
.price-list { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; text-align: left; }
.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--chalk-deep);
}
.price-row:first-child { border-top: 1px solid var(--chalk-deep); }
.price-name { flex: none; max-width: 62%; }
.price-name strong { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.price-name span { display: block; font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.price-leader {
  flex: 1 1 auto;
  border-bottom: 1px dotted color-mix(in srgb, var(--muted) 55%, transparent);
  transform: translateY(-0.28em);
  min-width: 1.5rem;
}
.price-value {
  flex: none;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.price-note {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--chalk);
  border-left: 3px solid var(--sky);
  text-align: left;
  font-size: 0.97rem;
}

/* ---------- Fußzeile ---------- */
.site-footer {
  background: var(--chalk);
  color: var(--ink);
  border-top: 1px solid var(--chalk-deep);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--sky-deep); text-decoration: underline; }
.site-footer h2 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.footer-brand img { width: 42px; opacity: 0.9; }
.footer-brand .brand-name { color: var(--ink); font-size: 1.15rem; }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--chalk-deep);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Rechtstexte ---------- */
.legal-hero { background: var(--chalk); color: var(--ink); border-bottom: 1px solid var(--chalk-deep); padding-block: clamp(3.5rem, 8vw, 6rem); }
.legal-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0; }
.legal-hero .eyebrow { color: var(--sky-deep); }

.prose { max-width: 46rem; }
.prose h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  margin-top: 2.6em;
  padding-top: 1.4rem;
  border-top: 1px solid var(--chalk-deep);
}
.prose h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 2em; }
.prose h4 { font-size: 1.02rem; margin-top: 1.6em; font-weight: 700; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5em; }
.prose .shout {
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--paper);
  border-left: 3px solid var(--chalk-deep);
  padding: 1rem 1.25rem;
}
.prose .source { font-size: 0.9rem; color: var(--muted); }
.toc { background: var(--paper); border: 1px solid var(--chalk-deep); padding: 1.5rem 1.75rem; margin-bottom: 3rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 0.35em; }

/* ---------- 404 ---------- */
.error-page { min-height: 68vh; display: grid; place-items: center; text-align: center; padding-block: 5rem; }
.error-page .code {
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  color: var(--sky-deep);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .hero-actions, .gallery, .lightbox, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
