:root{
  --bg:#f6f7fb;
  --surface:#ffffff;
  --surface2:#fbfbfe;
  --border:rgba(15,23,42,.10);
  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;

  --brand:#f6c200;
  --blue:#1e3a8a;
  --brandBlue:#1d4ed8;

  --radius:18px;
  --max:1160px;

  --shadow:0 10px 30px rgba(2,6,23,.08);
  --shadow2:0 8px 18px rgba(2,6,23,.06);
  --ring:0 0 0 4px rgba(29,78,216,.12);

  --sectionBg: rgba(255,255,255,.55);
  --sectionBorder: rgba(15,23,42,.10);


  /* Timeline */
  --tlLine: rgba(29,78,216,.35);
  --tlLine2: rgba(246,194,0,.45);
  --tlDot: var(--brand);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html,body{overflow-x:hidden;}
a{color:inherit}

/* ===== Background ===== */
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  background:
    linear-gradient(135deg,
      rgba(29,58,138,.045) 0%,
      rgba(29,58,138,.045) 25%,
      rgba(246,194,0,.045) 25%,
      rgba(246,194,0,.045) 50%,
      rgba(29,58,138,.045) 50%,
      rgba(29,58,138,.045) 75%,
      rgba(246,194,0,.045) 75%,
      rgba(246,194,0,.045) 100%
    ),
    radial-gradient(900px 420px at 20% -10%, rgba(29,78,216,.10), transparent 65%),
    radial-gradient(900px 420px at 90% 0%, rgba(246,194,0,.14), transparent 55%),
    var(--bg);
  background-size: 180px 180px, auto, auto, auto;
  color: var(--text);
  line-height: 1.55;
}

/* ===== Seiten-Hintergrund: hg-knolle (rechts, dezent) ===== */
body{
  position: relative;
  isolation: isolate;
}

/* Knolle als dezentes Hintergrund-Overlay (sichtbar!) */
body::after{
  content:"";
  position: fixed;
  top: 50%;
  right: -270px;
  transform: translateY(-50%);
  width: min(720px, 55vw);
  height: min(720px, 55vw);

  background: url("/images/hg-knolle.png") no-repeat center / contain;
  opacity: .14;
  pointer-events: none;

  z-index: -100;              /* ✅ NICHT -1 */
  filter: saturate(1.05);
}

/* Alles andere über dem Knolle-Overlay */
body > *{
  position: relative;
  z-index: 1;
}

@media (max-width: 980px){
  body::after{ display:none; }
}



/* ===== Container ===== */
.container{
  max-width:var(--max);
  margin:0 auto;
  padding:16px;
}
@media (max-width: 1120px){
  .container{padding:14px}
}

