/* Layout: the sister site of gastro-goerlitz.de, built from the same parts (arched photo frames,
   fact cards, drawn map) but furnished like the flat itself: limewashed walls and linen in the
   background, indigo from the patterned bed linen and the painted Renaissance ceilings as the
   accent, Cormorant Garamond for headings. */
:root {
  color-scheme: light;
  --stone: #f2eee6;
  --paper: #fbf9f5;
  --linen: #e9e1d2;
  --ink: #23252b;
  --muted: #5d5a54;
  --line: #d8d0c1;
  --indigo: #2c4677;
  --on-indigo: #f7f5f0;
  --tint: #e2e7f0;
  --ok: #2f6b45;
  --error: #9b3328;
  --map-bldg: #e0d8ca;
  --map-road: #ffffff;
  --map-water: #c5d3df;
  --map-water-ink: #4b6a86;
  --map-green: #dde3cf;
  --map-square: #f8f5ee;
  --map-route: #c3cde0;
  --plan-wall: #3e3f45;
  --plan-hall: #ebe5d9;
  --scrim: rgba(14, 15, 19, 0.94);
  --on-scrim: #eeede9;
  --scrim-btn: rgba(238, 237, 233, 0.14);
  --scrim-btn-hover: rgba(238, 237, 233, 0.24);
  --display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --body: "Albert Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step-0: 0.8125rem;
  --step-1: 1.0625rem;
  --step-2: 1.4375rem;
  --step-3: clamp(2rem, 3.8vw, 2.75rem);
  --step-4: clamp(2.75rem, 6.6vw, 5rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stone: #14161a; --paper: #1b1e23; --linen: #24221e; --ink: #e9e6df;
    --muted: #aaa59b; --line: #34363b; --indigo: #a9bde3; --on-indigo: #121a2b;
    --tint: #222b3a; --ok: #8fcaa3; --error: #f0a093;
    --map-bldg: #262a31; --map-road: #353a42; --map-water: #1b2c38; --map-water-ink: #8fb0c8;
    --map-green: #1d2620; --map-square: #1e2126; --map-route: #2f4568;
    --plan-wall: #b4b6be; --plan-hall: #2a2925;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --stone: #14161a; --paper: #1b1e23; --linen: #24221e; --ink: #e9e6df;
  --muted: #aaa59b; --line: #34363b; --indigo: #a9bde3; --on-indigo: #121a2b;
  --tint: #222b3a; --ok: #8fcaa3; --error: #f0a093;
  --map-bldg: #262a31; --map-road: #353a42; --map-water: #1b2c38; --map-water-ink: #8fb0c8;
  --map-green: #1d2620; --map-square: #1e2126; --map-route: #2f4568;
  --plan-wall: #b4b6be; --plan-hall: #2a2925;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 var(--step-1)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; margin: 0; font-variant-numeric: lining-nums; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Arched-window mark: the round-headed windows of the living room */
.mark { width: 1.5rem; height: auto; color: var(--indigo); flex: none; }
.mark path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar, stays in view while scrolling */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--linen); border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 12px 24px; min-height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  font-family: var(--display); font-size: 1.3125rem; font-weight: 600; line-height: 1.1;
  color: var(--ink); text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); font-size: 0.9375rem; font-weight: 500; text-decoration: none; padding-block: 6px; }
