/*
 * Geschichtliches Erbe Shop – PHP-Version.
 * Farben/Schriften 1:1 aus tailwind.config.js der Vite-Version übernommen (siehe README), damit
 * beide Versionen optisch gleich aussehen. Bewusst reines, handgeschriebenes CSS ohne
 * Build-Schritt (kein Node/Vite im Livebetrieb nötig, siehe README "ALL-INKL-Kompatibilität").
 */

:root {
  --ahnen-primary: #2E3A59;
  --ahnen-bg: #FFFBE1;
  --ahnen-tertiary: #6B7C59;
  --ahnen-gold: #D9A441;
  --ahnen-stroke: #C2A55F;
  --ahnen-text: #2A241D;
  --ahnen-dark: #1F2740;
  --ahnen-cream: #FFF8D8;
  --ahnen-paper: #FAF3DC;

  --font-serif: Georgia, "Times New Roman", Cambria, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow-card: 0 8px 30px -8px rgba(46, 58, 89, 0.18);
  --shadow-hero: 0 20px 60px -20px rgba(46, 58, 89, 0.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ahnen-text);
  background: var(--ahnen-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0.005em; color: var(--ahnen-primary); margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background-color: rgba(217, 164, 65, 0.35); color: #2A241D; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ahnen-bg); }
::-webkit-scrollbar-thumb { background: var(--ahnen-stroke); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ahnen-gold); }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.wrap-narrow { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 251, 225, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(194, 165, 95, 0.4);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-badge, .brand-logo-img {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0.5rem; flex-shrink: 0;
}
.brand-badge {
  border: 2px solid var(--ahnen-gold); background: var(--ahnen-primary);
  color: var(--ahnen-bg); font-family: var(--font-serif); font-size: 1.1rem;
}
.brand-logo-img { object-fit: contain; }
@media (min-width: 768px) { .brand-logo-img { width: 3rem; height: 3rem; } }
.brand-name { font-family: var(--font-serif); font-size: 1.25rem; color: var(--ahnen-primary); }
.main-nav { display: none; align-items: center; gap: 1.75rem; }
.main-nav a:not(.btn) { font-size: 0.9rem; font-weight: 500; color: rgba(42, 36, 29, 0.8); }
.main-nav a:not(.btn):hover { color: var(--ahnen-primary); }
@media (min-width: 768px) { .main-nav { display: flex; } .nav-toggle { display: none; } }
.nav-toggle {
  background: none; border: 0; color: var(--ahnen-primary); padding: 0.5rem; cursor: pointer;
}
.mobile-nav {
  display: none; flex-direction: column; gap: 0.75rem; padding: 1rem;
  border-top: 1px solid rgba(194, 165, 95, 0.4); background: var(--ahnen-bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a:not(.btn) { font-size: 1rem; font-weight: 500; padding: 0.4rem 0; }
@media (min-width: 768px) { .mobile-nav { display: none !important; } }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.5rem; font-weight: 600; font-size: 0.9rem;
  padding: 0.65rem 1.25rem; transition: background-color .2s, border-color .2s;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--ahnen-primary); color: var(--ahnen-bg); }
.btn-primary:hover { background: var(--ahnen-dark); }
.btn-secondary {
  background: var(--ahnen-primary); color: var(--ahnen-bg);
  font-size: 0.8rem; padding: 0.4rem 0.9rem;
}
.btn-secondary:hover { background: var(--ahnen-dark); }
.btn-outline {
  background: transparent; border-color: rgba(194, 165, 95, 0.6); color: var(--ahnen-primary);
  font-size: 0.75rem; padding: 0.35rem 0.8rem;
}
.btn-outline:hover { border-color: var(--ahnen-gold); }
.btn-disabled {
  background: var(--ahnen-paper); border-color: rgba(194, 165, 95, 0.6); color: rgba(42, 36, 29, 0.5);
  cursor: not-allowed; font-size: 0.8rem; padding: 0.5rem 1rem;
}

/* --- Hero / sections --- */
.section { padding: 3.5rem 0; position: relative; }
.section-tight { padding: 1rem 0; }
.eyebrow { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ahnen-tertiary); }
.lead { font-size: 1.05rem; color: rgba(42, 36, 29, 0.8); }
.hero-gold-line {
  height: 4px; background: linear-gradient(to right, transparent, rgba(217, 164, 65, 0.7), transparent);
}
.text-center { text-align: center; }
.section-header { max-width: 48rem; margin: 0 auto; text-align: center; }

/* --- Hero (Startseite) --- */
.hero-section { position: relative; overflow: hidden; padding: 4rem 0 3rem; }
@media (min-width: 768px) { .hero-section { padding: 5rem 0 4rem; } }
.hero-decor-1 {
  position: absolute; top: -8rem; right: -6rem; height: 24rem; width: 24rem; border-radius: 999px;
  background: rgba(217, 164, 65, 0.10); filter: blur(60px); pointer-events: none;
}
.hero-decor-2 {
  position: absolute; bottom: -10rem; left: -6rem; height: 24rem; width: 24rem; border-radius: 999px;
  background: rgba(107, 124, 89, 0.10); filter: blur(60px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 3rem; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
  border: 1px solid rgba(194, 165, 95, 0.6); background: var(--ahnen-paper);
  padding: 0.4rem 1rem; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ahnen-primary);
}
.hero-badge-dot { height: 0.4rem; width: 0.4rem; border-radius: 999px; background: var(--ahnen-gold); flex-shrink: 0; }
.hero-h1 { margin-top: 1.5rem; font-family: var(--font-serif); font-size: 2.25rem; line-height: 1.15; color: var(--ahnen-primary); }
@media (min-width: 640px) { .hero-h1 { font-size: 2.75rem; } }
@media (min-width: 1024px) { .hero-h1 { font-size: 3.4rem; } }
.hero-h1-underline { position: relative; display: inline-block; }
.hero-h1-underline .underline-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 0.5rem; background: rgba(217, 164, 65, 0.3); border-radius: 2px; z-index: 0; }
.hero-h1-underline .underline-text { position: relative; z-index: 1; }
.hero-lead { margin-top: 1.5rem; font-size: 1.1rem; line-height: 1.6; color: rgba(42, 36, 29, 0.85); max-width: 38rem; }
@media (min-width: 640px) { .hero-lead { font-size: 1.25rem; } }
.hero-sub { margin-top: 1rem; font-size: 1rem; line-height: 1.6; color: rgba(42, 36, 29, 0.75); max-width: 38rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-checks { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; font-size: 0.875rem; color: rgba(42, 36, 29, 0.7); }
.hero-check { display: flex; align-items: center; gap: 0.5rem; }
.hero-check-icon {
  display: inline-flex; height: 1.25rem; width: 1.25rem; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(217, 164, 65, 0.2); color: var(--ahnen-primary); flex-shrink: 0;
}
.hero-divider-wrap { margin-top: 2.5rem; }
.hero-divider { border-top: 1px solid rgba(194, 165, 95, 0.3); }

/* --- Hero-Visual ("Dein Wegweiser") --- */
.hero-visual { position: relative; max-width: 26rem; margin: 0 auto; }
.hero-visual-back {
  position: absolute; inset: 0; transform: rotate(-3deg); border-radius: 1rem;
  border: 1px solid rgba(194, 165, 95, 0.5); background: var(--ahnen-paper); box-shadow: var(--shadow-card);
}
.hero-visual-front {
  position: relative; transform: rotate(1deg); border-radius: 1rem; border: 2px solid var(--ahnen-stroke);
  background: var(--ahnen-cream); padding: 2rem; box-shadow: var(--shadow-hero);
}
.hero-visual-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(194, 165, 95, 0.5); padding-bottom: 1rem; }
.hero-visual-header-left { display: flex; align-items: center; gap: 0.5rem; }
.hero-visual-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--ahnen-primary); }
.hero-visual-star { color: var(--ahnen-gold); }
.hero-visual-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; font-family: var(--font-serif); color: var(--ahnen-primary); font-size: 0.95rem; }
.hero-visual-list li { display: flex; align-items: center; gap: 0.75rem; }
.hero-visual-dot { height: 0.5rem; width: 0.5rem; border-radius: 999px; flex-shrink: 0; }
.hero-visual-box { margin-top: 1.5rem; border-radius: 0.5rem; border: 1px solid rgba(194, 165, 95, 0.6); background: rgba(255, 251, 225, 0.7); padding: 1rem; }
.hero-visual-box-eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ahnen-tertiary); }
.hero-visual-box-text { margin-top: 0.25rem; font-family: var(--font-serif); color: var(--ahnen-primary); font-size: 0.95rem; line-height: 1.5; }

