/* ==========================================================================
   WITRA concept store – Stylesheet
   Farben, Schriften und Abstände sind oben als Variablen definiert.
   ========================================================================== */

/* --- Schriften (lokal, keine Verbindung zu Google) --- */
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben */
  --paper: #ffffff;
  --stone: #efefec;          /* heller Granit */
  --ink: #1e2a26;            /* Arvengrün, fast schwarz */
  --ink-soft: #4f5a55;
  --gold: #ae9a65;           /* WITRA-Gold aus dem Logo */
  --gold-deep: #766536;      /* Gold für kleine Schrift (Kontrast) */
  --gold-light: #c9b98a;     /* Gold auf dunklem Grund */
  --line: rgba(174, 154, 101, 0.45);

  /* Schrift */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;

  /* Typo-Skala (fliessend) */
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.6vw, 5rem);

  /* Layout */
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1280px;
  --header-h: 84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.14;
  margin: 0 0 0.6em;
  letter-spacing: 0;
  /* Bodoni wird bei grosser Schrift automatisch sehr fein – hier etwas kräftigere Haarstriche */
  font-variation-settings: "opsz" 28;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1.1em; max-width: 62ch; }

a { color: var(--gold-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Der Punkt aus dem Logo – als wiederkehrendes Zeichen */
.dot {
  display: inline-block;
  width: 0.32em; height: 0.32em;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

/* ==========================================================================
   Kopfzeile & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease;
}
/* Milchglas-Hintergrund als eigene Ebene, damit das mobile Menü den ganzen Bildschirm füllen kann */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.nav-open .site-header::before { background: var(--paper); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand { display: block; line-height: 0; }
.brand img { width: 168px; height: auto; }

.nav-list {
  display: flex;
  gap: clamp(1.25rem, 2.6vw, 2.6rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 450;
  letter-spacing: 0.02em;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -0.1rem;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.25s ease;
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scale(1); }

/* Sprachumschalter */
.nav-list .lang-item { padding-left: clamp(1.25rem, 2.6vw, 2.6rem); border-left: 1px solid var(--line); }
.nav-list .lang-item a { color: var(--gold-deep); letter-spacing: 0.06em; }
.nav-list .lang-item a:hover { color: var(--ink); }
.nav-list .lang-item a::after { display: none; }
.lang-long { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 400 1rem var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.nav-toggle .bars { position: relative; width: 24px; height: 10px; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars::after { top: 8.5px; }
.nav-open .nav-toggle .bars::before { top: 4.25px; transform: rotate(45deg); }
.nav-open .nav-toggle .bars::after { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand img { width: 138px; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper);
    padding: 2rem var(--gutter) 3rem;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a {
    padding: 1rem 0;
    font-family: var(--serif);
    font-size: 2rem;
    letter-spacing: 0;
  }
  .nav-list a::after { left: auto; right: 0.25rem; bottom: 50%; margin: 0 0 -3px; }
  .nav-list .lang-item { padding-left: 0; border-left: 0; border-bottom: 0; margin-top: 1.5rem; }
  .nav-list .lang-item a { font-family: var(--sans); font-size: 1.1rem; letter-spacing: 0.02em; padding: 0.5rem 0; }
  .lang-short { display: none; }
  .lang-long { display: inline; }
  .nav-open { overflow: hidden; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: 400 1rem var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.icon { width: 1em; height: 1em; flex: none; }

/* ==========================================================================
   Startseite – Hero
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: min(calc(100svh - var(--header-h)), 860px);
  max-width: 1600px;
  margin-inline: auto;
}
.hero-text {
  align-self: center;
  min-width: 0;
  /* Linker Rand bündig mit Logo/Inhalt – gerechnet auf die Hero-Breite (max. 1600px), nicht auf die Bildschirmbreite */
  padding: 3rem var(--gutter) 4rem max(var(--gutter), calc((min(100vw, 1600px) - var(--max)) / 2 + var(--gutter)));
}
.hero h1 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4.1rem); margin-bottom: 0.5em; overflow-wrap: break-word; hyphens: manual; }
.tagline {
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 0.8em;
}
.tagline span { display: block; }
.tagline-en {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 14;
  font-size: var(--step-1);
  color: var(--gold-deep);
  margin: 0;
}
.hero-media { position: relative; min-height: 320px; }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

/* Ein einziger Moment beim Laden: Text und Bild blenden sanft ein */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.16s; }
  .hero-text > :nth-child(4) { animation-delay: 0.24s; }
  .hero-media img { animation: fade 1.2s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hero-text { padding: 2.25rem var(--gutter) 1rem; }
}

/* ==========================================================================
   Allgemeine Abschnitte
   ========================================================================== */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-stone { background: var(--stone); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split-media img { width: 100%; }
.sticky { position: sticky; top: calc(var(--header-h) + 2rem); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
}

.lead { font-size: var(--step-1); line-height: 1.5; }

.label-mentions a { color: inherit; text-decoration-color: var(--gold); }
.label-mentions a:hover { color: var(--gold-deep); }

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 14;
  font-size: var(--step-1);
  line-height: 1.45;
}

/* --- Label-Wand auf der Startseite --- */
.label-wall { text-align: center; }
.label-wall h2 { font-size: var(--step-2); margin-bottom: 1.4em; }
.label-wall ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 28;
  font-size: var(--step-3);
  line-height: 1.3;
}
.label-wall li { display: flex; align-items: center; }
.label-wall li:not(:last-child)::after {
  content: "";
  width: 0.15em; height: 0.15em;
  margin-inline: 0.42em;
  border-radius: 50%;
  background: var(--gold);
}
@media (max-width: 600px) {
  .label-wall ul { flex-direction: column; font-size: var(--step-2); line-height: 1.5; }
  .label-wall li:not(:last-child)::after { display: none; }
}
.label-wall a { color: var(--ink); text-decoration: none; transition: color 0.2s ease; }
.label-wall a:hover { color: var(--gold-deep); }
.label-wall .btn-row { justify-content: center; margin-top: 3rem; }

/* ==========================================================================
   Unterseiten – Seitenkopf
   ========================================================================== */
.page-head { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head .grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
}
.page-head h1 { margin: 0; }
.page-head p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .page-head .grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   WITRA – Galerie
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery { grid-auto-flow: row dense; }
.gallery li { grid-column: span 4; }
.gallery li.half { grid-column: span 6; }
.gallery li.wide { grid-column: span 8; grid-row: span 2; }
.gallery li.wide.right { grid-column: 5 / span 8; }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--stone);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.gallery li.wide button { aspect-ratio: auto; height: 100%; }
.gallery li.portrait button { aspect-ratio: 2 / 3; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.gallery button:hover img { transform: scale(1.03); }

@media (max-width: 860px) {
  .gallery li, .gallery li.half { grid-column: span 6; }
  .gallery li.wide, .gallery li.wide.right { grid-column: span 12; grid-row: auto; }
  .gallery li.wide button { aspect-ratio: 3 / 2; height: auto; }
  .gallery li.portrait { grid-column: span 4; }
  .gallery li:last-child { grid-column: span 12; }
}

/* --- Lightbox --- */
.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(20, 28, 25, 0.96);
  color: #fff;
}
.lightbox::backdrop { background: rgba(20, 28, 25, 0.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure {
  margin: 0;
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  padding: 4.5rem 4.5rem 3.5rem;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 1.2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--gold-light);
}
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lb-btn:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.lb-btn svg { width: 1.2rem; height: 1.2rem; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; margin-top: -1.5rem; }
.lb-next { right: 1rem; top: 50%; margin-top: -1.5rem; }
@media (max-width: 600px) {
  .lightbox figure { padding: 4rem 0.5rem 4.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 0.8rem; margin: 0; }
  .lightbox figcaption { bottom: 1.7rem; }
}

/* ==========================================================================
   Labels
   ========================================================================== */
.label-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.label-list li { border-bottom: 1px solid var(--line); }
.label-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(1.1rem, 2.2vw, 1.7rem) 0;
  color: var(--ink);
  text-decoration: none;
}
.label-name {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 28;
  font-size: var(--step-3);
  line-height: 1.1;
  transition: color 0.25s ease, transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.label-url {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.label-list a:hover .label-name { color: var(--gold-deep); transform: translateX(0.4rem); }
.label-list a:hover .label-url { color: var(--ink); }
.label-note { margin-top: 2.5rem; color: var(--ink-soft); }

@media (max-width: 600px) {
  .label-list a { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ==========================================================================
   Über uns
   ========================================================================== */
.person {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.person {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.person + .person { margin-top: clamp(3rem, 6vw, 4.5rem); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.person.small { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
.person h2 { font-size: var(--step-3); margin-bottom: 0.15em; }
.role {
  display: block;
  margin-bottom: 1.4rem;
  font-size: var(--step-0);
  color: var(--gold-deep);
  letter-spacing: 0.02em;
}
@media (max-width: 760px) {
  .person, .person.small { grid-template-columns: 1fr; }
  .person.small img { max-width: 260px; }
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map, .map-consent { min-height: 340px; }
}

.facts { margin: 2rem 0 0; }
.facts > div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 500; margin-bottom: 0.2rem; }
.facts dd { margin: 0; }
.facts a { color: var(--ink); }
.facts a:hover { color: var(--gold-deep); }

.hours { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 400; padding: 0 1.4rem 0.2rem 0; vertical-align: top; }
.hours td { padding: 0 0 0.2rem; font-variant-numeric: tabular-nums; }

.review {
  margin-top: 2.5rem;
  padding: 1.8rem;
  background: var(--stone);
}
.review p { font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 18; font-size: var(--step-1); line-height: 1.4; margin-bottom: 1rem; }
.review .btn-row { margin-top: 0; }

.map {
  position: relative;
  min-height: 420px;
  height: 100%;
  background: var(--stone) url("../img/laden-sortiment-800.webp") center / cover no-repeat;
}
.map::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(30, 42, 38, 0.72);
}
.map-consent {
  position: relative;
  display: grid;
  place-content: center;
  gap: 1rem;
  min-height: 420px;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: #fff;
}
.map-consent p { margin: 0 auto; max-width: 36ch; font-size: 0.95rem; color: #e4e6e2; }
.map-consent .btn { background: #fff; color: var(--ink); border-color: #fff; justify-self: center; }
.map-consent .btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.map-consent a { color: var(--gold-light); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Optionaler Hinweis (z. B. Saisonpause) – im HTML ein-/auskommentieren */
.notice {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 0.7rem var(--gutter);
  font-size: 0.95rem;
}

/* ==========================================================================
   Impressum / Fliesstext
   ========================================================================== */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-family: var(--sans); font-weight: 500; font-size: var(--step-0); margin: 2em 0 0.5em; letter-spacing: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.2em; }

/* ==========================================================================
   Fusszeile
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #e8eae7;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.25rem;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 28;
  font-size: 1.9rem;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 0.5rem;
}
.footer-brand .dot { margin-left: 0.15em; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-light);
  margin: 0 0 0.8rem;
  letter-spacing: 0.02em;
}
.site-footer p, .site-footer ul { margin: 0; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.25rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
/* Linie genau mittig: gleicher Abstand oberhalb und unterhalb */
.site-footer .footer-bottom {
  max-width: none;
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(201, 185, 138, 0.3);
  font-size: 0.9rem;
  color: #c3c8c3;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Abstand zwischen letztem Inhalt und Fusszeile */
main > section:last-of-type:not(.section) { padding-bottom: clamp(4rem, 9vw, 7rem); }

/* --- Nach oben --- */
.to-top {
  position: fixed;
  right: 1.1rem; bottom: 1.1rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 2.9rem; height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s, background-color 0.2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease; }
.to-top:hover { background: var(--ink); color: #fff; }
.to-top svg { width: 1.1rem; height: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
