/* ============================================================
   Gierke6 Art Space — palette drawn from the rooms themselves:
   linen ground, plaster grey-green walls, pine floor, dark wood ink
   ============================================================ */

/* Self-hosted Archivo (DSGVO: keine Anfragen an Google-Server) */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
:root {
  --linen:   #EFE9DD;  /* page ground */
  --plaster: #DDDDD4;  /* wall grey-green, alternate sections */
  --pine:    #9A6A3C;  /* floor tone — decoration only, NOT text-safe on linen or ink */
  --umber:   #7C5230;  /* buttons, links */
  --ink:     #33291F;  /* text, near-black warm brown */
  --ink-soft:#5C5347;
  --line:    rgba(51, 41, 31, 0.18);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --max-w: 72rem;
  --max-w-narrow: 46rem;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* anchors land below the fixed header */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a { color: var(--umber); }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container.narrow { max-width: var(--max-w-narrow); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--linen) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark, .footer-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark { font-size: 2.1rem; white-space: nowrap; }
.footer-wordmark span { color: var(--pine); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-list {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* EN / DE switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.lang-switch a {
  position: relative;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
  color: inherit;
  padding-block: 0.5rem;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.lang-switch a::after { content: ""; position: absolute; inset: -0.4rem; } /* larger tap area, same look */
.lang-switch a[aria-current] {
  font-weight: 700;
  border-bottom-color: var(--pine);
}
.lang-switch a:hover,
.lang-switch a:focus-visible { border-bottom-color: var(--pine); }
.lang-switch a:focus-visible,
.nav-list a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.nav-list a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav-list a:hover, .nav-list a:focus-visible { border-bottom-color: var(--pine); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.75rem 0.25rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* transparent header while over the hero (JS swaps to solid on scroll) */
.js .site-header.over-hero:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.js .site-header.over-hero:not(.is-scrolled) .wordmark,
.js .site-header.over-hero:not(.is-scrolled) .nav-list a,
.js .site-header.over-hero:not(.is-scrolled) .lang-switch { color: #F6F1E7; }
.js .site-header.over-hero:not(.is-scrolled) .nav-toggle span { background: #F6F1E7; }
.js .site-header.over-hero:not(.is-scrolled) .lang-switch a[aria-current],
.js .site-header.over-hero:not(.is-scrolled) .lang-switch a:hover,
.js .site-header.over-hero:not(.is-scrolled) .lang-switch a:focus-visible,
.js .site-header.over-hero:not(.is-scrolled) .nav-list a:hover,
.js .site-header.over-hero:not(.is-scrolled) .nav-list a:focus-visible { border-bottom-color: currentColor; }
.js .site-header.over-hero:not(.is-scrolled) .nav-list.is-open { background: var(--linen); }
.js .site-header.over-hero:not(.is-scrolled) .nav-list.is-open a { color: var(--ink); }

/* ---------- Section dots (right-edge page navigation) ---------- */
.section-dots {
  position: fixed;
  top: 50%;
  right: clamp(1rem, 3vw, 2rem);
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.9rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.section-dots a {
  position: relative;
  display: block;
  padding: 0.2rem;
}
.section-dots .dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.25s ease, transform 0.25s ease;
}
.section-dots a:hover .dot,
.section-dots a:focus-visible .dot,
.section-dots a[aria-current="true"] .dot {
  background: #fff;
  transform: scale(1.35);
}
.section-dots .dot-label {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0.7rem;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F6F1E7;
  background: var(--ink);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.section-dots a:hover .dot-label,
.section-dots a:focus-visible .dot-label {
  opacity: 1;
}
@media (max-width: 79.9rem) {
  .section-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .section-dots .dot { transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 38% at 50% 55%, rgba(28, 20, 12, 0.34), rgba(28, 20, 12, 0) 100%),
    linear-gradient(to bottom, rgba(28, 20, 12, 0.38) 0, rgba(28, 20, 12, 0) 8rem),
    linear-gradient(to top, rgba(28, 20, 12, 0.72) 0%, rgba(28, 20, 12, 0.25) 45%, rgba(28, 20, 12, 0.32) 100%);
}
.hero-content {
  padding: var(--header-h) clamp(1.25rem, 5vw, 4rem) 0;
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
  text-align: center;
  color: #F6F1E7;
}
.hero-kicker {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: #E5D9C4;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
/* rotating headline word (zimmer48-style), built by JS */
.hero-rotator {
  display: inline-block;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero-rotator.is-out {
  opacity: 0;
  transform: translateY(0.35em);
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 0 0 2.25rem;
  color: #EFE7D8;
}
.hero-kicker, .hero-sub { text-shadow: 0 1px 2px rgba(28, 20, 12, 0.35), 0 0 22px rgba(28, 20, 12, 0.45); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.btn-solid {
  background: var(--umber);
  color: #F6F1E7;
  border-color: var(--umber);
}
.btn-solid:hover, .btn-solid:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
}
.btn-ghost {
  color: #F6F1E7;
  border-color: rgba(246, 241, 231, 0.7);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(246, 241, 231, 0.14);
  border-color: #F6F1E7;
}

/* ---------- Intro ---------- */
.intro { padding: clamp(4.5rem, 10vh, 7.5rem) 0 0; text-align: center; }
.eyebrow {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--umber); /* pine fails AA contrast at this size on linen */
  margin: 0 0 1rem;
}
.nb { white-space: nowrap; }
.use-list {
  word-spacing: 0.22em;
  font-size: 1.38rem;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}
/* keep both lines on a single line where there's room, breaking out of the
   narrow text column instead of wrapping at the larger size */
@media (min-width: 68rem) {
  .eyebrow, .use-list {
    position: relative;
    left: 50%;
    translate: -50% 0; /* standalone property: won't clash with .reveal's transform */
    width: max-content;
    max-width: none;
    white-space: nowrap;
  }
}
.intro h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  text-wrap: balance;
}
.lede { text-wrap: balance; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); margin: 0 auto 2rem; }
.conditions {
  text-wrap: balance;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  max-width: 34rem;
  margin: 0 auto 3.5rem;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: var(--max-w);
  margin-inline: auto;
}
.fact {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.fact-icon {
  width: 4rem;
  height: 4rem;
  color: var(--umber);
  margin-bottom: 0.6rem;
}
.fact + .fact { border-left: 1px solid var(--line); }
.fact-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1;
}
.fact-label {
  text-wrap: balance;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Wall labels ---------- */
.labels-section {
  background: var(--plaster);
  padding: clamp(4rem, 9vh, 6.5rem) 0;
  margin-top: clamp(4rem, 9vh, 6.5rem);
}
.label-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr; /* all four cards share the same height */
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 58rem;
  margin-inline: auto;
}
@media (max-width: 40rem) {
  .label-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
}
.wall-label {
  background: var(--linen);
  padding: 2rem 1.75rem 2.25rem;
  box-shadow: 0 1px 2px rgba(51, 41, 31, 0.08), 0 8px 24px rgba(51, 41, 31, 0.06);
}
.label-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--umber);
  margin-bottom: 0.85rem;
}
.wall-label h3 {
  font-size: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.wall-label ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.wall-label li + li { margin-top: 0.6rem; }

/* ---------- Rooms ---------- */
.rooms { padding: clamp(4.5rem, 10vh, 7.5rem) 0 0; }
.rooms h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.rooms-text p { margin: 0 0 1.25rem; color: var(--ink-soft); }
.rooms-closing {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.7rem;
}
.ph-frame {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--plaster) 55%, var(--linen));
  display: grid;
  place-items: center;
}
.ph-frame span {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Contact (inverted — the page's destination) ---------- */
.contact {
  text-align: center;
  padding: clamp(4.5rem, 10vh, 7.5rem) 0;
  margin-top: clamp(4.5rem, 10vh, 7.5rem);
  background: var(--ink);
  color: #EFE7D8;
}
.contact h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); color: #F6F1E7; }
.contact p { text-wrap: balance; color: #D9CFBF; max-width: 34rem; margin-inline: auto; }
.contact-hint {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 1rem;
}
.contact-actions {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.contact .btn-solid { background: #C99A63; border-color: #C99A63; color: var(--ink); }
.contact .btn-solid:hover, .contact .btn-solid:focus-visible { background: #B8874F; border-color: #B8874F; color: var(--ink); }
.contact-mail { margin-top: 1.5rem; font-size: 0.95rem; }
.contact-mail a { color: #E5C9A6; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: baseline;
  justify-content: space-between;
}
.footer-grid p { margin: 0; }

/* ---------- Reveal on scroll (gated on .js so no-JS visitors see everything) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 47.9rem) {
  .br-lg { display: none; }
  .wordmark { font-size: clamp(1.25rem, 6.2vw, 2.1rem); }
  .site-nav { gap: 0.5rem; }
  .lang-switch { order: -1; }
  .lang-switch a { padding-block: 0.3rem; }
  .lang-switch a::after { inset: -0.6rem -0.4rem; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-right: -10px; /* bars line up with the 20px page gutter, tap area stays 44px */
  }
  .nav-toggle span { margin: 0; }
  .nav-list {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: var(--linen);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { border-top: 1px solid var(--line); }
  .nav-list a { display: block; padding: 1rem clamp(1.25rem, 4vw, 2.5rem); }

  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .fact + .fact { border-left: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 47.9rem) {
  .site-footer a { display: inline-block; padding: 0.35rem 0; }
}

/* ---------- Phones (<= 480px) ---------- */
@media (max-width: 30rem) {
  .hero-kicker { font-size: clamp(1.05rem, 5.9vw, 1.6rem); letter-spacing: 0.22em; }
  .eyebrow { font-size: clamp(0.85rem, 4.3vw, 1.2rem); letter-spacing: 0.18em; text-wrap: balance; }
  .hero-actions .btn { min-width: 13.5rem; text-align: center; }
  .contact-actions { flex-direction: column; align-items: stretch; max-width: 18rem; margin-inline: auto; }
  .contact-actions .btn { text-align: center; }
}

/* ---------- Very small phones (<= 360px) ---------- */
@media (max-width: 22.5rem) {
  .wordmark { font-size: 1.05rem; }
  .lang-switch { font-size: 0.78rem; letter-spacing: 0.1em; gap: 0.3rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Impressum page ---------- */
.legal-page {
  padding: calc(var(--header-h) + 3rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
  max-width: var(--max-w-narrow);
}
.legal-page h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.legal-page h2 { font-size: 1.3rem; margin-top: 2.5rem; }
.legal-page p { color: var(--ink-soft); }
.legal-page .legal-note { font-size: 0.92rem; font-style: italic; margin-bottom: 0; }