/* --- Category tiles (Startseite) --- */
.tile-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(1, 1fr); margin-top: 3.5rem; }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
.tile {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem;
  border: 1px solid rgba(194, 165, 95, 0.6); background: var(--ahnen-bg); box-shadow: var(--shadow-card);
  transition: box-shadow .3s, transform .3s;
}
.tile:hover { box-shadow: var(--shadow-hero); transform: translateY(-3px); }
.tile-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem 1.75rem 2rem; }
.tile-body h3 { font-size: 1.5rem; line-height: 1.25; }
.tile-body p { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.6; color: rgba(42, 36, 29, 0.8); flex: 1; }
.tile-body .btn { margin-top: 2rem; width: 100%; }

.category-image { position: relative; height: 12rem; width: 100%; overflow: hidden; border-bottom: 2px solid rgba(217, 164, 65, 0.6); }
.category-image img { height: 100%; width: 100%; object-fit: cover; object-position: center; }
.category-image-fallback {
  position: relative; height: 12rem; width: 100%; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: linear-gradient(135deg, var(--ahnen-primary), var(--ahnen-dark));
  border-bottom: 2px solid rgba(217, 164, 65, 0.6);
}
.category-image-fallback-icon {
  display: flex; height: 4rem; width: 4rem; align-items: center; justify-content: center;
  border-radius: 999px; border: 2px solid var(--ahnen-gold); color: var(--ahnen-gold); font-size: 1.5rem;
}

/* --- "Was suchst du?" --- */
.looking-for-section { background: rgba(250, 243, 220, 0.6); }
.looking-for-grid {
  margin: 3rem auto 0; max-width: 48rem; display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .looking-for-grid { grid-template-columns: repeat(2, 1fr); } }
