/* DNCK‑24 — black page, white type, the line drawing from the welcome card as texture */
@font-face { font-family: "Jost"; src: url("/static/fonts/jost-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/static/fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("/static/fonts/archivo-narrow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("/static/fonts/archivo-narrow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #a6a6a6;
  --rule: #3b3b3b;
  --sky: #7c9cc0;
  --meadow: #a8c77a;
  --violet: #c4a8f0;
  --rose: #e8a0be;
  --sun: #f3e08c;
  --display: "Berlin Type", "Jost", "Futura", sans-serif;
  --text: "Archivo Narrow", "Arial Narrow", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.125rem/1.5 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; margin-top: 1.2em; }
p { margin: 0 0 .8em; max-width: 68ch; }
.lead { font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.4; color: var(--muted); }
small { font-size: .85em; color: var(--muted); }

.demo-banner { margin: 0; max-width: none; padding: 6px var(--gutter); background: var(--sun); color: #000; font-size: .95rem; }

/* header: minimal logo */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); max-width: var(--max); margin: 0 auto;
}
.logo { display: block; text-decoration: none; color: var(--fg); }
.logo-svg { display: block; width: 190px; height: auto; overflow: visible; fill: currentColor; }
.lg-top { font-family: var(--display); font-weight: 600; }
.lg-big { font-size: 44px; }
.lg-small { font-size: 31px; }
.lg-bottom { font: 500 14px var(--display); letter-spacing: .6px; }
.lang-switch { font-size: 1rem; }

/* buttons & fields */
.btn {
  display: inline-block; border: 2px solid var(--fg); background: var(--fg); color: var(--bg);
  font: 600 1.1rem/1 var(--text); padding: 15px 24px; border-radius: 999px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--bg); color: var(--fg); }
