/* ==========================================================
   Faschingsgilde Roßbach e.V. – Stylesheet
   Farben stammen aus dem Logo. Keine externen Schriften,
   keine externen Ressourcen (datenschutzfreundlich).
   ========================================================== */

:root {
  --nacht: #0b1a4d;
  --nacht-2: #132670;
  --nacht-3: #22389a;
  --rot: #e8112d;
  --gelb: #ffd800;
  --gruen: #0b7d3c;
  --lila: #7b1fa2;
  --blau: #2b4bff;
  --gold: #d99a1e;
  --text: #ffffff;
  --text-leise: #c6d0ff;
  --tinte: #0b1a4d;
  --radius: 18px;
  --font-kopf: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nacht);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gelb); }
a:hover { color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gelb);
  outline-offset: 3px;
}

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.prose-schmal { max-width: 46rem; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--gelb); color: var(--tinte);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 700; z-index: 10;
}
.skip:focus { top: 1rem; }

.nur-screenreader {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Überschriften ---------- */
h1, h2, h3 { font-family: var(--font-kopf); font-weight: 900; font-style: italic; line-height: 1.1; }

/* ---------- Kopf mit Wimpelkette ---------- */
.girlande {
  height: 58px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='58' viewBox='0 0 200 58'%3E%3Cpath d='M0 6 Q100 42 200 6' fill='none' stroke='%23c6d0ff' stroke-width='2'/%3E%3Cpolygon points='4%2C9.5 36%2C15.5 20%2C48.5' fill='%23e8112d'/%3E%3Cpolygon points='44%2C18 76%2C24 60%2C57' fill='%23ffd800'/%3E%3Cpolygon points='84%2C21 116%2C27 100%2C60' fill='%230b7d3c'/%3E%3Cpolygon points='124%2C18 156%2C24 140%2C57' fill='%232b4bff'/%3E%3Cpolygon points='164%2C9.5 196%2C15.5 180%2C48.5' fill='%237b1fa2'/%3E%3C/svg%3E") repeat-x center top;
  background-size: 200px 58px;
}
.kopf-innen {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; padding: .3rem 0 .9rem;
}
.marke {
  display: flex; align-items: center; gap: .7rem;
  color: #fff; text-decoration: none;
  font-family: var(--font-kopf); font-weight: 900; font-style: italic; font-size: 1.2rem;
}
.marke img { height: 54px; width: auto; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .5rem .95rem; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 700;
}
.nav a:hover { background: var(--nacht-2); }
.nav a[aria-current="page"] { background: var(--gelb); color: var(--tinte); }

/* ---------- Hero ---------- */
.hero {
  padding: 1.5rem 0 4rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg opacity='.45'%3E%3Crect x='20' y='30' width='10' height='4' fill='%23e8112d' transform='rotate%2830 25.0 32.0%29'/%3E%3Crect x='90' y='15' width='9' height='4' fill='%23ffd800' transform='rotate%28-40 94.5 17.0%29'/%3E%3Crect x='170' y='60' width='10' height='4' fill='%232b4bff' transform='rotate%2860 175.0 62.0%29'/%3E%3Crect x='210' y='20' width='8' height='4' fill='%230b7d3c' transform='rotate%2815 214.0 22.0%29'/%3E%3Crect x='50' y='110' width='9' height='4' fill='%237b1fa2' transform='rotate%28-20 54.5 112.0%29'/%3E%3Crect x='140' y='130' width='10' height='4' fill='%23ffd800' transform='rotate%2845 145.0 132.0%29'/%3E%3Crect x='220' y='150' width='9' height='4' fill='%23e8112d' transform='rotate%28-60 224.5 152.0%29'/%3E%3Crect x='30' y='190' width='10' height='4' fill='%232b4bff' transform='rotate%2825 35.0 192.0%29'/%3E%3Crect x='100' y='210' width='9' height='4' fill='%230b7d3c' transform='rotate%28-35 104.5 212.0%29'/%3E%3Crect x='190' y='215' width='10' height='4' fill='%23ffd800' transform='rotate%2870 195.0 217.0%29'/%3E%3Ccircle cx='120' cy='70' r='3.5' fill='%23d99a1e'/%3E%3Ccircle cx='70' cy='165' r='3.0' fill='%23e8112d'/%3E%3C/g%3E%3C/svg%3E") repeat center top,
    radial-gradient(circle at 18% 20%, var(--nacht-3) 0, transparent 55%);
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: minmax(240px, 340px) 1fr; gap: 3.5rem; }
}
.hero-logo {
  justify-self: center; width: min(300px, 72%);
  transform-origin: 50% 0;
  animation: pendel 2.6s ease-out .3s both;
}
.hero-logo img { width: 100%; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .4)); }
@keyframes pendel {
  0% { transform: rotate(-8deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(-3deg); }
  75% { transform: rotate(1.5deg); }
  100% { transform: rotate(0); }
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: var(--gelb);
  text-shadow: 3px 3px 0 var(--rot);
}
.lead { font-size: 1.2rem; color: var(--text-leise); max-width: 34rem; margin: 0 0 1.75rem; }
.hero-text { text-align: center; }
.hero-text .lead { margin-inline: auto; }
@media (min-width: 800px) {
  .hero-text { text-align: left; }
  .hero-text .lead { margin-inline: 0; }
}

/* ---------- Social-Buttons ---------- */
.social-liste {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 800px) { .social-liste { justify-content: flex-start; } }

.social-knopf {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1.4rem .8rem 1.1rem; border-radius: 999px;
  color: #fff; text-decoration: none; line-height: 1.15;
  transition: transform .15s ease;
}
.social-knopf:hover { color: #fff; transform: translateY(-2px) rotate(-1deg); }
.social-knopf svg { width: 2rem; height: 2rem; flex: none; }
.social-knopf strong { display: block; font-size: 1.1rem; }
.social-knopf small { display: block; font-size: .85rem; opacity: .95; }
.sk-instagram { background: linear-gradient(45deg, #f58529 0%, #dd2a7b 45%, #8134af 80%, #515bd4 100%); }
.sk-facebook { background: #1877f2; }
.sk-tiktok { background: #000; box-shadow: 3px 3px 0 #fe2c55, -3px -3px 0 #25f4ee; }

/* ---------- Gruppenfarben ---------- */
.g-alle { --c: var(--gelb); --ct: var(--tinte); }
.g-gilde { --c: var(--nacht-3); --ct: var(--gelb); }
.g-prinzenpaar { --c: var(--gold); --ct: var(--tinte); }
.g-prinzengarde { --c: var(--blau); --ct: #fff; }
.g-red-angels { --c: var(--rot); --ct: #fff; }
.g-powers { --c: var(--gruen); --ct: #fff; }
.g-little-dancers { --c: var(--lila); --ct: #fff; }

/* ---------- Kalender ---------- */
.kalender {
  background: var(--nacht-2);
  padding: 3rem 0 3.5rem;
  border-top: 6px solid;
  border-image: linear-gradient(90deg, var(--rot), var(--gelb), var(--gruen), var(--blau), var(--lila)) 1;
  scroll-margin-top: 1rem;
}
.kalender h2, .mehr h2 { margin: 0 0 .4rem; font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.kalender-intro { margin: 0; color: var(--text-leise); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 999px;
  border: 2px solid var(--nacht-3); background: transparent;
  color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.chip::before {
  content: ""; width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .4);
}
.chip:hover { border-color: var(--c); }
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--ct); }
.chip[aria-pressed="true"]::before { background: var(--ct); box-shadow: none; }

.vergangene { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-leise); cursor: pointer; font-size: .95rem; }
.vergangene input { width: 1.1rem; height: 1.1rem; accent-color: var(--gelb); }
.status { margin: .8rem 0 0; color: var(--text-leise); font-size: .95rem; min-height: 1.5em; }

.monat { margin: 1.8rem 0 .7rem; font-size: 1.2rem; color: var(--gelb); }
.termine { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.termin {
  display: grid; grid-template-columns: 5.2rem 1fr;
  background: #fff; color: var(--tinte);
  border-radius: var(--radius); overflow: hidden;
}
.termin-datum {
  background: var(--c); color: var(--ct);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .15rem; padding: .7rem .4rem; text-align: center; line-height: 1;
}
.termin-datum .tag { font-size: .85rem; font-weight: 700; }
.termin-datum .nr { font-family: var(--font-kopf); font-size: 2.1rem; font-weight: 900; }
.termin-datum .mon { font-size: .85rem; font-weight: 700; }
.termin-info { padding: .85rem 1.1rem 1rem; }
.termin-titel { margin: 0; font-family: var(--font-text); font-style: normal; font-weight: 800; font-size: 1.15rem; line-height: 1.3; }
.termin-meta { margin: .15rem 0 .55rem; color: #3b4677; }
.gruppen-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.gtag { background: var(--c); color: var(--ct); font-size: .8rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; }
.termin.vorbei { opacity: .6; }

.leer {
  margin-top: 1.5rem; padding: 1.25rem 1.4rem;
  border: 2px dashed var(--nacht-3); border-radius: var(--radius); color: var(--text-leise);
}

/* ---------- Mehr über uns ---------- */
.mehr { padding: 3.5rem 0 4rem; }
.kacheln { display: grid; gap: 1.1rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.kachel {
  display: block; padding: 1.4rem 1.5rem 1.5rem; border-radius: var(--radius);
  background: var(--c); color: var(--ct); text-decoration: none;
}
.kachel:hover { color: var(--ct); transform: rotate(-1deg); }
.kachel { transition: transform .15s ease; }
.kachel strong { display: block; font-family: var(--font-kopf); font-style: italic; font-weight: 900; font-size: 1.5rem; line-height: 1.1; }
.kachel span { display: block; margin-top: .35rem; }

/* ---------- Unterseiten ---------- */
.seite { padding: 2rem 0 4.5rem; }
.seite h1 {
  margin: 0 0 .6rem; font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  color: var(--gelb); text-shadow: 2px 2px 0 var(--rot);
}
.seite .lead { margin-bottom: 2rem; }
.seite h2 { margin: 2.2rem 0 .6rem; font-size: 1.5rem; color: var(--gelb); }
.seite h3 { margin: 1.4rem 0 .3rem; font-size: 1.1rem; font-style: normal; font-weight: 800; }
.seite p, .seite li, .seite dd, .seite address { color: #e8ecff; }
.seite address { font-style: normal; }
.seite ul { padding-left: 1.2rem; }

.platzhalter { background: var(--gelb); color: var(--tinte); padding: 0 .35rem; border-radius: 4px; }

.vorstand { display: grid; gap: .3rem 1.5rem; grid-template-columns: max-content 1fr; margin: 1rem 0 0; }
.vorstand dt { font-weight: 800; color: var(--text-leise); }
.vorstand dd { margin: 0; }

.gruppen-raster { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.gruppe-karte {
  background: var(--nacht-2); border-radius: var(--radius);
  border-top: 8px solid var(--c); padding: 1.2rem 1.4rem 1.4rem;
}
.gruppe-karte h2 { margin: 0 0 .5rem; font-size: 1.6rem; color: #fff; }
.gruppe-karte p { margin: 0 0 .8rem; }

.kontakt-box {
  background: var(--nacht-2); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin: 0 0 2rem;
}
.kontakt-box p { margin: .2rem 0; }

/* ---------- Fuß ---------- */
.fuss { background: #07123a; padding: 2.2rem 0 2.5rem; border-top: 6px solid; border-image: linear-gradient(90deg, var(--lila), var(--blau), var(--gruen), var(--gelb), var(--rot)) 1; }
.fuss-innen { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .fuss-innen { grid-template-columns: 1fr auto; align-items: center; } }
.fuss p { margin: .2rem 0; color: var(--text-leise); font-size: .95rem; }
.fuss a { color: #fff; }
.fuss-links { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0 0 .8rem; padding: 0; font-weight: 700; }
.fuss-social { list-style: none; display: flex; gap: .6rem; margin: 0; padding: 0; }
.fuss-social a {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem;
  border-radius: 50%; background: var(--nacht-2); color: #fff;
}
.fuss-social a:hover { background: var(--gelb); color: var(--tinte); }
.fuss-social svg { width: 1.4rem; height: 1.4rem; }

@media (max-width: 520px) {
  .termin { grid-template-columns: 4.3rem 1fr; }
  .termin-datum .nr { font-size: 1.7rem; }
  .marke span { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo { animation: none; }
  .social-knopf, .kachel { transition: none; }
}

/* ---------- Archiv / Galerie ---------- */
.saison h2 { margin: 2.2rem 0 .8rem; }
.galerie {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}
.galerie a { display: block; border-radius: 14px; overflow: hidden; background: var(--nacht-2); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s ease; }
.galerie a:hover img { transform: scale(1.04); }
.seite .saison + h2 { margin-top: 3rem; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  border: 0; padding: 0; margin: 0; background: rgba(5, 10, 40, .95); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 10px; }
.lightbox::backdrop { background: rgba(5, 10, 40, .8); }
.lb-knopf {
  position: absolute; display: grid; place-items: center;
  width: 3rem; height: 3rem; border: 0; border-radius: 50%;
  background: var(--gelb); color: var(--tinte); font: 900 1.8rem/1 var(--font-kopf); cursor: pointer;
}
.lb-knopf:hover { background: #fff; }
.lb-zu { top: 1rem; right: 1rem; }
.lb-zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-weiter { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: reduce) { .galerie img { transition: none; } }
.seite .galerie, .seite .social-liste { padding-left: 0; }
