:root {
  --bg:        #EDE4D9;
  --primary:   #016DAF;
  --highlight: #FC411F;
  --col1:      200px;
  --gap-col:   1fr;
  --gutter:    2rem;
  --pad-lg:    2rem;
  --pad-sm:    .75rem;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Body */
body {
  background: var(--bg);
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.4;
  padding: 0 var(--pad-lg);
}
@media (max-width: 768px) {
  body { padding: 0 var(--pad-sm); }
  .page-text img.fullwidth,
  .page-text img.float-left-third,
  .page-text img.float-right-third,
  .page-text img.float-half-left,
  .page-text img.float-half-right {
    float: none !important;
    width: 100% !important;
    margin: 0 auto 1em !important;
    display: block;
  }
}

/* Container */
.container { max-width: 60rem; margin: 0 auto; }

/* HEADER */
#site-header { position: relative; background: var(--bg); border-bottom: 2px solid var(--primary); }
.header-inner {
  display: grid;
  grid-template-columns: var(--col1) repeat(5, var(--gap-col));
  column-gap: var(--gutter);
  align-items: flex-end;
  padding: 1rem 0;
}

/* Logo */
.logo img { width: var(--col1); display: block; object-fit: contain; }

/* NAVIGATION */
.site-nav { grid-column: 2 / -1; }
.site-nav ul {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; list-style: none; margin: 0; padding: 0;
}
.site-nav ul.open { display: flex; flex-direction: column; grid-column: auto; margin-top: .5rem; background: var(--bg); align-items: center; }
.site-nav ul.open li + li { border-top: none; }
.site-nav a {
  display: block; text-align: center; white-space: nowrap; text-decoration: none;
  color: var(--primary); font-weight: 700; padding: .75rem 0; position: relative;
}
.site-nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--highlight); transition: width .25s ease;
}
.site-nav a:hover::after { width: 100%; }

