/* Inquiry page */
.page-anfrage { background: var(--linen); }
.inq { padding: 130px 0 90px; }
.inq-head { max-width: 760px; margin-bottom: 44px; }
.inq-head h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.inq-head h1 em { font-style: italic; color: var(--red); }
.inq-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 1em; }

.inq-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.inq-grid > *, .main-col > * { min-width: 0; } /* let wide content (price overview table) scroll inside its card instead of widening the page on phones */
.main-col { display: grid; gap: 24px; min-width: 0; }
.side { position: sticky; top: 92px; display: grid; gap: 24px; }
/* summary of the trip inside the dark price card */
.sum { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid rgba(245, 238, 227, .16); }
.sum div { min-width: 0; }
.sum dt { font: 600 .64rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #ffd9c2; opacity: .85; margin-bottom: 3px; }
.sum dd { margin: 0; font-family: var(--serif); font-size: 1.08rem; line-height: 1.25; }
.sum dd.muted { opacity: .45; }
.sum a { color: inherit; }
/* phones: compact bar with dates + price while the price card is out of view */
.pricebar { display: none; }
@media (max-width: 960px) { /* same breakpoint as the one-column layout below, so a price is always in view */
  .side { position: static; }
  .inq { padding-bottom: 110px; }
  .pricebar:not([hidden]) {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; justify-content: space-between; align-items: center; gap: 12px;
    background: var(--ink); color: var(--linen); border-radius: 12px; padding: 11px 16px; text-decoration: none; font-size: .86rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
  .pricebar b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; white-space: nowrap; }
}
.card { background: var(--paper); border-radius: 6px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 1px 0 rgba(74, 46, 27, .1), 0 24px 50px -36px rgba(42, 32, 25, .45); }
.step { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin: 0 0 18px; }
.step:not(:first-child) { margin-top: 34px; }
.step span { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--linen); display: grid; place-items: center; font: 600 .85rem var(--sans); flex: none; }
.step b { font-weight: 500; }

