/* ============================================================
   PAHLAZZO PAHLEN — Bausteine
   Kopf, Fuß, Eventkarten, Formulare, Galerie, Zustände.
   ============================================================ */

/* ============================================================
   Kopfzeile
   ============================================================ */

.kopf {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--kopf-hoehe);
  border-bottom: 1px solid transparent;
  transition: background var(--weich), border-color var(--weich), backdrop-filter var(--weich);
}

/* Deckend, sobald gescrollt wird — und immer, solange das Menü
   offen ist. Sonst stünde die Navigation über dem Hero-Bild. */
.kopf--fest,
.kopf--menue-offen {
  background: rgba(8, 8, 12, .88);
  border-bottom-color: var(--linie);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.kopf--menue-offen { background: var(--grund); }

.kopf__bahn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.kopf__marke {
  flex-shrink: 0;
  line-height: 0;
}

.kopf__marke img {
  height: 2.25rem;
  width: auto;
}

/* --- Navigation für große Schirme --- */

.nav {
  display: none;
  align-items: center;
  gap: .25rem;
}

.nav a {
  position: relative;
  padding: .55rem .9rem;
  color: var(--text-ruhig);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--weich);
}

.nav a:hover,
.nav a[aria-current='page'] { color: var(--akzent); }

/* Der Strich unter dem aktiven Punkt */
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--akzent);
}

/* --- Schalter für das Menü auf kleinen Schirmen --- */

.menue-schalter {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menue-schalter span {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background var(--weich);
}

.menue-schalter span::before,
.menue-schalter span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--weich);
}

.menue-schalter span::before { top: -7px; }
.menue-schalter span::after  { top:  7px; }

.menue-schalter[aria-expanded='true'] span { background: transparent; }
.menue-schalter[aria-expanded='true'] span::before { transform: translateY(7px) rotate(45deg); }
.menue-schalter[aria-expanded='true'] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* --- Ausgeklapptes Menü --- */

/* Geschlossen ist das Menü vollständig unsichtbar: kein Rahmen und
   kein backdrop-filter. Beides bliebe sonst als feiner Streifen unter
   der Kopfzeile stehen, auch bei Höhe null. */
.menue {
  position: fixed;
  inset: var(--kopf-hoehe) 0 auto;
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  background: var(--grund);
  transition:
    max-height 380ms cubic-bezier(.4, 0, .2, 1),
    visibility 0s linear 380ms;
}

.menue[data-offen='true'] {
  /* So hoch wie der Platz unter der Kopfzeile hergibt — bei vielen
     Punkten lässt sich im Menü scrollen, statt sie abzuschneiden. */
  max-height: calc(100dvh - var(--kopf-hoehe));
  overflow-y: auto;
  visibility: visible;
  border-bottom: 1px solid var(--linie);
  transition:
    max-height 380ms cubic-bezier(.4, 0, .2, 1),
    visibility 0s;
}

.menue nav {
  display: flex;
  flex-direction: column;
  padding: 1rem var(--rand) 2rem;
}

.menue a {
  padding: 1rem 0;
  border-bottom: 1px solid var(--linie);
  color: var(--text);
  font-family: var(--schrift-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--weich), padding-left var(--weich);
}

.menue a:last-child { border-bottom: 0; }

.menue a:hover,
.menue a[aria-current='page'] {
  color: var(--akzent);
  padding-left: .5rem;
}

@media (min-width: 62rem) {
  .nav { display: flex; }
  .menue-schalter { display: none; }
  .menue { display: none; }
}

/* ============================================================
   Bühne (Hero)
   ============================================================ */

.buehne {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(92vh, 52rem);
  padding-top: var(--kopf-hoehe);
  overflow: hidden;
}

.buehne--knapp { min-height: min(58vh, 32rem); }

.buehne__bild {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.buehne__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Abdunkeln, damit die Schrift trägt — unten kräftiger als oben */
.buehne__schleier {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 8, 12, .82) 0%, rgba(8, 8, 12, .38) 32%, rgba(8, 8, 12, .92) 88%, var(--grund) 100%),
    radial-gradient(120% 80% at 50% 100%, rgba(107, 222, 185, .14), transparent 60%);
}

.buehne__inhalt {
  padding-bottom: clamp(3.5rem, 9vw, 7rem);
  padding-top: clamp(4rem, 10vw, 7rem);
}

.buehne h1 {
  max-width: 16ch;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}

.buehne__unterzeile {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: 1.075rem;
  color: var(--text-ruhig);
}

.buehne__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.25rem;
}

/* Zentrierte Variante für die Unterseiten */
.buehne--mitte { text-align: center; }
.buehne--mitte .buehne h1,
.buehne--mitte h1 { margin-inline: auto; }
.buehne--mitte .buehne__unterzeile { margin-inline: auto; }
.buehne--mitte .buehne__knoepfe { justify-content: center; }

