/* Ferienwohnung Jost – Waldeck am Edersee
   Schriften liegen bei uns (keine Anfrage an Google), kein Inline-Stil (CSP). */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('../fonts/inter-latein.woff2') format('woff2');
    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: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('../fonts/playfair-display-latein.woff2') format('woff2');
    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: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('../fonts/caveat-latein.woff2') format('woff2');
    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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --see: #0f4c5c;
    --tief: #0a2e38;
    --wasser: #7fbfd0;
    --rot: #b0232c;          /* das Rot der Balken und Fensterrahmen am Haus */
    --rot-dunkel: #8c1a22;
    --sand: #f7f2e8;
    --papier: #fffdf9;
    --holz: #8a5a2b;
    --text: #1f2a2e;
    --leise: #5d6a6e;
    --linie: #e4dccd;
    --schatten: 0 18px 40px -18px rgba(10, 46, 56, .35);
    --rund: 18px;
    --breite: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--papier); color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px; line-height: 1.65;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--see); }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.hand { font-family: 'Caveat', cursive; font-weight: 600; }
.innen { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.abschnitt { padding: clamp(64px, 10vw, 120px) 0; }
.sand { background: var(--sand); }
.vorzeile { font-family: 'Caveat', cursive; font-size: 1.7rem; color: var(--rot); line-height: 1; margin-bottom: 6px; display: block; }
.einleitung { font-size: 1.12rem; color: var(--leise); max-width: 62ch; margin-top: 18px; }
.kopfblock { margin-bottom: clamp(32px, 5vw, 56px); }
.mittig { text-align: center; }
.mittig .einleitung { margin-left: auto; margin-right: auto; }

/* ---------- Knöpfe ---------- */
.knopf {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--rot); color: #fff; text-decoration: none; font-weight: 600;
    padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 600;
    transition: background .2s, transform .2s;
}
.knopf:hover { background: var(--rot-dunkel); transform: translateY(-1px); }
.knopf.hell { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.knopf.hell:hover { background: rgba(255,255,255,.26); }
.knopf.gruen { background: #1f8f4e; }
.knopf.gruen:hover { background: #17703d; }
.knopf.see { background: var(--see); }
.knopf.see:hover { background: var(--tief); }

/* ---------- Kopfleiste ---------- */
.leiste {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    transition: background .3s, box-shadow .3s; color: #fff;
}
.leiste .innen { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.leiste.fest { background: rgba(255, 253, 249, .94); backdrop-filter: blur(10px); color: var(--text); box-shadow: 0 1px 0 var(--linie); }
.marke { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.15rem; color: inherit; text-decoration: none; white-space: nowrap; }
.marke span { font-family: 'Caveat', cursive; font-size: 1.35rem; color: var(--wasser); margin-left: 6px; }
.leiste.fest .marke span { color: var(--rot); }
.menue { display: flex; gap: 26px; align-items: center; }
.menue a { color: inherit; text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .92; }
.menue a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.menue a.knopf { color: #fff; padding: 9px 18px; opacity: 1; text-decoration: none; }
.menueknopf { display: none; background: none; border: 0; color: inherit; padding: 10px; margin-right: -10px; cursor: pointer; }
.menueknopf svg { display: block; }

@media (max-width: 860px) {
    .menueknopf { display: block; }
    .menue {
        position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--papier); color: var(--text); padding: 8px 20px 20px;
        box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
        transform: translateY(-130%); transition: transform .3s; visibility: hidden;
    }
    .menue.offen { transform: none; visibility: visible; }
    .menue a { padding: 14px 0; border-bottom: 1px solid var(--linie); font-size: 1.05rem; }
    .menue a.knopf { margin-top: 16px; justify-content: center; border: 0; padding: 14px; }
    .leiste.menue-offen { background: var(--papier); color: var(--text); }
    .leiste.menue-offen .marke span { color: var(--rot); }
}

/* ---------- Bühne ---------- */
.buehne { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.buehne picture, .buehne picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.buehne::after { content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(10,46,56,.45) 0%, rgba(10,46,56,0) 28%, rgba(10,46,56,.15) 50%, rgba(10,46,56,.82) 100%); }
.buehne .innen { padding-bottom: clamp(48px, 9vh, 96px); padding-top: 120px; }
.buehne .hand { font-size: clamp(2.2rem, 6vw, 3.4rem); color: #fff; display: block; line-height: 1; transform: rotate(-3deg); transform-origin: left bottom; margin-bottom: 10px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.buehne h1 { font-size: clamp(2.6rem, 8.5vw, 5.6rem); text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.buehne .unter { font-size: clamp(1.05rem, 2.4vw, 1.35rem); max-width: 44ch; margin: 18px 0 28px; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.buehne .knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Kurzleiste ---------- */
.kurz { background: var(--tief); color: #fff; }
.kurz ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.kurz li { text-align: center; font-size: .9rem; line-height: 1.3; opacity: .95; }
.kurz svg { display: block; margin: 0 auto 8px; color: var(--wasser); }
@media (max-width: 760px) { .kurz ul { grid-template-columns: repeat(3, 1fr); row-gap: 22px; } }

/* ---------- Zweispalter ---------- */
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.zwei.schmal-links { grid-template-columns: 5fr 6fr; }
@media (max-width: 860px) { .zwei, .zwei.schmal-links { grid-template-columns: 1fr; } }
.bild { border-radius: var(--rund); overflow: hidden; box-shadow: var(--schatten); background: var(--linie); }
.bild img { width: 100%; height: 100%; object-fit: cover; }
.stapel { position: relative; padding: 0 0 12% 12%; }
.stapel .bild.klein { position: absolute; left: 0; bottom: 0; width: 46%; border: 6px solid var(--papier); transform: rotate(-3deg); }
.sand .stapel .bild.klein { border-color: var(--sand); }
.zettel { position: absolute; right: -6px; top: 18px; background: var(--rot); color: #fff; font-family: 'Caveat', cursive; font-size: 1.6rem; line-height: 1; padding: 10px 18px; border-radius: 4px; transform: rotate(4deg); box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }

/* ---------- Räume ---------- */
.raeume { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.raum { position: relative; border-radius: var(--rund); overflow: hidden; background: var(--tief); color: #fff; min-height: 300px; display: flex; align-items: flex-end; box-shadow: var(--schatten); cursor: zoom-in; border: 0; padding: 0; text-align: left; font: inherit; }
.raum img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.raum:hover img { transform: scale(1.04); }
.raum::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,46,56,0) 40%, rgba(10,46,56,.88) 100%); }
.raum div { position: relative; z-index: 1; padding: 22px; }
.raum h3 { color: #fff; }
.raum p { margin: 6px 0 0; font-size: .95rem; opacity: .92; line-height: 1.45; }
.raum.gross { grid-column: span 7; min-height: 380px; }
.raum.mittel { grid-column: span 5; min-height: 380px; }
.raum.drittel { grid-column: span 4; }
@media (max-width: 860px) { .raum.gross, .raum.mittel, .raum.drittel { grid-column: span 12; min-height: 300px; } }

.ausstattung { list-style: none; padding: 0; margin: clamp(32px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; }
.ausstattung li { padding-left: 30px; position: relative; font-size: .98rem; }
.ausstattung li::before { content: ''; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--see); }
.ausstattung li::after { content: ''; position: absolute; left: 6px; top: calc(.32em + 4px); width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 860px) { .ausstattung { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .ausstattung { grid-template-columns: 1fr; } }

/* ---------- Galerie ----------
   Bündige Reihen: seite.js verteilt die Bilder so auf Zeilen, dass jede Zeile die volle
   Breite füllt und nichts beschnitten wird. Ohne JavaScript greift das gleichmäßige Raster. */
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; }
.filter button { font: inherit; font-size: .95rem; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 1px solid #cfc6b4; background: transparent; color: var(--text); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter button:hover { border-color: var(--see); }
.filter button[aria-pressed="true"] { background: var(--see); border-color: var(--see); color: #fff; }
.filter button span { opacity: .65; font-weight: 500; margin-left: 4px; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.galerie button { position: relative; display: block; padding: 0; border: 0; background: var(--linie); border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.galerie button::after { content: attr(data-text); position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px; color: #fff; font-size: .85rem; text-align: left; line-height: 1.3; background: linear-gradient(180deg, rgba(10,46,56,0), rgba(10,46,56,.8)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.galerie.buendig { display: flex; flex-wrap: wrap; }
.galerie.buendig button { aspect-ratio: auto; flex: none; animation: herein .45s both; }
@keyframes herein { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (hover: hover) {
    .galerie button:hover img { transform: scale(1.05); }
    .galerie button:hover::after, .galerie button:focus-visible::after { opacity: 1; }
}
@media (max-width: 560px) { .galerie { grid-template-columns: 1fr 1fr; gap: 6px; } .galerie button { border-radius: 7px; } .filter button { padding: 8px 14px; font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .galerie.buendig button { animation: none; } }

/* ---------- Lupe ---------- */
.lupe { position: fixed; inset: 0; z-index: 100; background: rgba(6, 22, 27, .95); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lupe img { max-width: 94vw; max-height: 84dvh; width: auto; height: auto; border-radius: 6px; }
.lupe p { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: #fff; font-size: .92rem; padding: 0 60px; }
.lupe button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lupe button:hover { background: rgba(255,255,255,.28); }
.lupe .zu { top: 14px; right: 14px; }
.lupe .vor { right: 14px; top: 50%; margin-top: -24px; }
.lupe .zurueck { left: 14px; top: 50%; margin-top: -24px; }
.lupe .zahl { position: absolute; top: 24px; left: 20px; color: #fff; font-size: .9rem; opacity: .8; }
@media (max-width: 700px) { .lupe .vor, .lupe .zurueck { top: auto; bottom: 50px; } }

/* ---------- Preise ---------- */
.preise { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .preise { grid-template-columns: 1fr; } }
.preisliste { list-style: none; margin: 0; padding: 0; }
.preisliste li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--linie); }
.preisliste li:first-child { border-top: 1px solid var(--linie); }
.preisliste b { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 600; white-space: nowrap; color: var(--see); }
.preisliste small { display: block; color: var(--leise); font-size: .88rem; }
.rechner { background: var(--papier); border-radius: var(--rund); padding: clamp(22px, 4vw, 36px); box-shadow: var(--schatten); border: 1px solid var(--linie); }
.rechner h3 { margin-bottom: 18px; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.felder label { display: block; font-size: .85rem; font-weight: 600; color: var(--leise); }
.felder .ganz { grid-column: 1 / -1; }
.felder input, .felder select { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid #cfc6b4; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--text); min-height: 48px; }
.felder input:focus, .felder select:focus { outline: 2px solid var(--see); outline-offset: 1px; }
.ergebnis { margin-top: 20px; }
.ergebnis table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.ergebnis td { padding: 7px 0; }
.ergebnis td:last-child { text-align: right; white-space: nowrap; }
.ergebnis tr.summe td { border-top: 2px solid var(--text); font-weight: 700; font-size: 1.2rem; padding-top: 12px; }
.ergebnis tr.summe td:last-child { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--rot); }
.hinweis { font-size: .92rem; color: var(--leise); margin: 14px 0 0; }
.hinweis.warn { color: var(--rot-dunkel); font-weight: 600; }
.rechner .knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Edersee ---------- */
.dunkel { background: var(--tief); color: #eaf3f5; }
.dunkel h2, .dunkel h3 { color: #fff; }
.dunkel .einleitung { color: #b9cfd5; }
.dunkel .vorzeile { color: var(--wasser); }
.zeiten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.zeit { border-radius: var(--rund); overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.zeit img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.zeit div { padding: 20px; }
.zeit .hand { color: var(--wasser); font-size: 1.5rem; line-height: 1; }
.zeit h3 { margin: 2px 0 8px; }
.zeit p { font-size: .95rem; margin: 0; color: #c9dbe0; line-height: 1.55; }
@media (max-width: 980px) { .zeiten { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .zeiten { grid-template-columns: 1fr; } }

.zahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(36px, 6vw, 64px); text-align: center; }
.zahlen b { display: block; font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; color: var(--see); line-height: 1.1; }
.zahlen span { font-size: .92rem; color: var(--leise); }
@media (max-width: 620px) { .zahlen { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

.ziele { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: ziel; }
.ziel { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--rund); padding: 26px 24px; counter-increment: ziel; position: relative; }
.ziel::before { content: counter(ziel, decimal-leading-zero); font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--rot); letter-spacing: .08em; display: block; margin-bottom: 10px; }
.ziel h3 { margin-bottom: 8px; }
.ziel p { margin: 0; font-size: .97rem; color: #3b484c; }
@media (max-width: 980px) { .ziele { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .ziele { grid-template-columns: 1fr; } }

.breitbild { position: relative; color: #fff; isolation: isolate; padding: clamp(90px, 16vw, 190px) 0; text-align: center; }
.breitbild picture, .breitbild picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.breitbild::after { content: ''; position: absolute; inset: 0; background: rgba(10,46,56,.5); z-index: -1; }
.breitbild blockquote { margin: 0 auto; max-width: 24ch; font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 4.6vw, 3rem); line-height: 1.25; }
.breitbild .hand { display: block; font-size: 1.7rem; margin-top: 18px; color: #dff1f5; }

/* ---------- Fragen ---------- */
.fragen { max-width: 820px; margin: 0 auto; }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.7rem; font-weight: 400; color: var(--rot); transition: transform .2s; }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details p { color: #3b484c; padding-right: 30px; }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--see); color: #fff; text-align: center; }
.kontakt h2 { color: #fff; }
.kontakt .vorzeile { color: #cfe9ef; }
.kontakt p { max-width: 54ch; margin-left: auto; margin-right: auto; color: #e3f1f4; }
.kontakt .knoepfe { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.kontakt .knopf.weiss { background: #fff; color: var(--see); }
.kontakt .knopf.weiss:hover { background: var(--sand); }

/* ---------- Fuß ---------- */
.fuss { background: var(--tief); color: #a9c0c6; font-size: .92rem; padding: 36px 0; }
.fuss .innen { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.fuss a { color: #dcecef; text-decoration: none; margin-left: 20px; }
.fuss a:first-child { margin-left: 0; }
.fuss a:hover { text-decoration: underline; }

/* ---------- Textseiten ---------- */
.textseite { padding: 120px 0 80px; min-height: 80dvh; }
.textseite .innen { max-width: 760px; }
.textseite h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 24px; }
.textseite h2 { font-size: 1.4rem; margin: 32px 0 10px; }
.kasten { background: var(--sand); border-left: 4px solid var(--rot); padding: 18px 20px; border-radius: 0 12px 12px 0; }

/* ---------- Einblenden ---------- */
.js .auf { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.js .auf.da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .auf { opacity: 1; transform: none; transition: none; }
    .raum img, .galerie img { transition: none; }
}
@media print { .leiste, .lupe, .rechner .knoepfe { display: none; } .buehne { min-height: 0; color: #000; } }

/* ---------- Schmale Bildschirme: nichts darf die Seite breiter machen ---------- */
.preise > *, .zwei > *, .felder > * { min-width: 0; }
.felder input, .felder select { min-width: 0; max-width: 100%; }
.marke { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.menueknopf { flex: none; }
@media (max-width: 480px) {
    .marke { font-size: 1.05rem; }
    .marke span { display: none; }
    .felder { grid-template-columns: 1fr; }
    .zettel { right: 4px; font-size: 1.35rem; }
}

/* Querformat im Stapel: großes Bild auf 4:3 schneiden, das kleine schmaler */
.stapel.quer > .bild:not(.klein) { aspect-ratio: 4 / 3; }
.stapel.quer .bild.klein { width: 36%; }
.kontakt h2 { margin-bottom: 16px; }
.marke { padding-right: 6px; }

.kontakt .anschrift { margin-top: 28px; font-size: .95rem; color: #cfe9ef; }
.textseite a { word-break: break-word; }