.nav a:hover { color: var(--indigo); text-decoration: underline; }
.nav .only-menu { display: none; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink);
  font: 500 0.9375rem var(--body); cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle path { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.button {
  display: inline-block;
  padding: 13px 22px;
  border: 0;
  background: var(--indigo);
  color: var(--on-indigo);
  font: 600 var(--step-1)/1.2 var(--body);
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
}
.button:hover { filter: brightness(1.12); }
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.button.small { padding: 10px 16px; font-size: 0.9375rem; }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Hero: linen band with the living room in an arch */
.hero { background: var(--linen); border-bottom: 1px solid var(--line); padding-block: 0; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
  padding-block: clamp(32px, 5vw, 64px) 0;
}
.hero-text { display: grid; gap: 22px; padding-bottom: clamp(32px, 6vw, 72px); min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 500; line-height: 0.98; color: var(--indigo); }
.lead { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.25; }
.hero h1 .lead { display: block; margin-top: 22px; color: var(--ink); }
.hero-text > p:not(.eyebrow):not(.lead) { max-width: 46ch; }
.traits {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  list-style: none; margin: 0; padding: 0;
  font-size: var(--step-0); font-weight: 500; color: var(--muted);
}
.traits li { display: flex; align-items: center; gap: 8px; }
.traits li::before { content: ""; width: 6px; height: 6px; background: var(--indigo); border-radius: 50%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.price-hint { font-size: 0.9375rem; color: var(--muted); }
.price-hint strong { color: var(--ink); font-weight: 600; }

/* Round-arched photo frames, after the windows of the flat */
.arch { margin: 0; display: grid; gap: 10px; min-width: 0; align-content: start; }
.arch .frame {
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  border: 6px solid var(--paper);
  border-bottom: 0;
  background: var(--paper);
  max-width: 100%;
}
.arch img { width: 100%; }
.arch.portrait .frame { aspect-ratio: 4 / 5; }
.arch.portrait img { height: 100%; object-fit: cover; }
figcaption { font-size: var(--step-0); color: var(--muted); }
/* The living room is the first thing guests see: the arch fills the first screen on desktop */
.hero .arch { justify-self: end; width: min(100%, 580px); }
.hero .arch .frame { max-height: calc(100svh - 190px); }
.hero .arch img { object-position: 45% 50%; }
.hero .arch figcaption { padding-bottom: 12px; }

/* Sections */
main section { padding-block: clamp(48px, 8vw, 96px); border-bottom: 1px solid var(--line); }
main section:last-child { border-bottom: 0; }
.head { display: grid; gap: 10px; margin-bottom: clamp(24px, 4vw, 40px); }
.head h2 { font-size: var(--step-3); line-height: 1.08; }
.head p:not(.eyebrow) { max-width: 62ch; }
.prose { display: grid; gap: 1em; max-width: 62ch; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.photo { margin: 0; display: grid; gap: 10px; min-width: 0; align-content: start; }
.photo img { border: 6px solid var(--paper); width: 100%; }

/* Ausstattung: three rooms in arches, then the facts */
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); margin-bottom: clamp(36px, 6vw, 64px); }
.rooms figcaption { display: grid; gap: 4px; color: var(--ink); }
.rooms h3 { font-size: var(--step-2); line-height: 1.2; margin-top: 4px; }
.rooms figcaption p { font-size: 0.9375rem; color: var(--muted); }
/* Grundriss: generated by genplan.py; wide (street left) on desktop, tall (street below) on phones */
.plan { margin: 0; display: grid; gap: 14px; min-width: 0; }
.plan-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: var(--step-0); color: var(--muted); }
.plan-head h3 { font-size: var(--step-2); color: var(--ink); }
.plan-frame { border: 6px solid var(--paper); background: var(--paper); padding: clamp(8px, 2vw, 20px); }
.plan svg { display: block; width: 100%; height: auto; }
.plan-tall { display: none !important; }
.p-wall { fill: var(--plan-wall); }
.p-room { fill: var(--paper); }
.p-hall { fill: var(--plan-hall); }
.p-guest { fill: var(--tint); }
.p-yard { fill: var(--stone); }
.p-hatch { stroke: var(--line); stroke-width: 3; }
.p-rail { fill: none; stroke: var(--plan-wall); stroke-width: 8; }
.p-thin, .p-furn, .p-glass { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.p-thin { stroke: var(--muted); stroke-width: 3; }
.p-furn { stroke: var(--indigo); stroke-width: 3; opacity: 0.55; }
.p-glass { stroke: var(--muted); stroke-width: 4; }
.plan text { fill: var(--ink); }
.p-name { font-family: var(--display); font-weight: 600; }
.p-small { font-family: var(--body); font-weight: 600; }
.plan .p-out, .plan .p-street { fill: var(--muted); }
.plan .p-sub { font-family: var(--body); font-weight: 500; fill: var(--muted); }
.p-street { font-family: var(--body); font-weight: 500; letter-spacing: 0.14em; }
.p-halo { paint-order: stroke; stroke: var(--plan-hall); stroke-width: 10px; stroke-linejoin: round; }
.legend {
  display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 18px 0 0; padding: 0;
  font-size: var(--step-0); color: var(--muted);
}
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 14px; border: 2px solid var(--plan-wall); flex: none; }
.legend .k-guest { background: var(--tint); }
.legend .k-room { background: var(--paper); }
.legend .k-hall { background: var(--plan-hall); }
.legend .k-yard { background: repeating-linear-gradient(45deg, var(--line) 0 1px, var(--stone) 1px 5px); }
.plan-note { margin-top: 8px; font-size: var(--step-0); color: var(--muted); max-width: 62ch; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.facts-group { background: var(--paper); border: 1px solid var(--line); padding: 8px 24px 12px; min-width: 0; }
.facts-group h3 {
  font-family: var(--body); font-size: var(--step-0); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  padding-block: 14px 6px;
}
.facts dl { margin: 0; }
.facts dl div {
  display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 4px 16px;
  padding-block: 12px; border-top: 1px solid var(--line);
}
.facts dt { color: var(--muted); font-size: 0.9375rem; }
.facts dd { margin: 0; }

/* Bilder: photos in their own proportions, flowing down three columns */
.album { columns: 3 260px; column-gap: 20px; }
.album figure { margin: 0 0 20px; break-inside: avoid; display: grid; gap: 8px; }
.album img { width: 100%; border: 6px solid var(--paper); }

/* Every photo opens full size in a lightbox */
.zoom { display: block; cursor: zoom-in; }
.arch .zoom { height: 100%; }
.zoom img { transition: filter 0.2s; }
.zoom:hover img { filter: brightness(1.06); }
.zoom:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--scrim); color: var(--on-scrim);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
  font-size: var(--step-0); font-variant-numeric: tabular-nums;
}
.lightbox figure {
  margin: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 0 clamp(16px, 7vw, 88px) max(20px, env(safe-area-inset-bottom, 0px));
}
.lightbox figure img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; }
.lightbox figcaption { color: var(--on-scrim); text-align: center; max-width: 62ch; }
.lb-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--scrim-btn); color: var(--on-scrim);
  font: 400 1.75rem/1 var(--body); cursor: pointer;
}
.lb-btn:hover { background: var(--scrim-btn-hover); }
.lb-btn:focus-visible { outline: 2px solid var(--on-scrim); outline-offset: 2px; }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: max(12px, env(safe-area-inset-left, 0px)); }
.lb-next { right: max(12px, env(safe-area-inset-right, 0px)); }

