/* Fensterkreuz: RAL 7016 Anthrazitgrau, der häufigste Fensterrahmen in
   Deutschland, und ein Messing-Ton wie beim Fenstergriff. Die dunklen Bänder
   (Hero, Kontakt, Fußzeile) sind der Rahmen, der Rest die Wand. Hell oder
   dunkel folgt der Systemeinstellung. */
:root {
  color-scheme: light dark;
  --rahmen: #383e42;
  --rahmen-tief: #2c3134;
  --wand: light-dark(#f5f6f5, #1f2326);
  --text: light-dark(#1f2427, #e8ebea);
  --leise: light-dark(#5b6468, #9ba4a8);
  --linie: light-dark(#d9dcdc, #343a3e);
  --messing: light-dark(#8a6935, #c9a063);
  --hell: #eef0ef;
  --hell-leise: #aab2b6;
  --messing-hell: #c9a063;
  --sans: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --display: system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --rand: max(1.25rem, (100% - 72rem) / 2);
}

*, *::before, *::after { box-sizing: border-box; }
main { flex: 1; }
html { scroll-padding-top: 4.5rem; }

/* Footer at the bottom even on short pages */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--wand);
  color: var(--text);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--messing); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--messing); }
a:focus-visible, .window:focus-visible { outline: 2px solid var(--messing-hell); outline-offset: 3px; }

h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; }

/* Bar: stays on top while scrolling */
.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem var(--rand);
  background: color-mix(in srgb, var(--rahmen) 88%, transparent);
  backdrop-filter: blur(12px);
  color: var(--hell);
  border-bottom: 1px solid #ffffff14;
}
.brand { font: 600 1.05rem/1.2 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.bar a:hover { color: var(--messing-hell); }

/* Hero: the dark band is the window frame, the photos are its panes */
.hero {
  padding: 3.5rem 0 4rem;
  background: var(--rahmen);
  color: var(--hell);
}
.hero-text { padding: 0 var(--rand) 2.5rem; }
h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.5rem, 7.5vw, 5.5rem);
  line-height: 1.02;
}
.hero-side p { max-width: 40ch; margin: 1.25rem 0 0; color: var(--hell-leise); font-size: 1.125rem; }
.hero-side .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.95rem;
}
.call { color: var(--hell); font-size: 1.05rem; }
.call strong { color: var(--messing-hell); font: 600 1.6rem/1 var(--display); letter-spacing: -0.03em; margin-left: 0.35rem; }
.mail { color: var(--hell); overflow-wrap: anywhere; }

/* Strip: edge to edge, scrolls sideways, photos uncropped at a shared height */
.window {
  display: flex;
  gap: 0.75rem;
  padding: 0 var(--rand) 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rand);
  scrollbar-width: thin;
  scrollbar-color: #ffffff40 transparent;
  scroll-margin-top: 4rem;
}
/* Width is written out per photo (height times aspect ratio): WebKit sizes an
   auto-width image inside a flex item from its file, not from its height. */
.window { --h: clamp(14rem, 60vw, min(36rem, 62vh)); }
.window .foto-anthrazit { --ar: calc(1600 / 1200); }
.window .foto-holz { --ar: calc(1456 / 1470); }
.window .foto-weiss { --ar: calc(1476 / 1580); }
.window figure {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 2px;
}
.window a { display: block; }
.window img {
  display: block;
  width: calc(var(--h) * var(--ar));
  height: var(--h);
  cursor: zoom-in;
}
.window figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  padding: 0.2rem 0.6rem;
  background: color-mix(in srgb, var(--rahmen-tief) 85%, transparent);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  color: var(--hell);
  font-size: 0.8rem;
}

/* Lightbox: shown while its id is the URL fragment. The close link is the
   backdrop, the image floats above it and passes clicks through. */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--rahmen-tief) 94%, transparent);
  backdrop-filter: blur(8px);
}
.lightbox:target { display: flex; }
body:has(.lightbox:target) { overflow: hidden; }
.lightbox img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 2px;
  pointer-events: none;
}
.lightbox a {
  position: absolute;
  color: var(--hell);
  text-decoration: none;
}
.lightbox a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lightbox a::before { font: 300 2.5rem/1 var(--display); }
.lightbox .close { inset: 0; cursor: zoom-out; }
.lightbox .close::before { content: "×"; position: absolute; top: 0.75rem; right: 1.25rem; }
.lightbox .prev, .lightbox .next {
  top: 50%;
  z-index: 2;
  padding: 1rem;
  transform: translateY(-50%);
}
.lightbox .prev { left: 0; }
.lightbox .next { right: 0; }
.lightbox .prev::before { content: "‹"; }
.lightbox .next::before { content: "›"; }
.lightbox a:hover { color: var(--messing-hell); }

