/* ==========================================================================
   W.A.S. Redesign – Variante 2
   base.css: gemeinsame Grundlagen für alle Seiten
   (Schriften, Farben, Typografie, Buttons, Vorschauhinweis, Header,
   Navigation, Footer, Lightbox, Einblend-Animationen)
   Seitenspezifische Gestaltung steht in der jeweiligen Seiten-CSS-Datei.
   ========================================================================== */

/* ---------- Lokale Schriften (SIL Open Font License, siehe assets/fonts) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Gestaltungs-Variablen: hier Farben & Abstände zentral ändern ---------- */
:root {
  /* Dunkle Flächen (abgeleitet vom schwarzen Wappen-Hintergrund) */
  --night: #0c0d10;
  --night-2: #13151a;
  --night-3: #1b1e25;
  --night-4: #262a33;

  /* Gold aus dem W.A.S.-Wappen */
  --gold: #d6b25e;          /* Akzent auf dunklem Grund */
  --gold-light: #ecd393;
  --gold-deep: #7a5a12;     /* Gold-Text auf hellem Grund (Kontrast > 5:1) */
  --gold-line: rgba(214, 178, 94, 0.38);

  /* Helle Flächen (Pergamenttöne) */
  --ivory: #f6f1e5;
  --paper: #fffdf7;
  --sand: #ebe2cf;

  /* Text */
  --ink: #16171b;
  --ink-soft: #464852;
  --mist: #c3c6cf;          /* Fließtext auf dunklem Grund */
  --mist-soft: #a3a7b2;

  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(22, 23, 27, 0.14);

  --ok: #2f6b3f;
  --past: #6b6e78;
  --danger: #a32a20;

  /* Typografie */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mark: "Cinzel", "Trajan Pro", "Times New Roman", serif;

  --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.35vw, 1.38rem);
  --step-2: clamp(1.45rem, 1.28rem + 0.8vw, 1.95rem);
  --step-3: clamp(1.85rem, 1.5rem + 1.6vw, 2.85rem);
  --step-4: clamp(2.3rem, 1.7rem + 2.8vw, 4.2rem);

  /* Raster */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* Bewegung */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 650ms;
  --dur-4: 950ms;

  --header-h: 76px;
  --shadow-deep: 0 30px 60px -28px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 18px 40px -24px rgba(22, 23, 27, 0.35);
}

/* ---------- Reset & Grundlagen ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* Sanftes Scrollen erst nach dem Laden (main.js setzt .is-smooth),
   damit Sprunglinks von anderen Seiten sofort am Ziel landen */
@media (prefers-reduced-motion: no-preference) {
  html.is-smooth {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 450;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-2);
}

h4 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