/* Historie: the ceiling beside the text, then the house through the years */
.history-split { align-items: center; }
.history-split .arch { justify-self: end; width: min(100%, 440px); }
.timeline {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 20px;
  list-style: none; margin: clamp(36px, 6vw, 64px) 0 0; padding: 0;
}
.timeline figure { margin: 0; display: grid; gap: 8px; }
.timeline img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid var(--paper); }
.timeline .year { display: block; font-variant-numeric: lining-nums; margin-bottom: 4px; font-family: var(--display); font-size: var(--step-2); font-weight: 600; line-height: 1; color: var(--indigo); }

/* Lage */
.distances { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.distances li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline;
  padding-block: 12px; border-bottom: 1px solid var(--line);
}
.distances strong { font-weight: 600; }
.distances span { grid-column: 1; font-size: 0.9375rem; color: var(--muted); }
.distances .m {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap;
}
.distance-note { margin-top: 12px; font-size: var(--step-0); color: var(--muted); }
.portals {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px); margin-top: clamp(36px, 6vw, 64px);
}
.portals .arch:nth-child(2) img { object-position: 38% 50%; }

/* Karte: drawn from OpenStreetMap data, themed through the tokens */
.map-figure { margin: clamp(36px, 6vw, 64px) 0 0; display: grid; gap: 14px; }
.map-frame { border: 6px solid var(--paper); background: var(--paper); }
.map { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 636; color: var(--ink); }
.m-ground { fill: var(--stone); }
.m-green { fill: var(--map-green); }
.m-water { fill: var(--map-water); }
.m-square { fill: var(--map-square); }
.m-bldg { fill: var(--map-bldg); }
.m-house { fill: var(--indigo); }
.m-foot, .m-service, .m-minor, .m-major, .m-route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-foot { stroke: var(--map-road); stroke-width: 2.5; }
.m-service { stroke: var(--map-road); stroke-width: 5; }
.m-minor { stroke: var(--map-road); stroke-width: 9; }
.m-major { stroke: var(--map-road); stroke-width: 12; }
.m-route { stroke: var(--map-route); stroke-width: 14; }
.m-labels text, .m-pin-label, .m-scale text {
  paint-order: stroke; stroke: var(--stone); stroke-width: 4px; stroke-linejoin: round;
}
.m-place { font: 600 15px var(--body); fill: var(--ink); }
.m-street { font: 500 13px var(--body); fill: var(--muted); letter-spacing: 0.04em; }
.m-water-label { font: italic 400 15px var(--body); fill: var(--map-water-ink); letter-spacing: 0.3em; }
.m-country { font: 600 21px var(--display); fill: var(--muted); letter-spacing: 0.08em; }
.m-country-sub { font: 600 11px var(--body); fill: var(--muted); letter-spacing: 0.2em; }
.m-pin-halo { fill: var(--indigo); opacity: 0.22; }
.m-pin-dot { fill: var(--indigo); stroke: var(--paper); stroke-width: 3; }
.m-pin-label { font: 600 19px var(--display); fill: var(--indigo); }
.m-scale path { fill: none; stroke: var(--ink); stroke-width: 2; }
.m-scale text { font: 600 12px var(--body); fill: var(--ink); }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Preise: price list beside the calculator */
.card { background: var(--paper); border: 1px solid var(--line); padding: 8px 24px; min-width: 0; }
.card > h3 {
  font-family: var(--body); font-size: var(--step-0); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  padding-block: 14px 6px;
}
.price-list { margin: 0; }
.price-list div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; align-items: baseline;
  padding-block: 12px; border-top: 1px solid var(--line);
}
.price-list dt { grid-column: 1; grid-row: 1; font-weight: 500; }
.price-list dd { margin: 0; }
.price-list .amount {
  grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right;
  font-family: var(--display); font-size: 1.75rem; font-weight: 600; line-height: 1;
  font-variant-numeric: lining-nums; color: var(--indigo); white-space: nowrap;
}
.price-list .per { grid-column: 1; grid-row: 2; font-size: 0.9375rem; color: var(--muted); }
.card-note { padding-block: 14px 16px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }

