/* Montsolis LLC — One-Pager v3.1
   Design-Plan: B_Web/02_Design/design-plan.md. Navy, Gold und Serife sind vom Kunden gepinnt (Mood).
   Innenabstand an farbigen Flächen in px-Stufen (impeccable liest clamp() im padding als 0). */

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --night: #061422;          /* Grund: Himmel vor der Dämmerung */
  --night-raised: #0B1D2F;   /* Felder */
  --night-deep: #040F1A;     /* Fusszeile */
  --ivory: #F7EEE0;          /* Titel, Werte, Fokus */
  --ivory-soft: #E6DDCF;     /* Lead */
  --stone: #C0BDBB;          /* Fliesstext */
  --mist: #8F949A;           /* Nebentext */
  --gold: #A68750;           /* Akzent */
  --gold-hi: #C4A570;        /* Gold auf Nachtgrund */
  --gold-light: #D8BD8A;     /* Gold für Text auf Fotos (hält 4,5 : 1 über dem Morgenhimmel) */
  --gold-line: #7A6447;      /* nur Linien */

  --f-serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-sans: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 6vw, 112px);
  --ease: cubic-bezier(.25, .8, .25, 1);
  --bar-h: 64px;

  --mast-pad: clamp(20px, 4.4svh, 52px);           /* Abstand Kopf zum oberen Rand */
  --logo-w: clamp(124px, min(14vw, 24svh), 300px);  /* Logo im Hero; Höhe = Breite × 0,856 */
  --mast-link: calc(var(--logo-w) * .2);           /* Menü und Kontakt auf Höhe des Emblems */
}

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

html {
  background: var(--night);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 24px);
  scrollbar-color: var(--gold-line) var(--night);
}
html:has(.menu[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--night);
  color: var(--stone);
  font-family: var(--f-sans);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
input, textarea { caret-color: var(--gold-hi); }
a { color: var(--gold-hi); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--ivory); }
strong { font-weight: 550; color: var(--stone); }

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h2 {
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 4.2vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.005em;
  color: var(--ivory);
}

::selection { background: rgba(166, 135, 80, .45); color: #fff; }

:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--gutter), 1560px); }

.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 12px 18px;
  background: var(--ivory); color: var(--night);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.skip-link:hover { color: var(--night); }   /* sonst gewinnt a:hover: Elfenbein auf Elfenbein */

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

