/* ============================================================
   Apartment Kümmel · Ferienwohnung Eichenzell
   Skandinavisches Hygge-Design – warm, ruhig, wohlfühlen
   ============================================================ */

/* ---------- Fonts (selbst gehostet → kein externer Request) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/fraunces-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/figtree-var.woff2') format('woff2');
}

/* ---------- Design-Tokens ---------- */
:root {
  --cream:     #FAF6EF;
  --paper:     #FFFFFF;
  --sand:      #ECE3D4;
  --sand-deep: #DED0B9;
  --sage:      #8C9A85;
  --sage-soft: #B7C2B0;
  --green:     #46564A;
  --green-dark:#36433A;
  --clay:      #BC7F58;
  --clay-dark: #A66E48;
  --ink:       #2C322C;
  --muted:     #6E726A;
  --line:      #E7DFD1;

  --shadow-sm: 0 2px 10px -4px rgba(44,50,44,.18);
  --shadow:    0 14px 40px -18px rgba(44,50,44,.30);
  --radius:    18px;
  --radius-lg: 26px;
  --maxw:      1140px;
  --font-serif:'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clay); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--green-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
strong { font-weight: 600; color: var(--green-dark); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: 760px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section--green { background: var(--green); color: #EDEFE9; }
.section--green h2, .section--green h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--clay);
  margin: 0 0 .8rem;
}
.section--green .eyebrow { color: var(--sage-soft); }
.section--green p, .section--green li { color: #DCE0D6; }
.section--green strong { color: #fff; }
.section--green .amenity-list li { color: #E4E8DE; }
.section--green .amenity-list li::before { color: var(--accent-soft); }
.lead { font-size: 1.15rem; color: var(--muted); }
.section--green .lead { color: #D7DBD1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
  padding: .85em 1.7em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, color .2s;
  line-height: 1;
}
.btn-primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--clay-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--sand); color: var(--green-dark); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { padding: 1.05em 2.1em; font-size: 1.08rem; }

/* Bestpreis-Garantie */
.bestprice { display: grid; grid-template-columns: auto 1fr; gap: clamp(22px,4vw,42px); align-items: center; }
.price-badge {
  width: 124px; height: 124px; border-radius: 50%; flex-shrink: 0;
  background: var(--clay); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; box-shadow: var(--shadow);
  border: 3px solid rgba(255,255,255,.25);
}
.price-badge b { font-family: var(--font-serif); font-size: 2.5rem; line-height: 1; }
.price-badge span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }
.bestprice-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
@media (max-width: 620px) {
  .bestprice { grid-template-columns: 1fr; justify-items: start; text-align: left; }
}

/* ---------- Baustellen-Hinweis (im Aufbau) ---------- */
.construction-bar {
  background: var(--clay); color: #fff; text-align: center;
  padding: 11px 18px; font-size: .93rem; font-weight: 500; line-height: 1.4;
  border-bottom: 1px solid var(--clay-dark);
}
.construction-bar a { color: #fff; text-decoration: underline; font-weight: 600; }
.construction-bar a:hover { color: var(--sand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,246,239,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--font-serif); font-size: 1.32rem; color: var(--green-dark); font-weight: 600; }
.brand span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .96rem; font-weight: 500; color: var(--ink); }
.nav-links a:hover, .nav-links a.active { color: var(--clay); }
.nav-cta { margin-left: 6px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--green-dark); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 86vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; overflow: hidden; background: var(--green-dark); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img.img-missing { background: linear-gradient(140deg, #3C4B40 0%, #46564A 60%, #36433A 100%); }
.hero-img.img-missing::after { content: none; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,50,44,.18) 0%, rgba(44,50,44,.10) 45%, rgba(44,50,44,.72) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; color: #fff; padding-bottom: clamp(48px, 8vw, 96px); padding-top: 120px; }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.hero p { color: #F3F1EA; font-size: 1.2rem; max-width: 42ch; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Rating badges ---------- */
.rating-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.92); color: var(--ink);
  padding: 9px 15px; border-radius: 14px; font-size: .92rem; box-shadow: var(--shadow-sm);
}
.rating-badge b { font-family: var(--font-serif); font-size: 1.18rem; color: var(--green-dark); }
.rating-badge .src { color: var(--muted); font-size: .8rem; }
.stars { color: var(--clay); letter-spacing: 1px; }

/* ---------- USP strip ---------- */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.usp {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
}
.usp .ico { width: 46px; height: 46px; margin-bottom: 16px; color: var(--clay); }
.usp h3 { margin-bottom: .35em; }
.usp p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Feature split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
/* Grid-Kinder dürfen unter ihren Mindestinhalt schrumpfen (verhindert Überlauf) */
.split > *, .usp-grid > *, .amenity-cols > *, .quotes > *, .event-grid > *, .footer-grid > * { min-width: 0; }
.split.reverse .split-media { order: 2; }
.split-media img, .media-frame img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.media-frame { position: relative; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a, .gallery .g-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.05); }
.g-tall { grid-row: span 2; }
.g-tall img { aspect-ratio: 3/4; height: 100%; }

/* graceful placeholder for not-yet-uploaded photos */
.img-missing {
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-deep) 100%);
  position: relative; min-height: 180px;
}
.img-missing::after {
  content: attr(data-label); position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  color: var(--green-dark); font-family: var(--font-serif); font-size: .95rem; opacity: .65;
}