.calc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; padding-block: 6px 18px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label { font-size: var(--step-0); font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.field small { font-size: var(--step-0); color: var(--muted); }
input, select, textarea {
  width: 100%; min-width: 0; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--stone); color: var(--ink);
  font: 400 1rem/1.4 var(--body);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo); }
textarea { resize: vertical; min-height: 7.5em; }
.calc-result { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calc-result td { padding: 10px 0; border-top: 1px solid var(--line); }
.calc-result td + td { text-align: right; font-weight: 500; }
.calc-result .total td { font-weight: 600; font-size: 1.1875rem; border-top: 2px solid var(--ink); }
.calc-actions { display: grid; gap: 10px; justify-items: start; padding-block: 18px 20px; }
.calc-actions small { font-size: var(--step-0); color: var(--muted); }

/* Bewertungen and Freie Termine */
.reviews { min-height: 120px; }
/* Google reviews (Elfsight): restyled through the widget's es-* hooks so it reads as part of the
   page. Its own "Das sagen unsere Gäste" title is hidden; the section heading replaces it. */
#bewertungen .es-widget-title-container { display: none !important; }
#bewertungen .es-embed-root,
#bewertungen .es-embed-root * { font-family: var(--body) !important; }
#bewertungen .es-header-container,
#bewertungen .es-review-background-container {
  background: var(--paper) !important; border: 1px solid var(--line) !important; border-radius: 2px !important;
}
#bewertungen .es-header-heading-text,
#bewertungen .es-review-author-name,
#bewertungen .es-review-content,
#bewertungen .es-review-content * { color: var(--ink) !important; }
#bewertungen .es-header-heading-text { font-weight: 600 !important; }
#bewertungen .es-rating-value {
  color: var(--indigo) !important; font-family: var(--display) !important;
  font-size: 1.75rem !important; font-weight: 600 !important; font-variant-numeric: lining-nums;
}
#bewertungen .es-header-rating-reviews-count,
#bewertungen .es-review-info-date { color: var(--muted) !important; }
#bewertungen .es-header-write-review-button {
  background: var(--indigo) !important; color: var(--on-indigo) !important;
  border-radius: 2px !important; font-weight: 600 !important;
}
#bewertungen .es-button-base-overlay { border-radius: 0 !important; }
#bewertungen .es-text-shortener-control { color: var(--indigo) !important; }
#bewertungen .es-carousel-arrow-control {
  background: var(--paper) !important; border: 1px solid var(--line); box-shadow: none !important;
}
#bewertungen .es-carousel-arrow-control,
#bewertungen .es-carousel-arrow-control * { color: var(--ink) !important; fill: var(--ink) !important; }
#bewertungen .es-bullets-control-item { background: var(--line) !important; }
#bewertungen .es-bullets-control-item-active { background: var(--indigo) !important; }
.calendar-frame { border: 6px solid var(--paper); background: #fff; }
.calendar-frame iframe { display: block; width: 100%; height: 600px; border: 0; }
/* Google's calendar has no dark theme; inverting it (and turning the hues back) keeps it from
   glaring on the dark page */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .calendar-frame { background: #111; }
  :root:not([data-theme="light"]) .calendar-frame iframe { filter: invert(0.9) hue-rotate(180deg); }
}
:root[data-theme="dark"] .calendar-frame { background: #111; }
:root[data-theme="dark"] .calendar-frame iframe { filter: invert(0.9) hue-rotate(180deg); }
.calendar-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 20px; }

/* Häufige Fragen: also in the FAQPage data, so search engines and AI assistants can quote the answers */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-block: 16px; cursor: pointer; list-style: none; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--indigo); }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.faq details p { margin: 0 0 18px; max-width: 68ch; }