/* Links mit Goldlinie — wie «Profil» und «Schwerpunkte» im Mood */
.line-link {
  position: relative;
  display: inline-block;
  padding: 14px 0 13px;
  font-family: var(--f-sans);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-hi);
  text-decoration: none;
  transition: color .3s;
}
.line-link::before,
.line-link::after {
  content: "";
  position: absolute; left: 0; right: .28em; bottom: 5px;
  height: 1px;
}
.line-link::before { background: var(--gold-line); }
.line-link::after {
  background: var(--gold-hi);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.line-link:hover, .line-link:focus-visible { color: var(--ivory); }
.line-link:hover::after, .line-link:focus-visible::after { transform: scaleX(1); }

.nav-links { display: flex; gap: clamp(24px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }

/* Kontakt: Haarlinie in Gold, eckig wie die Knöpfe im Formular; füllt sich bei Zeigen und Fokus */
.cta {
  display: inline-block;
  padding: 13px 22px 12px;
  border: 1px solid var(--gold);
  color: var(--ivory);
  font: 500 .75rem/1 var(--f-sans);
  letter-spacing: .28em; text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s, border-color .3s, color .3s;
}
.cta span { margin-right: -.28em; }
.cta:hover, .cta:focus-visible { background: var(--gold-light); border-color: var(--gold-light); color: var(--night); }

/* Menü-Knopf: nur auf schmalen Bildschirmen, dort ersetzt er die Links */
.menu-btn, .menu__close {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0; padding: 13px 6px 12px 0;
  border: 0; background: none;
  color: var(--gold-light);
  font: 500 .75rem/1 var(--f-sans);
  letter-spacing: .24em; text-transform: uppercase;
  cursor: pointer;
  transition: color .3s;
}
.menu-btn { display: none; }
.menu-btn:hover, .menu-btn:focus-visible, .menu__close:hover, .menu__close:focus-visible { color: var(--ivory); }
.menu-btn__icon { width: 22px; height: 7px; border-block: 1px solid currentColor; }

/* ---------- Kopf über dem Hero: Menü links, Logo mittig, Kontakt rechts ---------- */
.masthead { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.masthead__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  padding-top: var(--mast-pad);
}
.masthead__nav { justify-self: start; margin-top: var(--mast-link); }
.masthead .line-link, .masthead .menu-btn { color: var(--gold-light); }
.masthead .line-link:hover, .masthead .line-link:focus-visible, .masthead .menu-btn:hover { color: var(--ivory); }
.masthead__brand { margin: 0; }
.masthead__brand img { width: var(--logo-w); }
.masthead .cta {
  justify-self: end; margin-top: var(--mast-link);
  border-color: rgba(216, 189, 138, .7);
  background: rgba(6, 20, 34, .2);
}
.masthead .cta:hover, .masthead .cta:focus-visible { background: var(--gold-light); border-color: var(--gold-light); }

/* ---------- Kompakter Kopf nach dem Hero ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--night);   /* deckend: kein Text scheint durch */
  border-bottom: 1px solid rgba(122, 100, 71, .55);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s;
}
.bar.is-visible {
  transform: none;
  visibility: visible;
  transition: transform .45s var(--ease);
}
.bar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: var(--bar-h);
}
.bar__nav { justify-self: start; }
.bar__home { display: block; padding: 8px; }
.bar__home img { width: 38px; }
.bar .cta { justify-self: end; padding: 11px 18px 10px; }

/* ---------- Menü als Vollbild (schmale Bildschirme) ---------- */
.menu {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: var(--night);
  color: var(--stone);
  overscroll-behavior: contain;
}
.menu[open] { display: flex; flex-direction: column; animation: menu-in .35s var(--ease); }
.menu::backdrop { background: var(--night); }
@keyframes menu-in { from { opacity: 0; } }
.menu__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: var(--bar-h);
  border-bottom: 1px solid rgba(122, 100, 71, .55);
}
.menu__close { justify-self: start; }
.menu__x { position: relative; width: 16px; height: 16px; }
.menu__x::before, .menu__x::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 50%;
  height: 1px; background: currentColor;
  transform: rotate(45deg);
}
.menu__x::after { transform: rotate(-45deg); }
.menu__mark { width: 32px; }
.menu__nav { flex: 1; display: flex; align-items: center; }
.menu__nav ul { width: 100%; margin: 0; padding: 0; list-style: none; }
.menu__nav li + li { border-top: 1px solid rgba(122, 100, 71, .45); }
.menu__nav a {
  display: block; padding: 20px 0 18px;
  font-family: var(--f-serif); font-size: 2.25rem; line-height: 1.1;
  color: var(--ivory); text-decoration: none;
  transition: color .3s;
}
.menu__nav a:hover, .menu__nav a:focus-visible { color: var(--gold-light); }
.menu__foot {
  margin-block: 0; padding-bottom: 36px;
  font-size: .75rem; font-weight: 500; line-height: 1.3;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-hi);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--night);
}
.hero__img {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 52.6%;   /* Horizont des Bildes liegt bei 52,6 % */
}
/* Film über dem Foto: erstes Bild = Foto, spielt einmal, bleibt auf dem letzten Bild stehen (main.js) */
.hero__film {   /* Lage und Grösse setzt main.js: genau über dem Ausschnitt, den das Foto gerade zeigt */
  position: absolute; left: 0; top: 0; z-index: -3;
  object-fit: fill;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero__film.is-on { opacity: 1; }
.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background: var(--night);
  opacity: 0;
}
.hero__shade {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: 500px;
  background: linear-gradient(to bottom,
    rgba(6, 20, 34, 0) 0%,
    rgba(6, 20, 34, .5) 34%,
    rgba(6, 20, 34, .9) 58%,
    var(--night) 86%);
}
.hero__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--mast-pad) + var(--logo-w) * .856);   /* direkt unter dem Logo */
}
/* Logo und Goldzeile bilden die Mitte; der Name steht im Logo, nicht noch einmal gross daneben */
.hero__title {   /* Grösse und Zeilenhöhe am h1 selbst: die Goldzeile ist sein sichtbarer Text */
  margin-top: clamp(16px, 2.6svh, 30px);
  font-size: clamp(.8125rem, .5rem + .62vw, 1.1875rem);
  line-height: 1.3;
  text-align: center;
}
.hero__kind {
  display: inline-block;
  margin-right: -.42em;   /* Sperrung nach dem letzten Buchstaben ausgleichen, sonst steht die Zeile links von der Mitte */
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
@media (min-aspect-ratio: 21/9) {   /* 32:9 und 21:9: mehr Himmel unter der Goldzeile */
  .hero__img { object-position: 62% 38%; }
}

.hero__foot { margin-top: auto; padding-top: 40px; padding-bottom: clamp(18px, 3svh, 36px); text-align: center; }
.rule-label {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin: 0 0 clamp(14px, 2.6svh, 30px);
  font-size: .75rem; font-weight: 500; line-height: 1.2;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-light);
}
.rule-label::before, .rule-label::after {
  content: ""; width: clamp(36px, 9vw, 136px); height: 1px; background: var(--gold-line);
}
.rule-label span { margin-right: -.32em; }