/* ===== Header ===== */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(246,247,251,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav{
  display:grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap:14px;
  align-items:center;
  padding: 10px 0;
}

/* Brand */
.brand{
  display:grid;
  grid-template-columns: 56px 1fr;
  align-items:center;
  gap:23px;
  text-decoration:none;
  min-width:0;
}
.brand img{
  width:95px;
  height:95px;
  object-fit:contain;
}
.brand .title{
  font-weight:950;
  font-size:14px;
  letter-spacing:.2px;
  line-height:1.15;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.brand .subtitle{
  color:var(--muted2);
  font-size:12px;
  margin-top:2px;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* ===== Desktop Menu ===== */
.menu{
  justify-self:end;
  width:100%;
  min-width:0;
}
.menuCols{
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  gap:12px;
  width:100%;
  min-width:0;
}
.menuLinks{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:4px 4px;
  min-width:0;
  max-width:100%;
}
.menuLinks a{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  text-decoration:none;
  color:var(--muted);
  padding:10px 12px;
  border-radius:14px;
  font-weight:800;
}
.menuLinks a:hover{
  background: rgba(15,23,42,.05);
  color: var(--text);
}
.menuLinks a.active{
  background: rgba(29,78,216,.08);
  box-shadow: var(--ring);
  color: var(--text);
}

/* CTA rechts, immer sichtbar */
.ticketBtn{
  white-space:nowrap;
  flex:0 0 auto;
}

/* Desktop Burger */
.burger{display:none}
.mobileActions{display:none}

/* ===== Cards / Typography ===== */
.card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.14);
  border-radius: var(--radius);
  box-shadow:
    0 18px 46px rgba(2,6,23,.10),
    0 2px 10px rgba(2,6,23,.06);
  position: relative;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.card:hover{
  transform: translateY(-2px);
  box-shadow:
    0 26px 64px rgba(2,6,23,.14),
    0 4px 14px rgba(2,6,23,.08);
}
.card.soft{
  background: linear-gradient(180deg, rgba(251,251,254,.96), rgba(255,255,255,.92));
}
.cardPad{padding:20px}

.kicker{color:var(--muted2); font-size:13px}
.h1{font-size:32px; line-height:1.12; margin:8px 0 0; letter-spacing:-.3px}
.sub{color:var(--muted); margin-top:10px}
.meta{color:var(--muted2); font-size:13px}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(29,78,216,.08);
  border: 1px solid rgba(29,78,216,.18);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

/* ===== Buttons ===== */
.ctaRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  font-weight:950;
  border: 1px solid rgba(15,23,42,.14);
  background: var(--surface);
  box-shadow: var(--shadow2);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0px)}

.btnPrimary{
  background: linear-gradient(135deg, rgba(246,194,0,.95), rgba(246,194,0,.70));
  border: 1px solid rgba(246,194,0,.55);
  color:#111827;
}
.btnBlue{
  background: linear-gradient(135deg, rgba(29,78,216,.95), rgba(29,78,216,.70));
  border: 1px solid rgba(29,78,216,.45);
  color:#fff;
}
.btnGhost{background: rgba(15,23,42,.04)}

/* ===== Layout ===== */
.hero{padding:14px 0 6px;}
.heroGrid{display:grid; gap:14px; grid-template-columns: 1.25fr .75fr;}

.grid{
  display:grid;
  gap:22px; /* mehr Trennung */
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 34px;
}

.sectionTitle{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-top:26px;
  margin-bottom:12px;
}
.sectionTitle h2{margin:0; font-size:18px}
.sectionTitle a{color:var(--muted2); text-decoration:none; font-weight:900}
.sectionTitle a:hover{color:var(--text)}

.eventCard .top{display:flex; align-items:flex-start; justify-content:space-between; gap:12px;}
.eventCard h3{margin:6px 0 6px; font-size:16px}
.eventCard p{margin:8px 0 0; color:var(--muted)}

/* ===================================================================== */
/* ===================== EVENTS: TIMELINE (NUR EVENTS) =================== */
/* ===================================================================== */

/* WICHTIG: #eventsList ist im HTML als .grid markiert.
   Wenn du darin eine Timeline renderst, darf #eventsList NICHT grid bleiben,
   sonst landet die Timeline in Spalte 1 und wirkt "nach links geschoben". */
#eventsRoot #eventsList{
  display:block !important;
  margin-top: 18px;
}

/* Timeline wrapper: zentriert + begrenzte Breite */
#eventsRoot .timeline{
  position:relative;
  width: min(980px, 100%);
  margin: 10px auto 30px;
  padding: 10px 0 10px;
}

/* Mittellinie */
#eventsRoot .timeline::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  transform: translateX(-50%);
  width:4px;
  border-radius:999px;
  background: linear-gradient(
    180deg,
    rgba(29,78,216,.10),
    var(--tlLine),
    var(--tlLine2),
    rgba(29,78,216,.10)
  );
  box-shadow: 0 0 0 6px rgba(29,78,216,.06);
}

/* Item als 3-Spalten-Layout (links | mitte | rechts) */
#eventsRoot .timelineItem{
  display:grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items:start;
  margin: 0 0 26px;
  position:relative;
}