/* Wall sections: label on the left, content on the right, hairlines between */
.split { padding: 4rem var(--rand); }
.split + .split { padding-top: 0; }
.split > * + * { margin-top: 1.5rem; }
.split + .split > :first-child { padding-top: 4rem; border-top: 1px solid var(--linie); }

.services { margin: 0; }
.services div {
  display: grid;
  gap: 0.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--linie);
}
.services div:first-child { padding-top: 0; }
.services dt { font: 600 1.35rem/1.25 var(--display); letter-spacing: -0.02em; }
.services dd { margin: 0; max-width: 46ch; color: var(--leise); }

.rating { margin: 0.5rem 0 0; color: var(--leise); font-size: 0.95rem; }
.rating span { color: var(--messing); letter-spacing: 0.08em; }
.quotes figure { margin: 0; }
.quotes blockquote, .quotes blockquote p { margin: 0; }
.quotes figcaption { margin-top: 0.75rem; color: var(--leise); font-size: 0.9rem; }
.featured blockquote {
  max-width: 32ch;
  font: 500 clamp(1.4rem, 3.2vw, 2rem)/1.3 var(--display);
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.featured blockquote p::before { content: "„"; }
.featured blockquote p::after { content: "“"; }
.more { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
.more figure { padding-top: 1.5rem; border-top: 1px solid var(--linie); }
.more blockquote { max-width: 52ch; }

/* Contact: the frame again, closing the page */
.contact {
  padding: 4.5rem var(--rand);
  background: var(--rahmen);
  color: var(--hell);
}
.contact h2 { max-width: 22ch; font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -0.03em; }
.contact-grid { display: grid; gap: 2.5rem 4rem; margin-top: 2rem; }
address { font-style: normal; color: var(--hell-leise); }
address p { margin: 1rem 0 0; }
address .lead { margin: 0 0 0.5rem; font-size: 0.95rem; }
address a { color: var(--hell); }
.phone {
  display: inline-block;
  color: var(--hell);
  font: 600 clamp(2.125rem, 8vw, 4.25rem)/1 var(--display);
  letter-spacing: -0.04em;
}
.hours {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.75rem;
  margin: 0;
  align-self: start;
  padding: 1.5rem 1.75rem;
  border: 1px solid #ffffff1f;
  border-radius: 2px;
}
.hours dt { color: var(--hell-leise); }
.hours dd { margin: 0; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem var(--rand) 2.5rem;
  background: var(--rahmen-tief);
  color: var(--hell-leise);
  font-size: 0.875rem;
}
footer span { margin-right: auto; }
footer a:hover { color: #fff; }

/* Subpages (Impressum, Datenschutz, 404): plain text on the wall */
.page { max-width: calc(44rem + 2 * var(--rand)); padding: 3.5rem var(--rand) 5rem; }
.page h1 { margin-bottom: 2rem; font-size: clamp(2.2rem, 6vw, 3.25rem); }
.page h2 { margin: 2.5rem 0 0.75rem; }
.page p { margin: 0 0 1rem; }

@media (min-width: 46rem) {
  .hero { padding-top: 5.5rem; }
  .hero-text {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: end;
    padding-bottom: 3.5rem;
  }
  .window { gap: 1rem; }  /* the mullions */

  .split {
    display: grid;
    grid-template-columns: 1fr 2.4fr;
    column-gap: 3rem;
    align-items: start;
  }
  .split > * + * { margin-top: 0; }
  .split + .split > * { padding-top: 4rem; border-top: 1px solid var(--linie); }
  .split > :first-child { position: sticky; top: 5.5rem; }
  .split + .split > :first-child { top: 1.5rem; }
  .services div { grid-template-columns: 12rem 1fr; gap: 2rem; align-items: baseline; }
  .contact-grid { grid-template-columns: 3fr 2fr; }
}

