/* Dorfflohmarkt – Custom Styles */

/* Buttons: konsistentes Icon-Alignment (button vs. a.btn) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.badge .bi, .nav-link .bi, .dropdown-item .bi {
  vertical-align: -0.125em;
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8f6f0;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: #f8f6f0;
  background-image: url('/images/site-bg-pattern.png');
  background-repeat: repeat;
  background-size: 720px auto;
  filter: blur(2px) saturate(0.92);
  opacity: 0.72;
  transform: scale(1.03);
  transform-origin: center;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(248, 246, 240, 0.48);
  pointer-events: none;
  z-index: -1;
}

main.container {
  position: relative;
  flex: 1;
  z-index: 1;
}

/* Stand number marker on map */
.stand-number-marker {
  background: #198754;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.new-stand-marker .stand-number-marker {
  background: #ffc107;
  color: #212529;
}

/* Leaflet map border */
.leaflet-container {
  border-radius: 0 0 4px 4px;
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, #198754, #20c997) !important;
}

/* Card hover effect */
.card {
  transition: box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

/* Navbar: einheitliche Höhe, klarere Klickflächen, bessere Lesbarkeit */
.site-navbar {
  position: relative;
  box-shadow: 0 8px 20px rgba(31, 102, 64, 0.16);
  z-index: 2;
}

.site-navbar .container {
  min-height: 60px;
  align-items: center;
}

.site-navbar-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-navbar-collapse {
  align-items: center;
}

.site-navbar-nav,
.site-navbar-actions {
  align-items: center;
  gap: 0.25rem;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.85rem !important;
  border-radius: 12px;
  color: rgba(255,255,255,0.88) !important;
  font-weight: 600;
}

.site-nav-link:hover,
.site-nav-link:focus {
  background: rgba(255,255,255,0.12);
  color: #fff !important;
}

.site-nav-link-button {
  border: 0;
  background: transparent;
  margin: 0;
}

.site-nav-link-emphasis {
  background: rgba(255,255,255,0.12);
}

.site-nav-dropdown {
  border: 1px solid rgba(31, 102, 64, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
  padding: 0.4rem;
}

.site-nav-dropdown .dropdown-item {
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

.navbar-nav .btn-link {
  text-decoration: none;
}

/* Legend for Leaflet maps */
.legend {
  background: white;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  line-height: 1.9;
  font-size: 13px;
}

.legend-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Table improvements */
.table th {
  white-space: nowrap;
}

/* Flash messages */
.alert {
  border-radius: 6px;
}

/* ============================================================
   UI/UX ENHANCEMENTS
   ============================================================ */

/* Responsive map height — replaces all inline height values */
.map-container {
  height: clamp(300px, 55vh, 550px);
}

/* Skip-nav link (keyboard accessibility) */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: #198754;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
  color: #fff;
}

/* Geo-fence pulse animation on map load */
@keyframes geofence-pulse {
  0%   { stroke-width: 2; stroke-opacity: 1; }
  50%  { stroke-width: 5; stroke-opacity: 0.5; }
  100% { stroke-width: 2; stroke-opacity: 1; }
}
.geofence-pulse path {
  animation: geofence-pulse 2s ease-in-out 3;
}

/* Crosshair cursor in interactive map mode */
.leaflet-container.map-interactive {
  cursor: crosshair !important;
}
.leaflet-container.map-interactive .leaflet-marker-icon {
  cursor: grab !important;
}
.leaflet-container.map-interactive .leaflet-marker-icon:active {
  cursor: grabbing !important;
}

/* Drag handle indicator on draggable stand markers */
.stand-marker-draggable {
  position: relative;
}
.stand-marker-draggable::after {
  content: '\2807\2807';
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  padding: 1px 2px;
  line-height: 10px;
  pointer-events: none;
  letter-spacing: -1px;
}

/* Instruction banner */
.map-instruction-banner {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
}
.map-instruction-banner .banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1.3;
}
.map-instruction-banner .btn-close {
  margin-left: auto;
  flex-shrink: 0;
}

/* Mobile Floating Action Button */
.map-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
}
@media (max-width: 991.98px) {
  .map-fab {
    display: flex;
  }
}

/* Minimum touch targets — 44px per WCAG 2.5.5 */
.btn {
  min-height: 44px;
}
.btn-sm {
  min-height: 44px;
  min-width: 44px;
}
.form-check-input {
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.1em;
}

/* POI icon with symbol — replaces plain colored circles */
.poi-icon-svg {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.5px;
}

