/* ==========================================================================
   Kolpingsfamilie Recke – Stylesheet
   Design-Tokens:
   --paper   : warmes Grundweiß
   --sand     : sanftes Sand für Bänder/Karten
   --ink       : dunkles Waldgrün für Überschriften
   --text      : warmes Anthrazit für Fließtext
   --ochre    : Haupt-Akzent (Buttons, Links)
   --rust      : Zweit-Akzent (Tags, Stich-Linie)
   --thread   : Fadenfarbe für den Stich-Trenner
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500;1,9..144,600&family=Work+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --paper: #FAF6EE;
  --sand: #F0E7D4;
  --ink: #1F3327;
  --ink-soft: #2E4A3B;
  --text: #3C382F;
  --ochre: #B9822C;
  --ochre-dark: #93641C;
  --rust: #A6472B;
  --thread: #8B6F47;
  --line: #DDD0B0;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 900px 500px at 12% -8%, rgba(185, 130, 44, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 12%, rgba(31, 51, 39, 0.07), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='2' cy='2' r='1' fill='%238B6F47' fill-opacity='0.10'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  background-attachment: fixed, fixed, fixed;
  color: var(--text);
  font-family: 'Work Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ochre-dark); text-decoration: none; }
a:hover { color: var(--rust); }

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  color: var(--ink);
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.03; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-block;
  margin-bottom: 0.9em;
  background: var(--sand);
  border: 1.5px dashed var(--thread);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  transform: rotate(-1.4deg);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* Fokus-Sichtbarkeit für Tastaturnutzung */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(139,111,71,0.18), 0 8px 20px -16px rgba(31,51,39,0.3);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark span { color: var(--rust); font-style: normal; }
.wordmark img {
  height: 46px;
  width: auto;
  display: block;
}

/* ---------- Foto-Elemente (echte Bilder statt Platzhalter) ---------- */
.photo {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 28px -18px rgba(31,51,39,0.35);
}

/* Sofortbild-Rahmen: gibt Fotos etwas Handgemachtes, Warmes */
.photo.polaroid {
  background: transparent;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  display: flex;
  filter: drop-shadow(0 16px 22px rgba(31,51,39,0.35));
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), filter 0.28s ease;
}
.photo.polaroid:hover {
  transform: scale(1.035) translateY(-4px) !important;
  filter: drop-shadow(0 22px 30px rgba(31,51,39,0.42));
}
.photo.polaroid img {
  border-radius: 0;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: auto;
  object-fit: contain;
}

/* Jahres-Stempel am Hero-Foto */
.badge-holder { position: relative; }
.year-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--rust);
  color: #FFFBF2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.3;
  box-shadow: 0 10px 22px -8px rgba(166,71,43,0.55), 0 0 0 4px var(--paper);
  transform: rotate(-8deg);
  z-index: 2;
}
@media (max-width: 640px) {
  .year-badge { width: 74px; height: 74px; font-size: 0.72rem; bottom: -12px; left: -12px; }
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero .photo { aspect-ratio: 4/3; }
.card .photo { aspect-ratio: 16/10; margin-bottom: 1rem; }

/* ---------- Leerer Terminplan (Platzhalter-Hinweis) ---------- */
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 2.2rem;
  text-align: center;
  color: var(--ink-soft);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-block;
  transition: transform 0.22s cubic-bezier(.34, 1.56, .64, 1), color 0.18s ease;
}

nav.main-nav a:hover {
  color: var(--rust);
  transform: scale(1.14) translateY(-2px);
}

nav.main-nav a[aria-current="page"] {
  color: var(--rust);
  border-bottom: 1.5px solid var(--rust);
  padding-bottom: 2px;
}
nav.main-nav a[aria-current="page"]:hover {
  transform: scale(1.14) translateY(-3px);
}

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .wordmark { font-size: 1.3rem; }
  .wordmark img { height: 36px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    color: var(--ink);
    cursor: pointer;
  }
  nav.main-nav {
    display: none;
    width: 100%;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 0 0.4rem;
  }
  .site-header .wrap { flex-wrap: wrap; }
}