/* Punkt im Zentrum */
#eventsRoot .timelineDot{
  grid-column:2;
  justify-self:center;
  width:14px;
  height:14px;
  border-radius:999px;
  background: var(--tlDot);
  box-shadow:
    0 0 0 6px rgba(246,194,0,.22),
    0 10px 24px rgba(2,6,23,.12);
  margin-top: 26px;
}

/* Card in die richtige Spalte */
#eventsRoot .timelineCard{
  width: min(420px, 100%);
}
#eventsRoot .timelineItem.left .timelineCard{
  grid-column:1;
  justify-self:end;
}
#eventsRoot .timelineItem.right .timelineCard{
  grid-column:3;
  justify-self:start;
}

/* kleine Verbindungslinie zur Mittelachse */
#eventsRoot .timelineItem.left .timelineCard::after,
#eventsRoot .timelineItem.right .timelineCard::after{
  content:"";
  position:absolute;
  top: 34px;
  width: 24px;
  height: 2px;
  background: rgba(29,78,216,.22);
}
#eventsRoot .timelineItem.left .timelineCard::after{
  right: -24px;
}
#eventsRoot .timelineItem.right .timelineCard::after{
  left: -24px;
}

/* Timeline Typo */
#eventsRoot .tlDate{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  color: var(--muted2);
  font-size: 13px;
  font-weight: 800;
}
#eventsRoot .tlTitle{
  margin-top: 10px;
  font-size: 22px;
  font-weight: 980;
  letter-spacing: -.2px;
  line-height: 1.12;
}
#eventsRoot .tlVenue{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 850;
}

/* Buttons in Timeline etwas "kompakter" */
#eventsRoot .timelineCard .ctaRow{
  margin-top: 14px;
}

/* Desktop: damit es wirklich mittig wirkt – mehr Luft links/rechts */
@media (min-width: 1121px){
  #eventsRoot .timeline{
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Mobile: alles untereinander, Linie links */
@media (max-width: 820px){
  #eventsRoot .timeline{
    width: 100%;
    padding-left: 16px;
    padding-right: 0;
  }

  #eventsRoot .timeline::before{
    left: 16px;
    transform:none;
  }

  #eventsRoot .timelineItem{
    grid-template-columns: 32px 1fr;
    margin-bottom: 18px;
  }

  #eventsRoot .timelineDot{
    grid-column:1;
    justify-self:center;
    margin-top: 22px;
  }

  #eventsRoot .timelineCard{
    grid-column:2;
    justify-self:stretch;
    width: 100%;
  }

  #eventsRoot .timelineItem.left .timelineCard,
  #eventsRoot .timelineItem.right .timelineCard{
    grid-column:2;
    justify-self:stretch;
  }

  #eventsRoot .timelineItem.left .timelineCard::after,
  #eventsRoot .timelineItem.right .timelineCard::after{
    display:none;
  }
}