.areas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1120px;
  margin: 0 auto; padding: 0;
  list-style: none;
}
.areas li { position: relative; }
.areas li + li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 1px; height: 46px; translate: 0 -50%;
  background: var(--gold-line);
}
.areas__link {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 8px 10px 10px;
  font-size: .75rem; font-weight: 500; line-height: 1.4;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  transition: color .3s;
}
.areas__link span { margin-right: -.26em; }
.areas__icon {
  width: 40px; height: 40px; overflow: visible;
  fill: none; stroke: var(--gold-hi); stroke-width: 1.25; stroke-linejoin: round;
  transition: stroke .3s, transform .5s var(--ease);
}
.areas__icon .icon-bars { stroke-width: 3; }
.areas__link:hover, .areas__link:focus-visible { color: #fff; }
.areas__link:hover .areas__icon, .areas__link:focus-visible .areas__icon { stroke: var(--ivory); transform: translateY(-3px); }
.hero__note {
  margin: clamp(18px, 3.6svh, 44px) 0 0;
  font-size: .8125rem; line-height: 1.5; letter-spacing: .04em;
  color: var(--mist);
}
.hero__note span { white-space: nowrap; }   /* bricht nur zwischen den beiden Sätzen um */

/* Erstes Licht: einmal beim Laden. Ausgangszustand ohne transition (head.js setzt .dawn, main.js .dawn-go) */
.dawn .hero__veil { opacity: .64; }
.dawn .hero__title { opacity: 0; transform: translateY(14px); }
.dawn-go .hero__veil { opacity: 0; transition: opacity 2.6s cubic-bezier(.33, 0, .2, 1) .1s; }
.dawn-go .hero__title {
  opacity: 1; transform: none;
  transition: opacity 1.4s ease .7s, transform 1.8s cubic-bezier(.2, .7, .2, 1) .7s;
}

/* ---------- Profil: Satz, Lot, Dreiklang (Runde 3, 29.10.2026) ---------- */
/* Das Markenbild ist die Überschrift; mittig wie der Hero, die Grundsätze mit Spaltenlinien wie die Schwerpunkt-Reihe */
.profile { padding-block: clamp(128px, 17vh, 192px) clamp(96px, 12vh, 136px); }
.profile__inner { text-align: center; }
.profile__statement {
  margin: 0 auto; max-width: 24ch;
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.75rem); line-height: 1.12; letter-spacing: -.012em;
  color: var(--ivory); text-wrap: balance;
}
.profile__lead {
  margin: clamp(24px, 3.2vh, 36px) auto 0; max-width: 36ch;
  font-family: var(--f-serif); font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); line-height: 1.5;
  color: var(--ivory-soft); text-wrap: balance;
}
.profile__plumb { display: block; width: 1px; height: clamp(56px, 8vh, 88px); margin: clamp(44px, 6.5vh, 68px) auto; background: var(--gold-line); }