.btn-wide { width: 100%; }
.btn.is-busy, .btn:disabled { opacity: .55; cursor: wait; }
.btn-quiet { background: var(--bg); color: var(--fg); }
.field { display: block; margin-bottom: 12px; }
.field-label { display: block; font-size: .95rem; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea, .range-trigger {
  width: 100%; font: inherit; color: var(--fg); background: transparent;
  border: 0; border-bottom: 2px solid var(--fg); padding: 8px 2px; border-radius: 0;
}
.field select { appearance: none; background: no-repeat right 4px center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.field select option { background: #000; color: #fff; }
.range-field { position: relative; }
.range-trigger { text-align: left; cursor: pointer; }
.range-trigger.is-empty { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* hand-drawn double frame, as around the QR code on the welcome card */
.hand-frame { position: relative; padding: 26px 24px 22px; }
.hand-frame::before, .hand-frame::after { content: ""; position: absolute; pointer-events: none; border: 2px solid var(--fg); }
.hand-frame::before { inset: 0; border-radius: 255px 14px 225px 12px / 12px 225px 14px 255px; transform: rotate(-.35deg); }
.hand-frame::after { inset: 7px -4px -5px 6px; border-width: 1.5px; border-radius: 14px 225px 12px 255px / 255px 12px 225px 14px; transform: rotate(.45deg); }

/* hero: greeting + calendar straight away, line drawing behind */
.hero { position: relative; isolation: isolate; padding: 8px var(--gutter) 56px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .26;
  background: url("/static/img/lines-2400.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.hero-text, .search { max-width: var(--max); margin-left: auto; margin-right: auto; }
.hero-text { padding: 12px 0 18px; }
.h1-tag { display: block; font-size: .42em; font-weight: 500; color: var(--muted); margin-top: .35em; letter-spacing: .01em; }
.search { background: rgba(0, 0, 0, .82); max-width: 900px; margin-left: auto; margin-right: auto; }
.search-title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.range-inline { display: grid; grid-template-columns: 1fr 220px; gap: 0 28px; align-items: start; }
.range-inline .cal { grid-column: 1 / -1; grid-row: 1; }
.range-inline .field-dates { grid-column: 1; }
.range-inline .field-guests { grid-column: 2; }
.range-inline .range-trigger { pointer-events: none; }
.search-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-hint { margin: 0; color: var(--muted); }
.saving { margin: 16px 0 0; font-size: 1.05rem; }
.saving::before { content: ""; display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--rose); margin-right: .45em; vertical-align: .05em; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* self-scrolling strip of apartment photos above the calendar */
.marquee { overflow: hidden; margin: 4px calc(-1 * var(--gutter)) 28px; background: #111; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 150s linear infinite; will-change: transform; }
.marquee-track img { height: 160px; width: auto; object-fit: cover; flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-33.3333%); } }

/* artwork gallery: endless self-scrolling strip (three copies, moves by one copy), tap = full screen */
.art-carousel { overflow: hidden; margin: 0 calc(-1 * var(--gutter)) 48px; }
.art-track { display: flex; gap: 0; width: max-content; animation: marquee 110s linear infinite; will-change: transform; }
.art-carousel:hover .art-track { animation-play-state: paused; }
.art-slide { flex: none; cursor: zoom-in; }
.art-slide img { height: 420px; width: auto; display: block; }
@media (max-width: 760px) { .art-slide img { height: 300px; } }
@media (prefers-reduced-motion: reduce) { .art-carousel { overflow-x: auto; } .art-track { animation: none; } }
@media (max-width: 760px) { .marquee-track img { height: 112px; } .marquee { margin-bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee-track { animation: none; } }

.art-strip { width: 100%; aspect-ratio: 3308 / 1388; object-fit: cover; max-height: 62vh; }

/* apartment list */
.apartments, .house { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 0; }
.apt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.apt-link { display: block; text-decoration: none; }
.apt-photo { display: block; overflow: hidden; }
.apt-photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .5s ease; }
.apt-link:hover .apt-photo img { transform: scale(1.03); }
.apt-body { display: block; padding-top: 12px; }
.apt-name { display: block; font: 600 1.7rem/1.1 var(--display); }
.apt-facts { display: block; color: var(--muted); margin: 4px 0 8px; }
.apt-price { display: block; font-size: 1.2rem; }
.apt-reason { color: var(--muted); }
.apt-cta { display: inline-block; margin-top: 8px; text-decoration: underline; text-underline-offset: .18em; }
.is-unavailable .apt-photo img { filter: grayscale(1); opacity: .4; }
.badge { display: inline-block; background: var(--meadow); color: #000; padding: 1px 8px; border-radius: 999px; margin-right: 6px; font-size: 1rem; }

/* house */
.house-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 40px; }
.house-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 64px; }
.info-grid h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
ul.plain { list-style: none; padding: 0; margin: 0 0 1em; }
ul.plain li { padding-left: 1em; text-indent: -1em; margin-bottom: 4px; }
ul.plain li::before { content: "•"; display: inline-block; width: 1em; text-indent: 0; }

/* apartment page */
/* one column: name and facts, text, main photo, booking box right below it, the other photos */
.apt-page { max-width: 1100px; margin: 0 auto; padding: 8px var(--gutter) 0; }
.apt-head { padding-bottom: 20px; max-width: 760px; }
.back { display: inline-block; margin-bottom: 12px; }
.apt-facts-lg { color: var(--muted); font-size: 1.15rem; }
.apt-head .lead { color: var(--fg); }
.tile { display: block; overflow: hidden; cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.tile-main img { aspect-ratio: 16 / 10; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 40px; }
.booking { max-width: 680px; margin: 28px auto 0; }
.booking-form { position: relative; }
.booking-form h2 { font-size: 1.8rem; }
.price { margin: 18px 0 6px; }
.price div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.price dt, .price dd { margin: 0; }
.price-total { border-top: 2px solid var(--fg); margin-top: 6px; padding-top: 8px !important; font-weight: 600; font-size: 1.25rem; }
.price-total small { font-weight: 400; display: block; font-size: .8rem; }
.total-only { margin: 22px 0 4px; }
.splits { margin-top: 28px; padding-top: 18px; border-top: 2px solid var(--fg); }
.splits h3 { margin-top: 0; }
.split-steps { padding-left: 1.4em; margin: 0 0 16px; }
.split-steps li { margin-bottom: 12px; font-size: 1.2rem; }
.split-steps .apt-facts { margin: 2px 0 0; font-size: 1rem; }
.total-amount { font: 600 2.2rem/1 var(--display); margin-right: 10px; }
.total-for { font-size: 1.15rem; }
.price-was { display: block; font-size: 1.05rem; opacity: .7; margin-bottom: 4px; }
.apt-price .price-was { display: inline; font-size: 1em; }
.badge-lm { background: transparent; color: inherit; border: 1px solid currentColor; }
.total-only small { display: block; margin-top: 6px; font-size: .9rem; }
.guest-data { border: 0; padding: 0; margin: 18px 0 0; }
.guest-data legend { font: 600 1.25rem/1.2 var(--display); padding: 0; margin-bottom: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.notice { background: var(--sun); color: #000; padding: 14px 16px; margin: 16px 0; }
.notice p { margin: 0 0 .5em; font-size: 1.02rem; }
.notice p:last-child { margin: 0; }
.notice-title { font-weight: 600; }
.notice-strong { font-size: 1.1rem; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 1.02rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--fg); flex: none; }
.alert { background: var(--rose); color: #000; padding: 10px 14px; margin: 12px 0; }
.from { font-size: 1.3rem; margin-top: 12px; }
.apt-info { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 40px; }
.apt-info h2 { font-size: 1.6rem; }
.reg { color: var(--muted); font-size: 1rem; }

/* reservation / legal */
.narrow { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 0; }
.pay { margin: 24px 0; }
.copy { user-select: all; font-weight: 600; }
.legal h2 { font-size: 1.45rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.15rem; }
.legal p, .legal li { max-width: 72ch; }
.note { color: var(--muted); font-size: 1rem; }

/* admin */
.admin { max-width: 1400px; margin: 0 auto; padding: 20px var(--gutter); overflow-x: auto; }
.admin table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.admin th, .admin td { text-align: left; padding: 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.admin .num { text-align: right; white-space: nowrap; }
.admin .actions form { display: inline-block; margin: 0 4px 4px 0; }
.admin .actions .btn { padding: 8px 12px; font-size: .95rem; }
.admin [aria-current] { font-weight: 600; }
.st-paid { background: #17240c; }
.st-cancelled, .st-released { color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.stats-grid h2 { font-size: 1.3rem; margin-top: 1em; }
.bar { width: 40%; }
.bar span { display: block; height: 10px; background: var(--sky); }

/* footer */
.site-footer { margin-top: 80px; border-top: 2px solid var(--fg); }
.footer-grid {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: grid; grid-template-columns: 1.4fr 1.2fr 1fr auto; gap: 24px; font-size: 1rem;
}
.footer-title { font-weight: 600; margin-bottom: 4px; }
.site-footer nav { display: flex; flex-direction: column; gap: 4px; }

/* date picker (popup on the apartment page, inline on the home page) */
.cal {
  position: absolute; z-index: 30; background: #000; border: 2px solid var(--fg);
  padding: 16px; width: min(680px, calc(100vw - 32px)); box-shadow: 6px 6px 0 var(--sky);
}
.cal[hidden] { display: none; }
.cal-inline { position: static; width: auto; border: 0; box-shadow: none; padding: 0 0 16px; background: transparent; }
.cal-inline .cal-foot { display: none; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-hint { font-weight: 600; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button, .cal-foot button { font: inherit; color: var(--fg); background: transparent; border: 2px solid var(--fg); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cal-month h3 { font: 600 1.15rem/1.2 var(--display); margin: 0 0 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; text-align: center; }
.cal-wd { font-size: .85rem; color: var(--muted); padding-bottom: 4px; }
.cal-day { font: inherit; font-size: 1rem; color: var(--fg); border: 0; background: none; padding: 0; height: 42px; cursor: pointer; }
.cal-day:disabled { color: #4d4d4d; text-decoration: line-through; cursor: default; }
.cal-day.in-range { background: var(--sun); color: #000; }
.cal-day.is-start, .cal-day.is-end { background: var(--fg); color: var(--bg); }
.cal-day.is-start { border-radius: 999px 0 0 999px; }
.cal-day.is-end { border-radius: 0 999px 999px 0; }
.cal-day.is-start.is-end { border-radius: 999px; }
.cal-day:not(:disabled):hover { outline: 2px solid var(--fg); outline-offset: -2px; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }
.cal-foot .cal-done { background: var(--fg); color: var(--bg); }

/* responsive */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .logo-svg { width: 156px; }
  .hero { padding-bottom: 40px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-text { padding: 4px 0 10px; }
  .hero .lead { font-size: 1.05rem; margin-bottom: 0; }
  .site-header { padding-top: 10px; padding-bottom: 6px; }
  .search { padding: 20px 14px 18px; }
  .range-inline { grid-template-columns: 1fr; }
  .range-inline .field-guests { grid-column: 1; }
  .search-actions .btn { width: 100%; }
  .apt-list { grid-template-columns: 1fr; gap: 40px; }
  .house-strip { grid-template-columns: 1fr 1fr; }
  .info-grid, .apt-info { grid-template-columns: 1fr; gap: 8px; }
  .gallery { gap: 4px; margin: 32px calc(-1 * var(--gutter)) 0; }
  .tile-main { margin: 0 calc(-1 * var(--gutter)); }
  .gallery .tile:nth-child(3n+1) { grid-column: 1 / -1; }
  .gallery .tile:nth-child(3n+1) img { aspect-ratio: 3 / 2; }
  .gallery .tile:nth-child(3n+2) img, .gallery .tile:nth-child(3n) img { aspect-ratio: 1; }
  .two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cal:not(.cal-inline) { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: none; border-width: 2px 0 0; }
  .cal-months { grid-template-columns: 1fr; }
  .art-strip { aspect-ratio: 4 / 3; object-position: 38% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.call { margin: 10px 0 0; font-size: 1.05rem; }
.banner-live { background: var(--violet); color: #000; }
.mail-hint { margin: -6px 0 12px; font-size: 1rem; }
.mail-hint button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* payment page: one row per value with a copy button */
.pay-row { display: grid; grid-template-columns: minmax(90px, auto) 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.pay-row:last-child { border-bottom: 0; }
.pay-label { color: var(--muted); }
.pay-value { text-align: right; overflow-wrap: anywhere; }
.pay-value.strong { font-weight: 600; }
.copy-btn { font: inherit; font-size: .9rem; color: var(--fg); background: transparent; border: 1.5px solid var(--fg); border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.copy-btn:hover { background: var(--fg); color: var(--bg); }
a[href^="tel"] { white-space: nowrap; }
.formula { background: #111; border: 1px solid var(--rule); padding: 14px 16px; overflow-x: auto; font-size: .95rem; line-height: 1.5; }
.price-block { margin-top: 28px; }
