/* ================================================================
   MASTER.CSS — WIR KEiTUM Genusswoche 2026
   ================================================================

   INHALTSVERZEICHNIS
   ──────────────────────────────────────────────────────────────
   GLOBAL
     1.  Design Tokens (CSS Custom Properties)
     2.  Reset & Base
     3.  Animationen
     4.  Layout-Utilities

   KOMPONENTEN (seitenübergreifend)
     5.  Header (Standard-Seiten-Header)
     6.  Bottom Navigation
     7.  Badges & Kategorie-Pills
     8.  Buttons (allgemein)
     9.  Footer
    10.  Responsive Breakpoints

   SEITENSPEZIFISCH
    11.  [INDEX]      Startseite
    12.  [PROGRAMM]   Veranstaltungsprogramm
    13.  [KARTE]      Interaktive Karte
    14.  [FAVORITEN]  Gemerkter Events
    15.  [AUSSTELLER] Ausstellerübersicht (Platzhalter)
   ================================================================ */


/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
  /* Kernfarben */
  --navy:           #1B3A5C;
  --navy-deep:      #122740;
  --gold:           #E8A832;
  --terracotta:     #C4432A;
  --sand-light:     #F5F0E8;
  --sand-warm:      #E8DCC8;
  --sky-blue:       #7BAED0;
  --sea-deep:       #2D5F8A;
  --amber:          #D4863C;
  --sage:           #8BA67A;
  --white:          #FFFFFF;

  /* Text */
  --text-primary:   #1A2B3D;
  --text-secondary: #5A6B7A;
  --text-light:     #8A95A0;

  /* Borders */
  --border:         rgba(27, 58, 92, 0.12);
  --border-light:   rgba(27, 58, 92, 0.08);
  --border-medium:  rgba(27, 58, 92, 0.15);

  /* Zusätzliche Farben */
  --off-white:      #F8F7F4;
  --text-muted:     #8A95A0;

  /* Kategorie-Farben */
  --cat-food:       #C4432A;
  --cat-fashion:    #1B3A5C;
  --cat-kunst:      #8BA67A;
  --cat-kultur:     #D4863C;
  --cat-kunst-text: #5E7A4E;   /* dunklere Variante für Text auf hellem Grund */

  /* Typografie */
  --font-display:   'Libre Baskerville', Georgia, serif;
  --font-body:      'Source Sans 3', 'Helvetica Neue', sans-serif;
  --font-serif:     'Libre Baskerville', Georgia, serif;
  --font-sans:      'Source Sans 3', 'Helvetica Neue', sans-serif;

  /* Schatten */
  --shadow-sm:      0 1px 3px rgba(27, 58, 92, 0.06);
  --shadow-md:      0 4px 16px rgba(27, 58, 92, 0.08);
  --shadow-lg:      0 12px 40px rgba(27, 58, 92, 0.12);
  --shadow-card:    0 2px 8px rgba(27, 58, 92, 0.05), 0 0 1px rgba(27, 58, 92, 0.08);

  /* Radien */
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;
  --radius-xl:      20px;
}


/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:              var(--font-body);
  font-size:                16px;
  line-height:              1.6;
  color:                    var(--text-primary);
  background:               var(--sand-light);
  -webkit-font-smoothing:   antialiased;
  overflow-x:               hidden;
}


