/* Ferienwohnung Am Mittelburgwall
   Farben aus dem Haus: Kalkweiß, Türgrün, Backstein. Schriften: Systemschriften (kein Google-Fonts-Abruf, DSGVO). */

:root {
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --white: #fffdf9;
  --ink: #1d2726;
  --ink-soft: #4a5654;
  --line: #ddd3c3;
  --green: #1f5a52;
  --green-dark: #143d38;
  --brick: #a5452c;
  --todo: #fff1a8;

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

  --wrap: 1120px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--brick); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

mark.todo { background: var(--todo); color: var(--ink); padding: 0 .25em; border-radius: 3px; }

.eyebrow {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--brick); font-weight: 600; margin-bottom: .6em;
}

/* Buttons */
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  padding: .8em 1.4em; border-radius: var(--radius); font-weight: 600; border: 2px solid var(--green);
  font: 600 1rem/1.2 var(--sans); cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-small { padding: .5em 1em; font-size: .92rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247,243,236,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.brand-sub { font-size: .78rem; color: var(--ink-soft); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--brick); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,30,28,.12) 0%, rgba(20,30,28,.38) 35%, rgba(20,30,28,.78) 100%);
}
.hero-text { position: relative; z-index: 1; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 16px 56px; }
@media (min-width: 700px) { .hero-text { padding: 0 32px 72px; } }
.hero-text h1 { max-width: 15em; text-shadow: 0 2px 4px rgba(0,0,0,.35), 0 2px 24px rgba(0,0,0,.45); }
.hero-text .eyebrow, .hero-text .lead { text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 1px 14px rgba(0,0,0,.4); }
.hero .eyebrow { color: #f3d9b5; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* Facts */
.facts {
  list-style: none; margin: -36px auto 0; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; box-shadow: 0 10px 30px rgba(29,39,38,.08);
}
.facts li { padding: 18px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.facts li:last-child { border-right: 0; }
.facts strong { font-family: var(--serif); font-size: 1.35rem; color: var(--green); }
.facts span { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 700px) {
  .facts { margin: -28px 16px 0; grid-template-columns: 1fr 1fr; }
  .facts li { border-bottom: 1px solid var(--line); }
  .facts li:nth-child(2n) { border-right: 0; }
  .facts li:nth-last-child(-n+2) { border-bottom: 0; }
  .facts li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .facts li:nth-last-child(2):nth-child(even) { border-bottom: 1px solid var(--line); }
}

/* Sections */
.section { padding: 88px 0; }
.section.wrap { padding-left: 16px; padding-right: 16px; }
@media (min-width: 700px) { .section.wrap { padding-left: 32px; padding-right: 32px; } }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--green-dark); color: #f2efe8; }
.section-dark a { color: #f3d9b5; }
.section-dark .eyebrow { color: #f3d9b5; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.prose { max-width: 38em; }
.note { font-size: .88rem; color: var(--ink-soft); margin-top: 14px; }
.small { font-size: .92rem; }

.two-col { display: grid; gap: 40px; }
.two-col > * { min-width: 0; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
  .two-col-media { align-items: center; }
}

.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; color: var(--green); }
.specs dd { margin: 0; color: var(--ink-soft); }

/* Gallery */
.gallery {
  display: grid; gap: 10px; margin-top: 48px;
  grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px;
}
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; } }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }

/* Haus */
.media { margin: 0; }
.media img { border-radius: var(--radius); }
.todo-inline { font-size: .9rem; }

/* Lage */
.distances h3 { margin-top: 0; color: var(--green); }
.distances h3 + ul + h3 { margin-top: 28px; }
.distances ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.distances li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.distances li span:last-child { color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lage-bilder { display: grid; gap: 10px; margin-top: 48px; }
@media (min-width: 700px) { .lage-bilder { grid-template-columns: 1fr 1fr; } }
.lage-bilder img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }

/* Bewertungen */
.scores { display: grid; gap: 24px; margin-bottom: 28px; }
@media (min-width: 800px) { .scores { grid-template-columns: 220px 1fr; align-items: center; } }
.score-main { background: var(--green); color: #fff; border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; }
.score-main strong { font-family: var(--serif); font-size: 2.8rem; line-height: 1; }
.score-main span { font-size: .88rem; opacity: .9; margin-top: 6px; }
.score-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.score-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: flex; justify-content: space-between; }
.score-list b { color: var(--green); font-variant-numeric: tabular-nums; }

/* Gut zu wissen */
.know { margin: 0; display: grid; gap: 0 48px; }
@media (min-width: 800px) { .know { grid-template-columns: 1fr 1fr; } }
.know div { display: grid; grid-template-columns: 10em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.know dt { font-weight: 600; }
.know dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 500px) { .know div, .specs div { grid-template-columns: 1fr; gap: 2px; } }

/* Anfrage */
.price { font-family: var(--serif); margin: 1.2em 0 .4em; }
.price strong { font-size: 2.2rem; }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 400px) { .form { padding: 20px; } .form .row { grid-template-columns: 1fr; } }
.form input, .form select, .form textarea {
  min-width: 0;
  font: 400 1rem/1.4 var(--sans); padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.form .check input { width: auto; margin-top: 3px; }
.form a { color: var(--green); }
.form-msg { margin: 0; font-size: .9rem; min-height: 1.4em; }

/* FAQ */
.faq { max-width: 50em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--green); font-weight: 400; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); max-width: 42em; }

/* Footer */
.site-footer { background: var(--ink); color: #cfd6d4; padding: 40px 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 20px; }
@media (min-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr auto; align-items: start; } }
.footer-nav { display: flex; gap: 20px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10,15,14,.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); width: auto; border-radius: 4px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
}
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

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

/* Belegungskalender (Smoobu, lädt erst nach Klick) */
.calendar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); max-width: 820px; overflow: hidden; }
.calendar-consent { padding: 28px; max-width: 38em; }
.calendar-consent .btn { margin-top: 4px; }
.calendar iframe { display: block; width: 100%; height: 480px; border: 0; }
@media (max-width: 699px) { .calendar iframe { height: 780px; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
