/* Vionest Book – Buchungsstrecke. Farben, Rundung und Schrift kommen je Haus aus dem Baukasten
   (CSS-Variablen auf :root, von book.js gesetzt). Keine Fremdressourcen. */
:root {
  --p-primary: #5847e0; --p-accent: #34d3ac; --p-bg: #ffffff; --p-surface: #f7f6fb; --p-text: #17142b;
  --p-radius: 12px; --p-font: 'Inter', system-ui, sans-serif;
  --p-line: color-mix(in srgb, var(--p-text) 14%, transparent);
  --p-muted: color-mix(in srgb, var(--p-text) 62%, transparent);
  --p-primary-ink: #ffffff;
  --p-shadow: 0 10px 30px color-mix(in srgb, var(--p-text) 10%, transparent);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--p-bg); color: var(--p-text); font-family: var(--p-font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--p-primary); }
button { font: inherit; }
.noscript { padding: 24px; text-align: center; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--p-muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Kopf */
.hd { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--p-line); }
.hd .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.hd .brand img { height: 40px; width: auto; max-width: 180px; }
.hd .brand b { font-size: 1.1rem; }
.hd .right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.langs { display: flex; gap: 2px; }
.langs button { padding: 6px 9px; border: 1px solid transparent; background: none; color: var(--p-muted); border-radius: 8px; cursor: pointer; font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.langs button.on { color: var(--p-primary); border-color: var(--p-line); }
.link-btn { background: none; border: 0; color: var(--p-primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; font-size: .9rem; }

/* Hero */
.hero { position: relative; margin: 20px 0; border-radius: var(--p-radius); overflow: hidden; background: var(--p-surface); min-height: 200px; display: grid; align-items: end; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .over { position: relative; padding: 28px 22px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); color: #fff; }
.hero.plain .over { background: none; color: var(--p-text); }
.hero h1 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem); }
.hero p { margin-top: 8px; font-size: 1.05rem; opacity: .92; max-width: 44em; }

/* Suche */
.search { background: var(--p-surface); border-radius: var(--p-radius); padding: 16px; margin: 16px 0 24px; box-shadow: var(--p-shadow); }
.search form { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .search form { grid-template-columns: 1.1fr 1.1fr .8fr .8fr 1fr auto; align-items: end; } }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--p-muted); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--p-line); border-radius: calc(var(--p-radius) * .7); background: var(--p-bg); color: var(--p-text); font: inherit; }
.fld textarea { min-height: 90px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--p-primary); outline-offset: 1px; border-color: var(--p-primary); }
.fld .hint { font-size: .8rem; color: var(--p-muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: calc(var(--p-radius) * .7); border: 1px solid transparent; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--p-primary); color: var(--p-primary-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary[disabled] { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--p-primary); border-color: var(--p-line); }
.btn-ghost:hover { background: var(--p-surface); }
.search .btn { grid-column: 1 / -1; }
@media (min-width: 760px) { .search .btn { grid-column: auto; } }
.search .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .9rem; color: var(--p-muted); }
.promo-ok { color: var(--p-primary); font-weight: 600; }
.promo-bad { color: #b42318; }

/* Ergebnisse / Zimmer */
.rooms { display: grid; gap: 16px; }
.room { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--p-line); border-radius: var(--p-radius); overflow: hidden; background: var(--p-bg); }
@media (min-width: 720px) { .room { grid-template-columns: 300px minmax(0, 1fr); } }
.room .pic { position: relative; background: var(--p-surface); min-height: 180px; }
.room .pic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.room .pic .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--p-muted); font-size: .9rem; background: linear-gradient(135deg, color-mix(in srgb, var(--p-primary) 18%, var(--p-surface)), color-mix(in srgb, var(--p-accent) 22%, var(--p-surface))); }
.room .pic .nav { position: absolute; bottom: 8px; right: 8px; display: flex; gap: 4px; }
.room .pic .nav button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; }
.room .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.room h3 { font-size: 1.2rem; }
.room .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--p-muted); }
.room .desc { font-size: .95rem; }
.room .more { align-self: flex-start; }
.rates { display: grid; gap: 8px; margin-top: 4px; }
.rate { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--p-line); border-radius: calc(var(--p-radius) * .7); background: var(--p-surface); }
.rate .n { font-weight: 600; }
.rate .d { font-size: .85rem; color: var(--p-muted); }
.rate .price { text-align: right; }
.rate .price b { font-size: 1.15rem; }
.rate .price s { color: var(--p-muted); font-weight: 400; margin-right: 6px; font-size: .9rem; }
.rate .price small { display: block; color: var(--p-muted); font-size: .8rem; }
.rate .act { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (min-width: 560px) { .rate { grid-template-columns: minmax(0, 1fr) auto auto; } .rate .act { grid-column: auto; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--p-line); border-radius: 999px; background: var(--p-bg); }
.qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--p-primary); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.rate.off { opacity: .7; }
.rate .why { font-size: .85rem; color: #b42318; }
.rate.on { border-color: var(--p-primary); box-shadow: inset 0 0 0 1px var(--p-primary); }
.left { font-size: .8rem; color: #b45309; font-weight: 600; }
.empty { padding: 28px; text-align: center; border: 1px dashed var(--p-line); border-radius: var(--p-radius); color: var(--p-muted); }

/* Zusammenfassung (klebt unten) */
.bar { position: sticky; bottom: 0; z-index: 5; margin-top: 20px; padding: 12px 16px; background: var(--p-bg); border-top: 1px solid var(--p-line); box-shadow: 0 -8px 24px color-mix(in srgb, var(--p-text) 8%, transparent); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bar .sum b { font-size: 1.2rem; }
.bar .sum small { display: block; color: var(--p-muted); }

/* Abschnitte */
.sec { margin: 32px 0; }
.sec h2 { font-size: 1.35rem; margin-bottom: 12px; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: calc(var(--p-radius) * .6); width: 100%; }
.prose { white-space: pre-line; max-width: 60em; }
.faq details { border-top: 1px solid var(--p-line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 6px; color: var(--p-muted); white-space: pre-line; }
.contact { display: grid; gap: 6px; }
.ft { margin: 40px 0 20px; padding-top: 16px; border-top: 1px solid var(--p-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--p-muted); }
.ft a { color: inherit; }

/* Gastdaten / Bestätigung */
.panel { border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 20px; background: var(--p-bg); display: grid; gap: 14px; }
.panel h2 { font-size: 1.3rem; }
.grid2 { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.summary { background: var(--p-surface); border-radius: calc(var(--p-radius) * .7); padding: 14px 16px; display: grid; gap: 6px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { border-top: 1px solid var(--p-line); padding-top: 8px; margin-top: 4px; font-weight: 700; font-size: 1.1rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--p-primary); }
.err { padding: 10px 14px; border-radius: calc(var(--p-radius) * .6); background: #fde8e6; color: #9a2a1f; font-weight: 600; }
.ok { padding: 14px 16px; border-radius: calc(var(--p-radius) * .6); background: color-mix(in srgb, var(--p-accent) 22%, white); color: var(--p-text); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: .85rem; color: var(--p-muted); margin-bottom: 14px; }
.steps span.on { color: var(--p-primary); font-weight: 700; }
.steps span + span::before { content: '›'; margin-right: 6px; color: var(--p-muted); }
.hp { position: absolute; left: -9999px; }
.powered { font-size: .8rem; }