/* ================================================================
   3. ANIMATIONEN
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes favPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Scroll-gesteuerte Einblend-Animation (IntersectionObserver) */
.animate              { opacity: 0; }
.animate.visible      { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-delay-1      { animation-delay: 0.1s !important; }
.animate-delay-2      { animation-delay: 0.2s !important; }
.animate-delay-3      { animation-delay: 0.3s !important; }
.animate-delay-4      { animation-delay: 0.4s !important; }


/* ================================================================
   4. LAYOUT-UTILITIES
   ================================================================ */
.container {
  width:   100%;
  margin:  0 auto;
  padding: 0 20px;
}


/* ================================================================
   5. HEADER (Standard-Seiten-Header)
      Genutzt von: programm.html, karte.html, favoriten.html
   ================================================================ */
.header {
  position:         fixed;
  top:              0;
  left:             0;
  right:            0;
  z-index:          1000;
  background:       rgba(255, 255, 255, 0.95);
  backdrop-filter:  blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom:    1px solid var(--border-light);
  padding:          12px 16px;
  /* Safe-area: Status-Leiste / Dynamic Island / Notch korrekt einrechnen */
  padding-top:      max(12px, env(safe-area-inset-top, 0px));
  display:          flex;
  align-items:      center;
  justify-content:  space-between;
}

.header-logo {
  width:         36px;
  height:        36px;
  border-radius: 50%;
}

.header-title {
  font-family: var(--font-display);
  font-size:   16px;
  font-weight: 700;
  color:       var(--navy);
}

/* Desktop Navigation (hidden on mobile) */
.desktop-nav            { display: none; align-items: center; gap: 2px; }

.desktop-nav-item {
  display:         flex;
  align-items:     center;
  padding:         7px 14px;
  font-family:     var(--font-body);
  font-size:       14px;
  font-weight:     600;
  color:           var(--text-secondary);
  text-decoration: none;
  border-radius:   10px;
  transition:      all 0.2s ease;
  white-space:     nowrap;
}
.desktop-nav-item:hover  { background: var(--sand-light); color: var(--navy); }
.desktop-nav-item.active { color: var(--navy); background: rgba(27, 58, 92, 0.08); }

/* Hero-Header: floating nav over the video hero (index.html only) */
.hero-header {
  display:         none;
  position:        absolute;
  top:             0;
  left:            0;
  right:           0;
  z-index:         10;
  background:      linear-gradient(to bottom, rgba(10, 25, 45, 0.65) 0%, transparent 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom:   none;
}


/* ================================================================
   6. BOTTOM NAVIGATION
      Identisch auf allen Seiten
   ================================================================ */
.bottom-nav {
  position:         fixed;
  bottom:           0;
  left:             0;
  right:            0;
  z-index:          100;
  background:       rgba(255, 255, 255, 0.94);
  backdrop-filter:  blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top:       1px solid var(--border-light);
  display:          flex;
  justify-content:  space-around;
  padding:          6px 0;
  padding-bottom:   max(6px, env(safe-area-inset-bottom));
}

.nav-item {
  display:    flex;
  flex-direction: column;
  align-items: center;
  gap:         1px;
  padding:     4px 10px;
  text-decoration: none;
  color:       var(--text-light);
  font-size:   9px;
  font-weight: 600;
  transition:  color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-item .nav-icon  { font-size: 20px; line-height: 1; }
.nav-item.active     { color: var(--navy); }
.nav-item:active     { transform: scale(0.95); }

/* Favoriten-Badge */
.nav-fav { position: relative; }

.fav-count {
  position:      absolute;
  top:           -2px;
  right:         -2px;
  background:    var(--terracotta);
  color:         white;
  font-size:     8px;
  font-weight:   700;
  min-width:     14px;
  height:        14px;
  border-radius: 7px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  padding:       0 3px;
}


/* ================================================================
   7. BADGES & KATEGORIE-PILLS
      Genutzt von: index.html, programm.html, karte.html
   ================================================================ */

/* Kompakte Badges (in Karten & Sheets) */
.badge {
  display:     inline-flex;
  align-items: center;
  gap:         2px;
  padding:     2px 7px;
  border-radius: 20px;
  font-size:   10px;
  font-weight: 700;
}

/* Helle Badges (auf weißem Hintergrund) */
.badge-food    { background: rgba(196, 67, 42, 0.10); color: var(--cat-food); }
.badge-fashion { background: rgba(27, 58, 92, 0.08);  color: var(--cat-fashion); }
.badge-kunst   { background: rgba(139, 166, 122, 0.12); color: var(--cat-kunst-text); }
.badge-kultur  { background: rgba(212, 134, 60, 0.10); color: var(--cat-kultur); }

/* Hervorgehobene Badges (auf Bild / dunklem Hintergrund) */
.badge-food-solid    { background: rgba(196, 67, 42, 0.9);  color: white; }
.badge-fashion-solid { background: rgba(27, 58, 92, 0.9);   color: white; }
.badge-kunst-solid   { background: rgba(139, 166, 122, 0.9); color: white; }
.badge-kultur-solid  { background: rgba(212, 134, 60, 0.9); color: white; }

/* Kategorie-Pills (Intro-Bereich index.html) */
.cat-pill {
  display:     inline-flex;
  align-items: center;
  gap:         4px;
  padding:     7px 14px;
  border-radius: 50px;
  font-size:   13px;
  font-weight: 600;
}
/* Legacy (programm page) */
.cat-pill-food    { background: rgba(196, 67, 42, 0.08);  color: var(--cat-food); }
.cat-pill-fashion { background: rgba(27, 58, 92, 0.08);   color: var(--cat-fashion); }
.cat-pill-kunst   { background: rgba(139, 166, 122, 0.10); color: var(--cat-kunst-text); }
.cat-pill-kultur  { background: rgba(212, 134, 60, 0.08); color: var(--cat-kultur); }
/* New 9-category pills */
.cat-pill-shopping  { background: rgba(27,58,92,0.09);    color: var(--cat-shopping); }
.cat-pill-genuss    { background: rgba(196,67,42,0.09);   color: var(--cat-genuss); }
.cat-pill-hotel     { background: rgba(46,110,142,0.09);  color: var(--cat-hotel); }
.cat-pill-handwerk  { background: rgba(123,92,58,0.09);   color: var(--cat-handwerk); }
.cat-pill-kultur9   { background: rgba(91,74,138,0.09);   color: var(--cat-kultur); }
.cat-pill-makler    { background: rgba(58,122,92,0.09);   color: var(--cat-makler); }
.cat-pill-freizeit  { background: rgba(74,138,58,0.09);   color: var(--cat-freizeit); }
.cat-pill-bank      { background: rgba(138,122,42,0.09);  color: var(--cat-bank); }
.cat-pill-kirche    { background: rgba(138,90,42,0.09);   color: var(--cat-kirche); }


/* ================================================================
   8. BUTTONS (allgemein)
   ================================================================ */
.btn-primary {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  padding:         12px 24px;
  background:      var(--navy);
  color:           white;
  font-family:     var(--font-body);
  font-size:       14px;
  font-weight:     700;
  text-decoration: none;
  border-radius:   50px;
  border:          none;
  cursor:          pointer;
  transition:      all 0.3s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-gold {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  padding:         14px 28px;
  background:      var(--gold);
  color:           var(--navy-deep);
  font-family:     var(--font-body);
  font-size:       15px;
  font-weight:     700;
  text-decoration: none;
  border-radius:   50px;
  border:          none;
  cursor:          pointer;
  transition:      all 0.3s ease;
  box-shadow:      0 4px 15px rgba(232, 168, 50, 0.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232, 168, 50, 0.4); }


/* ================================================================
   9. FOOTER
      Nur index.html
   ================================================================ */
.footer {
  background:  var(--navy-deep);
  color:       rgba(255, 255, 255, 0.6);
  padding:     36px 0 100px;
  text-align:  center;
}

.footer-logo {
  width:         52px;
  height:        52px;
  border-radius: 50%;
  margin-bottom: 12px;
  opacity:       0.8;
}

.footer-tagline {
  font-family:   var(--font-display);
  font-style:    italic;
  font-size:     14px;
  margin-bottom: 20px;
  color:         rgba(255, 255, 255, 0.4);
}

.footer-links {
  display:         flex;
  justify-content: center;
  gap:             20px;
  margin-bottom:   20px;
}

.footer-links a {
  font-size:       13px;
  color:           rgba(255, 255, 255, 0.35);
  text-decoration: none;
}
.footer-links a:hover { color: rgba(255, 255, 255, 0.7); }

.footer-copy { font-size: 11px; color: rgba(255, 255, 255, 0.2); }


/* ================================================================
   10. RESPONSIVE BREAKPOINTS (global)
   ================================================================ */

/* --- Tablet (641px+) --- */
@media (min-width: 641px) {
  .container   { max-width: 720px; padding: 0 32px; }
  .bottom-nav  { display: none; }
  body         { padding-bottom: 0; }
  .desktop-nav { display: flex; }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
  .container { max-width: 1040px; padding: 0 48px; }
}

/* --- Wide Desktop (1280px+) --- */
@media (min-width: 1280px) {
  .container { max-width: 1240px; }
}




/* ================================================================
   11. [INDEX] STARTSEITE
   ================================================================ */

/* Body-Override für index.html */
body.page-index {
  padding-bottom: 80px;
}

/* -- Hero -- */
.hero {
  position:        relative;
  height:          100svh;
  min-height:      580px;
  max-height:      860px;
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  align-items:     center;
  overflow:        hidden;
  background:      var(--navy-deep); /* shows while video loads */
}

.hero-video              { position: absolute; inset: 0; }
.hero-video video {
  width:          100%;
  height:         100%;
  object-fit:     cover;
  object-position: center center;
  opacity:        0;
  transition:     opacity 1.4s ease;
}
.hero-video video.vid-ready { opacity: 1; }

.hero-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    to bottom,
    rgba(18, 39, 64, 0.30) 0%,
    rgba(18, 39, 64, 0.45) 50%,
    rgba(18, 39, 64, 0.72) 100%
  );
}

.hero-content {
  position:        relative;
  z-index:         2;
  padding:         0 32px 60px;
  color:           white;
  text-align:      center;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  animation:       fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-logo {
  width:         140px;
  height:        140px;
  object-fit:    contain;
  margin-bottom: 24px;
  filter:        drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
}

.hero-date {
  display:        inline-block;
  font-size:      13px;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          white;
  margin-bottom:  18px;
  background:     rgba(232, 168, 50, 0.25);
  padding:        6px 18px;
  border-radius:  50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border:         1px solid rgba(232, 168, 50, 0.35);
}

.hero-title {
  font-family:   var(--font-display);
  font-size:     40px;
  line-height:   1.08;
  font-weight:   700;
  margin-bottom: 14px;
  text-align:    center;
}
.hero-title em    { font-style: italic; font-weight: 400; color: var(--gold); }

.hero-subtitle {
  font-size:     17px;
  font-weight:   300;
  opacity:       0.85;
  margin-bottom: 32px;
  max-width:     300px;
  line-height:   1.55;
  text-align:    center;
}

.hero-cta {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  padding:         14px 32px;
  background:      var(--gold);
  color:           var(--navy-deep);
  font-family:     var(--font-body);
  font-size:       15px;
  font-weight:     700;
  text-decoration: none;
  border-radius:   50px;
  box-shadow:      0 4px 20px rgba(232, 168, 50, 0.4);
  transition:      all 0.3s ease;
}
.hero-cta:hover {
  transform:  translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 168, 50, 0.5);
}

/* -- Intro -- */
.intro          { padding: 56px 0 48px; text-align: center; }

.intro-overline {
  font-size:      11px;
  font-weight:    600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          var(--amber);
  margin-bottom:  14px;
}

.intro-headline {
  font-family:  var(--font-display);
  font-size:    24px;
  line-height:  1.3;
  color:        var(--navy);
  margin-bottom: 16px;
  max-width:    360px;
  margin-left:  auto;
  margin-right: auto;
}

.intro-text {
  font-size:    15px;
  line-height:  1.7;
  color:        var(--text-secondary);
  max-width:    380px;
  margin:       0 auto 28px;
}

.intro-categories {
  display:         flex;
  justify-content: center;
  gap:             8px;
  flex-wrap:       wrap;
}

/* -- Highlights -- */
.highlights { padding: 0 0 56px; }

.section-header {
  display:         flex;
  justify-content: space-between;
  align-items:     baseline;
  margin-bottom:   20px;
  padding:         0 20px;
}

.section-title { font-family: var(--font-display); font-size: 20px; color: var(--navy); }

.section-link {
  font-size:       13px;
  font-weight:     600;
  color:           var(--sea-deep);
  text-decoration: none;
  display:         flex;
  align-items:     center;
  gap:             4px;
  transition:      gap 0.2s ease;
}
.section-link:hover { gap: 8px; }

.highlight-scroll {
  display:           flex;
  gap:               14px;
  overflow-x:        auto;
  scroll-snap-type:  x mandatory;
  -webkit-overflow-scrolling: touch;
  padding:           4px 20px 12px;
  scrollbar-width:   none;
}
.highlight-scroll::-webkit-scrollbar { display: none; }

/* ── Highlight-Card: Full-bleed mit Gradient-Overlay ─────────── */
.highlight-card {
  flex:           0 0 240px;
  scroll-snap-align: start;
  border-radius:  var(--radius-lg);
  overflow:       hidden;
  box-shadow:     var(--shadow-card);
  border:         1px solid rgba(0,0,0,0.08);
  transition:     box-shadow 0.3s ease, transform 0.3s ease;
  position:       relative;           /* Anker für absolutes Body */
  background:     var(--navy);        /* Ladezeit-Fallback */
  display:        block;
}
.highlight-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
a.highlight-card      { text-decoration: none; color: inherit; }

/* Bildcontainer — konsistentes 4:3-Format für alle Bildtypen */
.highlight-card-image {
  aspect-ratio:  4 / 3;
  overflow:      hidden;
  position:      relative;
  width:         100%;
}
.highlight-card-image img {
  width:            100%;
  height:           100%;
  object-fit:       cover;
  object-position:  center 25%;   /* bevorzugt obere Bildhälfte (Gesichter, Schilder) */
  display:          block;
  transition:       transform 0.55s ease;
}
.highlight-card:hover .highlight-card-image img { transform: scale(1.05); }

/* Verlaufs-Overlay — untere 60 % abgedunkelt */
.highlight-card-image::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)    25%,
    rgba(8,18,32,.6) 65%,
    rgba(8,18,32,.88) 100%
  );
  z-index: 1;
}

/* Badge oben links, über dem Verlauf */
.highlight-card-image .card-badge {
  position:          absolute;
  top:               10px;
  left:              10px;
  z-index:           2;
  padding:           3px 10px;
  border-radius:     20px;
  font-size:         10px;
  font-weight:       700;
  background:        rgba(255,255,255,0.88) !important;
  backdrop-filter:   blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing:    0.03em;
}

/* Text-Body über dem Verlauf — absolut am unteren Kartenrand */
.highlight-card-body {
  position:  absolute;
  bottom:    0;
  left:      0;
  right:     0;
  padding:   14px 14px 16px;
  z-index:   2;
}
.highlight-card-body .card-day {
  font-size:      10px;
  font-weight:    700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.62);
  margin-bottom:  3px;
}
.highlight-card-body .card-title {
  font-family:   var(--font-display);
  font-size:     14px;
  line-height:   1.3;
  color:         #fff;
  margin-bottom: 3px;
  font-weight:   700;
}
.highlight-card-body .card-venue {
  font-size:   12px;
  color:       rgba(255,255,255,0.6);
  font-weight: 500;
}