.looking-for-option {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; border-radius: 0.75rem;
  border: 1px solid rgba(194, 165, 95, 0.6); background: var(--ahnen-bg); padding: 1rem 1.25rem;
  text-align: left; font-size: 0.9rem; font-weight: 500; color: var(--ahnen-text); cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.looking-for-option:hover { border-color: var(--ahnen-gold); box-shadow: var(--shadow-card); }
.looking-for-arrow { color: var(--ahnen-gold); flex-shrink: 0; }
.looking-for-footnote { margin-top: 1.5rem; text-align: center; font-size: 0.9rem; }
.looking-for-footnote a { color: rgba(46, 58, 89, 0.8); text-decoration: underline; text-underline-offset: 4px; }
.looking-for-footnote a:hover { color: var(--ahnen-primary); }

/* --- "So funktioniert der Kauf" (Digistore24-Hinweis) --- */
.notice-box { border-radius: 0.75rem; border: 1px solid rgba(194, 165, 95, 0.6); background: var(--ahnen-paper); padding: 2.5rem 1.5rem; }
@media (min-width: 640px) { .notice-box { padding: 2.5rem; } }
.notice-grid { margin-top: 2.5rem; display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .notice-grid { grid-template-columns: repeat(3, 1fr); } }
.notice-point { text-align: center; }
@media (min-width: 640px) { .notice-point { text-align: left; } }
.notice-icon {
  margin: 0 auto; display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center;
  border-radius: 999px; border: 2px solid var(--ahnen-gold); background: var(--ahnen-bg); color: var(--ahnen-primary);
}
@media (min-width: 640px) { .notice-icon { margin: 0; } }
.notice-point h3 { margin-top: 1rem; font-size: 1rem; line-height: 1.3; }
.notice-point p { margin-top: 0.5rem; font-size: 0.8rem; line-height: 1.6; color: rgba(42, 36, 29, 0.75); }

/* --- Product cards --- */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; border-radius: 1rem; border: 1px solid rgba(194, 165, 95, 0.6);
  background: var(--ahnen-bg); box-shadow: var(--shadow-card); padding: 1.75rem;
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; border-radius: 0.375rem; padding: 0.15rem 0.6rem;
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.badge-gold { background: var(--ahnen-gold); color: var(--ahnen-text); }
.badge-available { background: var(--ahnen-tertiary); color: var(--ahnen-bg); }
.badge-pending { background: rgba(194, 165, 95, 0.4); color: rgba(42, 36, 29, 0.7); }
/* Region-Kennzeichnung (Memelland / Königsberger Gebiet / Ermland-Masuren, siehe
   app/cemeteries.php::resolve_cemetery_region_label()) - bewusst zurückhaltender/outline-artiger
   als die gefüllten Verfügbarkeits-Badges oben, damit sie als reine Orientierungs-Info erkennbar
   bleibt und nicht mit "verfügbar/in Vorbereitung" verwechselt wird. */
.badge-region { background: transparent; border: 1px solid rgba(46, 58, 89, 0.35); color: var(--ahnen-primary); font-weight: 700; }
.card h3 { font-size: 1.4rem; margin-top: 1rem; }
.card .subtitle { font-size: 0.9rem; font-weight: 500; color: var(--ahnen-tertiary); margin-top: 0.15rem; }
.card .desc { font-size: 0.9rem; margin-top: 0.85rem; color: rgba(42, 36, 29, 0.85); }
.card .price { font-family: var(--font-serif); font-size: 1.1rem; color: rgba(46, 58, 89, 0.8); }
.feature-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; }
.feature-check {
  flex-shrink: 0; margin-top: 0.15rem; width: 1rem; height: 1rem; border-radius: 999px;
  background: rgba(217, 164, 65, 0.25); color: var(--ahnen-primary);
  display: flex; align-items: center; justify-content: center;
}
.card .spacer { flex: 1; }
.card .cta { margin-top: 1.4rem; width: 100%; text-align: center; }

/* --- Friedhofsspuren search --- */
.search-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-tab {
  border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.9rem; font-weight: 600;
  border: 1px solid rgba(194, 165, 95, 0.6); color: var(--ahnen-primary); background: transparent;
  cursor: pointer;
}
.search-tab.active { background: var(--ahnen-primary); color: var(--ahnen-bg); border-color: var(--ahnen-primary); }
.search-tab:hover { border-color: var(--ahnen-gold); }

.search-row { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 640px) { .search-row { flex-direction: row; } }
.search-input {
  width: 100%; border-radius: 0.5rem; border: 2px solid var(--ahnen-stroke); background: var(--ahnen-bg);
  padding: 0.85rem 1rem; font-size: 1rem; color: var(--ahnen-text);
}
.search-input:focus { outline: none; border-color: var(--ahnen-gold); }
.search-reset {
  border-radius: 0.5rem; border: 2px solid var(--ahnen-stroke); background: transparent;
  padding: 0.85rem 1.25rem; font-size: 0.9rem; font-weight: 600; color: var(--ahnen-primary); cursor: pointer;
  white-space: nowrap;
}
.search-reset:hover { border-color: var(--ahnen-gold); }
.hit-count { margin-top: 1.5rem; font-size: 0.9rem; font-weight: 600; color: var(--ahnen-primary); }
.hint-box {
  margin-top: 0.75rem; border-radius: 0.5rem; border: 1px solid rgba(194, 165, 95, 0.4);
  background: rgba(250, 243, 220, 0.5); padding: 0.75rem 1rem; font-size: 0.8rem; line-height: 1.5; color: rgba(42, 36, 29, 0.7);
}

