/* =========================================================
   Haus "Auf der Sonnseit" – Ferienwohnungen in Ellmau
   Farben und Schriften zentral hier anpassen
   ========================================================= */
/* Schriften liegen im Ordner fonts (kein Laden von fremden Servern) */
@font-face { font-family: "Great Vibes"; src: url("../fonts/great-vibes.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --gruen: #2f4a3a;
  --gruen-dunkel: #1f3328;
  --gruen-hell: #e7ede8;
  --holz: #8a5a3b;
  --creme: #f7f4ee;
  --weiss: #ffffff;
  --text: #2a2a28;
  --text-leise: #5d5d57;
  --linie: #ddd6c9;
  --schatten: 0 2px 10px rgba(30, 40, 30, .10);
  --radius: 10px;
  --breite: 1100px;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --schrift: "Great Vibes", "Segoe Script", cursive;
  --himmel: #e6eef2;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); }
a:hover { color: var(--holz); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--gruen-dunkel); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .6em; }
h3 { font-size: 1.55rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }

.container { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.schmal { max-width: 760px; }

/* ---------- Kopfzeile ---------- */
.kopf {
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 50;
}
.kopf .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gruen-dunkel); }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo span { white-space: nowrap; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.15; }
.logo small { display: block; font-family: var(--sans); font-size: .75rem; color: var(--text-leise); letter-spacing: .04em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  text-decoration: none; color: var(--text); font-size: .95rem;
}
.nav a:hover { background: var(--gruen-hell); color: var(--gruen-dunkel); }
.nav a[aria-current="page"] { color: var(--gruen); font-weight: 600; }
.nav .knopf-klein { background: var(--gruen); color: #fff; }
.nav .knopf-klein:hover { background: var(--gruen-dunkel); color: #fff; }

.menue-knopf {
  display: none; background: none; border: 1px solid var(--linie); border-radius: 6px;
  padding: 8px 10px; font-size: .95rem; cursor: pointer; color: var(--text);
}

@media (max-width: 980px) {
  .menue-knopf { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--weiss); border-bottom: 1px solid var(--linie); box-shadow: var(--schatten); }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; padding: 10px 20px 16px; }
  .nav a { padding: 12px; }
}