/* Drei Grundsätze aus dem Namen (Berg: Geduld, Beständigkeit; Sonne: Klarheit). Das Band löst sie später auf */
.tenets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; margin: 0 auto; }
.tenet { padding: 6px clamp(24px, 3.4vw, 56px) 8px; }
.tenet + .tenet { border-left: 1px solid rgba(122, 100, 71, .45); }
.tenet dt {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 1.9vw, 1.875rem);
  line-height: 1.1;
  color: var(--ivory);
}
.tenet dd { margin: 14px auto 0; max-width: 30ch; color: var(--stone); text-wrap: balance; }

/* ---------- Schwerpunkte ---------- */
.focus { padding-block: 40px 144px; }   /* oben knapp: das Exponat bringt seinen eigenen Himmel mit, die Überschrift steht mittig daneben */
.focus__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 4vw, 72px);
  align-items: center;
}
.focus__intro p { margin-top: 28px; max-width: 34ch; font-size: 1.125rem; }

.exhibit {
  position: relative;
  margin: 0;
  aspect-ratio: 1.42;
}
.exhibit__img, .exhibit__marks {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.exhibit__img {   /* Rand läuft in den Grund aus; die Ziffern bleiben voll sichtbar */
  object-fit: cover; object-position: 50% 50%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
}
.exhibit__marks { overflow: visible; pointer-events: none; }
.mark { pointer-events: auto; cursor: default; }
.mark circle {
  fill: none; stroke: var(--ivory); stroke-width: 1; vector-effect: non-scaling-stroke;
  pointer-events: all;
  opacity: 0; transition: opacity .4s;
}
.mark text {
  font-family: var(--f-sans);
  font-size: 30px; font-weight: 300; letter-spacing: .12em;
  fill: var(--gold-hi);
  paint-order: stroke; stroke: rgba(6, 20, 34, .9); stroke-width: 7px; stroke-linejoin: round;
  transition: fill .4s;
}
.mark.is-active circle { opacity: .85; }
.mark.is-active text { fill: var(--ivory); }

.area-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 72px 0 0; padding: 44px 0 0;
  border-top: 1px solid var(--gold-line);
  list-style: none;
}
.area { padding: 6px clamp(20px, 2.4vw, 36px) 8px; border-left: 1px solid var(--gold-line); }
.area:first-child { padding-left: 0; border-left: 0; }
.area:last-child { padding-right: 0; }
.area__title {
  font-family: var(--f-serif);
  font-size: clamp(1.6rem, 2.1vw, 2.125rem);
  line-height: 1.12;
  color: var(--ivory);
}
.area__title::after {
  content: ""; display: block;
  width: 40px; height: 1px; margin: 22px 0 20px;
  background: var(--gold);
}
.area__num {
  display: block; margin-bottom: 20px;
  font-family: var(--f-sans);
  font-size: .9375rem; font-weight: 300; line-height: 1;
  letter-spacing: .14em;
  color: var(--gold-hi);
  transition: color .4s;
}
.area.is-active .area__num { color: var(--ivory); }
.area__line { margin-bottom: .8em; color: var(--stone); }
.area__more { margin: 0; font-size: .9375rem; line-height: 1.65; color: var(--mist); }