/* ===== Footer ===== */
.footer{margin-top:34px; background: var(--blue); color:#fff;}
.footer a{color:#fff; text-decoration:none; font-weight:900}
.footer a:hover{text-decoration:underline}
.footerGrid{display:grid; gap:16px; grid-template-columns: 1.2fr 1fr 1fr; align-items:start;}
.footerLine{opacity:.9; font-size:13px}
.footerBadge{
  display:inline-flex; gap:10px; align-items:center;
  padding:10px 12px; border-radius:14px;
  border:1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
}

/* ===== Ticket Modal ===== */
.modalBackdrop{
  position:fixed; inset:0;
  background: rgba(2,6,23,.55);
  display:none; align-items:center; justify-content:center;
  z-index:90; padding:18px;
}
.modal{
  width:min(980px, 100%);
  height:min(78vh, 720px);
  background: var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  display:flex; flex-direction:column;
  box-shadow: 0 20px 70px rgba(2,6,23,.25);
}
.modalHeader{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 12px;
  border-bottom:1px solid var(--border);
}
.modalHeader b{font-size:14px}
.iconBtn{
  background: rgba(15,23,42,.04);
  border:1px solid var(--border);
  color: var(--text);
  padding:10px 12px;
  border-radius:14px;
  font-weight:950;
}
.modal iframe{border:0; width:100%; height:100%;}

/* ===== Responsive ===== */
@media (max-width: 1120px){
  .heroGrid{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr; gap:16px;}
  .cardPad{padding:18px;}
  .footerGrid{grid-template-columns:1fr}

  .menu{display:none}

  .nav{grid-template-columns:1fr; align-items:start;}

  .mobileActions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    width:100%;
    margin-top:10px;
  }
  .mobileActions .btn{width:100%}

  #mobileMenu .card{box-shadow: var(--shadow2);}
}

/* ===== Dreigestirn hervorheben (Hero rechts) ===== */
.dgsCard{
  border: 1px solid rgba(246,194,0,.45);
  box-shadow:
    0 22px 60px rgba(2,6,23,.14),
    0 2px 10px rgba(2,6,23,.06);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.96),
    rgba(246,194,0,.06)
  );
}

.dgsTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.dgsTop .badge{
  background: rgba(246,194,0,.18);
  border: 1px solid rgba(246,194,0,.45);
}

/* ===== Motto Smooth Expand ===== */
.mottoWrapper{overflow:hidden; transition:max-height .6s ease;}
.mottoWrapper.collapsed{max-height:520px}
.mottoWrapper.expanded{max-height:5000px}
#mottoArchive .card{animation: fadeSlideIn .4s ease;}
@keyframes fadeSlideIn{
  from{opacity:0; transform: translateY(8px);}
  to{opacity:1; transform: translateY(0);}
}
/* ===== Section Wrapper (dezent abgrenzen) ===== */
.sectionBlock{
  background: var(--sectionBg);
  border: 1px solid var(--sectionBorder);
  border-radius: calc(var(--radius) + 6px);
  padding: 18px;
  margin: 22px 0;
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
}

.sectionBlock .sectionTitle{
  margin-top: 0;          /* damit der Titel nicht "doppelt" Abstand macht */
}

.sectionBlock .grid{
  margin: 12px 0 0;       /* Grid sitzt schöner im Section-Block */
}

@media (max-width: 820px){
  .sectionBlock{
    padding: 14px;
    margin: 18px 0;
  }
}
/* ===== Form Inputs ===== */
.input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 10px rgba(2,6,23,.06);
  font: inherit;
  outline: none;
}
.input:focus{
  box-shadow: var(--ring), 0 2px 10px rgba(2,6,23,.06);
  border-color: rgba(29,78,216,.35);
}
textarea.input{resize:vertical}
/* ===== HERO SLIDESHOW ===== */
.heroSlideshow{
  position: relative;
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 18px 46px rgba(2,6,23,.14);
  background: rgba(255,255,255,.55);

  height: 480px;          /* <-- Desktop-Höhe */
}

/* Mobile etwas kleiner */
@media (max-width: 820px){
  .heroSlideshow{ height: 200px; }
}

.heroSlideshow{
  background: radial-gradient(600px 240px at 30% 10%, rgba(29,78,216,.10), transparent 60%),
              radial-gradient(600px 240px at 80% 30%, rgba(246,194,0,.12), transparent 55%),
              rgba(255,255,255,.60);
}

.heroSlides{
  position: absolute;
  inset: 0;
}

.heroSlide{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity .45s ease;

  background-size: contain;      /* <-- statt cover */
  background-position: center;
  background-repeat: no-repeat;  /* <-- wichtig */
}


.heroSlide.active{
  opacity:1;
}

.heroNav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  z-index:5;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
  width:42px;
  height:42px;
  border-radius:999px;
  font-size:26px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}

.heroNav.prev{ left: 12px; }
.heroNav.next{ right: 12px; }