/* ============================================================
   Eventkarte — Aufbau wie auf der alten Seite:
   Bild im Format 16:9, darunter Datum, Titel, Ort und der
   Verweis „Mehr erfahren".
   ============================================================ */

.event-raster {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.event {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--flaeche);
  text-decoration: none;
  transition: border-color 500ms var(--weich), transform 500ms cubic-bezier(.4, 0, .2, 1);
}

.event:hover {
  border-color: var(--akzent-rand);
  transform: scale(1.02);
}

.event__bild {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--grund-2);
}

.event__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.4, 0, .2, 1);
}

.event:hover .event__bild img { transform: scale(1.05); }

/* Kleine Auszeichnung oben rechts auf dem Bild: die Fotozahl bei
   Alben, die Terminzahl bei mehrtägigen Veranstaltungen. */
.event__sparte,
.event__reihe {
  position: absolute;
  top: .75rem;
  right: .75rem;
  padding: .3rem .7rem;
  border: 1px solid var(--linie-hart);
  border-radius: 99px;
  background: rgba(8, 8, 12, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--akzent);
}

.event__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.event__datum {
  margin-bottom: .5rem;
  color: var(--text-ruhig);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .025em;
}

.event__titel {
  margin-bottom: .25rem;
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
  line-height: 1.2;
  letter-spacing: .025em;
  color: var(--text);
}

.event__ort {
  margin-bottom: 1rem;
  color: var(--akzent);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.event__mehr {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  color: var(--text-ruhig);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color var(--weich);
}

.event:hover .event__mehr { color: var(--akzent); }

/* Der Strich wächst beim Überfahren unter der Schrift heraus */
.event__mehr span {
  position: relative;
}

.event__mehr span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--akzent);
  transition: width 300ms var(--weich);
}

.event:hover .event__mehr span::after { width: 100%; }

.event__mehr svg { transition: transform var(--weich); }
.event:hover .event__mehr svg { transform: translateX(4px); }

/* Hinweis auf KI-Inhalte — Pflicht, wenn wir Bild und Text selbst ausgeben */
.ki-hinweis {
  margin-top: 1rem;
  font-size: .78rem;
  color: var(--text-leise);
}

/* --- Filterleiste: Party oder Restaurant --- */

.filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
}

.filter button {
  padding: .6rem 1.35rem;
  border: 1px solid var(--linie-hart);
  border-radius: 99px;
  background: transparent;
  color: var(--text-ruhig);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--weich), border-color var(--weich), color var(--weich);
}

.filter button:hover {
  border-color: var(--akzent);
  color: var(--akzent);
}

.filter button[aria-pressed='true'] {
  background: var(--akzent);
  border-color: var(--akzent);
  color: var(--akzent-kontrast);
}

/* Auf schmalen Geräten etwas enger, damit die drei Knöpfe in eine
   Zeile passen — ab etwa 360 px Gerätebreite. */
@media (max-width: 26rem) {
  .filter { gap: .4rem; }

  .filter button {
    padding: .55rem 1rem;
    font-size: .72rem;
    letter-spacing: .08em;
  }
}

/* ============================================================
   Galerie und Lightbox
   ============================================================ */

.galerie {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}

.galerie button {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-klein);
  background: var(--flaeche);
  cursor: zoom-in;
}

.galerie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.22, 1, .36, 1), opacity var(--weich);
}

.galerie button:hover img { transform: scale(1.06); opacity: .85; }

.lichtkasten {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 0;
  background: rgba(4, 4, 7, .96);
}

.lichtkasten::backdrop { background: rgba(4, 4, 7, .96); }

.lichtkasten img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-klein);
}

.lichtkasten__knopf {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--linie-hart);
  border-radius: 50%;
  background: rgba(8, 8, 12, .8);
  color: var(--text);
  cursor: pointer;
  transition: background var(--weich), border-color var(--weich);
}

.lichtkasten__knopf:hover { background: var(--flaeche-hoch); border-color: var(--akzent); }

.lichtkasten__zu   { top: 1rem; right: 1rem; }
.lichtkasten__vor  { right: 1rem; top: 50%; transform: translateY(-50%); }
.lichtkasten__zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }

.lichtkasten__zaehler {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .8rem;
  color: var(--text-leise);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Formulare
   ============================================================ */

.feld {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.feld > label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-ruhig);
}

.feld .optional {
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--text-leise);
}

.feld input,
.feld select,
.feld textarea {
  width: 100%;
  /* Ohne min-width:0 wachsen Felder über ihren Platz hinaus — bei
     Datum und Uhrzeit bringt Safari eine eigene Mindestbreite mit,
     die sonst die ganze Seite nach rechts schiebt. */
  min-width: 0;
  max-width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--linie-hart);
  border-radius: var(--radius-klein);
  background: var(--flaeche);
  color: var(--text);
  font-size: .95rem;
  transition: border-color var(--weich), background var(--weich);
}