strong {
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-light :focus-visible,
.section--light :focus-visible,
.section--paper :focus-visible {
  outline-color: var(--gold-deep);
}

::selection {
  background: var(--gold-light);
  color: var(--ink);
}

/* Das hidden-Attribut gilt immer, auch bei Elementen mit display: grid/flex */
[hidden] {
  display: none !important;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(820px + 2 * var(--gutter));
}

/* ---------- Abschnitte ---------- */
.section {
  position: relative;
  padding-block: var(--section);
}

.section--dark {
  background: var(--night);
  color: var(--mist);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--light {
  background: var(--ivory);
}

.section--paper {
  background: var(--paper);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  font-size: var(--step-1);
  color: var(--ink-soft);
}

.section--dark .section-head p {
  color: var(--mist);
}

/* Kleine Überzeile im Stil des Wappens (Versalien, Cinzel) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin: 0 0 1.1rem;
  font-family: var(--font-mark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section--dark .kicker,
.page-hero .kicker,
.hero .kicker,
.cta-band .kicker,
.on-dark .kicker {
  color: var(--gold);
}

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

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--night);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8em 1.35em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 0.98rem/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-soft),
    color var(--dur-2) var(--ease-soft), border-color var(--dur-2) var(--ease-soft),
    transform var(--dur-2) var(--ease);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn:hover {
  --btn-bg: var(--gold-light);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
}

.btn--dark {
  --btn-bg: var(--night);
  --btn-fg: #fff;
}

.btn--dark:hover {
  --btn-bg: var(--night-4);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-light);
  border-color: rgba(22, 23, 27, 0.35);
}

.btn--outline:hover {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
}

.btn .btn__arrow {
  transition: transform var(--dur-2) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 700;
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.text-link svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  transition: transform var(--dur-2) var(--ease);
}

.text-link:hover svg {
  transform: translateX(3px);
}

.section--dark .text-link,
.page-hero .text-link,
.cta-band .text-link,
.site-nav .text-link,
.on-dark .text-link {
  color: var(--gold);
}

.text-link:hover {
  border-bottom-width: 2px;
}

.ext-hint {
  font-size: 0.82em;
  font-weight: 600;
  opacity: 0.85;
}

/* ---------- Skip-Link & Vorschauhinweis ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.preview-bar {
  position: relative;
  z-index: 60;
  margin: 0;
  padding: 0.55rem var(--gutter);
  background: var(--gold-light);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

.preview-bar svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: -0.12em;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* bewusst ohne backdrop-filter: er würde das fixierte Mobilmenü auf Header-Höhe begrenzen */
  background: rgba(12, 13, 16, 0.96);
  border-bottom: 1px solid transparent;
  color: #fff;
  transition: background-color var(--dur-2) var(--ease-soft),
    border-color var(--dur-2) var(--ease-soft), box-shadow var(--dur-2) var(--ease-soft);
}

.site-header.is-scrolled {
  background: rgba(12, 13, 16, 0.97);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.8);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: auto;
  flex: none;
  border-radius: 6px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-mark);
  font-size: 1.22rem;
  letter-spacing: 0.12em;
  color: var(--gold-light);
}

.brand__sub {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  color: #e9eaee;
  font-size: 0.93rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-soft);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}

.site-nav__list a:hover {
  color: #fff;
}

.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__list a[aria-current="page"] {
  color: var(--gold-light);
}

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

.site-nav__cta {
  min-height: 44px;
  padding: 0.6em 1.05em;
  font-size: 0.9rem;
  white-space: nowrap;
}

.site-nav__extra {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 700 0.9rem/1 var(--font-body);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-1);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Kompakte Navigation unterhalb 1280 px */
@media (max-width: 1279px) {
  .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    overflow-y: auto;
    background: var(--night);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity var(--dur-2) var(--ease-soft), transform var(--dur-2) var(--ease),
      visibility 0s linear var(--dur-2);
  }

  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur-2) var(--ease-soft), transform var(--dur-2) var(--ease),
      visibility 0s;
  }

  .js .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .site-nav__list li {
    border-bottom: 1px solid var(--line-dark);
  }

  .js .site-nav__list a {
    width: 100%;
    min-height: 58px;
    padding-inline: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 520;
  }

  .js .site-nav__list a::after {
    left: 0;
    right: auto;
    width: 36px;
    bottom: 10px;
  }

  .js .site-nav__cta {
    align-self: flex-start;
    min-height: 52px;
    font-size: 1rem;
  }

  .js .site-nav__extra {
    display: block;
    margin: 0;
    color: var(--mist);
    font-size: 0.92rem;
  }

  .js .site-nav__extra a {
    color: var(--gold-light);
  }

  body.nav-open {
    overflow: hidden;
  }

  /* Ohne JavaScript: Navigation bleibt als umbrechende Liste sichtbar */
  .no-js .nav-toggle {
    display: none;
  }

  .no-js .site-header {
    position: relative;
  }

  .no-js .site-header__inner {
    flex-wrap: wrap;
    padding-block: 0.6rem;
  }

  .no-js .site-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .no-js .site-nav__list {
    flex-wrap: wrap;
  }
}

/* Zwischen 1280 und 1439 px braucht die ausgeschriebene Navigation den Platz */
@media (min-width: 1280px) and (max-width: 1439px) {
  .brand__sub {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand__sub {
    display: none;
  }

  .nav-toggle__label {
    display: none;
  }

  .brand img {
    width: 44px;
  }
}

/* ---------- Seitenkopf der Unterseiten ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 2.5rem + 5vw, 7rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--night);
  color: var(--mist);
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(214, 178, 94, 0.16), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(214, 178, 94, 0.08), transparent 60%);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.9rem);
  color: #fff;
}

.page-hero .lead {
  max-width: 62ch;
  color: var(--mist);
}

.breadcrumb {
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--mist-soft);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ---------- Gemeinsame Bausteine ---------- */
.card {
  position: relative;
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper);
}