.heroDots{
  position:absolute;
  left:0; right:0;
  bottom:10px;
  display:flex;
  gap:8px;
  justify-content:center;
  z-index:6;
}

.heroDot{
  width:9px;
  height:9px;
  border-radius:999px;
  border: 1px solid rgba(15,23,42,.18);
  background: rgba(255,255,255,.60);
  cursor:pointer;
}

.heroDot.active{
  background: rgba(246,194,0,.95);
  border-color: rgba(246,194,0,.70);
}

/* Mobile: Nav Buttons kleiner */
@media (max-width: 820px){
  .heroNav{ width:38px; height:38px; }
}
/* ===== Abteilungen: Buttons abwechselnd Gelb / Blau ===== */
.grid > .card:nth-child(odd) .btn{
  background: linear-gradient(135deg, rgba(246,194,0,.95), rgba(246,194,0,.70));
  border: 1px solid rgba(246,194,0,.55);
  color:#111827;
}

.grid > .card:nth-child(even) .btn{
  background: linear-gradient(135deg, rgba(29,78,216,.95), rgba(29,78,216,.70));
  border: 1px solid rgba(29,78,216,.45);
  color:#fff;
}
.grid > .card:nth-child(odd) .btn:hover{
  box-shadow: 0 10px 24px rgba(246,194,0,.35);
}

.grid > .card:nth-child(even) .btn:hover{
  box-shadow: 0 10px 24px rgba(29,78,216,.35);
}
.announcementCard .annMedia{
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(15,23,42,.03);
}

.announcementCard .annMedia img{
  width: 100%;
  height: auto;
  display: block;
}

.announcementCard .annMedia iframe{
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

@media (max-width: 820px){
  .announcementCard .annMedia iframe{ height: 240px; }
}
/* =======================
   AKTUELLES – EXPAND VIEW
======================= */

#announcements,
#announcementsList{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

/* Standard Card */
.announcementCard{
  cursor: pointer;
  transition:
    grid-column .45s ease,
    transform .45s ease,
    box-shadow .45s ease;
}

/* EXPANDIERT */
.announcementCard.is-open{
  grid-column: 1 / -1;      /* volle Breite */
  cursor: default;
}

/* andere Karten kleiner & ruhiger */
.announcementCard.is-dim{
  opacity: .55;
  transform: scale(.98);
}

/* Inhalt im Expanded Mode besser lesbar */
.announcementCard.is-open .sub{
  font-size: 16px;
  line-height: 1.65;
}

/* Media größer */
.announcementCard.is-open .annMedia iframe{
  height: 520px;
}
.announcementCard.is-open .annMedia img{
  max-height: 520px;
  object-fit: contain;
}

/* Mobile: immer untereinander */
@media (max-width: 900px){
  #announcements,
  #announcementsList{
    grid-template-columns: 1fr;
  }

  .announcementCard.is-open{
    grid-column: auto;
  }
}
/* =========================
   AKTUELLES – EXPAND VIEW
   ========================= */

#announcementsList{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:22px;
}

/* aktive Karte nimmt volle Breite */
#announcementsList .announcementCard.isActive{
  grid-column: 1 / -1;
  z-index: 3;
}
#announcementsList .announcementCard.isActive{
  grid-column: 1 / -1;
  z-index: 3;
}

/* ✅ Wenn Eintrag aufgeklappt ist: Medien deutlich größer */
#announcementsList .announcementCard.isActive .annMedia iframe{
  height: 520px;
}
#announcementsList .announcementCard.isActive .annMedia img{
  max-height: 520px;
  object-fit: contain;
}

/* andere Karten etwas zurücknehmen */
#announcementsList .announcementCard.isInactive{
  opacity: .6;
}

/* smooth transition */
#announcementsList .announcementCard{
  transition: transform .25s ease, opacity .25s ease;
}

/* Mobile: 1 Spalte */
@media (max-width: 900px){
  #announcementsList{
    grid-template-columns: 1fr;
  }
}
