:root{
  --bg: #0b1f12;
  --card: rgba(255,255,255,.06);
  --text: #e9f7ee;
  --muted: rgba(233,247,238,.75);
  --brand: #2ecc71;
  --brand2:#27ae60;
  --border: rgba(255,255,255,.12);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 18px;

  --luzi: #2ecc71;
  --kids: #6adf8f;
  --both: #1abc9c;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(46,204,113,.22), transparent 60%),
              radial-gradient(1200px 800px at 80% 40%, rgba(39,174,96,.18), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.92}

.container{max-width:1100px;margin:0 auto;padding:24px}
.header{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(11,31,18,.55);
  border-bottom: 1px solid var(--border);
}
.nav{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding:14px 24px;
}
.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:38px;height:38px;border-radius:12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: var(--shadow);
}
.brand h1{font-size:18px; margin:0; letter-spacing:.3px}
.brand p{margin:0; font-size:12px; color: var(--muted)}
.menu{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.menu a{
  padding:10px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
}
.menu a.active, .menu a:hover{
  background: rgba(46,204,113,.12);
  border-color: rgba(46,204,113,.25);
  color: var(--text);
}

.hero{
  margin: 26px 0 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.hero h2{margin:0 0 6px; font-size:28px}
.hero .sub{margin:0; color:var(--muted)}
.badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.badge{
  font-size:12px; color: var(--text);
  padding:6px 10px; border-radius:999px;
  background: rgba(46,204,113,.12);
  border:1px solid rgba(46,204,113,.25);
}

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
}

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .card-head{
  padding:16px 18px;
  border-bottom:1px solid var(--border);
  background: rgba(255,255,255,.04);
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
}
.card .card-head h3{margin:0; font-size:16px}
.card .card-head p{margin:4px 0 0; color:var(--muted); font-size:13px}
.card .card-body{padding:16px 18px}

.flyers{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 700px){ .flyers{grid-template-columns:1fr} }
.flyer{
  border:1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(0,0,0,.18);
}
.flyer img{display:block; width:100%; height:auto; cursor: zoom-in}
.flyer .cap{
  padding:10px 12px; color:var(--muted); font-size:13px;
  display:flex; justify-content:space-between; align-items:center; gap:10px;
}
.small{color:var(--muted); font-size:13px}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid rgba(46,204,113,.35);
  background: rgba(46,204,113,.14);
  color: var(--text);
}
.btn:hover{background: rgba(46,204,113,.18)}
.btn.secondary{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
/* primary CTA variant */
.btn.primary{ background: linear-gradient(90deg,var(--brand),var(--brand2)); border-color: transparent; color: #05210a; font-weight:700 }
.btn.primary:hover{ filter:brightness(.96) }

/* social icons in lineup */
.lineup-grid li a.icon{ margin-left:8px; padding:4px 6px; border-radius:6px; font-size:12px; color:var(--text); background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.04); text-decoration:none }
.lineup-grid li a.icon.ig{ background: linear-gradient(45deg,#feda75,#d62976); }
.lineup-grid li a.icon.sp{ background: linear-gradient(45deg,#1db954,#1ed760); }
.lineup-grid li a.icon.yt{ background: linear-gradient(45deg,#ff0000,#cc0000); }

/* small artist thumbnail used on festival pages */
.band-thumb{ width:96px; height:96px; object-fit:cover; border-radius:10px; margin-right:12px; vertical-align:middle; display:inline-block }
@media (max-width:700px){ .band-thumb{ width:72px; height:72px } }

.footer{
  margin: 28px 0 12px;
  color: var(--muted);
  font-size: 12px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
.footer a{color:var(--text); text-decoration:underline; text-decoration-color: rgba(255,255,255,.25)}

/* Filter */
.filters{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.filter-btn{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
  font-size:13px;
  line-height:1;
}
.filter-btn.active{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Color filter buttons from CSS variables set in assets/css/vars.php */
.filter-btn[data-filter="Luzi"]{ border-color: rgba(0,0,0,.06); }
.filter-btn[data-filter="Luzi"].active{ background: rgba(46,204,113,.12); border-color: rgba(46,204,113,.22); color: var(--luzi); }
.filter-btn[data-filter="LuziKids"]{ border-color: rgba(0,0,0,.06); }
.filter-btn[data-filter="LuziKids"].active{ background: rgba(106,223,143,.12); border-color: rgba(106,223,143,.22); color: var(--kids); }
.filter-btn[data-filter="all"].active{ background: rgba(255,255,255,.04); color: var(--text); }

/* Calendar module container */

.calendar-module .card-head{display:flex; align-items:center; justify-content:space-between; gap:12px}
.calendar-module .card-head > div:first-child{flex:1; min-width:0}
.calendar-module .card-head h3{margin-bottom:6px}
.calendar-module .card-head p{margin:0}
.toggle-view-btn{ padding:6px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03); color:var(--text); cursor:pointer; white-space:nowrap }
.toggle-view-btn:hover{ background: rgba(255,255,255,.06) }

.toggle-view-btn .cal-icon{ vertical-align:middle; margin-right:8px; opacity:.95 }
.toggle-view-btn[aria-pressed="true"]{ box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12) }

.simple-events-list{ list-style:none; margin:0; padding:0 }
.simple-events-list li{ display:block }
.simple-row{ display:flex; justify-content:space-between; gap:12px; align-items:center }
.simple-left{ min-width:0 }
.simple-right{ display:flex; align-items:center; gap:8px }
.simple-events-list .event-title{ font-weight:700; font-size:15px }
.simple-events-list .event-date{ font-size:12px; color:var(--muted) }
.pill{ display:inline-block; padding:6px 8px; border-radius:999px; background: rgba(255,255,255,0.03); font-size:12px; color:var(--text); border:1px solid rgba(255,255,255,0.04) }
.pill.luzi{ background: rgba(46,204,113,.08); color: var(--luzi); border-color: rgba(46,204,113,.12) }
.pill.luzikids{ background: rgba(106,223,143,.08); color: var(--kids); border-color: rgba(106,223,143,.12) }
.pill.both{ background: rgba(26,188,156,.06); color: var(--both); border-color: rgba(26,188,156,.12) }
.pill svg{ vertical-align:middle; margin-right:8px; opacity:0.95 }
.pill .pill-text{ vertical-align:middle }

.calendar-module .calendar-module-content{ display:flex; flex-direction:column; gap:12px }
.calendar-module .list-view{ width:100%; overflow:auto }
.calendar-module .filters{margin-left:12px}
.calendar-module .filters .filter-btn{ padding:6px 10px; font-size:13px }

/* responsive table for small screens */
@media (max-width:700px){
  .events-table thead{ display:none }
  .events-table, .events-table tbody, .events-table tr, .events-table td{ display:block; width:100% }
  .events-table tr{ margin-bottom:12px; border-bottom:1px solid rgba(255,255,255,.04) }
  .events-table td{ padding:8px 6px }
  .events-table td:first-child{ margin-bottom:6px }
}
.key{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:10px;
}
.key .k{
  display:flex; align-items:center; gap:8px;
  font-size:12px; color: var(--muted);
}
.dot{width:10px;height:10px;border-radius:999px; display:inline-block; border:1px solid rgba(255,255,255,.2)}
.dot.luzi{background: var(--luzi)}
.dot.kids{background: var(--kids)}
.dot.both{background: var(--both)}

/* group-specific card accents */
.event-card.luzi{border-color: rgba(0,0,0,0.08); box-shadow: 0 6px 18px rgba(46,139,87,0.06);}
.event-card.luzikids{border-color: rgba(0,0,0,0.06); box-shadow: 0 6px 18px rgba(126,217,150,0.06);}
.event-card.both{border-color: var(--both)}

.pill.luzi{background: rgba(46,139,87,0.12); border-color: rgba(46,139,87,0.25); color:var(--luzi)}
.pill.luzikids{background: rgba(126,217,150,0.12); border-color: rgba(126,217,150,0.25); color:var(--kids)}

/* table row color hints */
tr.luzi td{border-left:4px solid var(--luzi)}
tr.luzikids td{border-left:4px solid var(--kids)}
tr.both td{border-left:4px solid var(--both)}

/* Kalender */
.calendar-wrap{min-height: 580px}
.fc{
  --fc-border-color: rgba(255,255,255,.12);
  --fc-page-bg-color: transparent;
}
.fc .fc-toolbar-title{font-size:16px}
.fc .fc-button{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}
.fc .fc-button:hover{background: rgba(255,255,255,.12)}
.fc .fc-daygrid-day-number{color: var(--muted)}
.fc a{color: var(--text)}
/* Event-Badges nach Gruppe */
.fc .fc-event{border:0; border-radius: 12px; padding: 2px 6px}
.fc .fc-event.luzi { background: rgba(46,204,113,.22) }
.fc .fc-event.kids { background: rgba(106,223,143,.20) }
.fc .fc-event.both { background: rgba(26,188,156,.20) }
.fc .fc-event-title{font-weight:700}
.fc .fc-event-time{font-weight:600; opacity:.9}

/* hide FullCalendar's built-in view buttons (we use a single toggle) */
.fc .fc-button.fc-dayGridMonth-button,
.fc .fc-button.fc-listWeek-button { display: none !important; }

/* Galerie */
.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
@media (max-width: 1000px){ .gallery{grid-template-columns: repeat(3, 1fr);} }
@media (max-width: 700px){ .gallery{grid-template-columns: repeat(2, 1fr);} }
.gallery a{
  border-radius: 14px;
  overflow:hidden;
  border:1px solid var(--border);
  background: rgba(0,0,0,.22);
  display:block;
}
.gallery img{width:100%; height:220px; object-fit:cover; display:block}

/* Events grid for homepage (2 rows x 3 cols on desktop) */
.events-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.event-card{
  border:1px solid var(--border);
  border-radius:12px;
  background: rgba(255,255,255,.02);
  padding:12px;
  min-height:160px;
}
.event-card .event-media img{width:100%; height:140px; object-fit:cover; border-radius:10px; cursor:zoom-in}
.event-card .event-media.no-media{height:140px; display:block; background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); border-radius:10px}
.event-card .muted{color:var(--muted)}
.event-card .small{font-size:13px}

/* Table view for events.html */
.events-table{width:100%;border-collapse:collapse}
.events-table thead th{background:rgba(255,255,255,.03);padding:8px 10px;text-align:left;position:sticky;top:0;font-weight:700;font-size:13px}
.events-table th, .events-table td{padding:8px 10px;border-bottom:1px solid rgba(255,255,255,.04);vertical-align:middle;font-size:14px}
.events-table img{border-radius:8px; width:84px; height:56px; object-fit:cover}
.events-table tbody tr:hover{background:rgba(255,255,255,.02)}
.events-table th{cursor:pointer}
.event-card h4{margin:6px 0 4px; font-size:1rem}
.event-date{font-size:12px; color:var(--muted); margin-bottom:4px}
.event-desc{font-size:13px; color:var(--muted); margin-bottom:8px}
.events-table tbody tr:nth-child(odd){background: rgba(255,255,255,0.01)}
.events-table tbody td{vertical-align:top}

/* Festival page styles */
.festival-card .festival-grid{display:grid; grid-template-columns: 1fr 360px; gap:18px}
.festival-left{display:flex; flex-direction:column; gap:12px}
.festival-right{padding:6px 0}
.festival-left .flyer img{width:100%; height:auto; border-radius:10px}
.eventim-wrap{border:1px solid rgba(255,255,255,0.04); padding:6px; border-radius:10px; background: rgba(0,0,0,0.12)}
.lineup-grid{list-style:none; margin:12px 0 0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:8px}
.lineup-grid li{padding:8px 10px; background: rgba(255,255,255,0.02); border-radius:8px; font-weight:600}
.festival-tabs{display:flex; gap:8px}
.tab-btn{padding:8px 12px; border-radius:999px; border:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); color:var(--muted); cursor:pointer}
.tab-btn.active{background: rgba(255,255,255,0.04); color:var(--text); border-color: rgba(255,255,255,0.08); box-shadow: 0 6px 18px rgba(0,0,0,.18)}

@media (max-width: 1000px){
  .festival-card .festival-grid{grid-template-columns:1fr}
  .lineup-grid{grid-template-columns:1fr}
}

@media (max-width: 800px){ .events-grid{grid-template-columns: repeat(2,1fr);} }
@media (max-width: 480px){ .events-grid{grid-template-columns: 1fr;} }

/* Lightbox/Modal (Flyer + Galerie) */
.lightbox{
  position:fixed; inset:0; z-index:999;
  background: rgba(0,0,0,.82);
  display:none;
  align-items:center; justify-content:center;
  padding:20px;
}
.lightbox.open{display:flex}
.lightbox .inner{
  width: min(1100px, 95vw);
}
.lightbox img{
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
  display:block;
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.14);
}
.lightbox .bar{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  margin-top:10px;
}
.lightbox .bar .title{color: rgba(233,247,238,.85); font-size:13px}