/* ---------- Namensband ---------- */
.band { background: var(--night); }
.band__photo {
  position: relative;
  isolation: isolate;
  min-height: max(100svh, 680px);   /* auf kurzen Bildschirmen bleibt genug Himmel über dem Horizont */
  display: flex;
  overflow: hidden;
}
.band__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 50%;
  background: #0c2440;   /* Himmelton, solange das Bild lädt */
}
.band__photo::after {   /* Kanten laufen in den Grund aus; links oben ein Schatten für den Text; Gipfel und Sonne bleiben frei */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--night) 0, rgba(6, 20, 34, .55) 12%, rgba(6, 20, 34, 0) 34%),
    radial-gradient(ellipse 64% 60% at 12% 24%, rgba(6, 20, 34, .62) 0, rgba(6, 20, 34, .34) 50%, rgba(6, 20, 34, 0) 100%),
    linear-gradient(to top, var(--night) 0, rgba(6, 20, 34, 0) 16%);
}
@media (max-aspect-ratio: 3/4) {   /* Hochformat: der Text läuft über die ganze Breite, also auch über der Sonne */
  .band__photo::after {
    background:
      linear-gradient(to bottom, var(--night) 0, rgba(6, 20, 34, .66) 10%, rgba(6, 20, 34, .4) 26%, rgba(6, 20, 34, .18) 36%, rgba(6, 20, 34, 0) 44%),
      linear-gradient(to top, var(--night) 0, rgba(6, 20, 34, 0) 16%);
  }
}
/* Titel, Zeile und Erklärung richten sich auch nach der Höhe: der Block bleibt im Himmel, über dem Horizont */
.band__body { padding-top: clamp(64px, 9svh, 176px); padding-bottom: 96px; }
.band__title {
  font-size: clamp(2.25rem, min(5.2vw, 8.4svh), 5.5rem);
  line-height: 1.02;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 0 32px rgba(6, 20, 34, .45);
}
.band__latin {
  margin: clamp(14px, 2svh, 22px) 0 0 .2em;
  font-size: .875rem; font-weight: 500; line-height: 1.3;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}
.band__text {
  max-width: 42ch;
  margin: clamp(20px, 3.4svh, 40px) 0 0;
  font-family: var(--f-serif);
  font-size: clamp(1.1875rem, min(1.75vw, 2.9svh), 1.75rem);
  line-height: 1.45;
  color: var(--ivory);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.band__text i { font-style: normal; color: var(--gold-light); }

/* ---------- Kontakt ---------- */
.contact { padding-block: 128px 144px; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px clamp(48px, 7vw, 128px);
  align-items: start;
}
.contact__info > p:first-of-type { margin-top: 28px; max-width: 38ch; }
.contact__address {
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--gold-line);
  font-family: var(--f-serif);
  font-size: 1.375rem; font-style: normal; line-height: 1.5;
  color: var(--ivory);
}
.contact__mail { margin-top: 24px; }
.contact__label {
  display: block; margin-bottom: 4px;
  font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mist);
}
.contact__mail a { font-family: var(--f-serif); font-size: 1.375rem; }