.result-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.result-row {
  border-radius: 0.85rem; border: 1px solid rgba(194, 165, 95, 0.5); background: var(--ahnen-bg);
  box-shadow: 0 2px 8px -4px rgba(46, 58, 89, 0.12); padding: 1rem 1.25rem;
}
.result-row h3 { font-size: 1.1rem; }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.result-meta .desc { font-size: 0.75rem; color: rgba(42, 36, 29, 0.6); }
.bundle-line { margin-top: 0.5rem; font-size: 0.75rem; color: rgba(42, 36, 29, 0.7); }
.bundle-line strong { color: var(--ahnen-primary); }

/* Kompakter Trefferkopf: Name/Badge links, "Karten anzeigen"-Button rechts (siehe
   app/views/friedhofsspuren.php + public/assets/js/main.js für die Aufklapp-Logik). Die
   Kaufoptionen-Karten selbst bleiben unverändert, sie stecken nur standardmäßig eingeklappt in
   .purchase-options-panel, damit die Liste bei vielen Friedhöfen übersichtlich bleibt. */
.result-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.result-row-info { flex: 1; min-width: 0; }
.result-toggle { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 639px) {
  .result-row-head { flex-direction: column; align-items: stretch; }
  .result-toggle { width: 100%; }
}

/* Weiches Aufklappen statt hartem hidden-Umschalten: Grundzustand ist eingeklappt
   (max-height:0 + überlaufverborgen), public/assets/js/main.js setzt beim Öffnen die
   tatsächliche Höhe (scrollHeight) als max-height und ergänzt .is-open, wodurch alle vier
   Eigenschaften weich übergehen. Kein Sprung, weil das Panel nie aus dem Layout verschwindet
   (kein display:none/hidden mehr für dieses Element). */
.purchase-options-panel {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease, margin-top 220ms ease;
}
.purchase-options-panel.is-open {
  margin-top: 1rem;
  opacity: 1;
  transform: translateY(0);
}

/* Jede Kaufoption (Einzelkarte/Bundle) eines Friedhofs bekommt eine eigene kompakte Angebots-
   Karte statt einer langen horizontalen Zeile – siehe
   app/cemeteries.php::resolve_cemetery_purchase_options(). Grid statt Flex, damit alle Karten
   einer Reihe automatisch gleich hoch sind (Button landet dadurch bündig unten). */
.purchase-options { margin-top: 0.75rem; display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 560px) { .purchase-options { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .purchase-options { grid-template-columns: repeat(3, 1fr); } }

.purchase-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem;
  padding: 0.9rem 1rem; border-radius: 0.75rem;
  background: var(--ahnen-paper); border: 1px solid rgba(217, 164, 65, 0.45);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.purchase-card:hover {
  border-color: var(--ahnen-gold);
  box-shadow: 0 6px 18px -8px rgba(46, 58, 89, 0.2);
  transform: translateY(-1px);
}
/* Kopfzeile einer Kaufoption: Art der Option links, Preis rechts - damit der Preis sofort sichtbar
   ist, ohne den Titel zu verdrängen (siehe app/views/friedhofsspuren.php). align-self: stretch ist
   nötig, weil .purchase-card seine Kinder mit align-items: flex-start ausrichtet. */
.purchase-card-head {
  align-self: stretch; display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
}
.purchase-card-badge {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ahnen-tertiary); background: rgba(107, 124, 89, 0.14);
  padding: 0.2rem 0.6rem; border-radius: 999px;
}
.purchase-card-price {
  font-family: var(--font-serif); font-size: 1rem; white-space: nowrap;
  color: rgba(46, 58, 89, 0.85);
}
.purchase-card-title { font-family: var(--font-serif); font-size: 1rem; line-height: 1.3; color: var(--ahnen-primary); }
.purchase-card-subtitle { font-size: 0.78rem; color: rgba(42, 36, 29, 0.65); }
.purchase-card-btn { margin-top: auto; padding-top: 0.6rem; align-self: stretch; text-align: center; }

/* Vorschaubild in Einzelkarten (siehe app/views/friedhofsspuren.php). Bewusst als <figure>
   umgesetzt, damit die Bildunterschrift "Beispielbild" semantisch zum Bild gehört und Screenreader
   sie mitlesen. Zusätzlich liegt ein diagonaler "BEISPIELBILD"-Balken visuell über dem Bild – so
   ist auch beim schnellen Überfliegen klar, dass es keine ortsgenaue Aufnahme des jeweiligen
   Friedhofs ist. */
.purchase-card-preview {
  align-self: stretch;
  position: relative;
  margin: 0 0 0.65rem;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(194, 165, 95, 0.55);
  background: rgba(46, 58, 89, 0.06);
  aspect-ratio: 16 / 10;
}
.purchase-card-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Button, der das Beispielbild anklickbar macht (öffnet die Lightbox unten). Bewusst als <button>
   umgesetzt statt <a>/<div>, damit Fokus- und Tastaturbedienung ohne Zusatzcode funktionieren. */
