/* Unser Dahoam – Ferienwohnung in Wallgau */
:root {
  --papier: #f8f5ef;
  --weiss: #fffdf9;
  --text: #2a2622;
  --leise: #6b625a;
  --linie: #e3dccf;
  --holz: #8a5a32;
  --gruen: #3d5a3a;
  --gruen-dunkel: #2d4530;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breite: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--text); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); text-underline-offset: 3px; }
a:hover { color: var(--gruen-dunkel); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--weiss); padding: 8px 12px; }

/* Kopf */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marke { text-decoration: none; color: var(--text); line-height: 1.15; }
.marke strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.marke span { font-size: .82rem; color: var(--leise); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); text-decoration: none; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gruen); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-knopf { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; font: inherit; color: var(--text); }
.nav-knopf span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; }

/* Knöpfe */
.knopf { display: inline-block; background: var(--gruen); color: #fff !important; text-decoration: none; padding: 11px 22px; border-radius: 4px; border: 0; font: 600 .97rem var(--sans); cursor: pointer; }
.knopf:hover { background: var(--gruen-dunkel); }
.knopf--hell { background: transparent; color: var(--gruen) !important; box-shadow: inset 0 0 0 1.5px var(--gruen); }
.knopf--hell:hover { background: var(--gruen); color: #fff !important; }
.knopf[disabled] { opacity: .6; cursor: wait; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
/* Suchleiste „Verfügbarkeit prüfen“ */
.suche { background: var(--gruen); color: #fff; padding: 30px 0 22px; }
.suche h2 { color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.suche-form { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr .8fr auto; gap: 12px 14px; align-items: end; }
.suche-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; color: #fff; }
.suche-form input, .suche-form select { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid transparent; border-radius: 4px; padding: 10px 12px; min-height: 46px; }
.suche-form input:focus, .suche-form select:focus { outline: 2px solid #fff; outline-offset: 2px; }
.suche-knopf { background: var(--weiss); color: var(--gruen) !important; min-height: 46px; white-space: nowrap; }
.suche-knopf:hover { background: #fff; color: var(--gruen-dunkel) !important; }
.suche-alter { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.suche-alter[hidden] { display: none; }
.suche-meldung { grid-column: 1 / -1; margin: 0; min-height: 0; font-weight: 600; }
.suche-meldung:empty { display: none; }
.suche-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; font-size: .95rem; }
.suche-links a { color: #fff; }
.suche-links a:hover { color: #fff; text-decoration-thickness: 2px; }
.suche + .wrap { padding-top: 40px; }
@media (max-width: 860px) {
  .suche-form { grid-template-columns: 1fr 1fr; }
  .suche-knopf { grid-column: 1 / -1; order: 2; }
  .suche-meldung { order: 1; }
  .suche-alter { grid-template-columns: 1fr 1fr; }
}
.buchung-tipp { margin-top: 18px; }
.buchung-tipp p { margin: 0; }
.buchung { max-width: 1400px; margin: 0 auto; padding: 40px 20px 24px; min-height: 420px; scroll-margin-top: 80px; }
.buchung > h2.wrap { padding: 0; margin-bottom: 8px; }
.buchung > p.wrap { padding: 0; margin-top: 16px; }
@media (max-width: 560px) { .buchung { padding: 28px 8px 16px; } .buchung > h2.wrap, .buchung > p.wrap { padding: 0 8px; } } /* Widget-Zeilen haben -5px Rand */

/* Startbild */
.start { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; }
.start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.start::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,15,.62), rgba(20,18,15,0) 60%); }
.start .wrap { position: relative; z-index: 1; padding-bottom: 48px; width: 100%; }
.start h1 { margin: 0 0 .2em; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.start p { font-size: 1.15rem; margin: 0 0 1.4em; max-width: 34em; }
.start .knopf--hell { color: #fff !important; box-shadow: inset 0 0 0 1.5px #fff; margin-left: 8px; }
.start .knopf--hell:hover { background: #fff; color: var(--text) !important; }

/* Abschnitte */
.abschnitt { padding: 64px 0; }
.abschnitt--weiss { background: var(--weiss); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.zwei { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.einleitung { font-size: 1.12rem; }
.seitenkopf { padding: 48px 0 8px; }
.seitenkopf p { color: var(--leise); max-width: 40em; }

.fakten { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--linie); }
.fakten li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--linie); }
.fakten li span:first-child { color: var(--leise); }
.fakten li span:last-child { text-align: right; font-weight: 500; }

.award { display: flex; gap: 16px; align-items: center; margin-top: 28px; font-size: .95rem; color: var(--leise); }
.award img { width: 140px; border-radius: 4px; }

/* Bilder */
.streifen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.streifen a, .galerie a { display: block; overflow: hidden; border-radius: 3px; background: var(--linie); }
.streifen img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s; }
.streifen a:hover img, .galerie a:hover img { transform: scale(1.03); }
.galerie-gruppe { margin-top: 40px; }
.galerie-gruppe h2 { font-size: 1.35rem; margin-bottom: 14px; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }

.leuchtkasten { border: 0; padding: 0; background: rgba(15,13,11,.94); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
.leuchtkasten::backdrop { background: rgba(15,13,11,.94); }
.leuchtkasten figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.leuchtkasten img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.leuchtkasten figcaption { margin-top: 12px; font-size: .95rem; color: #ddd; }
.leuchtkasten button { position: absolute; background: none; border: 0; color: #fff; font: 2rem/1 var(--sans); cursor: pointer; padding: 14px; opacity: .85; }
.leuchtkasten button:hover { opacity: 1; }
.lk-zu { top: 6px; right: 10px; }
.lk-zurueck { left: 6px; top: 50%; transform: translateY(-50%); }
.lk-vor { right: 6px; top: 50%; transform: translateY(-50%); }

/* Umgebung */
.links-liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 32px; }
.links-liste li { border-bottom: 1px solid var(--linie); }
.links-liste a { display: block; padding: 12px 0; text-decoration: none; color: var(--text); }
.links-liste a:hover { color: var(--gruen); }
.links-liste a::after { content: " ↗"; color: var(--leise); font-size: .85em; }

/* Preise */
.tabelle { width: 100%; border-collapse: collapse; margin: 0 0 8px; background: var(--weiss); border: 1px solid var(--linie); }
.tabelle th, .tabelle td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-weight: 600; background: #f1ece3; font-size: .95rem; }
.tabelle td.betrag, .tabelle th.betrag { text-align: right; white-space: nowrap; }
.tabelle th.betrag { white-space: normal; }
.preis-block { margin-bottom: 44px; }
.hinweis { color: var(--leise); font-size: .95rem; }
.kasten { background: var(--weiss); border: 1px solid var(--linie); border-radius: 4px; padding: 22px 24px; }
.kasten ul { margin: 0; padding-left: 1.2em; }
.kasten li { margin: 4px 0; }

/* Kontakt + Formular */
address { font-style: normal; line-height: 1.8; }
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.formular .ganz { grid-column: 1 / -1; }
.formular label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 5px; }
.formular label small { font-weight: 400; color: var(--leise); }
.formular input, .formular select, .formular textarea { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid #cfc6b8; border-radius: 4px; padding: 10px 12px; }
.formular textarea { min-height: 130px; resize: vertical; }
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: 2px solid var(--gruen); outline-offset: 1px; border-color: var(--gruen); }
.formular .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .93rem; }
.formular .check input { width: auto; margin-top: 5px; }
.formular .falle { position: absolute; left: -9999px; }
.meldung { padding: 12px 16px; border-radius: 4px; display: none; }
.meldung.ok { display: block; background: #e6efe3; color: #23401f; }
.meldung.fehler { display: block; background: #f6e3df; color: #6b2418; }

.rechtstext { max-width: 760px; padding-bottom: 64px; }
.rechtstext h2 { font-size: 1.3rem; margin-top: 1.8em; }

/* Fuß */
.fuss { background: #2b2824; color: #d9d2c6; padding: 44px 0 28px; font-size: .95rem; }
.fuss a { color: #fff; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.fuss h3 { color: #fff; font-size: 1.1rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin: 4px 0; }
.fuss-unten { border-top: 1px solid #47423b; margin-top: 32px; padding-top: 16px; font-size: .85rem; color: #a59d90; }

@media (max-width: 860px) {
  .nav-knopf { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--weiss); border-bottom: 1px solid var(--linie); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; }
  .nav.offen { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .nav a.knopf { margin-top: 14px; text-align: center; border: 0; }
  .zwei { grid-template-columns: 1fr; gap: 36px; }
  .streifen { grid-template-columns: repeat(2, 1fr); }
  .fuss-raster { grid-template-columns: 1fr; gap: 24px; }
  .abschnitt { padding: 48px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .formular { grid-template-columns: 1fr; }
  .start .knopf--hell { margin: 10px 0 0; }
  .galerie { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tabelle { font-size: .93rem; }
  .tabelle th, .tabelle td { padding: 9px 8px; }
  .leuchtkasten figure { padding: 56px 8px 16px; }
  .lk-zurueck, .lk-vor { top: auto; bottom: 8px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