/* Kategorie-Badge im Overlay-Body (unten links unter Venue-Name) */
.highlight-card-body .hc-badge {
  display:          inline-flex;
  align-items:      center;
  gap:              4px;
  margin-top:       6px;
  padding:          3px 9px;
  border-radius:    20px;
  font-size:        10px;
  font-weight:      600;
  letter-spacing:   0.03em;
  background:       rgba(255,255,255,0.13) !important;
  color:            rgba(255,255,255,0.78) !important;
  border:           1px solid rgba(255,255,255,0.22);
  backdrop-filter:  blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Reservieren-Button (rot-akzentuiert) */
.btn-reserve {
  background: var(--rust, #C4432A);
  color:      #fff;
  border:     none;
  cursor:     pointer;
}
.btn-reserve:hover { background: #a83522; }

/* Highlight-Pulse: Aufleuchten beim Deep-Link-Scroll */
@keyframes evt-pulse {
  0%, 100% { box-shadow: var(--shadow-card, 0 2px 8px rgba(0,0,0,0.08)); }
  35%       { box-shadow: 0 0 0 4px rgba(196,67,42,0.45), 0 4px 20px rgba(196,67,42,0.2); }
}
.evt-highlight { animation: evt-pulse 1.6s ease; }

/* Basis-Styles (genutzt von programm.html; highlight-card überschreibt via Scoping) */
.card-day {
  font-size:      11px;
  font-weight:    600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:          var(--text-light);
  margin-bottom:  4px;
}
.card-title {
  font-family:   var(--font-display);
  font-size:     15px;
  line-height:   1.3;
  color:         var(--text-primary);
  margin-bottom: 4px;
}
.card-venue { font-size: 13px; color: var(--text-secondary); font-weight: 500; margin-bottom: 10px; }

.card-footer {
  display:     flex;
  align-items: center;
  justify-content: space-between;
}

.card-time    { font-size: 13px; font-weight: 600; color: var(--navy); }
.card-actions { display: flex; gap: 5px; }

.card-action {
  width:           44px;
  height:          44px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  border-radius:   50%;
  border:          1.5px solid var(--border-light);
  background:      white;
  font-size:       14px;
  text-decoration: none;
  transition:      all 0.2s ease;
  cursor:          pointer;
}
.card-action:hover { background: var(--navy); border-color: var(--navy); transform: scale(1.08); }

/* -- Quote Slider -- */
.quote-slider {
  padding:    44px 24px;
  background: var(--navy);
  text-align: center;
  overflow:   hidden;
}

.quote-track {
  min-height: 100px;
  display:    flex;
  align-items: center;
  justify-content: center;
}

.quote-slide {
  display: none;
}
.quote-slide.active {
  display:   block;
  animation: qFadeIn 0.55s ease;
}

@keyframes qFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.qslide-text {
  font-family: var(--font-serif);
  font-style:  italic;
  font-size:   20px;
  line-height: 1.55;
  color:       rgba(255,255,255,0.92);
  max-width:   560px;
  margin:      0 auto 12px;
}

.qslide-src {
  font-size:   12px;
  font-family: var(--font-sans);
  color:       var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin:      0;
}

.quote-dots {
  display:         flex;
  justify-content: center;
  align-items:     center;
  gap:             7px;
  margin-top:      22px;
}

.qdot {
  height:        8px;
  width:         8px;
  border-radius: 4px;
  background:    rgba(255,255,255,0.22);
  border:        none;
  padding:       0;
  cursor:        pointer;
  transition:    background 0.25s, width 0.25s;
}
.qdot.active {
  background: var(--gold);
  width:      22px;
}

/* -- Photo Strip -- */
.photo-strip {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows:    160px 160px;
  gap:                   3px;
}
.photo-strip img      { width: 100%; height: 100%; object-fit: cover; }
.photo-strip .wide    { grid-column: span 2; }

/* -- Stats -- */
.stats      { padding: 44px 0; background: var(--sand-warm); }

.stats-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   16px;
  text-align:            center;
}

.stat-number {
  font-family:   var(--font-display);
  font-size:     30px;
  font-weight:   700;
  color:         var(--navy);
  line-height:   1;
  margin-bottom: 4px;
}

.stat-label {
  font-size:      11px;
  font-weight:    600;
  color:          var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* -- Map Teaser -- */
.map-teaser { padding: 56px 0; text-align: center; }

.map-teaser-headline {
  font-family:   var(--font-display);
  font-size:     20px;
  color:         var(--navy);
  margin-bottom: 8px;
}

.map-teaser-text {
  font-size:    15px;
  color:        var(--text-secondary);
  margin-bottom: 24px;
  max-width:    300px;
  margin-left:  auto;
  margin-right: auto;
}

.map-streets {
  display:         flex;
  flex-wrap:       wrap;
  justify-content: center;
  gap:             6px;
  margin-bottom:   24px;
}

.street-tag {
  padding:       6px 12px;
  background:    white;
  border-radius: 50px;
  font-size:     12px;
  font-weight:   600;
  color:         var(--text-secondary);
  box-shadow:    var(--shadow-sm);
}

.map-cta {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  padding:         12px 24px;
  background:      white;
  color:           var(--navy);
  font-size:       14px;
  font-weight:     700;
  text-decoration: none;
  border-radius:   50px;
  box-shadow:      var(--shadow-md);
  transition:      all 0.3s ease;
}
.map-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* -- Partners -- */
.partners { padding: 40px 0; text-align: center; }

.partners-label {
  font-size:      11px;
  font-weight:    600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          var(--text-light);
  margin-bottom:  16px;
}

.partners-logos {
  display:         flex;
  justify-content: center;
  align-items:     center;
  gap:             28px;
  flex-wrap:       wrap;
  opacity:         0.45;
}

.partner-logo {
  font-family: var(--font-display);
  font-size:   15px;
  font-weight: 700;
  color:       var(--text-secondary);
}

/* Responsive index.html */
@media (min-width: 641px) {
  body.page-index  { padding-bottom: 0; }

  /* Hero */
  .hero-header     { display: flex; }
  .hero-header .header-title        { color: rgba(255, 255, 255, 0.92); }
  .hero-header .desktop-nav-item    { color: rgba(255, 255, 255, 0.80); }
  .hero-header .desktop-nav-item:hover  { background: rgba(255,255,255,0.15); color: white; }
  .hero-header .desktop-nav-item.active { background: rgba(255,255,255,0.18); color: white; }
  .hero-title      { font-size: 56px; }
  .hero-logo       { width: 160px; height: 160px; }
  .hero-content    { padding-bottom: 80px; }

  /* Intro */
  .intro-headline  { font-size: 28px; max-width: 600px; }
  .intro-text      { max-width: 600px; }

  /* Section padding */
  .section-header  { padding: 0; }
  .highlight-scroll { padding: 4px 0 12px; }
}

@media (min-width: 1024px) {
  /* Hero */
  .hero-title  { font-size: 76px; }
  .hero-logo   { width: 200px; height: 200px; }
  .hero-subtitle { max-width: 440px; font-size: 19px; }

  /* Highlights → echtes Grid statt Scroll */
  .highlight-scroll {
    display:           grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x:        visible;
    scroll-snap-type:  none;
    padding:           4px 0 12px;
    gap:               20px;
  }
  .highlight-card   { flex: none; width: auto; scroll-snap-align: none; }

  /* Photo Strip → 3-spaltig */
  .photo-strip {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows:    240px;
  }
  .photo-strip .wide { grid-column: span 1; }

  /* Intro wider */
  .intro-headline  { font-size: 36px; max-width: 800px; }
  .intro-text      { max-width: 680px; }
  .map-teaser-text { max-width: 560px; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: 90px; }
  /* 4 Karten nebeneinander auf großen Screens */
  .highlight-scroll { grid-template-columns: repeat(4, 1fr); }
}




/* ================================================================
   12. [PROGRAMM] VERANSTALTUNGSPROGRAMM
   ================================================================ */

body.page-programm {
  padding-top:    60px;   /* nur fixer Header; Day-Tabs sind in-flow */
  padding-bottom: 80px;
}

/* -- Day Tabs (jetzt eigenständig sticky unter dem Header) -- */
.day-tabs {
  position:        sticky;
  top:             60px;   /* direkt unter dem fixen .header */
  z-index:         90;
  background:      rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom:   1px solid var(--border-light);
  display:         flex;
  gap:             4px;
  padding:         8px 12px 10px;
  overflow-x:      auto;
  scrollbar-width: none;
}
.day-tabs::-webkit-scrollbar { display: none; }

.day-tab {
  flex:           1;
  min-width:      52px;
  text-align:     center;
  padding:        6px 4px;
  border-radius:  10px;
  font-size:      11px;
  font-weight:    600;
  color:          var(--text-secondary);
  cursor:         pointer;
  transition:     all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  background:     transparent;
  border:         none;
  display:        flex;
  flex-direction: column;
  gap:            1px;
  font-family:    var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
.day-tab .day-name  { font-size: 12px; letter-spacing: 0.04em; }
.day-tab .day-num   { font-size: 16px; font-weight: 700; }
.day-tab:hover      { background: var(--sand-warm); }
.day-tab.active     { background: var(--navy); color: white; box-shadow: var(--shadow-sm); }

/* -- Filter Bar -- */
.filter-bar {
  padding:        12px 16px;
  display:        flex;
  gap:            8px;
  overflow-x:     auto;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  display:     inline-flex;
  align-items: center;
  gap:         4px;
  padding:     7px 14px;
  border-radius: 50px;
  font-size:   13px;
  font-weight: 600;
  border:      1.5px solid var(--border-medium);
  background:  white;
  color:       var(--text-secondary);
  cursor:      pointer;
  transition:  all 0.2s;
  white-space: nowrap;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
.filter-btn:hover           { border-color: var(--navy); color: var(--navy); }
.filter-btn.active          { background: var(--navy);        color: white; border-color: var(--navy); }
.filter-btn.active-food     { background: var(--cat-food);    color: white; border-color: var(--cat-food); }
.filter-btn.active-fashion  { background: var(--cat-fashion); color: white; border-color: var(--cat-fashion); }
.filter-btn.active-kunst    { background: var(--cat-kunst);   color: white; border-color: var(--cat-kunst); }
.filter-btn.active-kultur   { background: var(--cat-kultur);  color: white; border-color: var(--cat-kultur); }

/* -- Day Sections -- */
.day-section        { display: none; padding: 0 16px 24px; }
.day-section.active { display: block; }
.day-count          { font-size: 13px; color: var(--text-light); margin-bottom: 14px; font-weight: 500; }
.event-list         { display: flex; flex-direction: column; gap: 12px; }

/* -- Flip Cards -- */
.flipcard {
  perspective: 1000px;
  height:      294px;
  animation:   cardIn 0.4s ease both;
}
.flipcard:nth-child(2) { animation-delay: 0.04s; }
.flipcard:nth-child(3) { animation-delay: 0.08s; }
.flipcard:nth-child(4) { animation-delay: 0.12s; }
.flipcard:nth-child(5) { animation-delay: 0.16s; }

.prog-empty {
  display:         flex;
  justify-content: center;
  align-items:     center;
  padding:         48px 24px;
}
.prog-empty-text {
  font-family: var(--font-sans);
  font-size:   15px;
  color:       var(--text-muted);
  text-align:  center;
}

.flipcard-inner {
  position:        relative;
  width:           100%;
  height:          100%;
  transition:      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  cursor:          pointer;
  -webkit-tap-highlight-color: transparent;
}
.flipcard-inner.flipped { transform: rotateY(180deg); }

.flipcard-front,
.flipcard-back {
  position:            absolute;
  inset:               0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background:          var(--white);
  border-radius:       var(--radius-lg);
  box-shadow:          var(--shadow-card);
  border:              1px solid var(--border-light);
  padding:             14px 16px;
  display:             flex;
  flex-direction:      column;
  overflow:            hidden;
}

.flipcard-back {
  transform:    rotateY(180deg);
  background:   var(--navy-deep);
  color:        white;
  border-color: transparent;
  overflow-y:   auto;
  -webkit-overflow-scrolling: touch;
}

/* Vorderseite */
.card-top      { display: flex; gap: 12px; flex: 1; }

.card-logo {
  width:         48px;
  height:        48px;
  border-radius: 50%;
  object-fit:    contain;
  flex-shrink:   0;
  background:    white;
  box-shadow:    0 1px 4px rgba(0, 0, 0, 0.08);
  border:        1px solid rgba(27, 58, 92, 0.06);
}

.card-logo-fallback {
  width:           48px;
  height:          48px;
  border-radius:   50%;
  background:      var(--sand-warm);
  flex-shrink:     0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       20px;
  border:          1px solid rgba(27, 58, 92, 0.06);
}

.card-info        { flex: 1; min-width: 0; }
.card-badges      { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }

/* .card-title, .card-venue, .card-time: Basis aus index.html,
   für programm.html werden die minimalen Unterschiede überschrieben */
body.page-programm .card-title {
  line-height:        1.25;
  margin-bottom:      3px;
  display:            -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:           hidden;
}

body.page-programm .card-venue {
  margin-bottom: 0;  /* kein unterer Abstand auf Flipcard-Vorderseite */
}

.card-bottom {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding-top:     10px;
  border-top:      1px solid var(--border-light);
}

body.page-programm .card-time { font-size: 14px; font-weight: 700; }

/* Favoriten-Button auf Karten */
.fav-btn {
  display:     inline-flex;
  align-items: center;
  gap:         5px;
  padding:     6px 12px;
  border-radius: 50px;
  background:  var(--sand-light);
  border:      1px solid var(--border-light);
  font-size:   12px;
  font-weight: 600;
  color:       var(--text-secondary);
  cursor:      pointer;
  transition:  all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
.fav-btn:hover     { background: var(--sand-warm); }
.fav-btn.favorited {
  background:   #FFF0F0;
  border-color: #E8A0A0;
  color:        var(--terracotta);
  animation:    favPop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.fav-label { pointer-events: none; }

.flip-hint {
  font-size:     11px;
  color:         var(--text-light);
  text-align:    center;
  margin-top:    4px;
  letter-spacing: 0.02em;
}

/* ── Prominenter CTA-Button auf Flipcard-Vorderseite ── */
.flip-cta-btn {
  width:           100%;
  background:      var(--navy);
  color:           #fff;
  border:          none;
  border-radius:   10px;
  padding:         11px 16px;
  font-family:     var(--font-body);
  font-size:       14px;
  font-weight:     700;
  letter-spacing:  0.02em;
  cursor:          pointer;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  margin-top:      8px;
  flex-shrink:     0;
  transition:      background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.flip-cta-btn:hover  { background: #224B72; }
.flip-cta-btn:active { background: var(--navy-deep); transform: scale(0.99); }

/* Rückseite */
.back-top                { margin-bottom: 8px; }
.back-badges             { display: flex; gap: 4px; margin-bottom: 6px; }
.back-badges .badge      { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.85); }

.back-title {
  font-family:   var(--font-display);
  font-size:     15px;
  font-weight:   700;
  color:         white;
  margin-bottom: 2px;
}

.back-venue { font-size: 12px; color: rgba(255, 255, 255, 0.6); }

.back-desc {
  font-size:   13px;
  color:       rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  flex:        1;
}

.card-res {
  font-size:   11px;
  font-weight: 700;
  color:       var(--gold);
  padding:     4px 0;
  margin-top:  4px;
}

.card-partners {
  font-size:  11px;
  color:      rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin-top: 2px;
}

.back-actions {
  display:      flex;
  gap:          8px;
  margin-top:   8px;
  padding-top:  8px;
  border-top:   1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
  flex:            1;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             4px;
  padding:         8px 12px;
  border-radius:   8px;
  font-size:       13px;
  font-weight:     700;
  text-decoration: none;
  font-family:     var(--font-body);
  transition:      all 0.2s;
}

/* Rückseite: Route-Button (Gold auf Dunkel) */
.back-btn.btn-route          { background: var(--gold); color: var(--navy-deep); }
.back-btn.btn-route:hover    { background: #f0b240; }

/* Rückseite: Anruf-Button (Glas auf Dunkel) */
.back-btn.btn-call           { background: rgba(255, 255, 255, 0.12); color: white; }
.back-btn.btn-call:hover     { background: rgba(255, 255, 255, 0.20); }

.flipcard-back .flip-hint    { color: rgba(255, 255, 255, 0.35); }

/* Responsive programm.html */
@media (min-width: 641px) {
  body.page-programm { padding-top: 60px; padding-bottom: 0; }
  .day-section       { max-width: 100%; padding: 0 24px 24px; }
  .filter-bar        { max-width: 100%; justify-content: center; padding: 12px 24px; }
  .flipcard          { height: 302px; }
  /* Größere Tabs auf Tablet */
  .day-tab           { min-width: 64px; padding: 8px 8px; }
}

@media (min-width: 768px) {
  /* Flipcard-Grid 2-spaltig */
  .event-list {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   14px;
    align-items:           start;
  }
  .flipcard { height: 302px; }

  /* Day section wider */
  .day-section { padding: 0 0 32px; }
}

@media (min-width: 1024px) {
  /* Flipcard-Grid 3-spaltig */
  .event-list {
    grid-template-columns: repeat(3, 1fr);
    gap:                   16px;
  }
  .flipcard        { height: 302px; }
  .day-count       { font-size: 14px; margin-bottom: 18px; }
  /* Filter Bar zentriert mit mehr Luft */
  .filter-btn      { padding: 9px 18px; font-size: 14px; }
}




/* ================================================================
   13. [KARTE] INTERAKTIVE KARTE
   ================================================================ */

/* Karte braucht html/body height:100% und flex-Layout */
body.page-karte {
  display:        flex;
  flex-direction: column;
  height:         100%;
  overflow:       hidden;
  padding-bottom: 0;
}

html:has(body.page-karte) { height: 100%; }

/* Karte nutzt die globale .header-Komponente (Sektion 5).
   Seitenspezifisch: nur der Standort-Button */

.locate-btn {
  display:     flex;
  align-items: center;
  gap:         4px;
  padding:     6px 14px;
  border-radius: 50px;
  border:      1.5px solid var(--border-light);
  background:  white;
  font-size:   12px;
  font-weight: 600;
  color:       var(--navy);
  cursor:      pointer;
  transition:  all 0.2s;
  font-family: var(--font-body);
}
.locate-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* -- Filter Chips (Karte) -- */
.map-filters {
  position:       fixed;
  top:            60px; /* Fallback */
  top:            calc(max(12px, env(safe-area-inset-top, 0px)) + 48px);
  left:           0;
  right:          0;
  z-index:        999;
  padding:        8px 12px;
  display:        flex;
  gap:            6px;
  overflow-x:     auto;
  scrollbar-width: none;
}
.map-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  display:          inline-flex;
  align-items:      center;
  gap:              3px;
  padding:          6px 12px;
  border-radius:    50px;
  font-size:        12px;
  font-weight:      600;
  border:           none;
  cursor:           pointer;
  transition:       all 0.2s;
  white-space:      nowrap;
  font-family:      var(--font-body);
  background:       rgba(255, 255, 255, 0.92);
  backdrop-filter:  blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color:            var(--text-secondary);
  box-shadow:       0 1px 4px rgba(27, 58, 92, 0.1);
  -webkit-tap-highlight-color: transparent;
}
.filter-chip:hover          { color: var(--navy); }
.filter-chip.active         { background: var(--navy);        color: white; box-shadow: var(--shadow-md); }
.filter-chip.active-food    { background: var(--cat-food);    color: white; }
.filter-chip.active-fashion { background: var(--cat-fashion); color: white; }
.filter-chip.active-kunst   { background: var(--cat-kunst);   color: white; }
.filter-chip.active-kultur  { background: var(--cat-kultur);  color: white; }
.filter-chip .chip-count    { font-size: 10px; opacity: 0.7; margin-left: 2px; }

/* -- Leaflet Map -- */
#map {
  flex:          1;
  width:         100%;
  margin-top:    54px;
  margin-bottom: 64px;
}
.leaflet-control-zoom          { display: none !important; }
.leaflet-control-attribution   { font-size: 9px !important; opacity: 0.5; }

/* -- Karten-Marker -- */
.custom-marker {
  width:         36px;
  height:        36px;
  border-radius: 50%;
  border:        3px solid white;
  box-shadow:    0 2px 8px rgba(0, 0, 0, 0.25);
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     14px;
  color:         white;
  font-weight:   700;
  transition:    transform 0.2s;
  cursor:        pointer;
}
.custom-marker:hover   { transform: scale(1.15); }
.marker-food           { background: var(--cat-food); }
.marker-fashion        { background: var(--cat-fashion); }
.marker-kunst          { background: var(--cat-kunst); }
.marker-kultur         { background: var(--cat-kultur); }
.marker-multi          { background: linear-gradient(135deg, var(--cat-food), var(--cat-fashion)); }

/* -- Bottom Sheet -- */
.sheet-overlay {
  position:       fixed;
  inset:          0;
  z-index:        1001;
  background:     rgba(0, 0, 0, 0.3);
  opacity:        0;
  pointer-events: none;
  transition:     opacity 0.3s ease;
}
.sheet-overlay.visible { opacity: 1; pointer-events: auto; }

.bottom-sheet {
  position:      fixed;
  bottom:        0;
  left:          0;
  right:         0;
  z-index:       1002;
  background:    white;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow:    0 -8px 40px rgba(0, 0, 0, 0.15);
  padding:       12px 20px 20px;
  padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 72px));
  transform:     translateY(100%);
  transition:    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  max-height:    70vh;
  overflow-y:    auto;
}
.bottom-sheet.visible { transform: translateY(0); }

.sheet-handle {
  width:         36px;
  height:        4px;
  border-radius: 2px;
  background:    #D0D5DA;
  margin:        0 auto 14px;
}

.sheet-header  { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }

.sheet-logo {
  width:         48px;
  height:        48px;
  border-radius: 12px;
  object-fit:    cover;
  flex-shrink:   0;
  background:    var(--sand-warm);
}

.sheet-info   { flex: 1; }
.sheet-badges { display: flex; gap: 4px; margin-bottom: 4px; }

.sheet-badge {
  display:     inline-flex;
  align-items: center;
  gap:         2px;
  padding:     2px 8px;
  border-radius: 20px;
  font-size:   10px;
  font-weight: 700;
}
.sbadge-food    { background: rgba(196, 67, 42, 0.10);  color: var(--cat-food); }
.sbadge-fashion { background: rgba(27, 58, 92, 0.08);   color: var(--cat-fashion); }
.sbadge-kunst   { background: rgba(139, 166, 122, 0.12); color: var(--cat-kunst-text); }
.sbadge-kultur  { background: rgba(212, 134, 60, 0.10); color: var(--cat-kultur); }

.sheet-name {
  font-family:   var(--font-display);
  font-size:     18px;
  font-weight:   700;
  color:         var(--text-primary);
  line-height:   1.2;
  margin-bottom: 2px;
}
.sheet-addr { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

.sheet-desc {
  font-size:    14px;
  color:        var(--text-secondary);
  line-height:  1.6;
  margin-bottom: 16px;
  padding-top:  10px;
  border-top:   1px solid var(--border-light);
}

.sheet-actions { display: flex; gap: 8px; }

.sheet-btn {
  flex:            1;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             5px;
  padding:         12px 6px;
  border-radius:   12px;
  font-size:       11px;
  font-weight:     700;
  text-decoration: none;
  border:          none;
  cursor:          pointer;
  font-family:     var(--font-body);
  transition:      all 0.2s;
  -webkit-tap-highlight-color: transparent;
  line-height:     1.2;
  text-align:      center;
}
.sheet-btn-icon  { font-size: 22px; line-height: 1; }
.sheet-btn-label { font-size: 11px; font-weight: 700; }
.sheet-btn:active      { transform: scale(0.97); }
.sheet-btn.btn-route   { background: var(--navy); color: white; box-shadow: 0 4px 12px rgba(27, 58, 92, 0.2); }
.sheet-btn.btn-route:hover { background: #224B72; }
.sheet-btn.btn-insta   { background: linear-gradient(145deg, #833ab4, #fd1d1d 60%, #fcb045); color: white; box-shadow: 0 4px 12px rgba(130,58,180,0.22); }
.sheet-btn.btn-aus     { background: var(--sand-light); color: var(--navy); border: 1.5px solid var(--border-medium); }
.sheet-btn.btn-aus:hover { background: var(--sand-warm); }
.sheet-btn.btn-call    { background: var(--sand-warm); color: var(--navy); }
.sheet-btn.btn-call:hover  { background: var(--sand-light); }

/* -- Karte/Liste Toggle -- */
.view-toggle {
  position:         fixed;
  bottom:           76px;
  left:             50%;
  transform:        translateX(-50%);
  z-index:          999;
  display:          flex;
  background:       rgba(255, 255, 255, 0.95);
  backdrop-filter:  blur(12px);
  border-radius:    50px;
  box-shadow:       var(--shadow-lg);
  overflow:         hidden;
  border:           1px solid var(--border-light);
}

.toggle-btn {
  padding:     8px 16px;
  font-size:   12px;
  font-weight: 600;
  border:      none;
  background:  transparent;
  color:       var(--text-secondary);
  cursor:      pointer;
  font-family: var(--font-body);
  transition:  all 0.2s;
  display:     flex;
  align-items: center;
  gap:         4px;
}
.toggle-btn.active { background: var(--navy); color: white; }

/* -- Listenansicht -- */
.list-view {
  position:   fixed;
  top:        88px;
  left:       0;
  right:      0;
  bottom:     64px;
  z-index:    998;
  background: var(--sand-light);
  overflow-y: auto;
  padding:    8px 14px;
  display:    none;
}
.list-view.visible { display: block; }

.list-item {
  display:       flex;
  align-items:   center;
  gap:           10px;
  padding:       12px;
  background:    white;
  border-radius: 12px;
  margin-bottom: 6px;
  box-shadow:    0 1px 3px rgba(27, 58, 92, 0.04);
  border:        1px solid var(--border-light);
  cursor:        pointer;
  transition:    all 0.2s;
  text-decoration: none;
  color:         inherit;
}
.list-item:hover  { box-shadow: var(--shadow-md); }
.list-item:active { transform: scale(0.99); }

.list-logo {
  width:         40px;
  height:        40px;
  border-radius: 10px;
  object-fit:    cover;
  flex-shrink:   0;
  background:    var(--sand-warm);
}

.list-info    { flex: 1; min-width: 0; }

.list-name {
  font-family: var(--font-display);
  font-size:   13px;
  color:       var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow:    hidden;
  text-overflow: ellipsis;
}

.list-addr  { font-size: 11px; color: var(--text-light); }
.list-cats  { font-size: 11px; margin-top: 2px; }

.list-nav {
  width:           32px;
  height:          32px;
  border-radius:   50%;
  background:      var(--sand-light);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       14px;
  flex-shrink:     0;
}

/* Bottom-Nav auf Karte hat höheren z-index (über Bottom-Sheet) */
body.page-karte .bottom-nav { z-index: 1003; }




/* ================================================================
   14. [FAVORITEN] GEMERKTER EVENTS
   ================================================================ */

body.page-favoriten {
  padding-top:    60px;
  padding-bottom: 80px;
}

/* .header-favoriten wurde entfernt – .header deckt alles ab */

.header-clear {
  font-size:   13px;
  color:       var(--terracotta);
  font-weight: 600;
  background:  none;
  border:      none;
  cursor:      pointer;
  padding:     4px 8px;
}
.header-clear:hover { text-decoration: underline; }

/* -- Tab Bar -- */
.fav-tabs {
  display:       flex;
  border-bottom: 2px solid var(--border);
  background:    var(--white);
  position:      sticky;
  top:           60px;
  z-index:       40;
}

.fav-tab {
  flex:            1;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             6px;
  padding:         14px 8px;
  font-size:       14px;
  font-weight:     600;
  font-family:     var(--font-sans);
  color:           var(--text-muted);
  background:      none;
  border:          none;
  border-bottom:   2px solid transparent;
  margin-bottom:   -2px;
  cursor:          pointer;
  transition:      color 0.18s, border-color 0.18s;
}

.fav-tab.active {
  color:        var(--navy);
  border-color: var(--navy);
}

.fav-tab-count {
  display:       inline-flex;
  align-items:   center;
  justify-content: center;
  min-width:     20px;
  height:        20px;
  padding:       0 5px;
  border-radius: 10px;
  background:    var(--off-white);
  color:         var(--text-muted);
  font-size:     11px;
  font-weight:   700;
}

.fav-tab.active .fav-tab-count {
  background: var(--navy);
  color:      var(--white);
}

/* -- Inhalt -- */
.content {
  width:   100%;
  margin:  0 auto;
  padding: 20px 16px;
}

/* -- Favoriten-Karten -- */
.fav-list { display: flex; flex-direction: column; gap: 10px; }

/* Aussteller fav card avatar */
.fav-aus-avatar {
  flex-shrink:     0;
  width:           40px;
  height:          40px;
  border-radius:   9px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       18px;
}

.fav-card {
  background:    var(--white);
  border-radius: var(--radius-lg);
  padding:       14px 16px;
  box-shadow:    var(--shadow-card);
  border:        1px solid var(--border-light);
  display:       flex;
  align-items:   center;
  gap:           12px;
  transition:    all 0.25s ease;
}
.fav-card:hover { box-shadow: 0 4px 16px rgba(27, 58, 92, 0.08); }

.fav-info     { flex: 1; min-width: 0; }
.fav-badges   { font-size: 12px; margin-bottom: 2px; }

.fav-title {
  font-family:   var(--font-display);
  font-size:     14px;
  line-height:   1.3;
  color:         var(--text-primary);
  margin-bottom: 2px;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

.fav-venue  { font-size: 12px; color: var(--text-secondary); }
.fav-meta   { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.fav-remove {
  width:         32px;
  height:        32px;
  border-radius: 50%;
  border:        none;
  background:    rgba(196, 67, 42, 0.06);
  color:         var(--terracotta);
  font-size:     14px;
  cursor:        pointer;
  flex-shrink:   0;
  display:       flex;
  align-items:   center;
  justify-content: center;
  transition:    all 0.2s;
}
.fav-remove:hover { background: rgba(196, 67, 42, 0.15); transform: scale(1.1); }

/* -- Leerer Zustand -- */
.empty           { text-align: center; padding: 80px 24px; }
.empty-icon      { font-size: 48px; margin-bottom: 14px; opacity: 0.6; }

.empty h2 {
  font-family:   var(--font-display);
  font-size:     20px;
  color:         var(--navy);
  margin-bottom: 8px;
}

.empty p {
  font-size:    15px;
  color:        var(--text-secondary);
  max-width:    280px;
  margin:       0 auto 24px;
  line-height:  1.6;
}

.empty-cta {
  display:         inline-flex;
  align-items:     center;
  gap:             6px;
  padding:         12px 24px;
  background:      var(--navy);
  color:           white;
  font-size:       14px;
  font-weight:     700;
  text-decoration: none;
  border-radius:   50px;
  transition:      all 0.2s;
}
.empty-cta:hover { transform: translateY(-1px); }




/* ================================================================
   15. [AUSSTELLER] AUSSTELLERÜBERSICHT (Platzhalter)
   ================================================================ */

body.page-aussteller {
  display:        flex;
  flex-direction: column;
  min-height:     100svh;
  padding-bottom: 80px;
}

.placeholder {
  flex:            1;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  text-align:      center;
  padding:         40px 24px;
}

.placeholder-icon { font-size: 56px; margin-bottom: 16px; }

.placeholder h1 {
  font-family:   var(--font-display);
  font-size:     24px;
  color:         var(--navy);
  margin-bottom: 8px;
}

.placeholder p {
  font-size:    16px;
  color:        var(--text-secondary);
  max-width:    300px;
  line-height:  1.6;
  margin-bottom: 28px;
}

.placeholder-badge {
  display:     inline-block;
  padding:     6px 16px;
  background:  rgba(232, 168, 50, 0.15);
  color:       #B8841E;
  border-radius: 50px;
  font-size:   13px;
  font-weight: 600;
}

/* ================================================================
   16. [LEGAL] IMPRESSUM / AGB / DATENSCHUTZ
   ================================================================ */

body.page-legal {
  background:     var(--sand-light);
  padding-bottom: 80px;
}

.legal-content {
  padding-top:    24px;
  padding-bottom: 48px;
}

.legal-section {
  background:    white;
  border-radius: var(--radius-lg);
  padding:       24px;
  margin-bottom: 16px;
  box-shadow:    var(--shadow-sm);
}

.legal-section h2 {
  font-family:   var(--font-display);
  font-size:     20px;
  color:         var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sand-warm);
}

.legal-section h3 {
  font-family:   var(--font-body);
  font-size:     15px;
  font-weight:   700;
  color:         var(--navy);
  margin-top:    20px;
  margin-bottom: 8px;
}

.legal-section h3:first-child { margin-top: 0; }

.legal-section p {
  font-size:   15px;
  color:       var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  padding-left:  20px;
  margin-bottom: 12px;
}

.legal-section ul li {
  font-size:   15px;
  color:       var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 4px;
}

.legal-section a {
  color:           var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(27, 58, 92, 0.3);
}

.legal-back {
  text-align:  center;
  padding-top: 8px;
}


/* ================================================================
   17. RESPONSIVE — KARTE, FAVORITEN, LEGAL
   ================================================================ */

/* --- Karte (641px+) --- */
@media (min-width: 641px) {
  /* Leaflet Zoom-Controls auf Desktop einblenden */
  .leaflet-control-zoom { display: block !important; }

  /* Map-Filter zentrieren */
  .map-filters { justify-content: center; }
}

@media (min-width: 1024px) {
  /* View-Toggle nach oben rücken (kein Bottom-Nav mehr) */
  .view-toggle { bottom: 24px; }

  /* Bottom-Sheet breiter begrenzen */
  .bottom-sheet {
    max-width:    640px;
    left:         50%;
    right:        auto;
    transform:    translateX(-50%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .bottom-sheet.open { transform: translateX(-50%) translateY(0); }
  .bottom-sheet { transform: translateX(-50%) translateY(100%); }

  /* List-View zentral ausrichten */
  .list-view {
    max-width:  800px;
    left:       50%;
    transform:  translateX(-50%);
    right:      auto;
  }
}

/* --- Favoriten (641px+) --- */
@media (min-width: 641px) {
  body.page-favoriten { padding-top: 60px; padding-bottom: 0; }
  .content { max-width: 720px; }
}

@media (min-width: 1024px) {
  .content     { max-width: 960px; }

  /* Favoriten-Karten 2-spaltig */
  .fav-list {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   14px;
    align-items:           start;
  }
}

/* --- Legal (641px+) --- */
@media (min-width: 641px) {
  body.page-legal  { padding-bottom: 0; }
  .legal-content   { max-width: 720px; margin: 0 auto; }
  .legal-section   { padding: 32px; }
  .legal-section h2 { font-size: 24px; }
}

@media (min-width: 1024px) {
  .legal-content { max-width: 860px; }
}


/* ================================================================
   18. CATEGORY DESIGN TOKENS
   ================================================================ */
:root {
  --cat-shopping:   #1B3A5C;
  --cat-genuss:     #C4432A;
  --cat-hotel:      #2E6E8E;
  --cat-handwerk:   #7B5C3A;
  --cat-kunst-prog: #5B4A8A;
  --cat-sonstiges:  #6A6A7E;
  --cat-kultur:    #5B4A8A;
  --cat-makler:    #3A7A5C;
  --cat-freizeit:  #4A8A3A;
  --cat-bank:      #8A7A2A;
  --cat-kirche:    #8A5A2A;
}

/* Category avatar backgrounds */
.cat-bg-shopping  { background: var(--cat-shopping); }
.cat-bg-genuss    { background: var(--cat-genuss); }
.cat-bg-hotel     { background: var(--cat-hotel); }
.cat-bg-handwerk  { background: var(--cat-handwerk); }
.cat-bg-kunst     { background: var(--cat-kunst-prog); }
.cat-bg-sonstiges { background: var(--cat-sonstiges); }
.cat-bg-kultur    { background: var(--cat-kultur); }
.cat-bg-makler    { background: var(--cat-makler); }
.cat-bg-freizeit  { background: var(--cat-freizeit); }
.cat-bg-bank      { background: var(--cat-bank); }
.cat-bg-kirche    { background: var(--cat-kirche); }

/* Category badge pills */
.badge-shopping  { background: rgba(27,58,92,0.12);   color: var(--cat-shopping); }
.badge-genuss    { background: rgba(196,67,42,0.12);  color: var(--cat-genuss); }
.badge-hotel     { background: rgba(46,110,142,0.12); color: var(--cat-hotel); }
.badge-handwerk  { background: rgba(123,92,58,0.12);  color: var(--cat-handwerk); }
.badge-kunst     { background: rgba(91,74,138,0.12);  color: var(--cat-kunst-prog); }
.badge-sonstiges { background: rgba(106,106,126,0.12);color: var(--cat-sonstiges); }
.badge-makler    { background: rgba(58,122,92,0.12);  color: var(--cat-makler); }
.badge-freizeit  { background: rgba(74,138,58,0.12);  color: var(--cat-freizeit); }
.badge-bank      { background: rgba(138,122,42,0.12); color: var(--cat-bank); }
.badge-kirche    { background: rgba(138,90,42,0.12);  color: var(--cat-kirche); }


/* ================================================================
   19. AUSSTELLER PAGE
   ================================================================ */

body.page-aussteller {
  padding-top: 60px;
  padding-bottom: 80px;
  background: var(--off-white);
}

/* ---- Toolbar (search + filter) ---- */
.aus-toolbar {
  position:   sticky;
  top:        60px;
  z-index:    90;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding:    10px 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.aus-search-wrap {
  display:     flex;
  align-items: center;
  gap:         8px;
  background:  var(--off-white);
  border:      1px solid var(--border);
  border-radius: var(--radius-sm);
  padding:     8px 12px;
  margin-bottom: 10px;
}

.aus-search-icon { font-size: 14px; flex-shrink: 0; }

.aus-search {
  border:     none;
  background: none;
  outline:    none;
  flex:       1;
  font-size:  15px;
  font-family: var(--font-sans);
  color:      var(--navy-deep);
}

.aus-search::placeholder { color: var(--text-muted); }

/* Filter chips row */
.aus-filters {
  display:        flex;
  gap:            6px;
  overflow-x:     auto;
  padding-bottom: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.aus-filters::-webkit-scrollbar { display: none; }

.aus-chip {
  flex-shrink:   0;
  display:       inline-flex;
  align-items:   center;
  gap:           4px;
  padding:       5px 12px;
  border-radius: 20px;
  border:        1.5px solid var(--border);
  background:    var(--white);
  font-size:     13px;
  font-family:   var(--font-sans);
  font-weight:   500;
  color:         var(--text-secondary);
  cursor:        pointer;
  white-space:   nowrap;
  transition:    background 0.15s, color 0.15s, border-color 0.15s;
}

.aus-chip.active {
  background:   var(--navy);
  color:        var(--white);
  border-color: var(--navy);
}

.aus-chip-count {
  background:    rgba(255,255,255,0.25);
  border-radius: 10px;
  padding:       1px 6px;
  font-size:     11px;
  font-weight:   700;
}
.aus-chip:not(.active) .aus-chip-count {
  background:    var(--off-white);
  color:         var(--text-muted);
}

/* ---- List ---- */
.aus-list {
  padding: 8px 0 16px;
}

/* Letter dividers */
.aus-letter-divider {
  padding:     8px 16px 4px;
  font-family: var(--font-serif);
  font-size:   20px;
  font-weight: 700;
  color:       var(--navy-deep);
  letter-spacing: 0.02em;
  position:    sticky;
  top:         /* header + toolbar approx */ 145px;
  z-index:     40;
  background:  var(--off-white);
}

/* Exhibitor card — flip design */
/* ── Flip Card: translateX-Slide (kein 3D-Kontext, kein perspective-Bug) ──
   Flex-Slide-Architektur: .aus-card-inner ist ein 200%-breiter Flex-Container.
   .aus-front und .aus-back sind je width:50% (= 100% der Kartenbreite).
   Slide: .aus-card-inner wird per translateX(-50%) nach links geschoben.
   Kein position:absolute auf den Faces → keine Containing-Block-Breiten-Probleme.
   overflow:hidden auf .aus-card clippt sauber, da .aus-card-inner in-flow (flex). */

.aus-card {
  display:  block;           /* explizit block – nie inline */
  position: relative;
  width:    100%;
  height:   74px;
  cursor:   pointer;
  overflow: hidden;          /* clippt 200%-breiten Inner sauber */
}

.aus-card-inner {
  display:    flex;          /* Flex-Row: front | back nebeneinander */
  width:      200%;          /* beide Panels passen rein */
  height:     100%;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.aus-front,
.aus-back {
  width:         50%;        /* 50% von 200% = 100% der Kartenbreite */
  flex-shrink:   0;
  display:       flex;
  align-items:   center;
  gap:           12px;
  padding:       0 16px;
  background:    var(--white);
  border-bottom: 1px solid var(--border);
  box-sizing:    border-box;
}

.aus-back {
  background: linear-gradient(135deg, #EEF3F9 0%, #E8EEF6 100%);
  gap:        16px;
}

/* Flip: Inner nach links schieben → Back sichtbar */
.aus-card.flipped .aus-card-inner { transform: translateX(-50%); }

/* Hover-Highlight auf Geräten mit Pointer */
@media (hover: hover) {
  .aus-card:not(.flipped):hover .aus-front { background: #f7fbff; }
}

/* ── Avatar ── */
.aus-avatar {
  flex-shrink:     0;
  width:           44px;
  height:          44px;
  border-radius:   10px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       22px;
}

.aus-avatar.aus-avatar-img {
  overflow:   hidden;
  background: transparent;
  padding:    0;
}

.aus-avatar img {
  width:         100%;
  height:        100%;
  object-fit:    cover;
  border-radius: inherit;
  display:       block;
}

/* ── Info: Name + Instagram ── */
.aus-info {
  flex:      1;
  min-width: 0;
}

.aus-name {
  font-size:     15px;
  font-weight:   600;
  font-family:   var(--font-sans);
  color:         var(--navy-deep);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
  line-height:   1.3;
}

.aus-insta-link {
  display:         inline-flex;
  align-items:     center;
  gap:             4px;
  font-size:       12px;
  color:           #C13584;
  text-decoration: none;
  white-space:     nowrap;
  overflow:        hidden;
  text-overflow:   ellipsis;
  max-width:       100%;
}
.aus-insta-link:hover { text-decoration: underline; }

.insta-icon {
  width:       13px;
  height:      13px;
  flex-shrink: 0;
  fill:        currentColor;
}

.aus-insta-empty {
  font-size: 12px;
  color:     var(--text-muted);
}

/* ── Front-Aktionen: Map-Pin + Fav ── */
.aus-front-actions {
  flex-shrink: 0;
  display:     flex;
  align-items: center;
  gap:         6px;
}

/* Flip-CTA: subtiler Chevron rechts aussen */
@keyframes aus-nudge {
  0%,100% { transform: translateX(0); opacity: 0.35; }
  50%      { transform: translateX(3px); opacity: 0.65; }
}
.aus-flip-hint {
  flex-shrink:  0;
  margin-left:  4px;
  font-size:    20px;
  line-height:  1;
  color:        var(--navy, #1B3A5C);
  opacity:      0.3;
  animation:    aus-nudge 1.6s ease-in-out 0.8s 3;
  transition:   opacity 0.2s, transform 0.2s;
  pointer-events: none;
  user-select:  none;
}
.aus-card.flipped .aus-flip-hint {
  opacity: 0;
}
@media (hover: hover) {
  .aus-card:not(.flipped):hover .aus-flip-hint {
    opacity:   0.6;
    transform: translateX(2px);
  }
}

.aus-map-pin {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           34px;
  height:          34px;
  border-radius:   9px;
  background:      rgba(27,58,92,0.08);
  font-size:       18px;
  text-decoration: none;
  line-height:     1;
  transition:      background 0.15s, transform 0.15s;
  user-select:     none;
}
.aus-map-pin:hover { background: rgba(27,58,92,0.16); transform: scale(1.1); }

.aus-fav-btn {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           34px;
  height:          34px;
  border-radius:   9px;
  background:      var(--off-white);
  border:          1px solid var(--border);
  font-size:       16px;
  cursor:          pointer;
  color:           var(--text-muted);
  padding:         0;
  transition:      background 0.12s, color 0.12s, border-color 0.12s;
}
.aus-fav-btn.active          { background: #FFF0F0; border-color: #E8735A; color: #E8735A; }
.aus-fav-btn:hover:not(.active) { background: var(--border); }

/* ── Rückseite: Adresse + Route ── */
.aus-back-addr {
  flex:          1;
  font-size:     14px;
  font-weight:   500;
  font-family:   var(--font-sans);
  color:         var(--navy-deep);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

.aus-route-btn {
  flex-shrink:     0;
  display:         inline-flex;
  align-items:     center;
  gap:             6px;
  padding:         8px 18px;
  border-radius:   22px;
  background:      var(--navy);
  color:           var(--white);
  font-size:       13px;
  font-weight:     600;
  font-family:     var(--font-sans);
  text-decoration: none;
  white-space:     nowrap;
  transition:      background 0.15s;
}
.aus-route-btn:hover { background: var(--navy-deep); }

/* Empty state */
.aus-empty {
  text-align: center;
  padding:    48px 24px;
  color:      var(--text-secondary);
  font-size:  15px;
}

/* Sheet Instagram link */
.sheet-insta-link {
  display:    inline-block;
  font-size:  14px;
  color:      #C13584;
  text-decoration: none;
  padding:    6px 16px 2px;
}
.sheet-insta-link:hover { text-decoration: underline; }

/* Sheet avatar (replaces sheet-logo for new karte) */
.sheet-avatar {
  flex-shrink:     0;
  width:           52px;
  height:          52px;
  border-radius:   12px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       24px;
}

/* btn-aussteller (legacy alias) */
.btn-aussteller {
  background:   var(--sand-light);
  color:        var(--navy);
  border:       1.5px solid var(--border-medium);
}

/* ---- Aussteller Responsive ---- */
@media (min-width: 641px) {
  body.page-aussteller { padding-bottom: 0; }
  .aus-toolbar        { top: 60px; padding: 12px 24px 0; }
  .aus-letter-divider { padding: 10px 24px 4px; top: 155px; }
  .aus-card           { height: 80px; }
  .aus-front, .aus-back { padding: 0 24px; gap: 16px; }
  .aus-avatar         { width: 48px; height: 48px; border-radius: 12px; font-size: 24px; }
  .aus-map-pin,
  .aus-fav-btn        { width: 36px; height: 36px; }
}

@media (min-width: 1024px) {
  body.page-aussteller { padding-top: 60px; }

  /* Toolbar: volle Breite, Inhalt via Padding mit Kartenliste ausgerichtet */
  .aus-toolbar {
    padding-left:  24px;
    padding-left:  calc((100% - 1040px) / 2);
    padding-right: 24px;
    padding-right: calc((100% - 1040px) / 2);
  }

  /* Kartenliste + Gruppen zentrieren */
  .aus-list         { max-width: 1040px; margin: 0 auto; }
  .aus-letter-group { max-width: 1040px; margin: 0 auto; }

  /* Letter-Divider: top für Desktop-Toolbar */
  .aus-letter-group .aus-letter-divider {
    max-width:     none;
    margin:        0;
    padding-left:  24px;
    padding-right: 24px;
    top:           160px;
  }

  /* Karten auf Desktop etwas großzügiger */
  .aus-card           { height: 84px; }
  .aus-front, .aus-back { padding: 0 28px; gap: 20px; }
  .aus-avatar         { width: 52px; height: 52px; border-radius: 14px; font-size: 26px; }
  .aus-name           { font-size: 16px; }
  .aus-back-addr      { font-size: 15px; }
  .aus-route-btn      { padding: 9px 22px; font-size: 14px; }
  .aus-map-pin,
  .aus-fav-btn        { width: 38px; height: 38px; border-radius: 10px; font-size: 17px; }
}

@media (min-width: 1280px) {
  .aus-toolbar {
    padding-left:  calc((100% - 1240px) / 2);
    padding-right: calc((100% - 1240px) / 2);
  }
  .aus-list,
  .aus-letter-group { max-width: 1240px; }
}

/* ── PWA Install Hint ─────────────────────────────────────────── */
.install-hint { display: none; }

@media (max-width: 768px) {
  .install-hint {
    display: block;
    position: fixed;
    bottom: 80px;
    left: 12px;
    right: 12px;
    background: rgba(15, 32, 60, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    border-radius: 20px;
    padding: 18px 18px 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
  }
  .install-hint--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .install-hint-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  .install-hint-title-icon { font-size: 22px; flex-shrink: 0; }
  .install-hint-title {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
  }
  .install-hint-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .install-hint-intro {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.75);
    margin: 0 0 12px;
  }

  .install-hint-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: steps;
  }
  .install-hint-steps li {
    counter-increment: steps;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,0.92);
  }
  .install-hint-steps li::before {
    content: counter(steps);
    background: var(--gold, #C8973A);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
  }
  .ih-content { display: block; }
  .ih-icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    padding: 3px 9px;
    margin-left: 4px;
    vertical-align: middle;
  }
  .ih-svg {
    width: 18px;
    height: 18px;
    color: #fff;
    display: block;
  }
  .ih-action {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
  }
  .ih-hint {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
  }
}

/* ================================================================
   AUSSTELLER CARD — vereinfachtes Tap-Target (kein Flip-Mechanismus)
   ================================================================ */
/* Override: .aus-card wird zu direkter Flex-Row */
.aus-card {
  display:       flex !important;
  align-items:   center;
  gap:           12px;
  padding:       0 16px;
  overflow:      visible;
  background:    var(--white);
  border-bottom: 1px solid var(--border);
  cursor:        pointer;
  transition:    background 0.12s;
}
.aus-card:active { background: var(--sand-light); }
@media (hover: hover) {
  .aus-card:hover { background: #f5f8fc; }
}

/* Kategorie-Zeile unter dem Namen */
.aus-cat {
  font-size:   12px;
  color:       var(--text-muted);
  font-family: var(--font-body);
  line-height: 1.2;
  margin-top:  2px;
}

/* Chevron rechts */
.aus-chevron {
  font-size:      20px;
  color:          var(--navy);
  opacity:        0.25;
  flex-shrink:    0;
  margin-left:    4px;
  user-select:    none;
  pointer-events: none;
  transition:     opacity 0.15s;
}
@media (hover: hover) {
  .aus-card:hover .aus-chevron { opacity: 0.5; }
}

/* ================================================================
   AUSSTELLER DETAIL PANEL — Full-screen slide-in von rechts
   ================================================================ */
.aus-detail {
  position:    fixed;
  inset:       0;
  background:  var(--off-white);
  z-index:     2000;
  overflow-y:  auto;
  overflow-x:  hidden;
  -webkit-overflow-scrolling: touch;
  transform:   translateX(100%);
  transition:  transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding-bottom: max(88px, calc(env(safe-area-inset-bottom, 0px) + 88px));
}
.aus-detail.visible { transform: translateX(0); }

/* Sticky top-bar */
.aus-detail-bar {
  position:          sticky;
  top:               0;
  z-index:           10;
  display:           flex;
  align-items:       center;
  justify-content:   space-between;
  gap:               8px;
  padding:           12px 16px;
  padding-top:       max(12px, env(safe-area-inset-top, 0px));
  background:        rgba(248, 247, 244, 0.96);
  backdrop-filter:   blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom:     1px solid var(--border-light);
}
.aus-detail-back {
  display:     flex;
  align-items: center;
  gap:         4px;
  background:  none;
  border:      none;
  font-family: var(--font-body);
  font-size:   15px;
  font-weight: 600;
  color:       var(--navy);
  cursor:      pointer;
  padding:     6px 4px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:  opacity 0.15s;
}
.aus-detail-back:active { opacity: 0.55; }
.aus-detail-bar-name {
  flex:          1;
  font-family:   var(--font-display);
  font-size:     15px;
  font-weight:   700;
  color:         var(--navy);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
  text-align:    right;
}

/* Hero */
.aus-detail-hero {
  position:    relative;
  aspect-ratio: 3 / 2;
  overflow:    hidden;
  background:  var(--navy);
}
.aus-detail-hero-img {
  width:           100%;
  height:          100%;
  object-fit:      cover;
  object-position: center 20%;
  display:         block;
}
.aus-detail-hero-gradient {
  position:   absolute;
  inset:      0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 28%, rgba(8,18,32,0.82) 100%);
}
.aus-detail-hero-info {
  position: absolute;
  bottom:   0;
  left:     0;
  right:    0;
  padding:  20px 20px 22px;
  z-index:  2;
}
.aus-detail-badge {
  display:       inline-flex;
  align-items:   center;
  gap:           4px;
  background:    rgba(255,255,255,0.15);
  border:        1px solid rgba(255,255,255,0.22);
  color:         rgba(255,255,255,0.92);
  border-radius: 20px;
  padding:       4px 10px;
  font-size:     11px;
  font-weight:   600;
  font-family:   var(--font-body);
  margin-bottom: 8px;
}
.aus-detail-name {
  font-family: var(--font-display);
  font-size:   24px;
  font-weight: 700;
  color:       #fff;
  margin:      0;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

/* Body */
.aus-detail-body { padding: 20px 20px 0; }

/* CTA Buttons */
.aus-detail-ctas {
  display:       flex;
  gap:           10px;
  margin-bottom: 20px;
}
.aus-detail-cta {
  flex:            1;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             6px;
  padding:         14px 8px;
  border-radius:   14px;
  font-family:     var(--font-body);
  text-decoration: none;
  border:          none;
  cursor:          pointer;
  transition:      all 0.18s;
  line-height:     1.2;
  text-align:      center;
  -webkit-tap-highlight-color: transparent;
}
.aus-detail-cta:active   { transform: scale(0.95); }
.aus-detail-cta-icon     { font-size: 24px; line-height: 1; }
.aus-detail-cta-label    { font-size: 11px; font-weight: 700; color: inherit; }
.aus-detail-cta-route    { background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(27,58,92,0.22); }
.aus-detail-cta-route:hover { background: #224B72; }
.aus-detail-cta-insta    { background: linear-gradient(145deg, #833ab4, #fd1d1d 60%, #fcb045); color: #fff; box-shadow: 0 4px 14px rgba(130,58,180,0.25); }
.aus-detail-cta-tel      { background: var(--sage, #8BA67A); color: #fff; box-shadow: 0 4px 14px rgba(139,166,122,0.22); }
.aus-detail-cta-email    { background: #8A5A2A; color: #fff; box-shadow: 0 4px 14px rgba(138,90,42,0.22); }
.aus-detail-cta-email:hover { background: #6E4720; }

/* Description */
.aus-detail-desc {
  font-family:   var(--font-body);
  font-size:     15px;
  color:         var(--text-secondary);
  line-height:   1.65;
  margin-bottom: 28px;
  padding:       16px;
  background:    var(--white);
  border-radius: 12px;
  border:        1px solid var(--border-light);
  box-shadow:    var(--shadow-sm);
}

/* Events section */
.aus-detail-events-title {
  font-family:    var(--font-display);
  font-size:      16px;
  font-weight:    700;
  color:          var(--navy);
  margin-bottom:  12px;
  padding-bottom: 10px;
  border-bottom:  2px solid var(--border);
}
.aus-detail-no-events {
  font-size:  14px;
  color:      var(--text-muted);
  font-style: italic;
  padding:    16px 0;
}

/* Einzelne Event-Karte im Detail-Panel */
.aus-evt-card {
  background:    var(--white);
  border-radius: 12px;
  border:        1px solid var(--border-light);
  padding:       14px;
  margin-bottom: 10px;
  box-shadow:    var(--shadow-sm);
  cursor:        pointer;
  transition:    box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.aus-evt-card:active  { box-shadow: var(--shadow-md); }
.aus-evt-header {
  display:     flex;
  align-items: flex-start;
  gap:         10px;
}
.aus-evt-day-pill {
  flex-shrink:   0;
  background:    var(--sand-warm);
  border-radius: 8px;
  padding:       5px 9px;
  font-size:     11px;
  font-weight:   700;
  color:         var(--navy);
  font-family:   var(--font-body);
  white-space:   nowrap;
  line-height:   1.2;
}
.aus-evt-meta {
  flex:      1;
  min-width: 0;
}
.aus-evt-time {
  font-size:     12px;
  color:         var(--text-muted);
  font-family:   var(--font-body);
  margin-bottom: 3px;
  line-height:   1.3;
}
.aus-evt-title {
  font-family: var(--font-display);
  font-size:   14px;
  font-weight: 700;
  color:       var(--navy);
  line-height: 1.3;
}
.aus-evt-fav {
  flex-shrink:     0;
  background:      var(--sand-light);
  border:          1px solid var(--border-light);
  border-radius:   50%;
  width:           38px;
  height:          38px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       18px;
  cursor:          pointer;
  transition:      all 0.25s cubic-bezier(.22,1,.36,1);
  -webkit-tap-highlight-color: transparent;
}
.aus-evt-fav.favorited { background: #FFF0F0; border-color: #E8A0A0; }
.aus-evt-reg {
  font-size:   11px;
  font-weight: 700;
  color:       var(--gold);
  margin-top:  8px;
  line-height: 1.3;
}
.aus-evt-desc {
  font-size:   13px;
  color:       var(--text-secondary);
  line-height: 1.5;
  margin-top:  10px;
  padding-top: 10px;
  border-top:  1px solid var(--border-light);
  display:     none;
}
.aus-evt-card.expanded .aus-evt-desc { display: block; }
.aus-evt-expand-hint {
  font-size:  10px;
  color:      var(--text-muted);
  text-align: right;
  margin-top: 6px;
  letter-spacing: 0.01em;
}
.aus-evt-card.expanded .aus-evt-expand-hint { display: none; }

/* Desktop: Detail als Seiten-Panel */
@media (min-width: 600px) {
  .aus-detail-hero  { aspect-ratio: 16 / 7; }
  .aus-detail-name  { font-size: 28px; }
}
@media (min-width: 1024px) {
  .aus-detail {
    left:         auto;
    width:        480px;
    box-shadow:   -8px 0 48px rgba(0,0,0,0.14);
    padding-bottom: 40px;
  }
}

/* ================================================================
   PARKING CTA — floating banner, mobile only, per-session
   ================================================================ */
.park-cta {
  display: none;
}
@media (max-width: 768px) {
  .park-cta {
    display: flex;
    align-items: center;
    position: fixed;
    /* Header-Höhe: max(12px, safe-area) + 36px Inhalt + 12px = max(60px, safe-area+48px), dann +8px Abstand */
    top: calc(max(12px, env(safe-area-inset-top, 0px)) + 56px);
    left: 12px;
    right: 12px;
    background: #1B3A5C;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.28);
    z-index: 900;
    overflow: hidden;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), opacity 0.3s ease;
    pointer-events: none;
  }
  .park-cta.park-cta--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .park-cta-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
  }
  .park-cta-icon {
    font-size: 26px;
    flex-shrink: 0;
  }
  .park-cta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .park-cta-text strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
  }
  .park-cta-text span {
    font-size: 12px;
    opacity: 0.75;
    line-height: 1.3;
  }
  .park-cta-arrow {
    font-size: 20px;
    opacity: 0.6;
    flex-shrink: 0;
  }
  .park-cta-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 16px;
    padding: 14px 14px 14px 4px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
  }
}

/* ================================================================
   HINT BANNER — Onboarding-Hinweis, per-Session dismissible
   Genutzt von: programm, aussteller, karte, favoriten
   ================================================================ */
.hint-banner {
  display: none;
}
@media (max-width: 768px) {
  .hint-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    top: calc(max(12px, env(safe-area-inset-top, 0px)) + 56px);
    left: 12px;
    right: 12px;
    background: var(--navy);
    color: #fff;
    border-radius: 14px;
    padding: 11px 10px 11px 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.28);
    z-index: 1000; /* über .map-filters (999), unter Bottom-Sheet (1001) */
    transform: translateY(-16px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), opacity 0.3s ease;
    pointer-events: none;
  }
  .hint-banner.hint-banner--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hint-banner-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
  }
  .hint-banner-text {
    flex: 1;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(255,255,255,0.88);
  }
  .hint-banner-text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 2px;
  }
  .hint-banner-close {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    padding: 6px 9px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 10px;
    font-family: var(--font-body);
    transition: background 0.15s;
  }
  .hint-banner-close:active {
    background: rgba(255,255,255,0.22);
  }
}

/* ================================================================
   EDEKA ERÖFFNUNGS-CTA — Hero-Sektion, bis 15.08.2026
   ================================================================ */
.edeka-event {
  margin: 0 16px 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  background: #fff;
  max-width: 760px;
}
/* Desktop: Bild links (45%), Content rechts (55%) */
@media (min-width: 600px) {
  .edeka-event {
    margin: 0 auto 32px;
  }
  .eke-inner {
    display: flex;
    align-items: stretch;
    min-height: 280px;
  }
  .eke-img-wrap {
    flex: 0 0 45%;
    max-width: 45%;
  }
  .eke-content {
    flex: 1;
    justify-content: center;
  }
}
.eke-inner {
  position: relative;
}
.eke-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  border: 1.5px solid rgba(255,255,255,0.28);
  color: #fff;
  border-radius: 20px;
  padding: 6px 12px 6px 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
/* Bild: volles Seitenverhältnis, kein Crop */
.eke-img-wrap {
  position: relative;
  overflow: hidden;
  background: #1B3A5C;
  /* Natürliches Verhältnis 800:670 ≈ 83.75% */
  aspect-ratio: 800 / 670;
}
@media (min-width: 600px) {
  .eke-img-wrap {
    aspect-ratio: unset; /* Höhe folgt dem Flex-Container */
  }
}
.eke-img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* Ganzes Bild sichtbar, kein Crop */
  object-position: center center;
  display: block;
}
/* Leichter Schatten-Gradient nur am unteren Rand auf Mobile */
.eke-img-overlay {
  display: none;
}
.eke-content {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.eke-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #C4432A;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
}
.eke-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}
.eke-title {
  font-family: var(--font-display, 'Libre Baskerville', serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy, #1B3A5C);
  line-height: 1.25;
  margin: 0;
}
@media (min-width: 600px) {
  .eke-title { font-size: 22px; }
}
.eke-title em {
  font-style: italic;
  color: var(--rust, #C4432A);
}
.eke-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy, #1B3A5C);
  opacity: 0.72;
  line-height: 1.4;
}
.eke-desc {
  font-size: 13px;
  color: var(--text-secondary, #4A5568);
  line-height: 1.6;
  margin: 0;
}
.eke-exclusive {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #5B4A8A;
  background: rgba(91,74,138,0.09);
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
  margin-top: 2px;
}

/* Parkplatz-Marker auf der Karte */
.parking-marker {
  background: #1B7A3C;
  color: #fff;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 2px solid #fff;
  font-weight: 700;
}

/* Parking Navigation Sheet */
.park-nav-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
  z-index: 1100;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(.22,.68,0,1.1);
}
.park-nav-sheet.visible {
  transform: translateY(0);
}
.park-nav-handle {
  width: 36px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 0 auto 16px;
}
.park-nav-title {
  font-family: var(--font-display, 'Libre Baskerville', serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy, #1B3A5C);
  margin-bottom: 4px;
}
.park-nav-subtitle {
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
}
.park-nav-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.park-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.park-nav-btn-apple {
  background: #000;
  color: #fff;
}
.park-nav-btn-google {
  background: #1B3A5C;
  color: #fff;
}
}