/* ---------- Amenities ---------- */
.amenity-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.amenity-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.amenity-card h3 { color: var(--green-dark); }
.amenity-list { list-style: none; margin: 0; padding: 0; }
.amenity-list li { position: relative; padding: 6px 0 6px 1.7em; font-size: .96rem; color: var(--ink); overflow-wrap: anywhere; }
.amenity-list li::before { content: '✓'; position: absolute; left: 0; top: 6px; color: var(--clay); font-weight: 700; }

/* ---------- Quote / reviews ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); position: relative;
}
.quote .stars { font-size: 1.05rem; }
.quote blockquote { font-family: var(--font-serif); font-size: 1.12rem; color: var(--green-dark); margin: 12px 0 14px; line-height: 1.5; }
.quote .who { color: var(--muted); font-size: .88rem; }

/* ---------- Charging / highlight box ---------- */
.highlight {
  background: var(--green); color: #EAEDE6; border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 70px 1fr; gap: 26px; align-items: start;
}
.highlight h2, .highlight h3 { color: #fff; }
.highlight .ico { width: 56px; height: 56px; color: var(--clay); }
.highlight ul { list-style: none; padding: 0; margin: 10px 0 0; }
.highlight li { padding: 4px 0; color: #D7DBD1; }

/* ---------- Distance table ---------- */
.dist-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.dist-table th { background: var(--green); color: #fff; text-align: left; padding: 14px 20px; font-weight: 600; font-family: var(--font-sans); }
.dist-table td { padding: 13px 20px; border-top: 1px solid var(--line); }
.dist-table tr:nth-child(even) td { background: #FCFAF5; }
.dist-table .dest { font-weight: 600; color: var(--green-dark); }

/* ---------- Germany map ---------- */
.mapcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px,3vw,36px); box-shadow: var(--shadow-sm); }
.germany-map { width: 100%; height: auto; max-width: min(520px, 100%); margin-inline: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ---------- Event cards ---------- */
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.event {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--clay);
  border-radius: var(--radius); padding: 26px; transition: box-shadow .25s, transform .25s;
}
.event:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event .date { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--clay); font-weight: 600; }
.event h3 { margin: 8px 0 4px; }
.event .where { color: var(--muted); font-size: .85rem; margin-bottom: 10px; }
.event p { color: var(--ink); font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-serif); font-size: 1.1rem; color: var(--green-dark);
  padding: 20px 40px 20px 0; position: relative; }
.faq-q::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--clay); transition: transform .25s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); }
.faq-a p { padding-bottom: 18px; margin: 0; }

/* ---------- Bedingungen / Terms (details) ---------- */
.terms { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.terms > summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-serif);
  font-size: 1.1rem; color: var(--green-dark); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.terms > summary::-webkit-details-marker { display: none; }
.terms > summary::after { content: '+'; color: var(--clay); font-size: 1.5rem; line-height: 1; transition: transform .25s; }
.terms[open] > summary::after { transform: rotate(45deg); }
.terms-body { padding: 0 24px 22px; }
.terms-body ol { margin: 0; padding-left: 1.2em; }
.terms-body li { padding: 5px 0; color: var(--muted); font-size: .94rem; }
.terms-body li strong { color: var(--green-dark); }
.terms-body p { color: var(--muted); font-size: .86rem; margin: 12px 0 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px,4vw,44px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--green-dark); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font-sans); font-size: 1rem; background: #FCFAF5; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sage); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.checkbox-row input { width: auto; margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- Consent / widget loader ---------- */
.consent-box {
  background: var(--paper); border: 1px dashed var(--sage); border-radius: var(--radius-lg);
  padding: clamp(28px,4vw,48px); text-align: center;
}
.consent-box p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.widget-host { min-height: 200px; }

/* ---------- Pill / info banner ---------- */
.banner {
  background: var(--sand); border: 1px solid var(--sand-deep); border-radius: var(--radius);
  padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start;
}
.banner .ico { color: var(--clay); flex-shrink: 0; width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #C7CEC4; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 36px; }
.footer-grid > div { min-width: 0; }
.site-footer a[href^="mailto"] { word-break: break-word; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a { color: #C7CEC4; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; font-size: .95rem; }
.footer-brand b { font-family: var(--font-serif); font-size: 1.3rem; color: #fff; display: block; margin-bottom: 8px; }
.footer-rate { display: flex; gap: 14px; margin-top: 14px; }
.footer-rate .r { background: rgba(255,255,255,.08); padding: 8px 12px; border-radius: 10px; font-size: .82rem; }
.footer-rate b { color: #fff; font-family: var(--font-serif); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); text-align: center; font-size: .82rem; padding: 18px 0; color: #9AA396; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--clay); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px,5vw,64px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #FBEEE2; max-width: 50ch; margin-inline: auto 1.4rem; }

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .usp-grid, .amenity-cols { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: var(--cream); border-bottom: 1px solid var(--line); padding: 18px 22px; gap: 4px; transform: translateY(-130%); transition: transform .3s; box-shadow: var(--shadow); }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 10px 0 0; }
  .burger { display: block; }
  .split, .quotes, .event-grid, .usp-grid, .amenity-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 44px 0 28px; }
  .footer-rate { flex-wrap: wrap; }
  .dist-table { font-size: .9rem; }
  .dist-table th, .dist-table td { padding: 10px 11px; }
  .split.reverse .split-media { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-tall { grid-row: span 1; }
  .g-tall img { aspect-ratio: 4/3; }
  .highlight { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
}