/* Safari auf dem iPhone gibt Datums- und Zeitfeldern sonst ein
   eigenes Aussehen samt fester Breite. */
.feld input[type='date'],
.feld input[type='time'] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  /* iOS schiebt den Inhalt sonst vertikal aus dem Feld */
  min-height: 3.1rem;
}

.feld textarea {
  min-height: 9rem;
  resize: vertical;
}

.feld input:focus,
.feld select:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--akzent);
  background: var(--flaeche-hoch);
}

.feld input::placeholder,
.feld textarea::placeholder { color: var(--text-leise); }

.feld input[type='file'] {
  padding: .6rem;
  cursor: pointer;
}

.feld input[type='file']::file-selector-button {
  margin-right: .9rem;
  padding: .5rem 1rem;
  border: 1px solid var(--linie-hart);
  border-radius: var(--radius-klein);
  background: var(--flaeche-hoch);
  color: var(--text);
  font-size: .8rem;
  cursor: pointer;
}

.feld__hinweis {
  font-size: .78rem;
  color: var(--text-leise);
}

.feld-reihe {
  display: grid;
  gap: 0 1.25rem;
  grid-template-columns: 1fr;
}

/* Rasterfelder haben von Haus aus min-width:auto und schrumpfen
   deshalb nicht unter ihren Inhalt. */
.feld-reihe > * { min-width: 0; }

@media (min-width: 40rem) {
  .feld-reihe { grid-template-columns: 1fr 1fr; }
}

/* Einwilligung — der Haken ist nie vorausgewählt */
.zustimmung {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 1.5rem 0;
  font-size: .88rem;
  line-height: 1.55;
}

.zustimmung input {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .2rem;
  accent-color: var(--akzent);
  cursor: pointer;
}

/* Rückmeldung nach dem Absenden */
.meldung {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--linie-hart);
  border-left-width: 3px;
  border-radius: var(--radius-klein);
  font-size: .92rem;
}

.meldung--gut {
  border-color: var(--linie);
  border-left-color: var(--akzent);
  background: var(--akzent-hauch);
  color: var(--text);
}

.meldung--schlecht {
  border-color: var(--linie);
  border-left-color: #ff6b6b;
  background: rgba(255, 107, 107, .07);
  color: var(--text);
}

/* ============================================================
   Zustände: lädt / leer
   ============================================================ */

.laedt {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.laedt__platzhalter {
  height: 22rem;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--flaeche) 30%, var(--flaeche-hoch) 50%, var(--flaeche) 70%);
  background-size: 220% 100%;
  animation: schimmern 1.4s ease-in-out infinite;
}

@keyframes schimmern {
  from { background-position: 180% 0; }
  to   { background-position: -80% 0; }
}

.leer {
  padding: clamp(2.5rem, 7vw, 5rem) 1rem;
  text-align: center;
  color: var(--text-leise);
}

/* ============================================================
   Fußzeile
   ============================================================ */

.fuss {
  border-top: 1px solid var(--linie);
  background: var(--grund-2);
  padding-block: clamp(3rem, 7vw, 4.5rem) 2rem;
}

.fuss__raster {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .fuss__raster { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
}

.fuss__marke img { height: 2.25rem; width: auto; margin-bottom: 1.25rem; }

.fuss__text {
  max-width: 28rem;
  font-size: .92rem;
  color: var(--text-ruhig);
}

.fuss h4 {
  margin-bottom: 1.1rem;
  font-family: var(--schrift-text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--akzent);
}

.fuss ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss li { margin-bottom: .6rem; }

.fuss li a {
  color: var(--text-ruhig);
  font-size: .92rem;
  text-decoration: none;
  transition: color var(--weich);
}

.fuss li a:hover { color: var(--akzent); }

.fuss__sozial {
  display: flex;
  gap: .6rem;
  margin-top: 1.5rem;
}

.fuss__sozial a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--linie);
  border-radius: 50%;
  color: var(--text-ruhig);
  transition: all var(--weich);
}

.fuss__sozial a:hover {
  border-color: var(--akzent);
  color: var(--akzent);
  transform: translateY(-2px);
}

.fuss__clubinio {
  display: inline-block;
  margin-top: 1.75rem;
  opacity: .7;
  transition: opacity var(--weich);
}

.fuss__clubinio:hover { opacity: 1; }
.fuss__clubinio img { height: 2.25rem; width: auto; }

.fuss__unten {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--linie);
  font-size: .82rem;
  color: var(--text-leise);
}

.fuss__unten nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.fuss__unten a {
  color: var(--text-leise);
  text-decoration: none;
  transition: color var(--weich);
}

.fuss__unten a:hover { color: var(--akzent); }
