/* =============================================================
   Wer schreibt, der bleibt — geteiltes Site-Design
   Stützt sich auf Bootstrap 5.3, vereinheitlicht Bootstrap- und
   Legacy-Markup (zwei Template-Familien) zu einer Optik.
   ============================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Open Sans Local";
  src: url("../OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans Local";
  src: url("../OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "The Girl Next Door";
  src: url("../TheGirlNextDoor.ttf") format("truetype");
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --ink: #24170d;
  --ink-soft: #4a341b;
  --paper: rgba(255, 250, 238, .94);
  --paper-soft: rgba(243, 226, 191, .85);
  --paper-bg: #f3e2bf;
  --sepia: #8b5a2b;
  --accent: #a85a1f;
  --accent-soft: #c47239;
  --accent-deep: #6d3a14;
  --line: rgba(139, 90, 43, .25);
  --line-strong: rgba(139, 90, 43, .55);

  --shadow-sm: 0 2px 6px rgba(70, 40, 10, .14);
  --shadow-md: 0 .75rem 1.8rem rgba(36, 23, 13, .16);
  --shadow-lg: 0 1.2rem 2.6rem rgba(36, 23, 13, .22);

  --radius-sm: .35rem;
  --radius: .6rem;
  --radius-lg: 1rem;

  --nav-h: 64px;

  --font-display: "The Girl Next Door", "Caveat", cursive;
  --font-body: "Open Sans Local", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Bootstrap-Override, damit alle .btn-primary etc. den Akzent erben */
  --bs-primary: var(--accent);
  --bs-primary-rgb: 168, 90, 31;
  --bs-link-color: var(--accent-deep);
  --bs-link-hover-color: var(--accent);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--paper-bg);
  background-repeat: no-repeat, repeat;
  background-size: cover, 520px auto;
  background-attachment: fixed, fixed;
  background-position: center, center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

@media (max-width: 768px) {
  body { background-attachment: scroll, scroll; background-size: cover, 360px auto; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); transition: color .2s; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ---------- Header / Navbar (Bootstrap + Legacy) ---------- */
.navbar,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 226, 191, .82) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: var(--nav-h);
}

.navbar-brand,
.brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink) !important;
  text-decoration: none;
  letter-spacing: .3px;
  line-height: 1.05;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sepia);
  margin-top: -4px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-nav .nav-link,
.nav-links a {
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  position: relative;
}
.navbar-nav .nav-link::after,
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after,
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}
.navbar-nav .nav-link.active,
.nav-links a.active {
  color: var(--accent-deep) !important;
}

/* Legacy mobile drawer */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  align-items: center;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  transition: transform .3s, top .3s, opacity .2s, background .25s;
}
.menu-toggle span::before { content: ""; position: absolute; top: -6px; left: 0; }
.menu-toggle span::after  { content: ""; position: absolute; top:  6px; left: 0; }
.menu-toggle[aria-expanded="true"] { background: rgba(243,226,191,.6); border-color: var(--accent); }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg);  background: var(--accent-deep); }
.menu-toggle[aria-expanded="true"] span::after  { top: -2px; transform: rotate(-45deg); background: var(--accent-deep); }

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed; top: 0; right: 0; width: 80%; max-width: 340px;
    height: 100vh;
    background: rgba(243, 226, 191, .97);
    backdrop-filter: blur(14px);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 80px 24px 28px;
    box-shadow: -8px 0 24px rgba(70, 40, 10, .18);
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y: auto;
    z-index: 105;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 18px 0; font-size: 17px; min-height: 44px; }
}

/* ---------- Hero (beide Templates) ---------- */
.hero,
.hero-section {
  display: flex;
  align-items: center;
  min-height: 38vh;
  padding: 3rem 0;
}
.hero .hero-text,
.hero-section .container > .row {
  max-width: 1100px;
  margin: 0 auto;
}
.hero-section .container {
  background: linear-gradient(90deg, rgba(255, 250, 238, .97), rgba(255, 250, 238, .55));
  border-left: .4rem solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.hero .hero-text {
  padding: 0 24px;
}

.hero-section h1,
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1.2rem;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 248, 220, .6), 0 4px 18px rgba(70, 40, 10, .15);
  animation: drift 9s ease-in-out infinite;
}