/* apartment picker */
.apt-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.apt-pick button {
  text-align: left; border: 1.5px solid rgba(74, 46, 27, .15); background: var(--linen); border-radius: 6px; padding: 0 0 10px; cursor: pointer;
  font: inherit; color: inherit; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.apt-pick button img { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 8px; }
.apt-pick button b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; padding: 0 10px; }
.apt-pick button small { color: var(--ink-soft); font-size: .76rem; padding: 0 10px; }
.apt-pick button.any { justify-content: center; padding: 10px 0; background: transparent; border-style: dashed; }
.apt-pick button:hover { transform: translateY(-2px); }
.apt-pick button[aria-checked="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(163, 50, 43, .12); background: #fff; }
@media (max-width: 560px) { .apt-pick { grid-template-columns: 1fr 1fr; } }

label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }
input, select, textarea {
  font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1.5px solid rgba(74, 46, 27, .2); border-radius: 6px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(163, 50, 43, .12); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.hint { font-size: .85rem; color: var(--ink-soft); margin: 6px 0 0; }
#guesthint { color: var(--red); }
.hint-link { font-size: .85rem; color: var(--red); display: inline-block; margin-top: 8px; }
.check { grid-template-columns: auto 1fr; align-items: start; font-weight: 400; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; }

/* calendar */
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cal-sel { display: flex; gap: 14px; align-items: center; font-family: var(--serif); font-size: 1.1rem; }
.cal-sel small { display: block; font: 600 .66rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--wood); }
.cal-sel .muted { color: var(--ink-soft); opacity: .6; }
.cal { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .cal { grid-template-columns: 1fr; } }
.mname { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 8px; text-transform: capitalize; }
.cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal .wd { font-size: .7rem; text-align: center; color: var(--ink-soft); text-transform: uppercase; padding-bottom: 4px; }
.cal .grid button {
  aspect-ratio: 1; border: 0; background: none; border-radius: 6px; font: 500 .9rem var(--sans); color: var(--ink); cursor: pointer; position: relative;
}
.cal .grid button:disabled { color: rgba(42, 32, 25, .25); cursor: default; background: none; }
/* availability (same colours as the home page calendar): free = green, booked/unknown = light stripes */
.cal .grid button.free { background: #dde5d2; color: #3c4a30; }
.cal .grid button.busy { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(74, 46, 27, .07) 5px 6px); color: rgba(42, 32, 25, .55); }
.cal .grid button:hover:not(:disabled) { background: #c9d5bb; color: var(--ink); }
/* winter weekdays: still available (part of a Sat–Sat week), just not an arrival/departure day */
.cal .grid button.w:disabled:not(.past) { cursor: not-allowed; }
.cal .grid button.w.free:disabled { background: #e8ede1; color: #5d6b50; }
/* winter Saturdays: the days you can pick */
.cal .grid button.sat:not(:disabled) { background: #fff; color: #3c4a30; font-weight: 700; box-shadow: inset 0 0 0 2px var(--loden); }
.cal .grid button.sat:not(:disabled):hover { background: var(--loden); color: #fff; }
.cal .grid button.in, .cal .grid button.w.in:disabled { background: #b9c8a8; color: var(--ink); border-radius: 0; }
.cal .grid button.from, .cal .grid button.to { background: var(--loden) !important; color: #fff !important; box-shadow: none; }
.cal-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--ink-soft); }
.cal-legend li { display: flex; align-items: center; gap: 8px; }
.cal-legend i { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.cal-legend .lg-free { background: #dde5d2; }
.cal-legend .lg-sat { background: #fff; box-shadow: inset 0 0 0 2px var(--loden); }
.cal-legend .lg-busy { background: repeating-linear-gradient(135deg, var(--paper) 0 5px, rgba(74, 46, 27, .14) 5px 6px); }
.cal .grid button.today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }

/* price */
.price { background: var(--ink); color: var(--linen); }
.price .eyebrow { color: #e3a59f; }
.price-main { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; }
.price-sub { margin-top: 8px; font-size: .92rem; opacity: .8; }
.price-lines { list-style: none; padding: 0; margin: 16px 0 0; font-size: .9rem; }
.price-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed rgba(245, 238, 227, .2); }
.price-lines small { opacity: .6; }
.price .fine { font-size: .75rem; opacity: .6; margin: 16px 0 0; }

.send { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; margin-top: 6px; }
.send:disabled { opacity: .6; }
.form-msg { margin-top: 14px; font-size: .92rem; }
.form-msg.ok { color: var(--loden); font-weight: 600; }
.form-msg.err { color: var(--red); }
.form-msg .btn { margin-top: 10px; }

@media (max-width: 960px) { .inq-grid { grid-template-columns: 1fr; } .side { position: static; } }

/* per-night overview */
.ov-for { font-size: .85rem; color: var(--ink-soft); margin: -6px 0 12px; }
.ov-scroll { overflow-x: auto; margin: 0 -6px; }
.overview-card table { border-collapse: collapse; width: 100%; font-size: .88rem; font-variant-numeric: tabular-nums; }
.overview-card th, .overview-card td { padding: 8px 6px; text-align: right; white-space: nowrap; border-bottom: 1px solid rgba(74, 46, 27, .1); }
.overview-card thead th { font: 600 .68rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--wood); }
.overview-card tbody th { text-align: left; font-family: var(--serif); font-weight: 500; }
.overview-card tbody th small { display: block; font: 400 .7rem var(--sans); color: var(--ink-soft); }
.overview-card td.x { color: rgba(42, 32, 25, .4); }
.overview-card tr.sel { background: rgba(163, 50, 43, .07); }
.overview-card .muted { font-size: .85rem; color: var(--ink-soft); }
.sheet-links { font-size: .85rem; margin: 14px 0 0; display: flex; gap: 14px; flex-wrap: wrap; }
.sheet-links a, .sheet-links .linkbtn { color: var(--red); }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* full price list dialog */
dialog.pricelist { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
dialog.pricelist::backdrop { background: rgba(30, 20, 12, .5); overflow: hidden; overscroll-behavior: contain; }
dialog.pricelist:modal { overscroll-behavior: contain; } /* scrolling the price list must not scroll the page behind it */
.pl-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px 12px; background: var(--paper); border-bottom: 1px solid rgba(74, 46, 27, .12); }
.pl-head h2 { margin: 0; font-size: 1.4rem; }
.pl-close { font: 400 1.3rem var(--sans); background: none; border: 0; cursor: pointer; color: var(--ink-soft); padding: 4px 8px; }
#plbody { padding: 6px 22px 22px; }
#plbody h3 { margin: 18px 0 4px; font-size: 1.2rem; }
#plbody h4 { margin: 18px 0 6px; font: 600 .78rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--wood); }
#plbody h4 small { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-soft); }
#plbody table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
#plbody th, #plbody td { padding: 7px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid rgba(74, 46, 27, .1); }
#plbody thead th { font: 600 .68rem var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--wood); }
#plbody tbody th { text-align: left; font-weight: 500; }
#plbody thead th:first-child { text-align: left; }
#plbody tbody th small { display: block; font-size: .72rem; font-weight: 400; color: var(--ink-soft); }
#plbody .x { color: rgba(42, 32, 25, .45); }
#plbody .muted { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 560px) { .pl-head, #plbody { padding-left: 16px; padding-right: 16px; } #plbody th, #plbody td { padding: 7px 5px; } }

/* FAQ + legal */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--paper); border-radius: 6px; padding: 0 24px; box-shadow: 0 1px 0 rgba(74, 46, 27, .1); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--serif); color: var(--red); }
.faq-item[open] summary::after { content: "–"; }
.faq-item h2 { font-size: 1.25rem; margin: 0; }
.faq-item p { color: var(--ink-soft); margin: 0 0 22px; max-width: 680px; }
.faq-cta { margin-top: 36px; }
.legal-text p { color: var(--ink-soft); }
.legal-text { max-width: 760px; }
.legal-text .lead { font-size: 1.05rem; }
.legal-text h2 { font-size: 1.3rem; margin: 2.2em 0 .6em; scroll-margin-top: 90px; }
.legal-text ul, .legal-text ol { color: var(--ink-soft); padding-left: 1.3em; }
.legal-text li { margin: .3em 0; }
.legal-text code { font-size: .9em; background: rgba(0,0,0,.05); padding: .1em .35em; border-radius: 4px; word-break: break-word; }
.legal-text a { color: var(--red); overflow-wrap: anywhere; }
.legal-toc { margin: 1.6em 0; padding: 18px 22px; border: 1px solid rgba(0,0,0,.1); border-radius: 10px; }
.legal-toc ol { margin: 0; columns: 2 240px; }
.legal-dl { display: grid; gap: 8px; margin: 0; color: var(--ink-soft); }
.legal-dl div { display: grid; grid-template-columns: minmax(150px, 30%) 1fr; gap: 12px; }
.legal-dl dt { font-weight: 600; color: var(--ink); }
.legal-dl dd { margin: 0; }
@media (max-width: 560px) { .legal-dl div { grid-template-columns: 1fr; gap: 0; } }
.legal-text .todo { background: #fff3b0; color: #6b5000; padding: 0 .25em; border-radius: 3px; }
.legal-date { margin-top: 2.5em; font-size: .9rem; }
.check a { color: var(--red); }
