<?php /* public/styles.css */ ?>
:root{
  --bg: #0b1020;
  --surface: #111827;
  --card: #0f172a;
  --text: #000000;
  --muted: #9ca3af;
  --accent: #60a5fa;
  --border: #1f2937;
  --chip: #1e293b;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif}

/* Topbar */
.topbar{position:sticky;top:0;z-index:50;background:#FFFFFF;backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.topbar-inner{width:100%;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:10px 16px}
.topbar .logo img{height:56px}

/* === NEW: Always-visible hamburger & vertical overlay menu === */
/* Base hamburger setup */
.hamburger{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;height:40px;
  background:none;border:none;
  color:var(--text);
  cursor:pointer;border-radius:10px;
}
.hamburger span{
  position:absolute;
  left:50%;
  width:22px; height:2px;
  background: currentColor;
  border-radius:2px;
  transform: translateX(-50%);
  transition: transform .28s ease, opacity .2s ease;
}
.hamburger span:nth-child(1){ top: 13px; }
.hamburger span:nth-child(2){ top: 50%; transform: translate(-50%, -50%); }
.hamburger span:nth-child(3){ bottom: 13px; }

/* Active (X) state */
.hamburger.is-active span:nth-child(1){
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.hamburger.is-active span:nth-child(2){
  opacity: 0;
}
.hamburger.is-active span:nth-child(3){
  bottom: auto; top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.hamburger:hover{background:#f3f4f6}
.hamburger:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Hide any legacy inline menu in the topbar (we render overlay instead) */
.topbar .menu,
.topbar .mainnav,
.nav-toggle { display:none !important; }

/* Fullscreen overlay container */
.menu-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  z-index:9999;
  display:none; /* toggled by JS */
}

/* --- Smooth fade for the full-screen overlay --- */
.menu-overlay{
  /* keep your existing positioning */
  display:block;                /* allow transitions; JS won't set display:none */
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition: opacity .28s ease, visibility .28s ease;
}
.menu-overlay.open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

/* --- Subtle slide/scale for the panel --- */
.menu-panel{
  opacity:0;
  transform: translateY(-6px) scale(.985);
  transition: opacity .28s ease, transform .28s ease;
}
.menu-overlay.open .menu-panel{
  opacity:1;
  transform:none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .menu-overlay { transition:none; }
  .menu-panel   { transition:none; }
}

/* Floating panel with vertical list */
.menu-panel{
  position:absolute;
  top:76px; right:16px;
  max-height:calc(100vh - 92px);
  overflow:auto;
  background:#ffffff;
  color:#0f172a;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 20px 40px rgba(0,0,0,.25);
}
.menu-panel-header{
  display:flex;align-items:center;justify-content:space-between;
  gap:8px;
  padding:10px 12px;
  border-bottom:1px solid var(--border);
}
.menu-panel-title{font-weight:700;font-size:16px}
.menu-close{
  background:none;border:none;cursor:pointer;
  font-size:24px;line-height:1;border-radius:8px;align:right;
}
.menu-close:hover{background:#f39496}

/* Vertical links; indentation comes from inline padding-left set by JS */
.menu-list{
  display:flex;flex-direction:column;
  padding:2px 0;
}
.menu-link-flat{
  display:block;
  padding:2px 2px;
  text-decoration:none;
  color:#0f172a;
  border-radius:10px;
  transition:background .15s ease,color .15s ease;
}
.menu-link-flat:hover{background:#f3f4f6}
.menu-link-flat[data-level="0"]{font-weight:700}
.menu-link-flat[data-level="1"]{font-weight:600}
.menu-link-flat[data-level="2"]{font-weight:500}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  height: min(calc(100vh - 76px), 50vw);
  min-height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.slides{position:absolute;inset:0;display:flex;transition:transform .6s ease-in-out}
.slide{position:relative;min-width:100%;height:100%;cursor:pointer}
.slide img{width:100%;height:100%;object-fit:cover}

/* klickbarer Link im Slide */
.slide-link{display:block;height:100%;cursor:pointer}

.dots{position:absolute;bottom:10px;left:0;right:0;display:flex;gap:8px;justify-content:center}
.dots button{width:10px;height:10px;border-radius:999px;border:1px solid #fff;background:transparent;opacity:.6}
.dots button.active{background:#fff;opacity:1}

/* Ensure the full-slide link doesn't add a background */
/* Force the slider overlay to be truly transparent */
/* Ensure the slide is the positioning context */
.slider .slide { position: relative; }

/* Full-cover overlay, perfectly centered text, clicks pass through */
.slider .slide .overlay {
  position: absolute;
  inset: 0;                          /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  align-items: center;               /* vertical centering */
  justify-content: center;           /* horizontal centering */
  text-align: center;

  /* visuals */
  background: transparent !important;
  color: #fff;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
  border: 0 !important;
  border-radius: 14px;
  max-width: 80%;
  margin: 0 auto;

  /* keep slide clickable */
  pointer-events: none;
  z-index: 1;

  /* responsive sizing */
  font-size: clamp(1.2rem, 4vw, 4rem);
  line-height: 1.2;
}

/* Remove any :before/:after centering attempts to avoid conflicts */
.slider .slide .overlay::before,
.slider .slide .overlay::after { content: none !important; }


/* Welcome + filters/intros */
.welcome{max-width:1200px;margin:12px auto;display:flex;padding:0 16px; padding: 6px 10px; border-radius: 6px;}
.filters{max-width:1200px;margin:20px auto;display:flex;  background: #dbeafe; padding: 6px 10px; border-radius: 6px;   max-width: 900px; text-align: justify;}
.filter-block{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:8px;margin-bottom:8px}
.filter-block h3{margin:0 0 6px 0;font-size:10px;color:#cbd5e1}

/* Gemeinde pills */
.group-checkboxes{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.checkbox-pill{
  --c:#6b7280;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:10px;
  border:2px solid var(--c);
  color:var(--c);
  background:transparent !important;
  cursor:pointer;
  user-select:none;
  transition:background .15s ease,color .15s ease,border-color .15s ease,transform .05s ease;
  min-height:34px;
}
.checkbox-pill:hover{transform:translateY(-1px)}
.checkbox-pill input{position:absolute;inset:0;opacity:0;pointer-events:none}
.checkbox-pill-text{font-size:14px;font-weight:600;line-height:1}
.checkbox-pill.active{
  background: var(--c) !important;
  border-color: var(--c) !important;
  color: #0b1020 !important;
  font-weight: 600;
}
.checkbox-pill:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
/* stronger cascade */
.group-checkboxes .checkbox-pill{
  background: transparent !important;
  border-color: var(--c) !important;
  color: var(--c) !important;
}
.group-checkboxes .checkbox-pill.active,
.group-checkboxes .checkbox-pill.checked{
  background: var(--c) !important;
  border-color: var(--c) !important;
  color: #0b1020 !important;
}

/* Tag bars */
.tagbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.tag-chip{
  border:1px solid var(--border);
  background:var(--chip);
  color:#7c838f;
  padding:2px 4px;
  border-radius:9999px;
  font-size:12px;
  line-height:0.7;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .05s ease;
}
.tag-chip:hover{border-color:#9ca3af}
.tag-chip:active{transform:translateY(1px)}
.tag-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tag-chip.selected{
  background:#ffffff;
  color:#000000;
  border-color:#e5e7eb;
  font-weight:600;
}

/* Intro paragraph + Gemeinde colors */
.filter-text {
  max-width: 900px;
  margin: 20px auto;
  text-align: justify;
}
.intro-text {
  font-size: 1.5rem;
  line-height: 1.8;
  font-weight: 300;
  color: #000000;
  max-width: 900px;
  margin: 20px auto;
  text-align: justify;
}
.gemeinde-buehlau    { background: #ef4444; color: #000; }
.gemeinde-hosterwitz { background: #f59e0b; color: #000; }
.gemeinde-loschwitz  { background: #16a34a; color: #000; }
.gemeinde-schoenfeld { background: #2563eb; color: #000; }
.gemeinde-hirsch     { background: #8b5cf6; color: #000; }
.gemeinden           { background: #44D3C9; color: #000; }

.intro-text .tag-chip {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 300;
  padding: 4px 10px;
  border-radius: 0;
  display: inline;
}

/* Legacy chips */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:6px 10px;background:var(--chip);border:1px solid var(--border);border-radius:999px;font-size:14px;color:#cbd5e1;cursor:pointer}
.chip.active{outline:2px solid var(--accent)}

/* =========================
   EVENTS LAYOUT + BACKGROUND
   ========================= */

/* Desktop/Wide: two columns with ONE shared background behind both */
.events{
  max-width:900px;
  margin:0 auto 32px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  padding:0 16px;

  /* shared background */
  min-height: 40vh;
  align-items: center;             /* vertically center the columns */
  justify-items: center;

  background-image: url('/public/impuls.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;    /* ← parallax */
  position: relative;
  border-radius: 12px;
}

/* keep the nice tint if you’re using it */
.events::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(255,255,255,0.06);
  border-radius: inherit;
  pointer-events:none;
}

/* Parallax off on mobile for performance/compatibility */
@media (max-width: 850px){
  .events{
    grid-template-columns: 1fr;
    background-attachment: scroll; /* ← disable parallax on small screens */
    background: none;              /* no shared bg on mobile */
    min-height: unset;
    gap: 20px;
  }
}

.events > *{ position: relative; }

/* columns */
.events-col-left,
.events-col{
  display: flex;
  flex-direction: column;
  width: 100%;
  height:100%;
  max-width: 500px;
  justify-content: space-between; 
}

.events-col-left {
  width:500px;
  padding: 12px;
}

.events-col-left{
  background: rgba(255, 255, 255, 0.8); /* white @ 70% opacity */
}

.events-col h2{margin:10px 0 6px 0;font-size:20px;color:#dbeafe;  display: flex; flex-direction: column}
.search-row{margin-bottom:8px}
.search-row input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#0b1220;
  color:#ffffff;
}

/* fixed-height, vertical-only scroll lists */
.event-list{
  display:flex;
  flex-direction:column;
  gap:10px;


  padding-right:6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(170,184,204,0.6) transparent;
}

/* prevent horizontal overflow inside cards */
.event-card,
.event-title,
.event-title-link,
.event-location{
  min-width:0;
  word-wrap:break-word;
  overflow-wrap:anywhere;
}

/* Optional nicer scrollbars */
.event-list::-webkit-scrollbar{ width: 10px; }
.event-list::-webkit-scrollbar-thumb{   background: rgba(170, 184, 204, 0.6); border-radius:10px; }
.event-list::-webkit-scrollbar-track{ background:transparent; }

/* Event cards */
.event-card{position:relative;border:1px solid var(--border);border-radius:16px;background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));padding:4px 12px}
.event-stripe{position:absolute;left:0;top:0;bottom:0;width:6px;border-top-left-radius:16px;border-bottom-left-radius:16px}
.event-time{font-size:12px;color:var(--muted)}
.event-title{font-size:17px;margin:4px 0 2px 0}
.event-meta{display:flex;gap:10px;flex-wrap:wrap;color:#cbd5e1}
.event-tags{display:flex;gap:6px;margin-top:6px}
.tag-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:var(--chip);border:1px solid var(--border)}

/* Grouped date separators */
h2,h3,h4{margin:6px 0;font-weight:600}
.filter-block{margin-bottom:8px;padding:8px}
.tag-row{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.filter-label{font-size:12px;font-weight:700;color:#000000;margin-right:4px}
.tagbar{flex:1;display:flex;flex-wrap:wrap;gap:6px}

.day-sep {
  display: block;
  width: 100%;
  background: rgba(219, 234, 254, 0.6); /* light blue with 60% opacity */
  color: #0f172a;
  font-weight: 600;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 6px;
  margin: 12px 0 6px;
}

/* Title/time/icons line */
.event-header-line {
  display: flex;
  align-items: baseline;   /* align items at top */
  gap: 6px;
  flex-wrap: nowrap;         /* keep time in its own column */
}

.event-time-inline {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;       /* time never wraps */
  flex-shrink: 0;            /* don't shrink time */
}

.event-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;              /* allow wrapping */
}

.event-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;           /* allow wrapping */
  gap: 6px;
  white-space: normal;       /* <-- FIX: titles wrap normally */
  overflow-wrap: anywhere;   /* break long words if needed */
}

.event-title-link,
.event-title {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
}

.event-title-link,
.event-title-link:link,
.event-title-link:visited {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  text-decoration: underline;
  color: #000000;
}
.event-title-link:hover {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  color: #2563eb;
}

.event-location {
  margin-left: 0;
  font-size: 14px;
  color: #7a939e;
}
.event-icons-inline { display: inline-flex; gap: 4px; }

/* clickable card wrapper reset */
.event-card-link,
.event-card-link:link,
.event-card-link:visited {
  all: unset;
  display: block;
  cursor: pointer;
}

/* Link style for titles */
.event-title-link {
  font-size: 17px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: underline;
  word-break: break-word;
}
.event-title-link:hover { color: #1d4ed8; }

.more-btn{
  margin: 8px 0 16px 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--chip);
  color: #cbd5e1;
  cursor: pointer;
}
.more-btn:hover{ filter: brightness(1.1); }
.more-btn[disabled]{ opacity:.6; cursor: not-allowed; }

/* ======================
   LOSUNG CARD (RIGHT COL)
   ====================== */
#losung-box {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 12px !important;
  width: 100%;
  height: 100%
}

.losung-card{
  width:100%;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;    /* stack children vertically */
  background: none !important;   /* no own background */
  box-shadow: none !important;   /* remove any shadow if there */
}
.losung-heading{
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 300;
  color: #FFFFFF;
  margin-bottom: 10px;
}
/* stack Losung text + reference; attribution at bottom */
.losung-body {
  flex: 1;                   /* push attribution down */
  display: flex;
  flex-direction: column;
}
.losung-row{
  display: block;
  width: 100%;
}

.losung-text{
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 200;
  color: #FFFFFF;
  margin-bottom: 4px;
  text-align:left;
  border-radius: 10px;
  border: 0px solid rgba(255,255,255,.15);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}
/* Attribution pinned at bottom */
#losungAttribution {
  margin-top: auto;          /* stays at bottom */
  font-size: 10px;
  color: #000000;
  text-align: left;
}

/* Reference right-aligned */
.losung-ref {
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 300;
  align-self: flex-end;
  color: #FFFFFF;
  text-align: right;
}

/* Style for the button at the bottom */
#moreLeft {
  margin-top: 12px;
  margin-bottom: 0px;
  background: #4566A8;
  color: #ffffff;
  border: 1px solid #000000;
  font-weight: 600;
  font-size:12px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

#moreLeft:hover {
  background: #254688;
  border-color: #222222;
}

/* === KREISE table box: same width as events columns, no blue bg === */
#kreise-box {
  background: none !important;
  border: none !important;
  box-shadow: none !important;

  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Wrapper: exact card width (100% of column), scroll both ways, height cap */
#kreiseTableWrap {
  width: 100%;
  max-width: 100%;
  max-height: 60vh;
  overflow: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(170,184,204,0.6) transparent;
}
#kreiseTableWrap::-webkit-scrollbar{ width: 10px; }
#kreiseTableWrap::-webkit-scrollbar-thumb{   background: rgba(170, 184, 204, 0.6); border-radius:10px; }
#kreiseTableWrap::-webkit-scrollbar-track{ background:transparent; }

/* Table must be allowed to be wider than the wrapper on small screens */
#kreiseTable {
  width: max-content !important;
  min-width: 450px;
  border-collapse: collapse;
  font-size: 14px;
}

/* Cells: no wrapping -> horizontal scroll; no row backgrounds */
#kreiseTable thead th,
#kreiseTable tbody td {
  white-space: nowrap;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
}

/* Header: no background, keep visual separation via border only */
#kreiseTable thead th {
  font-weight: 700;
  color: #0f172a;
  background: transparent;
  text-align: left;   /* <-- ensure left alignment */
  padding-left: 8px; 
  justify-content: flex-start;
}

/* Rows: no background on normal or hover */
#kreiseTable tbody tr { background: transparent; }
#kreiseTable tbody tr:hover { background: transparent; }

@media (max-width: 850px){
  .welcome,
  .intro-text{
    width:95%;
  }
  .filters{flex-direction:column}
  .events{
    grid-template-columns: 1fr;
    background: none;
    min-height: unset;
    gap: 20px;
  }

  /* each column becomes its own card with the same background */
  .events-col-left {
    background-image: url('/public/impuls.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 12px;
    margin: 0 16px;
    position: relative;
    width: 95%;
    background-color: rgba(255,255,255,0.75);
    background-blend-mode: overlay;
  }

  .events-col, .kreiseTableWrap{
    background-image: url('/public/impuls.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 12px;
    margin: 0 16px;
    position: relative;
    width:95%;
  }

  .events-col-left::before,
  .events-col::before,
  .kreiseTableWrap::before{
    content:"";
    position:absolute; inset:0;
    background: rgba(255,255,255,0.06);
    border-radius: inherit;
    pointer-events:none;
  }

  .events-col-left > *,
  .events-col > *{ position: relative; }

}

/* We no longer hide/show the hamburger by breakpoint – it is always visible. */
/* Keep other small-screen tweaks. */
@media (max-width: 600px){
  .losung-text{ font-size: 16px; }
}
@media (max-width: 480px){
  #calendarKeywordChips{grid-template-columns:1fr}
  .group-checkboxes{grid-template-columns:1fr}
}

/* 1) Flex-Item darf schmaler als sein Inhalt werden → Scrollen innerhalb möglich */
.events-col { 
  min-width: 0;
}

/* 2) Wrapper: explizit horizontal + vertikal scrollen, keine Mindestbreite erzwingen */
#kreiseTableWrap {
  overflow-x: auto !important;
  overflow-y: auto !important;
  max-height: 60vh;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

/* 3) Tabelle: auf Inhaltsbreite gehen, NICHT auf 100% strecken */
#kreiseTable {
  width: max-content !important;
  max-width: none !important;
  min-width: 450px;
  display: table;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 14px;
}

/* Zellen ungebrochen lassen, damit die Tabelle wirklich „wächst“ */
#kreiseTable thead th,
#kreiseTable tbody td {
  white-space: nowrap;
}

/* Mobile: Spalten wirklich 100% breit */
@media (max-width: 850px){
  .events-col,
  .events-col-left {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* Container für "Aktuelles" zentrieren und auf 900px oder 95vw begrenzen */
.aktuelles {
  width: min(900px, 95vw);
  margin: 0 auto;
}

/* Überschrift optional zentrieren */
.aktuelles > h3 {
  text-align: left;
  margin: 1rem 0 1.25rem 0;
}

/* Masonry-Layout mit CSS-Mehrspalten */
.aktuelles-grid {
  column-count: auto;
  columns: 250px auto;
  column-width: 250px;
  column-gap: 16px;
}

/* Karten */
.aktuelles-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;

  background: var(--card, #FFFFFF);
  color: var(--text, #000);
  border: 1px solid var(--border, #1f2937);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Bild in Karten */
.aktuelles-card img {
  display: block;
  width: calc(100% - 10px);
  margin: 5px auto 0;
  height: auto;
  border-radius: 8px;
}
.aktuelles-body {
  text-align: center;
  padding: 8px 8px 8px;
  line-height: 1.5;
}

/* Kleinere Abstände auf sehr schmalen Geräten */
@media (max-width: 360px) {
  .aktuelles-grid { column-gap: 12px; }
  .aktuelles-card { margin-bottom: 12px; }
}

/* Default link style: black */
a,a:visited {
  color: black;
  text-decoration: underline; /* optional, removes underline */
}

/* On hover: blue */
a:hover {
  color: blue;
  text-decoration: underline; /* optional, adds underline back */
}
/* Minimaler Stil für die Pfeile – anpassbar */
.slider{position:relative}
/* Navigation arrows: rectangular, taller than wide */
.slider .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;          /* narrow */
  height: 64px;         /* taller rectangle */
  border: none;
  border-radius: 6px;   /* slight rounding, adjust as needed */
  background: rgba(0,0,0,0.2);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.slider .nav-arrow:hover{background:rgba(0,0,0,.55)}
.slider .nav-prev{left:10px}
.slider .nav-next{right:10px}
/* Subtle, snappy pop-in for pills */
.checkbox-pill {
  will-change: transform, opacity;
}
.checkbox-pill.pop {
  animation: pill-pop 0.32s ease-out both;
}
@keyframes pill-pop {
  0%   { transform: scale(0.6); opacity: 0.1; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .checkbox-pill.pop { animation: none; }
}

/* You don't need :before/:after here; remove them to avoid accidental overrides */


/* --- Event Details Modal --- */
.evt-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;z-index:9999}
.evt-modal{background:#fff;color:#111;max-width:680px;width:calc(100% - 32px);border-radius:12px;box-shadow:0 10px 40px rgba(0,0,0,.35);overflow:hidden}
.evt-modal header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e5e7eb;background:#f8fafc}
.evt-modal header h3{margin:0;font-size:18px;line-height:1.2}
.evt-modal .evt-body{padding:16px;max-height:65vh;overflow:auto}
.evt-modal .evt-close{appearance:none;border:0;background:transparent;font-size:24px;line-height:1;cursor:pointer;padding:0 6px}
.evt-modal .evt-body a{word-break:break-all}

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(17, 24, 39, 0.95); /* dark surface */
  color: #f9fafb;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -6px 16px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
  font-size: 14px;
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner a {
  color: #93c5fd;
  text-decoration: underline;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-banner .cookie-ok {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: #60a5fa;
  color: #0b1020;
  font-weight: 600;
  cursor: pointer;
}
.cookie-banner .cookie-ok:focus { outline: 2px solid #fbbf24; outline-offset: 2px; }
.cookie-banner .cookie-text { margin-right: 12px; }
@media (max-width: 640px){
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner .cookie-actions { justify-content: flex-end; }
}

/* Hide inline topnav by default */
.topnav { display: none; }

/* Desktop: show inline nav only when menu is open */
@media (min-width: 700px){
  .menu-inline-open .topnav{
    display: flex;
    align-items: center;
  }
  .topbar-inner { gap: 8px; }        /* tighter gap so it "sticks" to the hamburger */
  .topnav { margin-left: auto; }     /* push nav to the right, right next to hamburger */
  .topnav > ul{
    display: flex; gap: 6px;
    list-style: none; margin: 0; padding: 0;
  }
  .topnav li { position: relative; }

  .topnav > ul > li > a{
    display: inline-block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
  }
  .topnav > ul > li > a:hover{ background:#f3f4f6; }

  /* Submenus: fade on hover */
  .topnav .submenu{
    position: absolute; left: 0; top: calc(100% + 6px);
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    padding: 6px; list-style: none; margin: 0;

    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 60;
  }
  .topnav li:hover > .submenu { opacity:1; visibility:visible; transform:none; }
  .topnav .submenu > li > a{
    display:block; padding:8px 10px; border-radius:8px; color:#0f172a; text-decoration:none;
  }
  .topnav .submenu > li > a:hover{ background:#f3f4f6; }
  .topnav .submenu li { position: relative; }
  .topnav .submenu .submenu { top:0; left:100%; margin-left:6px; }
}

/* Mobile: topnav stays hidden; we use the overlay */
@media (max-width: 700px){
  .topnav { display: none !important; }
}

.recurring-info-btn{
  border:none;
  background:transparent;
  padding:0;
  margin:0 0 0 2px;
  line-height:0;
  vertical-align:middle;
  cursor:pointer;
  opacity:.9;
}
.recurring-info-btn:hover{ outline: 2px solid #BBBB33; outline-offset: 2px; border-radius: 4px;,opacity:1; transform:scale(1.06); }
.recurring-info-btn:focus{ outline: 2px solid #9ca3af; outline-offset: 2px; border-radius: 4px; }