.form { display: grid; gap: 24px; }
.field label {
  display: block; margin-bottom: 10px;
  font-size: .75rem; font-weight: 500; line-height: 1.2;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--stone);
}
.field input, .field textarea {
  display: block; width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gold-line);
  border-radius: 0;
  background: var(--night-raised);
  color: var(--ivory);
  font: 400 1.0625rem/1.5 var(--f-sans);
  transition: border-color .25s;
}
.field textarea { min-height: 168px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--gold); }
.field input:focus, .field textarea:focus { border-color: var(--gold-hi); outline: 2px solid var(--ivory); outline-offset: 2px; }
.field--hp { display: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #E8B7A0; }
.field__error { margin: 8px 0 0; font-size: .9375rem; line-height: 1.5; color: #E8B7A0; }
.field__error:empty { display: none; }

.form__end { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; }
.btn {
  display: inline-block;
  padding: 18px 30px 17px;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font: 500 .8125rem/1 var(--f-sans);
  letter-spacing: .24em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.btn:hover { background: rgba(166, 135, 80, .16); border-color: var(--gold-hi); }
.btn:disabled { cursor: progress; opacity: .7; }
.form__note { flex: 1 1 16rem; margin: 0; font-size: .875rem; line-height: 1.55; color: var(--mist); }
.form__status { min-height: 1.6em; margin: 0; font-size: .9375rem; }
.form__status.is-ok { color: var(--ivory); }
.form__status.is-err { color: #E8B7A0; }

/* ---------- Fusszeile: Marke, Firmenangaben, Hinweis, Rechtliches ---------- */
.footer {
  padding-block: 80px 40px;
  border-top: 1px solid rgba(122, 100, 71, .5);
  background: var(--night-deep);
  font-size: .875rem;
}
.footer__top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(247, 238, 224, .07);
}
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__mark { width: 40px; }
.footer__name {
  margin: 0;
  font-size: .8125rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-hi);
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 40px; margin: 0; padding: 0; list-style: none; }
.footer__nav a {
  display: inline-block; padding: 10px 0;
  font-size: .75rem; font-weight: 500; line-height: 1.2;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--stone); text-decoration: none;
  transition: color .3s;
}
.footer__nav a:hover, .footer__nav a:focus-visible { color: var(--ivory); }
.footer__about { padding-block: 40px 48px; }
.footer__disclaimer { margin: 0; max-width: 76ch; line-height: 1.75; color: var(--mist); }
.footer__disclaimer strong { color: var(--stone); font-weight: 500; }
.footer__links { display: flex; gap: 8px 32px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.footer__links a { display: inline-block; padding: 6px 0; color: var(--stone); text-decoration: none; }
.footer__links a:hover { color: var(--ivory); text-decoration: underline; }
.footer__bottom {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 238, 224, .07);
}
.footer__copy { margin: 0; color: var(--mist); }
.footer__bottom .mt-credit { margin-left: auto; min-height: 24px; }   /* Zielgrösse 24 px (WCAG 2.5.8), die Vorlage selbst bleibt unberührt */

/* ---------- Rechtsseiten und 404 ---------- */
.bar--static { position: relative; transform: none; visibility: visible; transition: none; }
.legal { padding-block: 104px 128px; }
.legal__inner { max-width: 760px; }
.legal h1 {
  margin-bottom: 14px;
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05;
  color: var(--ivory);
}
.legal__meta { margin-bottom: 56px; color: var(--mist); font-size: .9375rem; }
.legal h2 { margin: 52px 0 14px; font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.25; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .35em; }
.legal address { font-style: normal; color: var(--ivory); }
.legal__back { margin-top: 64px; }

/* Moontech-Hinweis «Built by Moontech Labs» (Vorlage, nur die Farben angepasst) */
.mt-credit {
  --mt-text: #9EA3A8;
  --mt-text-hover: #F7EEE0;
  --mt-line: rgba(196, 165, 112, .22);
  --mt-label-bg: #F7EEE0;
  --mt-label-text: #061422;
  --mt-lit: #F7EEE0;
  --mt-dark: rgba(247, 238, 224, .13);
  --mt-rim: rgba(247, 238, 224, .5);
  --mt-glow: rgba(247, 238, 224, .6);
  --mt-ease: cubic-bezier(.25, 1, .5, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--mt-line);
  color: var(--mt-text);
  text-decoration: none;
  transition: color .3s;
}
.mt-credit:hover, .mt-credit:focus-visible { color: var(--mt-text-hover); }
a.mt-credit, a.mt-credit:hover, a.mt-credit:focus-visible { text-decoration: none; }
.mt-credit__moon { width: 1.35rem; height: 1.35rem; flex: none; overflow: visible; transition: filter .4s; }
.mt-credit__disc { fill: var(--mt-dark); stroke: var(--mt-rim); stroke-width: .8; }
.mt-credit__lit { fill: var(--mt-lit); }
.mt-credit:hover .mt-credit__moon, .mt-credit:focus-visible .mt-credit__moon { filter: drop-shadow(0 0 6px var(--mt-glow)); }
.mt-credit__phase {
  position: absolute; right: 0; bottom: calc(100% + .6rem);
  padding: .32rem .62rem .3rem; border-radius: 3px;
  background: var(--mt-label-bg); color: var(--mt-label-text);
  font-size: .8rem; line-height: 1.3; white-space: nowrap;
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity .3s, transform .35s var(--mt-ease);
}
.mt-credit:hover .mt-credit__phase, .mt-credit:focus-visible .mt-credit__phase { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {

  .focus { padding-block: 96px 112px; }
  .focus__head { grid-template-columns: minmax(0, 1fr); }
  .focus__intro p { max-width: 48ch; }
  .exhibit { aspect-ratio: 1.3; margin-inline: -4vw; }
  .mark text { font-size: 36px; }

  .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; padding-top: 0; }
  .area, .area:first-child, .area:last-child { padding: 36px 32px 32px; }
  .area:nth-child(odd) { padding-left: 0; border-left: 0; }
  .area:nth-child(even) { padding-right: 0; }
  .area:nth-child(n + 3) { border-top: 1px solid var(--gold-line); }

  .contact { padding-block: 104px 120px; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__info, .form { max-width: 680px; }
}

/* ---------- Schmal: Menü-Knopf statt Links ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }

  /* Kontakt links, Menü rechts unter dem Daumen; das Zeichen bleibt mittig, das Symbol sitzt aussen */
  .masthead__nav, .bar__nav { grid-column: 3; grid-row: 1; justify-self: end; }
  .masthead .cta, .bar .cta { grid-column: 1; grid-row: 1; justify-self: start; }
  .menu-btn, .menu__close { flex-direction: row-reverse; padding: 13px 0 12px 6px; }
  .menu__close { grid-column: 3; justify-self: end; }
  .menu__mark { grid-column: 2; grid-row: 1; }
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .line-link { letter-spacing: .2em; }
  .line-link::before, .line-link::after { right: .2em; }
  .bar__home img { width: 32px; }
  .cta, .bar .cta { padding: 12px 13px 11px; letter-spacing: .18em; }
  .cta span { margin-right: -.18em; }
  .menu-btn, .menu__close { gap: 10px; letter-spacing: .2em; }

  .hero__kind { letter-spacing: .3em; margin-right: -.3em; }
  .rule-label { gap: 14px; letter-spacing: .24em; }
  .rule-label span { margin-right: -.24em; }
  .areas li + li::before { height: 34px; top: 22px; translate: none; }
  .areas__link { gap: 10px; padding: 6px 2px 8px; letter-spacing: .1em; }
  .areas__link span { margin-right: -.1em; }
  .areas__icon { width: 30px; height: 30px; }

  .tenets { grid-template-columns: 1fr; }
  .tenet { padding: 26px 0; }
  .tenet + .tenet { border-left: 0; border-top: 1px solid rgba(122, 100, 71, .45); }

  .focus { padding-block: 80px 88px; }
  .exhibit { aspect-ratio: 1.12; margin-inline: -20px; }
  .mark text { font-size: 46px; stroke-width: 9px; }

  .area-list { grid-template-columns: minmax(0, 1fr); margin-top: 32px; border-top: 0; }
  .area, .area:first-child, .area:last-child,
  .area:nth-child(odd), .area:nth-child(even) {
    padding: 32px 0 30px;
    border-left: 0;
    border-top: 1px solid var(--gold-line);
  }

  .band__photo { min-height: max(100svh, 800px); }   /* die Sonne steht dann sicher unter dem Text */
  .band__body { padding-top: 64px; }
  .band__text { margin-top: 22px; font-size: 1.125rem; }

  .contact { padding-block: 88px 96px; }
  .form__end { align-items: flex-start; }

  .footer { padding-block: 56px 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__bottom .mt-credit { margin-left: 0; }
  .mt-credit { border-left: 0; padding-left: 0; }
  .mt-credit__phase { right: auto; left: 0; }

  .legal { padding-block: 72px 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .mt-credit, .mt-credit__moon, .mt-credit__phase { transition: none; }
}