.purchase-card-preview-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  color: #FFFBE1;
}
.purchase-card-preview-trigger:focus-visible {
  outline: 2px solid var(--ahnen-gold);
  outline-offset: 2px;
}
.purchase-card-preview-trigger .purchase-card-preview-img {
  transition: transform .3s ease;
}
.purchase-card-preview-trigger:hover .purchase-card-preview-img,
.purchase-card-preview-trigger:focus-visible .purchase-card-preview-img {
  transform: scale(1.04);
}
.purchase-card-preview-zoom {
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(46, 58, 89, 0.85);
  color: #FFFBE1;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.purchase-card-preview-trigger:hover .purchase-card-preview-zoom,
.purchase-card-preview-trigger:focus-visible .purchase-card-preview-zoom {
  opacity: 1;
  transform: translateY(0);
}
.purchase-card-preview::before {
  content: 'BEISPIELBILD';
  position: absolute;
  top: 14px;
  right: -46px;
  transform: rotate(35deg);
  background: rgba(46, 58, 89, 0.92);
  color: #FFFBE1;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.25rem 3.2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.purchase-card-preview-caption {
  position: absolute;
  left: 0.55rem;
  bottom: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 251, 225, 0.92);
  color: var(--ahnen-primary);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid rgba(217, 164, 65, 0.55);
}

/* --- Ortsgruppen-Hinweis ("Weitere Friedhöfe in ...", siehe app/views/friedhofsspuren.php) ---
   Bewusst als eigene, golden abgesetzte Infobox gestaltet (statt einer schlichten Trennlinie),
   damit sofort erkennbar ist, dass die Einträge darin zur selben Ortsgruppe gehören wie der
   gerade aufgeklappte Friedhof - unabhängig davon, dass derselbe Friedhof weiter unten in der
   Ergebnisliste zusätzlich noch als eigener, normaler Treffer erscheint. */
.place-group-notice {
  margin: 1rem 0 0.5rem;
  padding: 0.9rem 1.1rem 1.1rem;
  border-radius: 0.75rem;
  background: rgba(217, 164, 65, 0.08);
  border: 1px solid rgba(217, 164, 65, 0.4);
  border-left: 4px solid var(--ahnen-gold);
}
.place-group-eyebrow {
  display: inline-flex; align-items: center;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ahnen-tertiary); background: rgba(107, 124, 89, 0.14);
  padding: 0.2rem 0.6rem; border-radius: 999px;
}
.place-group-title {
  margin-top: 0.5rem; font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.3;
  color: var(--ahnen-primary);
}
.place-group-count { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 400; color: var(--ahnen-tertiary); }
.place-group-description { margin: 0.3rem 0 0; font-size: 0.82rem; line-height: 1.5; color: rgba(42, 36, 29, 0.7); }

.place-group-list {
  list-style: none; margin: 0.9rem 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0.65rem;
}
@media (min-width: 560px) { .place-group-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .place-group-list { grid-template-columns: repeat(3, 1fr); } }

