/* Kalenderseite (hosted, Slice P4b): one page per Unterkunft. Colours, font and corners
   come from /<konto>/theme.css, the Vermieterin's own choice; this file only uses them.
   Phone first; no horizontal page scroll at 320 px. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/open-sans-latin.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;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/open-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent: #2f6f73;
  --accent-text: #fff;
  --font: system-ui, sans-serif;
  --radius: 4px;
  --paper: #fbfaf7;
  --ink: #1f1d1a;
  --muted: #6a655d;
  --line: #e4e0d8;
  --gutter: 16px;
  --band: #f1efe9;
}
@supports (color: color-mix(in srgb, red 10%, white)) {
  :root { --band: color-mix(in srgb, var(--accent) 9%, var(--paper)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.seite { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }

.inner { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }

/* header: the name is the page's loudest thing */
.head { background: var(--band); padding: 2.25rem 0 2rem; }
.head .inner { display: flow-root; }
/* the language switch (Slice P8), a plain link */
.lang { float: right; margin: -.75rem -.5rem 0 1rem; font-size: .9rem; }
.lang a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; color: var(--ink); font-weight: 600; text-underline-offset: .2em; }
.head h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.facts { margin: .6rem 0 1.4rem; color: var(--muted); font-size: 1rem; }
.cta { display: inline-flex; align-items: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--radius); background: var(--accent); color: var(--accent-text); font-weight: 700; text-decoration: none; }
.cta:hover { filter: brightness(1.08); }

/* photos: the first one big, the rest as a strip that scrolls sideways on its own */
.gallery { max-width: 1100px; margin: 0 auto; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.strip { display: flex; gap: 8px; margin: 8px 0 0; padding: 0 var(--gutter) 6px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.strip li { flex: 0 0 42%; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); border-radius: var(--radius); }

/* about: her text, and the price list beside it on wide screens */
main.inner { padding-top: 2rem; padding-bottom: 3rem; }
.about { display: grid; gap: 2rem; }
.text { max-width: 62ch; }
.text p { margin: 0 0 1em; }
.text p:first-child { font-size: 1.12rem; }
.prices { align-self: start; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) * 2); padding: 1.25rem 1.25rem 1rem; }
.prices h2 { margin: 0 0 .75rem; font-size: 1.1rem; }
.prices dl { margin: 0; }
.prices dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.prices dt { color: var(--ink); }
.prices dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fine { margin: .75rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.about.no-text .prices { max-width: 30rem; }

.calendar { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.cal-frame { display: block; width: 100%; height: 1500px; border: 0; }

.others { margin-top: 3rem; }
.others h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.others ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.others a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.others a:hover { border-color: var(--accent); }

.foot { border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; color: var(--muted); font-size: .9rem; }
.foot p { margin: .2rem 0; }
.foot .made { margin-top: .8rem; font-size: .8rem; }

@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .head { padding: 3.5rem 0 2.75rem; }
  .gallery { padding: 1.5rem var(--gutter) 0; }
  .hero-photo img { aspect-ratio: 2 / 1; max-height: 72vh; border-radius: calc(var(--radius) * 2); }
  .strip { padding: 0 0 6px; gap: 10px; margin-top: 10px; }
  .strip li { flex-basis: calc((100% - 40px) / 5); }
  .about { grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); gap: 3.5rem; }
  .about.no-text { grid-template-columns: 1fr; }
  main.inner { padding-top: 3rem; }
}

/* Legal pages (Slice P7): ours (AGB, AVV, Datenschutz, Impressum) and hers for her guests.
   Long text: a narrow measure, quiet headings, tables that scroll on their own at 320 px. */
.head .kicker { margin: 0 0 .5rem; font-size: .95rem; }
.head .kicker a { color: var(--ink); font-weight: 600; }
.legal { max-width: 46rem; padding-top: 1.5rem; padding-bottom: 2.5rem; overflow-wrap: anywhere; }
.legal h2 { margin: 2rem 0 .5rem; font-size: 1.2rem; line-height: 1.3; }
.legal p, .legal li { margin: .5rem 0; }
.legal ul { padding-left: 1.2rem; }
.legal .fine { color: var(--muted); font-size: .9rem; margin-top: 2rem; }
.legal .box { border: 1px solid var(--line); border-radius: var(--radius); padding: .25rem 1rem; background: var(--band); }
.facts-list { margin: .5rem 0; }
.facts-list div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .25rem 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; }
@media (max-width: 480px) { .facts-list div { grid-template-columns: 1fr; } }
.legal-table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .92rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid var(--line); min-width: 10rem; }
.foot a { color: inherit; }
/* Before her Impressum is complete only she sees the Kalenderseite (P7), with this on top */
.preview { margin: 0; padding: .75rem var(--gutter); background: #fff4d6; color: #3d3300; font-size: .95rem; text-align: center; }
.preview a { color: inherit; font-weight: 600; }