/* Hamburger-/Close-Icon */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; position: absolute; top: calc(1rem + 5px); right: var(--pad-sm); z-index: 1000; }
.menu-toggle span { display: block; width: 25px; height: 3px; margin: 4px 0; background: var(--primary); transition: transform .3s, opacity .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* PAGE SECTION */
.page-inner {
  display: grid;
  grid-template-columns: var(--col1) repeat(5, var(--gap-col));
  column-gap: var(--gutter);
  align-items: start;
  padding: 6rem 0;
}
.page-img img {
  width: var(--col1); height: var(--col1); object-fit: cover; border-radius: 50%; display: block;
}

/* Textbereich */
.page-text { grid-column: 2 / -1; }
.page-text h1 { font-size: clamp(2rem,5vw,2.5rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.page-text h2 { font-size: 1.5rem; font-weight: 600; margin: 2rem 0 1rem; }
.page-text h3 { font-size: 1 rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.page-text .divider { width: 3rem; height: 1px; background: var(--highlight); margin: 0 auto 2rem; border: none; }
.page-text .divider_long { width: 9rem; height: 1px; background: var(--highlight); margin: 0 auto 2rem; border: none; }
.page-text p { margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.2; text-align: justify; }
.page-text img.fullwidth { width: 100%; height: auto; display: block; float: none; margin: 0; }

/* ----------Bilder im Text-------------- */
.page-text img.float-left-third   { float: left;  width: 33.333%; height: auto; margin: 0 1em 1em 0; display: block; box-shadow: 0 0 8px rgba(0,0,0,.1); }
.page-text img.float-right-third  { float: right; width: 33.333%; height: auto; margin: 0 0 1em 1em; display: block; box-shadow: 0 0 8px rgba(0,0,0,.1); }
.page-text img.float-half-left    { float: left;  width: 50%;    height: auto; margin: 0 1em 1em 0; display: block; box-shadow: 0 0 8px rgba(0,0,0,.1); }
.page-text img.float-half-right   { float: right; width: 50%;    height: auto; margin: 0 0 1em 1em; display: block; box-shadow: 0 0 8px rgba(0,0,0,.1); }

/* Aufräum-Clearfix nach schwimmenden Elementen */
.page-text::after { content: ""; display: block; clear: both; }
.page-text ul { margin-left: 1.5rem; padding-left: .5rem; list-style-position: outside; }
.page-text a { color: var(--primary); text-decoration: underline; }
.page-text a:hover { color: var(--highlight); }
.page-text .btn-primary { display: inline-block; margin-top: 2rem; background: var(--highlight); color: #fff; padding: 1rem 2.5rem; border-radius: 4px; font-weight: 700; text-decoration: none; transition: transform .15s ease; }
.page-text .btn-primary:hover { transform: translateY(-2px); }

/* Index-Galerie */
.index-gallery { display: flex; flex-direction: column; gap: var(--gutter); padding: 6rem 0; }
.index-gallery__wide { width: 100%; aspect-ratio: 3 / 1; overflow: hidden; }
.index-gallery__wide-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.index-gallery__quads { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.index-gallery__quad { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.index-gallery__quad-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* FOOTER */
#site-footer { background: var(--bg); border-top: 2px solid var(--primary); }
.footer-inner { padding: 2rem 0; text-align: center; font-size: .9rem; }
#site-footer a { color: var(--primary); text-decoration: none; font-weight: 600; margin: 0 .5rem; }
#site-footer a:hover { text-decoration: underline; }

/* MOBILE */
@media (max-width: 768px) {
  .header-inner { display: flex; flex-direction: column; align-items: center; }
  .site-nav { grid-column: auto; margin-top: .5rem; }
  .site-nav ul { display: none; }
  .site-nav ul.open { display: flex; flex-direction: column; }
  .menu-toggle { display: block; }
  .logo, .page-img { padding: 0 var(--pad-sm); }
  .page-inner { display: flex !important; flex-direction: column; gap: var(--gutter); align-items: center; }
  .page-img { margin-bottom: var(--gutter); }
  .page-text h1, .page-text h2, .page-text h3 { text-align: center; }
}

/* — QR-Code-Override — */
.page-text img.qr-code { width: 150px; height: auto; display: block; margin: 1.5rem 0; object-fit: contain; }
@media (max-width: 768px) { .page-text img.qr-code { width: 120px; height: auto; } }

/* =====================================================================
   ===============  NUR FÜR DIE FÊTE-SEITE (namespaced)  ===============
   ===================================================================== */

.fete-page {
  --lineup-min: 1.2rem;
  --lineup-vw:  3.33vw;
  --lineup-max: 2rem;
  --lineup-row-gap: .6em;
}

/* Vollbreit-Text in der Fête-Seite (Bildspalte weg) */
.fete-page .page-img { display: none; }
.fete-page .page-text { grid-column: 1 / -1; }

/* Banner */
.fete-page .fete-banner { margin: .2rem 0 1rem; }
.fete-page .fete-banner-img { display:block; width:100%; height:auto; }

/* Meta-Zeile */
.fete-page .fete-meta {
  width: 100%;
  display: flex; justify-content: center; align-items: center; gap: .6rem;
  margin: .25rem 0 1.25rem;
  font-weight: 800; letter-spacing: .03em;
  font-size: clamp(1.1rem, 2.3vw, 1.4rem);
}
.fete-page .fete-meta .sep { color: var(--highlight); }
@media (max-width: 560px){
  .fete-page .fete-meta { flex-direction: column; gap: .25rem; }
  .fete-page .fete-meta .sep { display: none; }
}

/* Intro-Text */
.fete-page .info-block { margin: 1rem 0 2rem; }

/* Slideshow – clean */
.fete-page .fete-hero { margin: 1rem 0 2rem; }
.fete-page .fete-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: none;
  border-radius: 8px;
  background: #ddd;
}
.fete-page .fete-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.fete-page .fete-slide.active { opacity: 1; pointer-events: auto; }
.fete-page .fete-slide img,
.fete-page .fete-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Controls – clean */
.fete-page .fete-control {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: none; background: rgba(255,255,255,.75); color: var(--primary);
  font-weight: 800; width: 2rem; height: 2rem; line-height: 2rem; border-radius: 999px;
  text-align: center; cursor: pointer; z-index: 2;
}
.fete-page .fete-control:hover { background: rgba(255,255,255,.95); }
.fete-page .fete-control.prev { left: .6rem; }
.fete-page .fete-control.next { right: .6rem; }

/* Dots – clean */
.fete-page .fete-dots { position: absolute; left: 0; right: 0; bottom: .5rem; display: flex; justify-content: center; gap: .4rem; padding: 0 .5rem; z-index: 2; }
.fete-page .fete-dot { width: .5rem; height: .5rem; border-radius: 999px; border: 1px solid var(--primary); background: rgba(255,255,255,.85); cursor: pointer; }
.fete-page .fete-dot.active { background: var(--highlight); border-color: var(--highlight); }

/* LINE-UP */
.fete-page .lineup { margin: 2.2rem 0 2rem; }
.fete-page .lineup-wrap { text-align: center; }

/* Überschriften */
.fete-page .lineup .lineup-heading,
.fete-page .section-title{
  display:inline-block;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  margin: .25rem 0 1rem;
  position: relative;
  padding-bottom: .2rem;
}
.fete-page .lineup .lineup-heading::after,
.fete-page .section-title::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-.2rem;
  height:.18rem; background: var(--highlight);
  border-radius: 2px;
}

/* Day-Tag */
.fete-page .lineup .lineup-daytag{
  display: inline-block; background: var(--primary); color: #fff;
  font-weight: 800; letter-spacing: .06em; border-radius: 6px;
  padding: .35rem .6rem; font-size: .95rem; margin: .25rem 0 .75rem 0;
}

/* Acts */
.fete-page .lineup .acts{
  list-style: none; margin: 0 0 1.4rem 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  row-gap: var(--lineup-row-gap); text-align: center;
}
.fete-page .lineup .acts li{
  font-family: "Rubik Dirt", "Montserrat", sans-serif;
  text-transform: uppercase; letter-spacing: .03em; line-height: 1.15;
  color: var(--primary);
  font-size: clamp(var(--lineup-min), var(--lineup-vw), var(--lineup-max));
  margin: 0 .8em;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
}

/* Klickfläche Bandname */
.fete-page .lineup .acts .lu-act{
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
  cursor: pointer; position: relative;
}
.fete-page .lineup .acts .lu-act::after{
  content: '';
  position: absolute; left: 0; right: 0; bottom: -0.15em;
  height: 0.18rem; background: var(--highlight);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.fete-page .lineup .acts .lu-act:hover::after,
.fete-page .lineup .acts .lu-act:focus-visible::after{ transform: scaleX(1); }
.fete-page .lineup .acts .lu-act:focus-visible{ outline: 2px solid var(--highlight); outline-offset: 2px; }

/* Keine Punkte zwischen Bands */
.fete-page .lineup .acts li + li::before{ content: none; }

@media (max-width: 768px) {
  .fete-page .lineup { margin: 1.6rem 0 2rem; }
  .fete-page .lineup .lineup-daytag { margin-top: .5rem; }
}

/* Eintritt */
.fete-page .entry { margin: .75rem 0 2rem; text-align: left; }
.fete-page .entry p { margin-bottom: .75rem; }
.fete-page .entry ul { list-style: none; margin: 0 0 1rem 0; padding: 0; }
.fete-page .entry li { margin: .25rem 0; }
.fete-page .entry .section-title{ display: block; width: max-content; margin: .25rem auto 1rem; text-align: center; }

/* ================= Modal / Bottom-Sheet (nur Fête) ================== */
.fete-page .lu-dialog{
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  position: fixed;                   /* echtes Overlay */
  inset: 0;
  width: 100vw;
  height: 100vh;                     /* Fallback */
  height: 100svh;                    /* iOS 15+ */
  height: 100dvh;                    /* moderne Browser */
  max-width: none;
  display: grid;
  place-items: center;               /* Desktop: zentriert */
  overflow: hidden;                  /* verhindert Durchscrollen der Seite */
  overscroll-behavior: contain;
}
.fete-page .lu-dialog::backdrop { background: rgba(0,0,0,.45); }

/* Die sichtbare Box */
.fete-page .lu-card{
  background: var(--bg);
  color: var(--primary);
  border: none;
  border-radius: 14px;
  width: min(92vw, 720px);
  max-width: 100%;
  max-height: 85vh;                  /* Fallback */
  max-height: 85svh;
  max-height: 85dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  position: relative;
}

/* Bild-Bereich */
.fete-page .lu-media-wrap { display: none; background:#ddd; }
.fete-page .lu-media { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; }

/* Scrollbereich */
.fete-page .lu-content{
  padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); /* Platz für Home-Bar */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
}
.fete-page .lu-title { font-size: clamp(1.2rem, 3.5vw, 1.6rem); font-weight: 800; margin-bottom: .4rem; }
.fete-page .lu-time  { font-weight: 700; margin-bottom: .6rem; }
.fete-page .lu-desc  { white-space: pre-wrap; line-height: 1.35; }

/* Close-Button */
.fete-page .lu-close{
  position: absolute; top: .5rem; right: .75rem;
  background: rgba(255,255,255,.9);
  border: none; border-radius: 999px;
  width: 32px; height: 32px; line-height: 32px;
  font-size: 20px; font-weight: 800; color: var(--primary);
  cursor: pointer;
  z-index: 5;
}
.fete-page .lu-close:focus-visible{ outline: 2px solid var(--highlight); outline-offset: 2px; }

/* Mobile: echtes Bottom-Sheet */
@media (max-width: 768px){
  .fete-page .lu-dialog{
    display: flex;                    /* robuster als Grid in einigen Mobile-Browsern */
    align-items: flex-end;            /* unten andocken */
    justify-content: center;
  }
  .fete-page .lu-card{
    width: 100vw;
    max-height: 90vh;                 /* Fallback */
    max-height: 90svh;
    max-height: 90dvh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

/* Mobile-Polish nur für Fête */
@media (max-width: 768px) {
  .fete-page .page-text { padding-inline: 12px; }
  .fete-page .fete-slider { margin-inline: 0; }
  .fete-page .fete-banner,
  .fete-page .fete-meta,
  .fete-page .lineup,
  .fete-page .entry,
  .fete-page .info-block {
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 2px;
  }
}
.fete-page img, .fete-page video { display:block; max-width:100%; height:auto; box-sizing:border-box; }
.fete-page { overflow-x: hidden; }
.fete-page .lineup .acts { padding-inline: .25rem; }
.fete-page .fete-slider { overflow: hidden; }
.fete-page .fete-dots { padding: 0 .35rem; }
.fete-page .fete-control { width: 2rem; height: 2rem; line-height: 2rem; }

/* Dialog nur sichtbar, wenn [open] gesetzt */
.fete-page .lu-dialog:not([open]) { display: none !important; }
/* ===========================
   Text-Block statt /1.png
   (nur neue Klassen, existing CSS bleibt unberührt)
   =========================== */

.index-gallery__wide-text{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 2.2vw, 28px);
}

.index-gallery__wide-text-top{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(10px, 1.8vw, 16px);
}

.index-gallery__wide-coming{
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(16px, 2.1vw, 40px);
  color: var(--primary);
}

.index-gallery__wide-date{
  font-weight: 800;
  line-height: 1;
  font-size: clamp(16px, 2.1vw, 40px);
  color: var(--highlight);
  white-space: nowrap;
}

.index-gallery__wide-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(44px, 7.5vw, 132px);
  color: var(--primary);
  margin-bottom: clamp(10px, 2.0vw, 18px);
}

.index-gallery__wide-sub{
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(16px, 2.6vw, 44px);
  color: var(--primary);
}

/* Mobile: Top-Zeile umbrechen */
@media (max-width: 520px){
  .index-gallery__wide-text-top{
    flex-direction: column;
    align-items: flex-start;
  }
  .index-gallery__wide-date{ white-space: normal; }
}
/* Background Pattern im Wide Block */

.index-gallery__wide{
  background-color: transparent;        /* falls vorher weiß gesetzt war */
  background-image: url("./loop.png");
  background-repeat: repeat;
  background-position: 0 0;
}

/* ===== Coming-Up Block: wie Grafik mitskalieren ===== */

/* Topzeile: links/rechts symmetrisch -> saubere Mitte */
.index-gallery__wide-text-top{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  column-gap: clamp(10px, 2vw, 20px);
}

.index-gallery__wide-coming{
  justify-self: start;
  white-space: nowrap;
}

.index-gallery__wide-date{
  justify-self: end;
  white-space: nowrap;
}

/* Titel wirklich mittig (optisch wie Grafik) */
.index-gallery__wide-title{
  text-align: center;
  width: 100%;
  white-space: nowrap;   /* keine Umbrüche */
}

/* Subline: meist ok – optional auch no-wrap */
.index-gallery__wide-sub{
  text-align: center;
  width: 100%;
  white-space: nowrap;
}

/* Mitskalieren statt umbrechen: Schriftgrößen stärker an Viewport koppeln */
.index-gallery__wide-coming{
  font-size: clamp(14px, 2.2vw, 44px);
}
.index-gallery__wide-date{
  font-size: clamp(14px, 2.2vw, 44px);
}
.index-gallery__wide-title{
  font-size: clamp(34px, 7.5vw, 140px);
  line-height: 0.95;
}
.index-gallery__wide-sub{
  font-size: clamp(14px, 2.6vw, 46px);
  line-height: 1.05;
}

/* Sehr kleine Viewports: lieber leicht verkleinern als umbrechen/zerstören */
@media (max-width: 420px){
  .index-gallery__wide-title{ font-size: clamp(28px, 9vw, 120px); }
  .index-gallery__wide-sub{
    font-size: clamp(12px, 3.2vw, 36px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}