/* ---------- Stich-Trenner (Signature-Element) ----------
   Anspielung auf Adolph Kolpings Ursprung: der Verein entstand
   1849 als Gesellenverein für wandernde Handwerksgesellen –
   u.a. Schneider. Die farbige Stichlinie mit kleinen Wimpeln
   zieht sich als wiederkehrendes Motiv "Naht für Naht" durch
   die Seite und erinnert zugleich an eine Fest-Wimpelkette. */
.stitch {
  height: 26px;
  margin: 0;
  position: relative;
  background-image:
    linear-gradient(90deg, var(--thread) 0 10px, transparent 10px 20px);
  background-size: 20px 2px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.7;
}
.stitch::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ochre) 0 3px,
    transparent 3px 34px,
    var(--rust) 34px 37px,
    transparent 37px 68px
  );
  background-position: center;
  height: 6px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
}
.stitch.tight { opacity: 0.4; height: 18px; }
.stitch.tight::before { opacity: 0.35; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.photo-slot {
  position: relative;
  background: linear-gradient(155deg, #DCE7DA, #EFE6CF);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 12px 28px -18px rgba(31,51,39,0.35);
}
.photo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(31,51,39,0.25);
  margin: 10px;
  border-radius: 4px;
}
.photo-slot span { position: relative; max-width: 22ch; }

.hero .photo-slot,
.hero .photo { aspect-ratio: 4/3; position: relative; z-index: 1; }
.hero .photo.polaroid { aspect-ratio: auto; }

.hero > .wrap > div:last-child {
  position: relative;
}
.hero > .wrap > div:last-child::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(185,130,44,0.20), transparent 70%);
  z-index: 0;
  border-radius: 50%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ochre);
  color: #FFFBF2;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(185,130,44,0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn::after {
  content: "→";
  display: inline-block;
  transition: transform 0.18s ease;
}
.btn:hover::after { transform: translateX(3px); }
.btn:hover {
  background: var(--rust);
  color: #FFFBF2;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(166,71,43,0.55);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: none;
}
.btn.ghost:hover {
  border-color: var(--rust);
  color: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -10px rgba(31,51,39,0.25);
}

.actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Sections ---------- */
section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.band {
  background-color: var(--sand);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.35), transparent 40%);
  position: relative;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: 0 1px 2px rgba(31,51,39,0.04), 0 10px 24px -16px rgba(31,51,39,0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  border-top: 4px solid var(--ochre);
}
.grid-3 .card:nth-child(2) { border-top-color: var(--rust); }
.grid-3 .card:nth-child(3) { border-top-color: var(--ink-soft); }

/* Runde Schritt-Nummern (z. B. "In drei Schritten dabei") */
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ochre);
  color: #FFFBF2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.grid-3 .card:nth-child(2) .step-num { background: var(--rust); }
.grid-3 .card:nth-child(3) .step-num { background: var(--ink-soft); }
.card:hover {
  transform: translateY(-5px) rotate(-0.4deg) !important;
  box-shadow: 0 4px 10px rgba(31,51,39,0.06), 0 24px 36px -16px rgba(31,51,39,0.26);
}
.band .card { background: #FBF8EF; }

.card .photo,
.card .illustration { aspect-ratio: 16/10; margin-bottom: 1rem; }
.card .photo.polaroid { aspect-ratio: auto; }

.illustration {
  background: linear-gradient(155deg, #F0E7D4, #EFE6CF);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -18px rgba(31,51,39,0.35);
  padding: 0.5rem;
}
.illustration svg { width: 100%; height: 100%; }

.card p { margin: 0.5rem 0 1rem; }
.card a.more {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Termine / Events ---------- */
.event-list { display: flex; flex-direction: column; gap: 0; }
.event {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.3rem 1.2rem;
  border-bottom: 1px dashed var(--line);
  border-radius: 6px;
  transition: background 0.18s ease;
}
.event:hover { background: rgba(255,255,255,0.55); }
.event:first-child { border-top: 1px dashed var(--line); }
@media (max-width: 640px) {
  .event { grid-template-columns: 80px 1fr; }
  .event .tag { grid-column: 1 / -1; margin-top: 0.6rem; }
}
.event .date {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--rust);
  line-height: 1.2;
}
.event .date .day { font-size: 1.6rem; display: block; font-weight: 500; }
.event .date .month { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.event h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.event .meta { color: var(--ink-soft); font-size: 0.92rem; }
.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre-dark);
  border: 1.5px solid var(--ochre);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
  justify-self: end;
  transform: rotate(-2deg);
  background: rgba(185,130,44,0.06);
}

/* ---------- Zitat ---------- */
.quote-band {
  background: var(--ink);
  background-image: radial-gradient(ellipse 700px 400px at 85% 0%, rgba(185,130,44,0.25), transparent 60%);
  position: relative;
  overflow: hidden;
}
.quote-band .stitch { opacity: 0.25; }
.quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  color: #FBF6EA;
  max-width: 42ch;
  margin: 0 auto;
  text-align: center;
  line-height: 1.35;
}
.quote-cite {
  display: block;
  margin-top: 1.3rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre);
  font-style: normal;
}