/* Enhanced legend items */
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 13px;
}
.legend-poi-badge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  /* Hide all interactive UI elements */
  .no-print,
  nav.navbar,
  footer.bg-light,
  footer.site-footer,
  .map-instruction-banner,
  .leaflet-control-container,
  .leaflet-control-zoom,
  .leaflet-control-attribution,
  .alert {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Map sized for A4 half-page */
  #print-map {
    height: 130mm !important;
    width: 100% !important;
    break-after: avoid;
    page-break-after: avoid;
  }

  /* Stand list: prevent rows breaking across pages */
  .print-stand-row {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* POI section: keep together */
  .print-poi-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Force color printing for badges */
  .stand-number-badge,
  .badge.bg-success {
    background: #000 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ============================================================
   DESIGN-SYSTEM – Erweiterungen für modernisierte Views
   ============================================================ */

/* Hero-Banner (index.ejs) – eigener Gradient statt Bootstrap bg-success */
.hero-banner {
  background: linear-gradient(135deg, #2d8a57 0%, #1f6640 100%) !important;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Akzent-Button (CTA) – Orange für "Mein Stand", "Neues Event" */
.btn.btn-accent {
  background-color: #e07b39;
  border-color: #e07b39;
  color: #fff;
}
.btn.btn-accent:hover,
.btn.btn-accent:focus {
  background-color: #c96b2a;
  border-color: #c96b2a;
  color: #fff;
}

.btn.btn-hero-secondary {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff;
}

.btn.btn-hero-secondary:hover,
.btn.btn-hero-secondary:focus {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.34);
  color: #fff;
}

/* Site-Footer – dunkles Grün statt bg-light */
footer.site-footer {
  position: relative;
  background: #1f6640;
  color: rgba(255,255,255,0.85);
  z-index: 1;
}
footer.site-footer a {
  color: rgba(255,255,255,0.75);
}
/* Audit M12: Mindest-Touch-Target von 44px für Impressum/Datenschutz im Footer */
footer.site-footer .site-footer-link {
  display: inline-block;
  padding: 14px 10px;
  min-height: 44px;
  line-height: 1.2;
}

/* Stand-Marker (event-map.ejs) – CSS-Klasse statt inline style */
.stand-marker {
  background: #198754;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* POI-Marker-Varianten (event-map.ejs) */
.poi-marker {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: white;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.poi-parking { background: #0d6efd; }
.poi-food    { background: #e07b39; }
.poi-toilet  { background: #0dcaf0; color: #212529 !important; }
.poi-info    { background: #198754; }

/* Legende – Farb-Dots ohne inline style */
.legend-dot--stand            { background: #198754; }
.legend-poi-badge--parking    { background: #0d6efd; }
.legend-poi-badge--food       { background: #e07b39; }
.legend-poi-badge--toilet     { background: #0dcaf0; color: #212529 !important; }
.legend-poi-badge--info       { background: #198754; }

/* ============================================================
   KARTEN-FILTERLEISTE & FAVORITEN (event-map.ejs)
   ============================================================ */

/* Kategorie-Chips über der Karte */
.map-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 0;
}
.map-filter-chip {
  border: 1px solid rgba(31,102,64,0.3);
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.map-filter-chip.active {
  background: var(--bs-success, #198754);
  color: #fff;
  border-color: var(--bs-success, #198754);
}
.map-filter-chip:hover:not(.active) {
  background: rgba(31,102,64,0.08);
}

/* Favoriten-Herz-Button */
.fav-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #dc3545;
  padding: 0 0.25rem;
  line-height: 1;
}
.fav-btn.active { color: #dc3545; }

/* Route-Aktionsleiste */
#fav-route-bar { display: none; padding: 0.5rem 0; }
#fav-route-bar.visible { display: block; }

/* Button-Hover: leichtes Anheben statt Brightness-Filter */
.btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: none;
}

/* ============================================================
   ADMIN-DASHBOARD – mehr Hierarchie, Energie und Überblick
   ============================================================ */

.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-hero {
  background:
    radial-gradient(circle at top right, rgba(224, 123, 57, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f5fbf7 100%);
  border: 1px solid rgba(31, 102, 64, 0.12);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 14px 30px rgba(31, 102, 64, 0.08);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.admin-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(31, 102, 64, 0.08);
  color: #1f6640;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.admin-title {
  font-size: clamp(2rem, 3vw, 2.15rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #173d29;
}

.admin-subtitle {
  max-width: 56rem;
  color: #5b6f63;
  font-size: 1rem;
}

.admin-hero-cta {
  align-self: center;
  padding-inline: 1.25rem;
  white-space: nowrap;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-kpi-card {
  background: #fff;
  border: 1px solid rgba(44, 44, 44, 0.08);
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-kpi-card--highlight {
  border-color: #ffc107;
  background: #fffbf0;
}

.admin-kpi-label {
  color: #6b6b6b;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.admin-kpi-value {
  font-size: 2rem;
  line-height: 1;
  color: #173d29;
}

.admin-kpi-meta {
  color: #6f7a73;
  font-size: 0.92rem;
}

.admin-panel {
  background: #fff;
  border: 1px solid rgba(44, 44, 44, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.1rem;
  background: linear-gradient(180deg, rgba(248, 250, 248, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
  border-bottom: 1px solid rgba(44, 44, 44, 0.08);
}

.admin-panel-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #173d29;
}

.admin-panel-copy {
  color: #6b6b6b;
  font-size: 0.94rem;
}

.admin-panel-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 102, 64, 0.08);
  color: #1f6640;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-empty-state {
  padding: 1.5rem;
  color: #6b6b6b;
}

/* Application cards inside admin-panel */
.admin-app-card {
  background: #fafafa;
  border: 1px solid rgba(44, 44, 44, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.admin-app-card--pending {
  border-left: 4px solid #ffc107;
  background: #fffdf5;
}

.admin-app-card-body {
  padding: 1.1rem 1.25rem;
}

.admin-table thead th {
  background: #f6f4ee;
  color: #173d29;
  border-bottom: 1px solid rgba(44, 44, 44, 0.08);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1rem 1rem 0.9rem;
}

.admin-table tbody td {
  padding: 1.05rem 1rem;
  border-color: rgba(44, 44, 44, 0.08);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(248, 246, 240, 0.65);
}

.admin-row-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #f1efe8;
  color: #173d29;
  font-weight: 700;
}

.admin-entity {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-entity-title {
  color: #1b1b1b;
  font-size: 1rem;
}

.admin-entity-meta,
.admin-date,
.admin-email {
  color: #6b6b6b;
  font-size: 0.92rem;
}

.admin-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-action-bar .btn,
.admin-action-bar form {
  margin: 0;
}

.admin-action-bar .btn {
  border-radius: 12px;
  padding: 0.58rem 0.9rem;
}

@media (max-width: 991.98px) {
  .admin-hero {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .admin-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-title {
    font-size: 2.25rem;
  }

  .admin-table thead th,
  .admin-table tbody td {
    padding-inline: 0.8rem;
  }
}

/* ============================================================
   LANDING, MAP, AUTH – gemeinsame moderne Bildsprache
   ============================================================ */

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 1rem;
  padding: 2rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.12), transparent 18%),
    radial-gradient(circle at 28% 32%, rgba(224, 123, 57, 0.12), transparent 16%),
    linear-gradient(90deg, rgba(18, 69, 42, 0.82), rgba(34, 122, 75, 0.68)),
    radial-gradient(circle at top right, rgba(224, 123, 57, 0.2), transparent 24%),
    linear-gradient(135deg, #1f6640 0%, #2d8a57 55%, #58a173 100%);
  background-size: auto, auto, auto, auto, auto;
  background-position: center, center, center, top right, center;
  box-shadow: 0 18px 40px rgba(31, 102, 64, 0.18);
  color: #fff;
  overflow: hidden;
}

.landing-eyebrow,
.section-heading-kicker,
.map-page-kicker,
.auth-stage-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-eyebrow,
.auth-stage-kicker {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  margin-bottom: 1rem;
}

.landing-title,
.auth-stage-title {
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.landing-subtitle,
.auth-stage-copy {
  font-size: 1rem;
  color: rgba(255,255,255,0.86);
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.landing-hero-stats {
  display: grid;
  gap: 0.9rem;
}

.landing-stat-card {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(8px);
}

.landing-stat-label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.72);
}

.landing-stat-value {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin: 0.35rem 0;
}

.landing-stat-meta,
.landing-empty-state {
  color: rgba(255,255,255,0.82);
}

.section-heading {
  display: inline-block;
  max-width: 46rem;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 18px;
  background: rgba(248, 246, 240, 0.88);
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}

.section-heading-kicker {
  background: rgba(31, 102, 64, 0.08);
  color: #1f6640;
  margin-bottom: 0.8rem;
}

.section-heading-title {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.02;
  color: #173d29;
  font-weight: 800;
}

.section-heading-copy {
  color: #6b6b6b;
}

/* ============================================================
   LEGAL PAGES – Impressum & Datenschutz
   ============================================================ */

.legal-page {
  max-width: 920px;
  margin: 0 auto;
}

.legal-hero {
  padding: 1.8rem 1.7rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.12), transparent 18%),
    radial-gradient(circle at 28% 32%, rgba(224, 123, 57, 0.12), transparent 16%),
    linear-gradient(90deg, rgba(18, 69, 42, 0.82), rgba(34, 122, 75, 0.68)),
    radial-gradient(circle at top right, rgba(224, 123, 57, 0.2), transparent 24%),
    linear-gradient(135deg, #1f6640 0%, #2d8a57 55%, #58a173 100%);
  box-shadow: 0 18px 40px rgba(31, 102, 64, 0.18);
  color: #fff;
}

.legal-title {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.legal-subtitle {
  margin: 0.7rem 0 0;
  max-width: 46rem;
  color: rgba(255,255,255,0.9);
}

.legal-content {
  margin-top: 1.2rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(44, 44, 44, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(8px);
}

.legal-content section + section {
  margin-top: 1.6rem;
  padding-top: 1.45rem;
  border-top: 1px solid rgba(23, 61, 41, 0.1);
}

.legal-content h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  color: #173d29;
  font-weight: 750;
}

.legal-content h3,
.legal-content h4 {
  color: #1f6640;
}

.legal-content p,
.legal-content li {
  color: #2d2d2d;
  line-height: 1.65;
}

.event-showcase-card {
  border: 1px solid rgba(44, 44, 44, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0,0,0,0.06) !important;
}

.event-showcase-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.event-showcase-badge {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(31, 102, 64, 0.08);
  color: #1f6640;
  font-size: 0.78rem;
  font-weight: 700;
}

.event-showcase-date,
.event-showcase-copy {
  color: #6b6b6b;
}

.event-showcase-title {
  font-size: 1.4rem;
  color: #173d29;
  margin-bottom: 0.65rem;
}

.event-showcase-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(44,44,44,0.06);
}

.map-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  border: 1px solid rgba(31, 102, 64, 0.1);
  box-shadow: 0 14px 30px rgba(0,0,0,0.05);
}

.map-page-kicker {
  background: rgba(31, 102, 64, 0.08);
  color: #1f6640;
  margin-bottom: 0.9rem;
}

.map-page-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #173d29;
}

.map-page-copy {
  color: #6b6b6b;
  max-width: 40rem;
}

.map-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.map-page-meta-pill,
.map-side-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #f1efe8;
  color: #173d29;
  font-size: 0.85rem;
  font-weight: 700;
}

.map-stage-card,
.map-side-panel {
  border: 1px solid rgba(44,44,44,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.05);
}

.map-stage-card .map-container {
  min-height: 34rem;
}

.map-side-panel {
  background: #fff;
}

.map-side-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid rgba(44,44,44,0.08);
}

.map-side-table thead th {
  background: #f6f4ee;
  color: #173d29;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.map-poi-list .list-group-item {
  border-left: 0;
  border-right: 0;
  padding: 0.9rem 1rem;
}

.auth-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 1.2rem;
  align-items: stretch;
  padding: 1rem 0 2rem;
}

.auth-stage-panel {
  border-radius: 22px;
  padding: 2rem;
  background:
    radial-gradient(circle at top right, rgba(224, 123, 57, 0.18), transparent 24%),
    linear-gradient(135deg, #1f6640 0%, #2d8a57 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(31, 102, 64, 0.18);
}

.auth-stage-list {
  margin: 1.25rem 0 0;
  padding-left: 1.1rem;
  color: rgba(255,255,255,0.88);
}

.auth-stage-list li + li {
  margin-top: 0.6rem;
}

.auth-stage-form-wrap {
  display: flex;
  align-items: center;
}

.auth-card {
  width: 100%;
  border: 1px solid rgba(44,44,44,0.08);
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.06) !important;
}

.auth-card-title {
  text-align: left;
  font-size: 1.85rem;
  color: #173d29;
  font-weight: 800;
}

.auth-divider {
  margin: 1.4rem 0;
}

@media (max-width: 991.98px) {
  .site-navbar-actions,
  .site-navbar-nav {
    align-items: stretch;
  }

  .site-nav-link,
  .site-nav-link-button {
    justify-content: flex-start;
    width: 100%;
  }

  .landing-hero,
  .auth-stage {
    grid-template-columns: 1fr;
  }

  .map-page-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-stage-card .map-container {
    min-height: 24rem;
  }
}

@media (max-width: 767.98px) {
  .landing-hero,
  .auth-stage-panel,
  .map-page-hero {
    padding: 1.35rem;
  }

  .landing-title,
  .auth-stage-title,
  .map-page-title {
    font-size: 2.15rem;
  }

  .section-heading {
    display: block;
  }

  .legal-hero,
  .legal-content {
    padding: 1.2rem;
  }
}

/* ── Kategorie-Pill-Checkboxen ──────────────────────────────────────────── */
.cat-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(31, 102, 64, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  background: #fff;
  color: #173d29;
}

.cat-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cat-pill:has(input:checked) {
  background: #198754;
  border-color: #198754;
  color: #fff;
}

.cat-pill:hover {
  background: rgba(31, 102, 64, 0.08);
  border-color: #198754;
}

.cat-pill:has(input:checked):hover {
  background: #157347;
}

.cat-pill-group--sm .cat-pill {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
}

/* ============================================================
   LANDING – Sekundär-Sektionen (Region-Picker, Über-Flohmap)
   ============================================================ */

/* Volle-Breite-Variante der Sektions-Überschriften ohne Card-Hintergrund.
   .section-heading hat ein inline-block + max-width + Cream-Karten-Look,
   das passt für Heading-direkt-vor-Card-Grid, aber nicht für die neuen
   Sekundär-Sektionen darunter, wo der Heading sonst wie ein gestrandetes
   Bonbon im Hintergrundmuster aussieht. */
.section-heading--plain {
  display: block;
  max-width: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  margin-bottom: 1rem;
}

/* Bundesland-Pills: gleiche Optik wie die "Karte & Infos"-Buttons (btn-success),
   nur kompakter. Wichtig: klare Lesbarkeit auf dem gemusterten Hintergrund. */
.region-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.region-pill-list .btn {
  border-radius: 999px;
  padding-inline: 0.95rem;
}

/* ============================================================
   ZUSAMMENKLAPPBARE INFO-KARTEN (Poster, QR-Code)
   Genutzt auf event-map.ejs und event-seo.ejs. <details>-nativ:
   Desktop zeigt den Inhalt offen, Mobile startet eingeklappt
   (Inline-Script entfernt das open-Attribut bei < 768px).
   ============================================================ */
.collapsible-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 1rem;
  overflow: hidden;
}
.collapsible-card > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: #173d29;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: none;
}
.collapsible-card > summary::-webkit-details-marker { display: none; }
.collapsible-card > summary .summary-chevron {
  transition: transform 0.2s ease;
  font-size: 1rem;
}
.collapsible-card[open] > summary .summary-chevron { transform: rotate(180deg); }
.collapsible-card > .collapsible-body {
  padding: 0 1rem 1rem;
}
@media (min-width: 768px) {
  /* Auf Tablet/Desktop: Summary als reine Überschrift, kein Click-Cursor,
     kein Chevron – Inhalt ist immer offen, da wir das open-Attribut
     server-seitig setzen. */
  .collapsible-card > summary { cursor: default; }
  .collapsible-card > summary .summary-chevron { display: none; }
}

/* ============================================================
   EVENT-KARTEN – sichtbare SEO-Microcopy + Mobile-Härtung
   ============================================================ */

/* Dezente Ortszeile direkt unter dem Titel – enthält Stadt + Bundesland,
   um die wichtigsten lokalen SEO-Keywords sichtbar im DOM zu halten. */
.event-showcase-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: -0.25rem 0 0.6rem;
  font-size: 0.9rem;
  color: #5b6f63;
}
.event-showcase-location .bi {
  color: #1f6640;
}

/* Zwei Datumsformen: lang für Desktop, kompakt für Mobile.
   Beide stehen im DOM (mit gleichem datetime-Attribut), aber nur eine ist
   sichtbar – Google liest das datetime-Attribut sowieso. */
.event-date-short { display: none; }

@media (max-width: 575.98px) {
  /* Layout: weniger Innenabstand, Buttons vertikal stapeln */
  .event-showcase-card .card-body { padding: 1rem; }
  .event-showcase-footer {
    padding: 0.85rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .event-showcase-footer .btn {
    width: 100%;
    margin-left: 0 !important;
  }
  /* Tertiäraktionen ausblenden – auf der Karte einen Klick weiter erreichbar */
  .event-showcase-footer .btn-print-hide-mobile { display: none; }

  /* Lange Datumsschreibweise → kurze */
  .event-date-full  { display: none; }
  .event-date-short { display: inline; }

  /* Topline kompakter */
  .event-showcase-topline { gap: 0.4rem; }
  .event-showcase-title { font-size: 1.2rem; }
}