/* ---------- Startbild ---------- */
.held {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: flex-end;
  color: #fff;
  background: var(--gruen-dunkel) center/cover no-repeat;
}
.held::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 28, 20, .75) 0%, rgba(15, 28, 20, .15) 55%, rgba(15, 28, 20, 0) 100%);
}
.held .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 56px; }
.held h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.held p { font-size: 1.15rem; max-width: 42ch; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.held-klein { min-height: 42vh; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--gruen); color: #fff; text-decoration: none; font-weight: 600;
  border: 2px solid var(--gruen); cursor: pointer; font-size: 1rem;
}
.knopf:hover { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); color: #fff; }
.knopf-hell { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.knopf-hell:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.knopf-rand { background: transparent; color: var(--gruen); }
.knopf-rand:hover { background: var(--gruen-hell); color: var(--gruen-dunkel); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 72px 0; }
.abschnitt-weiss { background: var(--weiss); }
.abschnitt-gruen { background: var(--gruen); color: #fff; }
.abschnitt-gruen h2 { color: #fff; }
.einleitung { font-size: 1.12rem; color: var(--text-leise); max-width: 62ch; }
.zentriert { text-align: center; }
.zentriert .einleitung { margin-left: auto; margin-right: auto; }

/* ---------- Karten ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; margin-top: 32px; }
.karte {
  background: var(--weiss); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--schatten); display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
}
.karte img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.karte-text { padding: 20px 22px 24px; flex: 1; }
.karte h3 { margin-top: 0; }
.karte .fakten { color: var(--holz); font-weight: 600; font-size: .92rem; margin-bottom: .5em; }
a.karte:hover { transform: translateY(-2px); transition: transform .2s; color: var(--text); }

/* ---------- Vorteile ---------- */
.vorteile { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 32px; margin-top: 36px; }
.vorteil h3 { font-size: 1.15rem; margin: .3em 0 .3em; }
.vorteil p { color: var(--text-leise); font-size: .97rem; margin: 0; }
.vorteil .symbol { width: 44px; height: 44px; border-radius: 50%; background: var(--gruen-hell); display: grid; place-items: center; }
.vorteil .symbol svg { width: 24px; height: 24px; stroke: var(--gruen); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Zwei Spalten ---------- */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.zweispaltig img { border-radius: var(--radius); box-shadow: var(--schatten); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 800px) { .zweispaltig { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Jahreszeiten ---------- */
.jahreszeiten { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.jahreszeit {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px;
  display: flex; align-items: flex-end; color: #fff; text-decoration: none;
  background: #333 center/cover no-repeat;
}
.jahreszeit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 60%); }
.jahreszeit div { position: relative; z-index: 1; padding: 24px; }
.jahreszeit h3 { color: #fff; margin: 0 0 .2em; font-size: 1.7rem; }
.jahreszeit p { margin: 0; }
.jahreszeit:hover { color: #fff; }
@media (max-width: 700px) { .jahreszeiten { grid-template-columns: 1fr; } .jahreszeit { min-height: 240px; } }

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 24px 0 8px; }
.galerie a { display: block; border-radius: 6px; overflow: hidden; }
.galerie img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s; }
.galerie a:hover img { transform: scale(1.04); }
@media (max-width: 500px) { .galerie { grid-template-columns: repeat(3, 1fr); gap: 6px; } }

/* Großansicht */
.leuchtkasten {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 14, 12, .92);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.leuchtkasten.offen { display: flex; }
.leuchtkasten img { max-width: 92vw; max-height: 84vh; width: auto; border-radius: 4px; box-shadow: 0 6px 30px rgba(0,0,0,.5); }
.leuchtkasten button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.leuchtkasten button:hover { background: rgba(255,255,255,.25); }
.leuchtkasten .zu { top: 16px; right: 16px; }
.leuchtkasten .zurueck { left: 16px; top: 50%; transform: translateY(-50%); }
.leuchtkasten .weiter { right: 16px; top: 50%; transform: translateY(-50%); }
.leuchtkasten .zaehler { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .9rem; }

/* ---------- Wohnung ---------- */
.wohnung { padding: 64px 0; border-bottom: 1px solid var(--linie); }
.wohnung:last-of-type { border-bottom: 0; }
.eckdaten { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.eckdaten li { background: var(--gruen-hell); color: var(--gruen-dunkel); border-radius: 999px; padding: 5px 14px; font-size: .9rem; }
.liste { padding-left: 1.2em; }
.liste li { margin-bottom: .35em; }

/* ---------- Tabelle ---------- */
.tabelle { width: 100%; border-collapse: collapse; background: var(--weiss); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.tabelle th, .tabelle td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--linie); }
.tabelle th { background: var(--gruen); color: #fff; font-weight: 600; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabellen-rahmen { overflow-x: auto; }

/* Hinweis für Stellen, die noch ausgefüllt werden müssen */
.todo { background: #fff4d6; border: 1px dashed #d4a72c; border-radius: 6px; padding: 10px 14px; font-size: .95rem; }

/* ---------- Formular ---------- */
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.formular .ganz { grid-column: 1 / -1; }
.formular label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.formular input, .formular select, .formular textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #c9c1b2; border-radius: 6px;
  font: inherit; background: var(--weiss); color: var(--text);
}
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: 2px solid var(--gruen); outline-offset: 1px; border-color: var(--gruen); }
.formular textarea { min-height: 130px; resize: vertical; }
.formular .check { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; }
.formular .check input { width: auto; margin-top: 5px; }
.honig { position: absolute; left: -9999px; }
@media (max-width: 640px) { .formular { grid-template-columns: 1fr; } }

.kontaktbox { background: var(--weiss); border-radius: var(--radius); padding: 28px; box-shadow: var(--schatten); }
.kontaktbox p { margin-bottom: .6em; }
.kontakt-raster { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .kontakt-raster { grid-template-columns: 1fr; } }

/* ---------- Entfernungen ---------- */
.entfernungen { list-style: none; padding: 0; margin: 0; }
.entfernungen li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.entfernungen li span:last-child { color: var(--holz); font-weight: 600; white-space: nowrap; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--gruen-dunkel); color: #cfd8d1; padding: 48px 0 28px; font-size: .95rem; }
.fuss a { color: #fff; }
.fuss .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.fuss h3 { color: #fff; font-size: 1.1rem; margin: 0 0 .6em; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .3em; }
.fuss .unten { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; margin-top: 8px; font-size: .85rem; }
@media (max-width: 760px) { .fuss .container { grid-template-columns: 1fr; gap: 24px; } }

.rechtstext h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* ---------- Rundgang ---------- */
.rundgang { margin: 16px 0 8px; }
.rg-buehne {
  position: relative; margin: 0; background: #1f2622; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4 / 3; max-height: 72vh; display: flex; align-items: center; justify-content: center;
}
.rg-buehne img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.rg-buehne img.laedt { opacity: .3; }
.rg-buehne figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0));
}
.rg-titel { font-family: var(--serif); font-size: 1.25rem; }
.rg-zahl { font-size: .9rem; opacity: .85; }
.rg-buehne button {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.85); color: var(--gruen-dunkel); font-size: 1.8rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.rg-buehne button:hover { background: #fff; }
.rg-zurueck { left: 12px; }
.rg-weiter { right: 12px; }
.rg-leiste { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 6px; scroll-snap-type: x mandatory; }
.rg-leiste a { flex: 0 0 92px; border-radius: 6px; overflow: hidden; opacity: .6; border: 2px solid transparent; scroll-snap-align: start; }
.rg-leiste a:hover { opacity: .9; }
.rg-leiste a[aria-current="true"] { opacity: 1; border-color: var(--gruen); }
.rg-leiste img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 600px) {
  .rg-buehne { aspect-ratio: 1 / 1; }
  .rg-buehne button { width: 40px; height: 40px; font-size: 1.5rem; }
  .rg-leiste a { flex-basis: 72px; }
}


/* ---------- Schreibschrift & Willkommen (im Stil der alten Seite) ---------- */
.schreib { font-family: var(--schrift); font-weight: 400; color: var(--holz); line-height: 1.1; margin: 0; }
.schreib.gross { font-size: clamp(2.8rem, 8vw, 4.6rem); }
.schreib.mittel { font-size: clamp(1.9rem, 4.5vw, 2.5rem); margin-bottom: .1em; }

.willkommen {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255,255,255,.9), rgba(255,255,255,0) 60%),
    linear-gradient(to bottom, var(--himmel) 0%, var(--creme) 75%);
  padding: 28px 0 64px;
}
.panorama {
  margin: 0; position: relative; border-radius: 14px; overflow: hidden;
  border: 6px solid #fff; box-shadow: 0 8px 30px rgba(30, 50, 40, .18);
  aspect-ratio: 21 / 9; background-color: var(--gruen-hell);
  background-size: cover; background-position: center 20%; background-repeat: no-repeat;
}
.panorama figcaption {
  position: absolute; left: 0; bottom: 0; padding: 18px 26px 16px; color: #fff;
  background: linear-gradient(to right, rgba(20, 35, 28, .7), rgba(20, 35, 28, .35) 70%, rgba(20, 35, 28, 0));
  border-top-right-radius: 14px; text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.panorama .schreib { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); display: block; }
.panorama .ort { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 2.2vw, 1.35rem); padding-left: 2.2em; }
.gruss { text-align: center; max-width: 760px; margin: 36px auto 0; }
.gruss h1 { margin: .1em 0 .5em; }
.gruss .einleitung { margin: 0 auto; }
.zier { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px; }
.zier span { height: 1px; width: 70px; background: var(--holz); opacity: .5; }
.zier svg { width: 34px; height: 34px; }
@media (max-width: 600px) {
  .willkommen { padding-top: 14px; }
  .panorama { aspect-ratio: 4 / 3; border-width: 4px; }
}

/* Unterseiten: Bild im Rahmen statt über die ganze Breite */
.held-klein {
  max-width: 1060px; margin: 24px auto 0; border-radius: 14px; overflow: hidden;
  border: 6px solid #fff; box-shadow: 0 8px 30px rgba(30, 50, 40, .18); min-height: 360px;
}
.held-klein .container { padding-top: 60px; padding-bottom: 36px; }
@media (max-width: 1100px) { .held-klein { margin: 16px 16px 0; } }
@media (max-width: 600px) { .held-klein { min-height: 280px; border-width: 4px; } }

/* Ihre Gastgeber */
.gastgeber { padding-top: 24px; }
.gastgeber p:not(.schreib) { font-size: 1.1rem; }
.gastgeber .unterschrift { margin-top: .6em; }

/* Unterseiten mit großem Hausbild: ganzes Haus und Berg sichtbar */
.held-bild { aspect-ratio: 16 / 9; min-height: 0; }
@media (max-width: 600px) { .held-bild { aspect-ratio: auto; min-height: 300px; } }

/* Sprachwahl DE | EN | NL */
.kopf .logo { order: 1; }
.kopf .nav { order: 2; margin-left: auto; }
.kopf-rechts { order: 3; display: flex; align-items: center; gap: 10px; }
.sprachen { display: flex; gap: 2px; font-size: .8rem; letter-spacing: .04em; }
.sprachen a { text-decoration: none; color: var(--text-leise); padding: 4px 6px; border-radius: 4px; }
.sprachen a:hover { background: var(--gruen-hell); color: var(--gruen-dunkel); }
.sprachen a[aria-current="page"] { color: var(--gruen); font-weight: 700; }
@media (max-width: 980px) { .kopf .nav { margin-left: 0; } }
@media (max-width: 420px) { .logo small { display: none; } .logo span { font-size: 1.15rem; } }
@media (max-width: 480px) {
  .kopf .container { gap: 8px; padding: 0 12px; }
  .logo { gap: 6px; }
  .logo svg { width: 28px; height: 28px; }
  .logo span { font-size: 1rem; }
  .kopf-rechts { gap: 4px; }
  .sprachen a { padding: 4px 3px; }
  .menue-knopf { padding: 6px 8px; font-size: .85rem; }
}
.nav .knopf-klein[aria-current="page"] { color: #fff; }
.nav a { white-space: nowrap; }