.section--dark .card {
  border-color: var(--line-dark);
  background: var(--night-2);
}

.fact-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list > div,
.fact-list > li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line-light);
}

.fact-list dt {
  color: var(--ink-soft);
}

.fact-list dd {
  margin: 0 0 0 auto;
  font-weight: 700;
  text-align: right;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-deep);
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) 5px 9px / 4px 1.5px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) 7px 5px / 1.5px 6px no-repeat;
  transform: rotate(40deg);
}

.section--dark .check-list li::before {
  border-color: var(--gold);
  background:
    linear-gradient(var(--gold), var(--gold)) 5px 9px / 4px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 7px 5px / 1.5px 6px no-repeat;
}

.note {
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--gold-deep);
  border-radius: 0 10px 10px 0;
  background: rgba(214, 178, 94, 0.12);
  font-size: 0.95rem;
}

.section--dark .note {
  border-left-color: var(--gold);
  color: var(--mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background: rgba(214, 178, 94, 0.18);
  color: var(--gold-deep);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.section--dark .tag {
  color: var(--gold-light);
}

/* Kontakt-Aufruf, wiederkehrend am Seitenende */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  background: var(--night-2);
  color: var(--mist);
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 120% at 100% 0%, rgba(214, 178, 94, 0.18), transparent 55%);
}

.cta-band__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.4em;
}

.cta-band__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 560;
  color: var(--gold-light);
  text-decoration: none;
  white-space: nowrap;
}

.cta-band__phone:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1.3fr 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--mist);
  font-size: 0.95rem;
}

.site-footer a {
  color: #eef0f3;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.site-footer__top {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem) 3rem;
}

@media (min-width: 720px) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .site-footer__top {
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
  }
}

.site-footer h2 {
  margin: 0 0 1rem;
  font-family: var(--font-mark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer__brand img {
  width: 96px;
  margin-bottom: 1rem;
  border-radius: 10px;
}

.site-footer__claim {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.3;
  color: #fff;
}

.site-footer address {
  font-style: normal;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.15rem;
}

.site-footer__links a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.3em; /* sichtbarer Abstand vor „(extern)“ – Leerraum allein wird im Flex-Layout verworfen */
  min-height: 44px;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
  font-weight: 650;
}

.contact-line svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--gold);
}

.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.25rem;
  margin: 0;
}

.hours dt {
  color: var(--mist-soft);
}

.hours dd {
  margin: 0;
  color: #eef0f3;
  font-variant-numeric: tabular-nums;
}

.social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: border-color var(--dur-2), background-color var(--dur-2);
}

.social a:hover {
  border-color: var(--gold);
  background: rgba(214, 178, 94, 0.12);
}

.social svg {
  width: 19px;
  height: 19px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.86rem;
  color: var(--mist-soft);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__preview {
  color: var(--gold-light);
  font-weight: 650;
}

/* ---------- Lightbox (Galerie und vergrößerbare Fotos) ---------- */
.lightbox {
  width: min(1100px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(6, 7, 9, 0.9);
}

.lightbox__inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: 12px var(--gutter) 16px;
}

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
}

.lightbox__count {
  font-size: 0.9rem;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px -30px #000;
}

.lightbox__caption {
  margin: 0.9rem auto 0;
  max-width: 70ch;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #eef0f4;
}

.lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(19, 21, 26, 0.85);
  color: #fff;
  font: 700 0.9rem/1 var(--font-body);
  cursor: pointer;
}

.lightbox__btn:hover {
  border-color: var(--gold);
}

.lightbox__btn svg {
  width: 20px;
  height: 20px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 0;
}

.lightbox__nav--next {
  right: 0;
}

.lightbox[data-single] .lightbox__nav,
.lightbox[data-single] .lightbox__count {
  display: none;
}