/* Kontakt */
.contact {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 56px); align-items: start;
}
.form { display: grid; gap: 16px; padding-block: 20px 24px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-left: 3px solid var(--muted); background: var(--stone); }
.form-status.is-success { border-color: var(--ok); }
.form-status.is-error { border-color: var(--error); }
.info dl { margin: 0; }
.info dl div { display: grid; gap: 2px; padding-block: 14px; border-top: 1px solid var(--line); }
.info dl div:first-child { border-top: 0; }
.info dt { font-size: var(--step-0); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.info dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.info address { font-style: normal; }

/* Im selben Haus: the restaurant downstairs, on the linen band like the hero */
main section.neighbour { background: var(--linen); }
.neighbour .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.neighbour .photo a { display: block; }
.neighbour-text { display: grid; gap: 22px; }
.neighbour-text .head { margin-bottom: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--paper); }
footer .wrap { padding-block: 40px 32px; display: grid; gap: 28px; font-size: 0.9375rem; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px 32px; }
footer h2 { font-family: var(--body); font-size: var(--step-0); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
footer address { font-style: normal; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--step-0); }
.credits { font-size: var(--step-0); }
.credits ul { gap: 2px; }
.footer-base:first-child { padding-top: 0; border-top: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.link-button { padding: 0; border: 0; background: none; color: var(--indigo); font: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; cursor: pointer; }

/* Cookie notice */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
}
.consent .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-block: 16px max(16px, env(safe-area-inset-bottom, 0px)); }
.consent p { flex: 1 1 320px; font-size: 0.9375rem; }
.consent-actions { display: flex; gap: 10px; }

/* Impressum, Datenschutz and 404 */
.legal .wrap { max-width: 760px; padding-block: 48px 72px; display: grid; gap: 14px; }
.legal h1 { font-size: var(--step-3); line-height: 1.1; margin-bottom: 10px; }
.legal h2 { font-size: var(--step-2); margin-top: 26px; }
.legal h3 { font-family: var(--body); font-size: 1.0625rem; font-weight: 600; margin-top: 14px; }
.legal p, .legal ul { margin: 0; max-width: 68ch; overflow-wrap: anywhere; }
.legal ul { padding-left: 1.2em; display: grid; gap: 4px; }
.notfound .wrap { padding-block: clamp(64px, 14vw, 140px); display: grid; gap: 18px; justify-items: start; }
.notfound h1 { font-size: var(--step-3); line-height: 1.1; color: var(--indigo); }

@media (max-width: 999px) {
  .plan-wide { display: none !important; }
  .plan-tall { display: block !important; }
  .plan-frame { justify-self: start; width: min(100%, 440px); }
}
@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    background: var(--linen); border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }
  .bar.open .nav { display: flex; }
  .nav .only-menu { display: block; }
  .nav a { display: block; padding-block: 12px; border-top: 1px solid var(--line); font-size: 1rem; }
  .nav li:first-child a { border-top: 0; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero .wrap, .split, .contact, .facts, .neighbour .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .arch { justify-self: start; width: min(100%, 520px); }
  .hero-text { padding-bottom: 0; }
  .history-split .arch { justify-self: start; }
}
@media (max-width: 680px) {
  .rooms { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rooms .arch { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
  .rooms .arch .frame { border-width: 4px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-fields .field:last-child { grid-column: 1 / -1; }
  .calendar-frame iframe { height: 480px; }
}
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: max(16px, env(safe-area-inset-bottom, 0px)); translate: none; }
  .lightbox figure { padding-inline: 16px; padding-bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 60px); }
  .lightbox figure img { max-height: calc(100dvh - 210px); }
  .map { aspect-ratio: 1 / 1; }
  .m-place { font-size: 24px; }
  .m-street { font-size: 20px; }
  .m-water-label { font-size: 22px; }
  .m-pin-label { font-size: 30px; }
  .m-scale text { font-size: 18px; }
  .m-country, .m-country-sub { display: none; }
}
@media (max-width: 520px) {
  .bar-cta { display: none; }
  .facts dl div { grid-template-columns: minmax(0, 1fr); }
  .facts-group, .card { padding-inline: 16px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .zoom img { transition: none; }
}