.hero-section .lead,
.hero-lead,
.hero-body {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-lead { font-style: italic; }

/* ---- Hero polish (centered eyebrow + finale layout) ---- */
.hero-eyebrow,
.hero-section .text-uppercase.small.fw-semibold.text-primary-emphasis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  letter-spacing: 4px;
  color: var(--sepia) !important;
  margin-bottom: .75rem;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.hero-eyebrow::before,
.hero-eyebrow::after,
.hero-section .text-uppercase.small.fw-semibold.text-primary-emphasis::before,
.hero-section .text-uppercase.small.fw-semibold.text-primary-emphasis::after {
  content: "";
  flex: 0 0 32px;
  height: 1px;
  background: var(--line-strong);
}
@media (max-width: 480px) {
  .hero-eyebrow,
  .hero-section .text-uppercase.small.fw-semibold.text-primary-emphasis {
    flex-direction: column;
    gap: 8px;
  }
  .hero-eyebrow::before,
  .hero-section .text-uppercase.small.fw-semibold.text-primary-emphasis::before {
    display: none;
  }
  .hero-eyebrow::after,
  .hero-section .text-uppercase.small.fw-semibold.text-primary-emphasis::after {
    flex: 0 0 1px;
    width: 40px;
  }
}
.hero-questions {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 auto 1.5rem;
  max-width: 640px;
}
.hero-questions li + li { margin-top: .35rem; }
.hero-callout {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: .3px;
  margin-bottom: .25rem;
}
.hero-prelude {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--sepia);
  margin-bottom: 1rem;
}
.hero-finale {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 1.05;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 248, 220, .6), 0 4px 18px rgba(70, 40, 10, .15);
  margin: .25rem 0 0;
}
.hero-ornament {
  display: block;
  width: 140px;
  height: 12px;
  margin: 1.25rem auto 0;
  background: radial-gradient(circle at center, var(--sepia) 0 2px, transparent 3px) center/14px 12px repeat-x;
  opacity: .55;
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ---------- Section-Title (Legacy + Modern) ---------- */
.section-title {
  text-align: center;
  margin: 2.2rem 0 1.6rem;
}
.section-title h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  margin: 0;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--sepia), transparent);
}

/* ---- Section Eyebrow (über Section-Title) ---- */
.section-eyebrow {
  text-align: center;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: .35rem;
}

/* ---------- Content Article ---------- */
.content-article,
.article {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.content-article p,
.article p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1rem;
  color: var(--ink);
  hyphens: auto;
}
.content-article h2,
.article h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--accent-deep);
  margin: 1.6rem 0 .6rem;
}
.content-article h2 a,
.article h2 a {
  color: inherit;
  text-decoration: none;
}
.content-article h2 a:hover,
.article h2 a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.content-article p a,
.article p a {
  color: var(--accent-deep);
  font-weight: 500;
  text-decoration: none;
}
.content-article p a:hover,
.article p a:hover { text-decoration: underline; }

/* ---------- Cards (Bootstrap + Legacy) ---------- */
.content-card,
.card {
  background: var(--paper) !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.content-card:hover,
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md) !important;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--accent-deep);
  line-height: 1.1;
}
.card-text,
.card-body p {
  font-family: var(--font-serif);
  line-height: 1.6;
  color: var(--ink-soft);
}
.card-img-top {
  height: 210px;
  object-fit: cover;
  filter: saturate(.95);
  transition: transform .6s ease, filter .3s ease;
}
.card-img-top.card-img-natural {
  height: auto;
  max-height: 300px;
  object-fit: contain;
  background: var(--paper);
  padding: .5rem;
}
.content-card:hover .card-img-top,
.card:hover .card-image img,
.card:hover .card-img-top {
  transform: scale(1.06);
  filter: saturate(1.05);
}
.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d9bf8a;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .3s ease;
}
.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(43, 29, 14, .35));
}
.card-cta {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .25s ease, color .25s;
}
.card-cta::after { content: "→"; font-size: 16px; letter-spacing: 0; }
.card:hover .card-cta,
.content-card:hover .card-cta { gap: 14px; color: var(--accent-deep); }

.card-no-image::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--sepia));
}

/* ---- Feature Card (Kicker + Pfeil-CTA) ---- */
.feature-card .card-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sepia);
  font-weight: 600;
  margin-bottom: .35rem;
}
.feature-card .card-title { margin-bottom: .75rem; }
.feature-card .card-text {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.feature-card .card-cta { align-self: flex-start; }

/* ---- Topic-Chips (Hero-Quick-Links) ---- */
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.topic-chip::after {
  content: "→";
  transition: transform .2s;
  font-size: 14px;
  line-height: 1;
}
.topic-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--accent-deep) !important;
  background: var(--paper);
}
.topic-chip:hover::after { transform: translateX(3px); }

/* ---- Timeline (Story-Block mit alternierendem Bild/Text) ---- */
.timeline-row {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.timeline-row:last-child { margin-bottom: 0; }
.timeline-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #d9bf8a;
  position: relative;
  aspect-ratio: 4 / 3;
}
.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .3s ease;
  filter: saturate(.95);
  display: block;
}
.timeline-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 60%, rgba(43, 29, 14, .28));
}

/* Informative Bilder (Tabellen, Karten, Manuskripte, Diagramme): kein Crop,
   ganzes Bild zeigen, heller Papier-Hintergrund statt Sepia, kein Dunkel-Verlauf */
.timeline-image.is-informative {
  aspect-ratio: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(.5rem, 1.5vw, 1rem);
}
.timeline-image.is-informative img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
}
.timeline-image.is-informative::after { display: none; }
.timeline-row:hover .timeline-image.is-informative img {
  transform: none;
  filter: none;
}
.timeline-row:hover .timeline-image img {
  transform: scale(1.03);
  filter: saturate(1.05);
}
.timeline-content { padding: 0 .25rem; }
.timeline-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sepia);
  font-weight: 600;
  margin-bottom: .35rem;
}
.timeline-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--accent-deep);
  margin: 0 0 .8rem;
  line-height: 1.15;
}
.timeline-content p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  hyphens: auto;
}
.timeline-content p:last-child { margin-bottom: 0; }