.place-group-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem;
  padding: 0.75rem 0.9rem; border-radius: 0.65rem;
  background: var(--ahnen-bg); border: 1px solid rgba(194, 165, 95, 0.55);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.place-group-item:hover { border-color: var(--ahnen-gold); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.place-group-item-name { font-family: var(--font-serif); font-size: 0.95rem; line-height: 1.3; color: var(--ahnen-primary); }
.place-group-item-badges { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.place-group-item-btn { margin-top: auto; padding-top: 0.4rem; width: 100%; text-align: center; }

/* --- Bundle teaser --- */
.bundle-teaser {
  border-radius: 0.85rem; border: 1px solid rgba(217, 164, 65, 0.4); background: var(--ahnen-paper);
  padding: 1.1rem 1.4rem;
}
.bundle-teaser-row { display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; }
@media (min-width: 640px) { .bundle-teaser-row { flex-direction: row; align-items: center; } }
.bundle-teaser-text { display: flex; align-items: flex-start; gap: 0.75rem; min-width: 0; }
.bundle-teaser-text h3 { font-size: 1.1rem; }
.bundle-teaser-text p { margin: 0.3rem 0 0; font-size: 0.9rem; color: rgba(42, 36, 29, 0.75); }
.bundle-teaser-name { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ahnen-primary); }
.bundle-teaser-name strong { font-weight: 700; }
.bundle-teaser-price {
  font-family: var(--font-serif); white-space: nowrap; margin-left: 0.4rem;
  color: rgba(46, 58, 89, 0.85);
}
.bundle-teaser-actions { display: flex; flex-direction: column; gap: 0.5rem; flex-shrink: 0; }
.bundle-teaser-secondary { margin-top: 0.75rem; }

/* --- Footer (dunkel, mehrspaltig, wie Vite-Version) --- */
.site-footer { background: var(--ahnen-primary); color: var(--ahnen-bg); margin-top: 4rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding: 3.5rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand-logo { height: 3rem; width: 3rem; object-fit: contain; border-radius: 0.5rem; background: rgba(255, 251, 225, 0.1); padding: 0.25rem; flex-shrink: 0; }
.footer-brand-fallback {
  display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 0.5rem; border: 2px solid var(--ahnen-gold); background: rgba(255, 251, 225, 0.1);
  font-family: var(--font-serif); font-size: 1.1rem; color: var(--ahnen-bg);
}
.footer-brand-name { font-family: var(--font-serif); font-size: 1.5rem; }
.footer-brand-tagline { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(217, 164, 65, 0.9); }
.footer-desc { margin-top: 1.25rem; font-size: 0.85rem; line-height: 1.6; color: rgba(255, 251, 225, 0.75); }
.footer-desc-small { margin-top: 1rem; font-size: 0.75rem; color: rgba(255, 251, 225, 0.65); }
.footer-heading { font-family: var(--font-serif); font-size: 1.1rem; color: var(--ahnen-gold); }
.footer-linklist { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.85rem; color: rgba(255, 251, 225, 0.85); }
.footer-linklist a:hover { color: var(--ahnen-gold); text-decoration: underline; text-underline-offset: 4px; }
.footer-address { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.85rem; color: rgba(255, 251, 225, 0.85); }
.footer-address a { display: block; margin-top: 0.75rem; text-decoration: underline; text-underline-offset: 4px; color: rgba(255, 251, 225, 0.85); }
.footer-address a:hover { color: var(--ahnen-gold); }
.footer-bottom {
  margin-top: 0; border-top: 1px solid rgba(255, 251, 225, 0.15); padding: 1.5rem 0 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 0.75rem; font-size: 0.75rem; color: rgba(255, 251, 225, 0.7); text-align: center;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; text-align: left; } }
.footer-note { font-size: 0.75rem; color: rgba(42, 36, 29, 0.6); }

/* --- Legal pages (Impressum/Datenschutz), analog zu LegalPageLayout.tsx der Vite-Version --- */
.legal-section { position: relative; }
.legal-wrap { max-width: 48rem; margin: 0 auto; padding: 3rem 1rem 5rem; }
@media (min-width: 640px) { .legal-wrap { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .legal-wrap { padding-left: 2rem; padding-right: 2rem; } }
.legal-back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; color: rgba(46, 58, 89, 0.8); }
.legal-back:hover { color: var(--ahnen-primary); }
.legal-header { margin-top: 1.5rem; border-bottom: 1px solid rgba(194, 165, 95, 0.4); padding-bottom: 1.5rem; }
.legal-title { margin-top: 0.75rem; font-size: 2.5rem; line-height: 1.15; }
@media (min-width: 768px) { .legal-title { font-size: 3rem; } }
.legal-intro { margin-top: 1rem; font-size: 1.05rem; color: rgba(42, 36, 29, 0.8); }
@media (min-width: 768px) { .legal-intro { font-size: 1.15rem; } }
.legal-prose { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; font-size: 0.98rem; line-height: 1.7; color: rgba(42, 36, 29, 0.9); }
@media (min-width: 768px) { .legal-prose { font-size: 1rem; } }
.legal-prose h2 { font-size: 1.5rem; }
.legal-prose p { margin-top: 0.75rem; }
.legal-prose p:first-child { margin-top: 0; }
.legal-prose ul { margin-top: 0.75rem; padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.legal-prose a { color: var(--ahnen-primary); text-decoration: underline; text-underline-offset: 4px; }
.legal-prose a:hover { text-decoration-color: var(--ahnen-gold); }
.legal-stamp { margin-top: 0.5rem; font-size: 0.85rem; color: rgba(42, 36, 29, 0.6); }
.legal-divider { margin-top: 3.5rem; display: flex; align-items: center; gap: 1rem; }
.legal-divider-line { height: 1px; flex: 1; background: linear-gradient(to right, transparent, rgba(217, 164, 65, 0.5), transparent); }
.legal-divider-star { font-size: 0.75rem; color: rgba(217, 164, 65, 0.7); }

/* --- Misc pages (danke/download/error) --- */
.status-box {
  max-width: 34rem; margin: 3rem auto; border-radius: 1rem; border: 1px solid rgba(194, 165, 95, 0.5);
  background: var(--ahnen-bg); box-shadow: var(--shadow-card); padding: 2.25rem; text-align: center;
}
.status-box h1 { font-size: 1.6rem; }

/* --- Admin-Check ("Shop-TÜV", siehe public/admin-check.php) - Ampel-Status OK/Warnung/Kritisch.
   Bewusst dieselbe Farblogik wie die restlichen Badges (--ahnen-tertiary = grün/verfügbar,
   --ahnen-gold = gelb/Hinweis), Rot ergänzt passend zu den bestehenden Fehlerboxen in
   admin-import.php/admin-orders.php (rgba(196,64,64,...)). */
.admin-check-summary {
  margin-top: 1.25rem; padding: 1.1rem 1.25rem; border-radius: 0.85rem; border: 2px solid;
}
.admin-check-summary-ok { background: rgba(107, 124, 89, 0.1); border-color: rgba(107, 124, 89, 0.55); }
.admin-check-summary-warning { background: rgba(217, 164, 65, 0.12); border-color: rgba(217, 164, 65, 0.6); }
.admin-check-summary-critical { background: rgba(196, 64, 64, 0.1); border-color: rgba(196, 64, 64, 0.55); }
.admin-check-dot { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 999px; margin-right: 0.45rem; vertical-align: middle; }
.admin-check-dot-ok { background: #6B7C59; }
.admin-check-dot-warning { background: #D9A441; }
.admin-check-dot-critical { background: #C44040; }
.admin-check-section { margin-top: 1.75rem; }
.admin-check-section-title { font-size: 1.15rem; color: var(--ahnen-primary); font-family: var(--font-serif); }
.admin-check-card { margin-top: 0.6rem; padding: 0.75rem 1rem; border-radius: 0.6rem; border: 1px solid; font-size: 0.88rem; }
.admin-check-card-ok { background: rgba(107, 124, 89, 0.06); border-color: rgba(107, 124, 89, 0.3); }
.admin-check-card-warning { background: rgba(217, 164, 65, 0.1); border-color: rgba(217, 164, 65, 0.45); }
.admin-check-card-critical { background: rgba(196, 64, 64, 0.08); border-color: rgba(196, 64, 64, 0.4); }
.admin-check-card-title { font-weight: 700; color: var(--ahnen-primary); }
.admin-check-card-message { margin-top: 0.2rem; color: rgba(42, 36, 29, 0.85); }
.admin-check-table-wrap { margin-top: 0.6rem; overflow-x: auto; }
.admin-check-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; white-space: nowrap; }
.admin-check-table th, .admin-check-table td { padding: 0.3rem 0.55rem; text-align: left; border-bottom: 1px solid rgba(194, 165, 95, 0.3); }
.admin-check-counts { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; }
.status-box p { margin-top: 0.75rem; color: rgba(42, 36, 29, 0.8); }

/* --- Admin-Zentrale: gemeinsame Navigation auf allen geschützten Admin-Seiten (siehe
   app/admin_nav.php) - Tab-Leiste, aktiver Reiter optisch hervorgehoben. --- */
.admin-nav {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.1rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(194, 165, 95, 0.4);
}
.admin-nav-link {
  padding: 0.45rem 0.9rem; border-radius: 0.5rem 0.5rem 0 0; font-size: 0.85rem; font-weight: 600;
  color: var(--ahnen-primary); text-decoration: none; border: 1px solid transparent;
  border-bottom: none; transition: background 0.15s ease, border-color 0.15s ease;
}
.admin-nav-link:hover { background: rgba(194, 165, 95, 0.12); }
.admin-nav-link.active {
  background: var(--ahnen-primary); color: var(--ahnen-bg);
  border-color: var(--ahnen-primary);
}
.admin-summary-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.75rem;
  margin-top: 1rem;
}
.admin-summary-tile {
  padding: 0.85rem 1rem; border-radius: 0.6rem; border: 1px solid rgba(194, 165, 95, 0.4);
  background: var(--ahnen-bg);
}
.admin-summary-tile .tile-label { font-size: 0.78rem; color: rgba(42, 36, 29, 0.65); }
.admin-summary-tile .tile-value { font-size: 1.3rem; font-weight: 700; color: var(--ahnen-primary); margin-top: 0.15rem; }
.admin-summary-tile .tile-value.tile-status-ok { color: #6B7C59; }
.admin-summary-tile .tile-value.tile-status-warning { color: #D9A441; }
.admin-summary-tile .tile-value.tile-status-critical { color: #C44040; }

/* --- Themenkarten-Übersicht (Teaser-Kacheln OHNE Kaufbutton, siehe
   app/views/partials/themenkarten-teaser-grid.php) - Bildfläche oben, analog zu .tile/.category-image,
   aber im bestehenden .grid (1/2/3 Spalten) statt im 2-spaltigen .tile-grid der Startseite. --- */
.themenkarte-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem;
  border: 1px solid rgba(194, 165, 95, 0.6); background: var(--ahnen-bg); box-shadow: var(--shadow-card);
  transition: box-shadow .3s, transform .3s;
}
.themenkarte-card:hover { box-shadow: var(--shadow-hero); transform: translateY(-3px); }
.themenkarte-card-image { position: relative; height: 11rem; width: 100%; overflow: hidden; border-bottom: 2px solid rgba(217, 164, 65, 0.6); }
.themenkarte-card-image img { height: 100%; width: 100%; object-fit: cover; object-position: center; }
.themenkarte-card-image-fallback {
  height: 11rem; width: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ahnen-primary), var(--ahnen-dark));
  border-bottom: 2px solid rgba(217, 164, 65, 0.6);
}
.themenkarte-card-image-fallback span {
  display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center;
  border-radius: 999px; border: 2px solid var(--ahnen-gold); color: var(--ahnen-gold); font-size: 1.25rem;
}
.themenkarte-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem 1.5rem 1.75rem; }
.themenkarte-card-body h3 { font-size: 1.25rem; margin-top: 0.85rem; }
.themenkarte-card-body .desc { font-size: 0.88rem; margin-top: 0.6rem; color: rgba(42, 36, 29, 0.85); }
/* Nur noch das Verfügbar-Badge oben (kein Preis mehr, siehe Aufgabenstellung "Preisanzeige
   entfernen") - eigene, schlichte Zeile statt der geteilten .card-top-Badge/Preis-Zeile, die
   product-grid.php (Bundles/Merch, weiterhin MIT Preis) unverändert weiternutzt. */
.themenkarte-card-badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.themenkarte-card-body .spacer { flex: 1; }
.themenkarte-card-body .cta { margin-top: 1.2rem; width: 100%; text-align: center; }

/* --- Themenkarten-Detailseite (public/themenkarte.php + app/views/themenkarte.php) --- */
.themenkarte-back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; color: rgba(46, 58, 89, 0.8); }
.themenkarte-back-link:hover { color: var(--ahnen-primary); }

.themenkarte-detail { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .themenkarte-detail { grid-template-columns: 1fr 1fr; } }

.themenkarte-detail-image {
  border-radius: 1rem; overflow: hidden; border: 2px solid var(--ahnen-stroke); box-shadow: var(--shadow-hero);
}
.themenkarte-detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.themenkarte-detail-image-fallback {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; border-radius: 1rem;
  background: linear-gradient(135deg, var(--ahnen-primary), var(--ahnen-dark));
  border: 2px solid var(--ahnen-stroke); box-shadow: var(--shadow-hero);
}
.themenkarte-detail-image-fallback span {
  display: flex; height: 4rem; width: 4rem; align-items: center; justify-content: center;
  border-radius: 999px; border: 2px solid var(--ahnen-gold); color: var(--ahnen-gold); font-size: 1.75rem;
}

.themenkarte-detail-content h1 { font-size: 2rem; margin-top: 0.5rem; line-height: 1.2; }
@media (min-width: 768px) { .themenkarte-detail-content h1 { font-size: 2.35rem; } }
/* Kein Preis mehr unter dem Titel (siehe Aufgabenstellung "Preisanzeige entfernen") - der
   Abstand zum nächsten Block (Beschreibung/Feature-Liste/Hinweisbox) kommt bereits über deren
   eigenes margin-top, deshalb hier keine Ersatzregel nötig. */
/* Container fuer helpers.php::format_product_description() - erzeugt selbst <p>/<ul>/<li>,
   deshalb hier keine eigene Textformatierung mehr auf dem Container, sondern auf den Kindern. */
.themenkarte-detail-desc { margin-top: 1.25rem; max-width: 38rem; }
.themenkarte-detail-desc p { margin: 0 0 1rem; font-size: 1rem; line-height: 1.7; color: rgba(42, 36, 29, 0.85); }
.themenkarte-detail-desc ul { margin: 0 0 1rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.themenkarte-detail-desc p:last-child, .themenkarte-detail-desc ul:last-child { margin-bottom: 0; }
.themenkarte-detail-desc li {
  position: relative; padding-left: 1.35rem; font-size: 0.95rem; line-height: 1.6; color: rgba(42, 36, 29, 0.85);
}
.themenkarte-detail-desc li::before {
  content: ''; position: absolute; left: 0.1rem; top: 0.6rem; width: 0.4rem; height: 0.4rem;
  border-radius: 999px; background: var(--ahnen-gold);
}
.themenkarte-detail-content .feature-list { margin-top: 1.25rem; }

/* Ruhiger, kompakter Produkt-Hinweis statt klobigem Info-/Warnkasten ("Deine digitale Karte",
   siehe app/views/themenkarte.php) - dezente Goldlinie oben statt umlaufendem Rahmen/Füllfarbe,
   Icon + Text nebeneinander. */
.digital-map-note {
  margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid rgba(217, 164, 65, 0.45);
  display: flex; align-items: flex-start; gap: 0.85rem;
}
.digital-map-note__icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 2.15rem; height: 2.15rem; margin-top: 0.1rem; border-radius: 999px;
  border: 1.5px solid var(--ahnen-gold); color: var(--ahnen-gold); font-size: 0.95rem;
}
.digital-map-note__body h3 { font-size: 1rem; margin: 0; }
.digital-map-note__body p { margin: 0.4rem 0 0; font-size: 0.9rem; line-height: 1.65; color: rgba(42, 36, 29, 0.82); }
.digital-map-note__sub { color: rgba(42, 36, 29, 0.65); }

.themenkarte-unavailable-hint { margin-top: 1.5rem; font-size: 0.9rem; font-weight: 600; color: #C44040; }
.themenkarte-detail-content .cta { margin-top: 0.75rem; display: inline-flex; }
.themenkarte-detail-content .btn-disabled.cta { display: inline-flex; }

/* --- Lightbox für vergrößerte Beispielbilder (siehe public/assets/js/main.js) ------------------
   Wird per JS dynamisch erzeugt. Sitzt als Overlay über der ganzen Seite, sperrt den Body-Scroll.
   Schließen: X-Button, Klick auf Hintergrund, Escape. Bewusst kein zusätzliches Framework – nur
   ein einzelner Overlay-Container, damit die Ladezeit der Seite nicht steigt. */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 20, 35, 0.88);
  opacity: 0;
  /* Wichtig: im Grundzustand komplett inaktiv, damit die unsichtbare Overlay-Schicht keine Klicks
     schluckt und keinen zoom-out-Cursor auf die eigentliche Seite legt. visibility flippt erst nach
     Ablauf der Opacity-Transition (delay 0.2s), damit das Fade-Out beim Schließen sichtbar bleibt. */
  visibility: hidden;
  pointer-events: none;
  cursor: zoom-out;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .2s ease, visibility 0s linear 0s;
}
.lightbox-inner {
  position: relative;
  max-width: min(1400px, 95vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: default;
}
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.6);
  background: #1a2236;
}
.lightbox-caption {
  color: #FFFBE1;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(46, 58, 89, 0.85);
  border: 1px solid rgba(217, 164, 65, 0.55);
}
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: #FFFBE1;
  color: var(--ahnen-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--ahnen-gold);
  color: var(--ahnen-primary);
  outline: none;
}
@media (max-width: 540px) {
  .lightbox { padding: 0.75rem; }
  .lightbox-close { top: 6px; right: 6px; }
}