@media (max-width: 640px) {
  .lightbox__nav {
    top: auto;
    bottom: -4px;
    transform: none;
  }
}

/* Vergrößerbare Bilder: sichtbarer Hinweis-Button */
.zoomable {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
}

.zoomable__hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(12, 13, 16, 0.85);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  pointer-events: none;
}

.zoomable__hint svg {
  width: 15px;
  height: 15px;
}

/* ---------- Einblend-Animationen (nur mit JavaScript, siehe main.js) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity var(--dur-3) var(--ease-soft), transform var(--dur-4) var(--ease);
  transition-delay: var(--delay, 0ms);
}

/* seitliche Einblendung nur auf breiten Bildschirmen (verhindert Überlauf auf Mobilgeräten) */
@media (min-width: 1100px) {
  .js [data-reveal="left"] {
    transform: translate3d(-36px, 0, 0);
  }

  .js [data-reveal="right"] {
    transform: translate3d(36px, 0, 0);
  }
}

.js [data-reveal="scale"] {
  transform: scale(0.96);
}

.js [data-reveal="line"] {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left center;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Bewegung reduzieren: alles sofort sichtbar, keine aufwendigen Übergänge */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Druck ---------- */
@media print {
  .preview-bar,
  .site-header,
  .nav-toggle,
  .cta-band,
  .lightbox {
    display: none !important;
  }

  body {
    background: #fff;
  }
}

/* ==========================================================================
   Räumliche Illustrationen (gemeinsame Grundlagen)
   Steuerung: assets/js/szenen.js · szenenspezifische Stile in der Seiten-CSS
   ========================================================================== */
.illu {
  position: relative;
  margin: 0;
}

.illu svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.illu__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  font-family: var(--font-mark);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist-soft);
  pointer-events: none;
}

.illu__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--mist-soft);
}

.illu__meta p {
  margin: 0;
}

.illu__replay {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: #eef0f3;
  font: 700 0.86rem/1 var(--font-body);
  cursor: pointer;
  transition: border-color var(--dur-2), background-color var(--dur-2);
}

.illu__replay:hover {
  border-color: var(--gold);
  background: rgba(214, 178, 94, 0.1);
}

.illu__replay svg {
  width: 16px;
  height: 16px;
}

.illu--light .illu__replay {
  border-color: rgba(22, 23, 27, 0.3);
  color: var(--ink);
}

.illu--light .illu__meta {
  color: var(--ink-soft);
}

.no-js .illu__replay,
[data-illu].is-static .illu__replay {
  display: none;
}

/* Angehaltene Szene (außerhalb des Sichtbereichs) */
[data-illu].is-paused *,
[data-illu].is-paused *::before,
[data-illu].is-paused *::after {
  animation-play-state: paused !important;
}

/* vereinfachte Darstellung auf schwachen Geräten: keine Weichzeichner */
[data-illu].is-lite [filter] {
  filter: none;
}

/* Ablaufschritte neben/unter einer Szene */
.illu-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: illu;
}

.illu-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-light);
  counter-increment: illu;
}

.illu-steps li::before {
  content: counter(illu);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 0.85rem;
}

.illu-steps strong {
  display: block;
  line-height: 1.3;
}

.illu-steps span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@keyframes illu-step-on {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

@keyframes illu-step-badge {
  0% {
    background: var(--night);
    transform: scale(1);
  }
  40% {
    background: var(--gold);
    transform: scale(1.15);
  }
  100% {
    background: var(--gold);
    color: var(--night);
    transform: scale(1);
  }
}

.illu-wrap.is-waiting .illu-steps li {
  opacity: 0.35;
}

.illu-wrap.is-played .illu-steps li {
  animation: illu-step-on 500ms var(--ease-soft) both;
  animation-delay: var(--t, 0s);
}

.illu-wrap.is-played .illu-steps li::before {
  animation: illu-step-badge 700ms var(--ease) both;
  animation-delay: var(--t, 0s);
}

.illu-wrap.is-paused .illu-steps li,
.illu-wrap.is-paused .illu-steps li::before {
  animation-play-state: paused;
}