/* ---- Guardia-/Highlight-Block (zentrierter Kicker + Sepia-Linie) ---- */
.guardia,
.highlight-block {
  text-align: center;
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}
.guardia .kicker,
.highlight-block .kicker {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: .25rem;
}
.guardia h2,
.highlight-block h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--accent-deep);
  margin: 0 0 1.25rem;
}
.guardia h2::after,
.highlight-block h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  margin: .75rem auto 0;
  background: linear-gradient(90deg, transparent, var(--sepia), transparent);
}
.guardia p,
.highlight-block p { font-size: 1.08rem; }
.guardia-logo {
  width: clamp(110px, 16vw, 160px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--paper);
  padding: 6px;
  box-shadow:
    0 0 0 1px var(--line-strong) inset,
    0 0 0 6px rgba(255, 250, 238, .6),
    0 0 0 7px var(--line),
    var(--shadow-md);
  transition: transform .4s ease, box-shadow .4s ease;
}
.guardia-logo:hover {
  transform: rotate(-2deg) scale(1.03);
  box-shadow:
    0 0 0 1px var(--line-strong) inset,
    0 0 0 6px rgba(255, 250, 238, .6),
    0 0 0 7px var(--line),
    var(--shadow-lg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.cards-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px 60px;
}

/* ---------- Galerie / Figuren ---------- */
.gallery-frame,
.gallery {
  max-width: 980px;
  margin: 0 auto;
  background: var(--paper) !important;
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 2rem);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}
.exhibit-image,
.gallery figure,
.gallery-frame img {
  background: #f5e6c4;
  border: .35rem solid #f5e6c4;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
figure {
  margin: 0 0 1.4rem;
}
figure a img,
.figure a img {
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: zoom-in;
}
figure a:hover img,
.figure a:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow-md) !important;
}
.figure-caption {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--sepia);
  font-size: .95rem;
  text-align: center;
}
.figure-caption a {
  color: inherit;
  text-decoration: none;
}
.figure-caption a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Schriftrollen-Galerie-Nav */
.gallery-nav {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.gallery-nav a, .gallery-nav span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.gallery-nav a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--paper);
  color: var(--accent-deep);
}
.gallery-nav span { opacity: .4; cursor: default; }

/* ---------- Buttons ---------- */
.btn-outline-primary {
  --bs-btn-color: var(--accent-deep);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
}
.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-deep);
  --bs-btn-hover-border-color: var(--accent-deep);
}
.btn-link {
  --bs-btn-color: var(--accent-deep);
  --bs-btn-hover-color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer,
footer.site-footer {
  background: #24170d !important;
  color: #f3e2bf;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.site-footer .container,
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.site-footer a,
.footer-inner a,
.sitemap a {
  color: #d9b87a !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-footer a:hover,
.footer-inner a:hover,
.sitemap a:hover {
  color: #f5d99a !important;
  border-bottom-color: var(--accent);
}
.sitemap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  font-size: 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(243, 226, 191, .18);
  padding-top: 1.2rem;
  font-size: 13px;
  color: rgba(243, 226, 191, .75);
  text-align: center;
}
.footer-bottom a { font-size: 13px; }

/* ---- Footer-Top: Logo-Brand + Spalten-Navigation ---- */
.footer-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(243, 226, 191, .18);
  margin-bottom: 1.2rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
}
.footer-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(243, 226, 191, .1);
  padding: 5px;
  box-shadow: 0 0 0 1px rgba(243, 226, 191, .22), 0 4px 14px rgba(0, 0, 0, .35);
  margin-bottom: .35rem;
  transition: transform .35s ease, box-shadow .35s ease;
}
.footer-logo:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 1px rgba(243, 226, 191, .35), 0 6px 20px rgba(0, 0, 0, .45);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #f3e2bf;
  line-height: 1.2;
  text-decoration: none;
}
.footer-brand-name:hover { color: #f5d99a !important; }
.footer-brand-tagline {
  font-family: var(--font-serif);
  font-size: .88rem;
  color: rgba(243, 226, 191, .55);
  line-height: 1.55;
  margin: .1rem 0 0;
  font-style: italic;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
}
.footer-col h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(243, 226, 191, .45);
  margin: 0 0 .7rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.footer-col ul li a { font-size: .88rem; border-bottom: none; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-brand-tagline { max-width: none; }
}
@media (max-width: 380px) {
  .footer-nav { grid-template-columns: 1fr; }
}

/* ---------- Reveal-Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ---------- Back-to-Top ---------- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--accent-deep);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Print ---------- */
@media print {
  .navbar, .site-header, .menu-toggle, .back-to-top, .site-footer, .gallery-nav {
    display: none !important;
  }
  body { background: #fff !important; color: #000; }
  .content-article, .article { box-shadow: none; background: #fff; }
}