/* ---------- Galerie: Alben-Raster ---------- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 860px) { .album-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .album-grid { grid-template-columns: 1fr; } }

.album-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 1px 2px rgba(31,51,39,0.04), 0 10px 24px -16px rgba(31,51,39,0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(31,51,39,0.06), 0 24px 36px -16px rgba(31,51,39,0.26);
}
.album-cover {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(155deg, #DCE7DA, #EFE6CF);
  position: relative;
}
.album-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(31,51,39,0.55) 100%);
}
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.album-card:hover .album-cover img { transform: scale(1.06); }

.album-info {
  padding: 1.1rem 1.2rem 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.album-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.1rem;
}
.album-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
}
.album-count {
  padding: 0.3rem 1.2rem 1.1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* ---------- Lightbox / Diashow ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 21, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 100;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-stage {
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.lightbox-caption {
  color: #EFE9DA;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-align: center;
  max-width: 60ch;
  margin: 0;
}
.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #FBF6EA;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.18s ease;
}
.lightbox-close:hover { background: var(--rust); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #FBF6EA;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.lightbox-nav:hover { background: var(--ochre); transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: clamp(0.75rem, 3vw, 2rem); }
.lightbox-next { right: clamp(0.75rem, 3vw, 2rem); }

@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.4rem; }
  .lightbox-close { width: 38px; height: 38px; font-size: 1rem; }
}

/* ---------- Galerie (alte einzelbild-Ansicht, weiterhin nutzbar) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.gallery-grid .photo-slot:nth-child(3n+1) { aspect-ratio: 3/4; }
.gallery-grid .photo-slot:nth-child(3n+2) { aspect-ratio: 4/3; }
.gallery-grid .photo-slot:nth-child(3n+3) { aspect-ratio: 1/1; }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Formular (Kontakt / Mitglied werden) ---------- */
form { max-width: 620px; }
.field { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--ochre);
  outline-offset: 1px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: -0.6rem; margin-bottom: 1.2rem; }

/* ---------- Infobox (Kontaktdaten, Rechtstexte) ---------- */
.info-box {
  background: var(--sand);
  border-left: 3px solid var(--rust);
  border-radius: 0 6px 6px 0;
  padding: 1.3rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.info-box strong { color: var(--ink); }

/* ---------- Breadcrumb-artige Seitenüberschrift für Unterseiten ---------- */
.page-head { padding-top: clamp(2.2rem, 5vw, 3.5rem); padding-bottom: 0; }
.page-head .eyebrow { margin-bottom: 0.8rem; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: #E7E1D2;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
footer.site-footer a { color: #E7E1D2; }
footer.site-footer a:hover { color: var(--ochre); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(231,225,210,0.18);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 {
  color: #E7E1D2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.92rem; }
.footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(231,225,210,0.65);
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 60ch; margin-bottom: 2.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- "Nach oben"-Button ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #FBF6EA;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(31,51,39,0.45);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 60;
}
.to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover { background: var(--rust); }

/* ---------- Sanftes Einblenden beim Scrollen ---------- */
.reveal-init {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.22,1,.36,1);
}
.reveal-init.reveal-in {
  opacity: 1;
  transform: translateY(0);
}
/* Leicht gestaffelt innerhalb eines Grids, wirkt organischer */
.grid-3 .reveal-init:nth-child(2) { transition-delay: 0.08s; }
.grid-3 .reveal-init:nth-child(3) { transition-delay: 0.16s; }
