/* cmsms stylesheet: musikfest-2026 modified: Mittwoch, 2. Dezember 2026 13:29:46 */
/* Musikfest der Bundeswehr · sanfte Überarbeitung 2026
   Hängt als letztes Stylesheet am Design »musikfest«. Ändert nichts am Aufbau,
   nur Ecken, Flächen und Tiefe: Inhalte sitzen auf Kacheln statt lose auf dem Grund. */
/* Lato vom eigenen Server (fonts/lato, SIL Open Font License). Vorher per @import von Google Fonts,
   das der Browser übergangen hat, weil es nicht am Anfang des zusammengefassten Stylesheets stand. */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap; src: url('https://musikfestbw.de/fonts/lato/lato-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 300; font-display: swap; src: url('https://musikfestbw.de/fonts/lato/lato-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('https://musikfestbw.de/fonts/lato/lato-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 400; font-display: swap; src: url('https://musikfestbw.de/fonts/lato/lato-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('https://musikfestbw.de/fonts/lato/lato-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 700; font-display: swap; src: url('https://musikfestbw.de/fonts/lato/lato-700-italic.woff2') format('woff2'); }

:root {
  --mf-blau: #0a4374;
  --mf-blau-hell: #e8eef4;
  --mf-grund: #eef2f6;
  --mf-radius: 14px;
  --mf-radius-klein: 10px;
  --mf-schatten: 0 1px 1px rgba(6, 28, 54, .10), 0 3px 6px rgba(6, 28, 54, .08), 0 18px 36px -12px rgba(6, 28, 54, .38), 0 40px 70px -30px rgba(10, 67, 116, .45);
  --mf-rand: 14px;          /* Abstand von Navi und Hintergrund zum Fensterrand */
  --mf-navi-h: 41px;        /* Höhe der Navi (Desktop) */
  --mf-schatten-hoch: 0 1px 1px rgba(6, 28, 54, .10), 0 6px 12px rgba(6, 28, 54, .10), 0 28px 50px -14px rgba(6, 28, 54, .45), 0 60px 90px -36px rgba(10, 67, 116, .55);
}

/* Navi: schwebt mit Abstand zum Fenster, runde Ecken, bleibt oben fix */
@media screen and (min-width: 737px) {
  #nav { top: var(--mf-rand); left: var(--mf-rand); right: var(--mf-rand); width: auto; opacity: 1;
         border-radius: var(--mf-radius); box-shadow: var(--mf-schatten); }
}

/* Weißer Rahmen rundum: oben mit der Navi, links, rechts und unten je --mf-rand, innen runde Ecken.
   Ein festes, durchklickbares Fenster; sein Schatten von 100vmax malt den weißen Rahmen. Der Inhalt
   scrollt darin und berührt die Navi nie. Die Hintergrundanimation hat genau dieses Fenster als Rahmen. */
body::before {
  content: ''; position: fixed; z-index: 1000; pointer-events: none;
  top: calc(var(--mf-rand) * 2 + var(--mf-navi-h)); left: var(--mf-rand); right: var(--mf-rand); bottom: var(--mf-rand);
  border-radius: var(--mf-radius); box-shadow: 0 0 0 100vmax #fff;
}
body::after { content: ''; position: fixed; inset: 0; background: #fff; z-index: -2; pointer-events: none; }
/* Kein Gummiband-Scrollen am Seitenende (macOS): sonst schiebt sich der Inhalt kurz hoch und gibt die
   fest stehende Hintergrundanimation unter der Fußzeile frei. */
html, body { overscroll-behavior-y: none; }
#nav { z-index: 1001; }
#navButton { z-index: 10001; }

/* Hintergrundanimation (Vegas): eigener Rahmen unter der Navi, runde Ecken */
body.vegas-container > .vegas-slide,
body.vegas-container > .vegas-overlay,
body.vegas-container > .vegas-timer {
  top: calc(var(--mf-rand) * 2 + var(--mf-navi-h)); left: var(--mf-rand); right: var(--mf-rand); bottom: var(--mf-rand);
  width: auto; height: auto; border-radius: var(--mf-radius); overflow: hidden;
}
/* Ladebalken der Animation: im Bild, nicht auf der Kante (weiß auf dem weißen Rand war unsichtbar) */
body.vegas-container > .vegas-timer {
  top: auto; bottom: calc(var(--mf-rand) + 12px); left: calc(var(--mf-rand) + var(--mf-radius)); right: calc(var(--mf-rand) + var(--mf-radius));
  height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25);
}
body.vegas-container > .vegas-timer .vegas-timer-progress { background: #fff; border-radius: 2px; }

/* Farbflächen: jede mit Abstand zum Fenster und runden Ecken, dazwischen Weiß */
#hintergrund { background: #fff; }
#startgalerie > .wrapper,
#hintergrundfolgeseiten > .bannerheadline,
#news > .wrapper,
#footer {
  margin-left: var(--mf-rand); margin-right: var(--mf-rand); border-radius: var(--mf-radius); overflow: hidden;
}
#news { background: none; }
#news > .wrapper { background: var(--mf-grund); }
#footer { margin-bottom: 0; }
#hintergrund, #hintergrundfolgeseiten { background: #fff; }
#hintergrundfolgeseiten > .bannerheadline { margin-top: var(--mf-rand); margin-bottom: var(--mf-rand); }

/* Logo-Kasten im Kopf der Startseite */
.logobox { border-radius: var(--mf-radius); overflow: hidden; box-shadow: var(--mf-schatten-hoch); }

/* Höhepunkte (Startseite) und Rückblick: jede Galerie als Kachel, Bild oben, Titel darunter */
#startgalerie article .img.overlaycontainer:first-child > a,
#galerie article .img.overlaycontainer:first-child > a {
  display: block; background: #fff; border-radius: var(--mf-radius); overflow: hidden; border-bottom: 0 !important;
  box-shadow: var(--mf-schatten); transition: box-shadow .25s ease, transform .25s ease;
}
#startgalerie article .img.overlaycontainer:first-child > a img,
#galerie article .img.overlaycontainer:first-child > a img { display: block; margin: 0; border-radius: 0; }
#startgalerie article .img.overlaycontainer:first-child > a p,
#galerie article .img.overlaycontainer:first-child > a p { margin: 0 !important; padding: .9em 1em 1em; color: var(--mf-blau) !important; font-weight: 600; }
#startgalerie article .img.overlaycontainer:first-child > a .overlay,
#galerie article .img.overlaycontainer:first-child > a .overlay { border-radius: var(--mf-radius); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #startgalerie article .img.overlaycontainer:first-child > a:hover,
  #galerie article .img.overlaycontainer:first-child > a:hover { box-shadow: var(--mf-schatten-hoch); transform: translateY(-5px); }
}

/* Kacheln in sauberen Reihen statt verhakter Floats (live entstanden Lücken, wenn Bilder ungleich hoch waren) */
#startgalerie .row, #galerie .row { display: flex; flex-wrap: wrap; }
#startgalerie .row > header, #galerie .row > header { flex: 0 0 100%; }
#startgalerie article .img.overlaycontainer:first-child > a img,
#galerie article .img.overlaycontainer:first-child > a img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* News: jede Meldung eine Kachel auf hellem Grund */
#news > .wrapper { padding-top: 3em; }
#news article.container {
  background: #fff; border-radius: var(--mf-radius); box-shadow: var(--mf-schatten);
  padding: 2.2em 2.4em 1.6em; margin: 0 0 2.4em;
}
#news article.container header p { color: #5d6b7a; margin-bottom: .2em; }
#news article.container img.image.featured { border-radius: var(--mf-radius-klein); }

/* Inhaltsbilder und Videos auf den Folgeseiten */
article.mitbild img.image, .responsive-video { border-radius: var(--mf-radius-klein); overflow: hidden; }
/* Video-Vorschauen (YouTube) wie die Kacheln: Schatten, beim Überfahren gehoben */
.responsive-video { box-shadow: var(--mf-schatten); transition: box-shadow .3s ease, transform .3s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .responsive-video:hover { box-shadow: var(--mf-schatten-hoch); transform: translateY(-4px); }
}

/* Knöpfe weicher */
.button, input[type="submit"], input[type="button"] { border-radius: var(--mf-radius-klein) !important; }

/* Bildergalerie (fancyBox) */
.fancybox-skin { border-radius: var(--mf-radius) !important; box-shadow: var(--mf-schatten-hoch) !important; }

/* Pfeil nach oben */
.cd-top { border-radius: 50%; }


/* Typografie: linksbündig, ruhigeres Maß (Stefan 30.11.). Schrift bleibt Lato.
   Überschriften fett und eng gesetzt, Einleitungen in Lato Light; Fließtext 19 px mit 1,6 Zeilenabstand, höchstens ~68 Zeichen pro Zeile. */
:root { --mf-text: 1.1875rem; --mf-zab: 1.6; --mf-mass: 68ch; }
#hintergrund h2, #hintergrundfolgeseiten h2 {
  font-weight: 700; font-size: clamp(2rem, 1.25rem + 2vw, 3rem); line-height: 1.12;
  letter-spacing: -0.012em; text-align: left; margin-bottom: .45em; text-wrap: balance;
}
#hintergrund h2 strong, #hintergrundfolgeseiten h2 strong { font-weight: 700; }
#hintergrund header, #hintergrund header p, #hintergrund header h2, #hintergrundfolgeseiten header { text-align: left; }
/* Einleitungssatz unter der Überschrift */
#hintergrund header > p, #hintergrundfolgeseiten section header > p {
  font-size: 1.375rem; line-height: 1.5; font-weight: 300; color: #4a4a49; max-width: 60ch; margin-bottom: 1.6em; text-wrap: pretty;
}
/* Fließtext */
#hintergrund article p, #hintergrundfolgeseiten article p, #hintergrund .wrapper > .container > p, #news article.container > p {
  font-size: var(--mf-text); line-height: var(--mf-zab); max-width: var(--mf-mass); text-wrap: pretty;
}
/* Fließtext, der ohne <p> direkt in einer Textspalte steht (z. B. »Die Show«) */
#hintergrundfolgeseiten article.mitbild:not(:has(img, iframe, header, .responsive-video)) {
  font-size: var(--mf-text); line-height: var(--mf-zab); max-width: var(--mf-mass); text-wrap: pretty;
}
/* Videos auf der Startseite: drei nebeneinander (Stefan 30.11.), auf dem Handy untereinander */
#banner .row { display: flex; flex-wrap: wrap; }
#banner .row > header { flex: 0 0 100%; }
#banner .row > article.video { flex: 0 0 33.3333%; width: 33.3333%; max-width: none; margin-left: 0; }
@media screen and (max-width: 736px) { #banner .row > article.video { flex-basis: 100%; width: 100%; } }

/* YouTube erst nach Klick: Vorschaubild vom eigenen Server, Abspielknopf, Hinweis */
a.yt-zweiklick { position: absolute; inset: 0; display: block; overflow: hidden; border: 0 !important; color: #fff; text-decoration: none; background: #0a2240; }
a.yt-zweiklick img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; transition: transform .4s ease, filter .4s ease; }
a.yt-zweiklick::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 28, 54, 0) 35%, rgba(6, 28, 54, .78) 100%); }
.yt-zweiklick__knopf { position: absolute; left: 50%; top: 42%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  background: #dd0000; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); z-index: 1; transition: transform .2s ease; }
.yt-zweiklick__knopf::before { content: ''; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.yt-zweiklick__text { position: absolute; left: 0; right: 0; bottom: 0; padding: .9em 1.1em 1em; z-index: 1; text-align: left; }
.yt-zweiklick__titel { display: block; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.yt-zweiklick__hinweis { display: block; font-size: .8125rem; line-height: 1.35; opacity: .85; margin-top: .2em; }
a.yt-zweiklick:focus-visible { outline: 3px solid #ffce00; outline-offset: -3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a.yt-zweiklick:hover img { transform: scale(1.04); }
  a.yt-zweiklick:hover .yt-zweiklick__knopf { transform: scale(1.08); }
}

/* Datum über News-Meldungen: klein und fest statt 28 px fett */
#news article.container header p { font-size: 1rem; line-height: 1.4; font-weight: 700; letter-spacing: .01em; color: var(--mf-blau); margin-bottom: .35em; }
#news article.container header h2 { margin-bottom: .5em; }
/* Seitentitel im grauen Kopfband der Unterseiten */
#hintergrundfolgeseiten > .bannerheadline p, #hintergrundfolgeseiten > .bannerheadline h2 { font-size: 1.125rem; line-height: 1.4; letter-spacing: .04em; }
/* Bildtitel der Kacheln linksbündig wie der Text */
#startgalerie article .img.overlaycontainer:first-child > a p,
#galerie article .img.overlaycontainer:first-child > a p { text-align: left !important; font-size: 1.0625rem !important; line-height: 1.35 !important; padding: 1em 1.2em 1.1em !important; }
/* Fußzeile: Impressum und Datenschutz kleiner und mit lesbarem Maß */
#page-wrapper #footer p, #page-wrapper #footer li { font-size: 1rem; line-height: 1.6; }
#page-wrapper #footer #impressum p { max-width: 75ch; }

/* Textseiten Impressum und Datenschutz: ruhige Rangfolge, lesbares Maß */
#text .rechtstext { padding-top: 2.5em; padding-bottom: 3em; }
#text .rechtstext > * { max-width: 72ch; }
#hintergrundfolgeseiten #text .rechtstext h2 { font-size: 1.75rem; line-height: 1.25; font-weight: 700; margin: 1.8em 0 .5em; }
#hintergrundfolgeseiten #text .rechtstext h3 { font-size: 1.1875rem; line-height: 1.35; font-weight: 700; color: var(--mf-blau); margin: 1.6em 0 .35em; }
#hintergrundfolgeseiten #text .rechtstext > :first-child + h2, #hintergrundfolgeseiten #text .rechtstext > h2:first-child { margin-top: .6em; }
#text .rechtstext p { font-size: 1.0625rem; line-height: 1.65; max-width: 72ch; margin-bottom: 1em; }
#text .rechtstext a { color: var(--mf-blau); }
#text .rechtstext .rechtstext-stand { font-size: .9375rem; color: #5d6b7a; }
/* Offene Punkte im Entwurf: fallen auf, vor dem Live-Gang per Skript gesucht (zu-klaeren) */
mark.zu-klaeren { background: #ffe680; color: #3a2e00; padding: .05em .3em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* Adressen nie umbrechen (Mikrotypografie) */
.nowrap { white-space: nowrap; }
#footer .rechtslinks a { font-weight: 700; }
#page-wrapper #footer .contact p { margin: 0 0 .7em; }
#page-wrapper #footer .contact p.rechtslinks { margin-top: 1.4em; }

@media screen and (max-width: 736px) {
  :root { --mf-rand: 8px; --mf-navi-h: 30px; --mf-text: 1.0625rem; }   /* Handy: Menüknopf oben mittig, 30 px hoch; Fließtext 17 px */
  #hintergrund header > p, #hintergrundfolgeseiten section header > p { font-size: 1.1875rem; }
  #news article.container { padding: 1.4em 1.2em 1em; margin-bottom: 1.6em; }
}

/* News-Seite: Kacheln, drei nebeneinander; die ganze Kachel führt zum Beitrag (Stefan 01.12.).
   Klickfläche über den Titel-Link (::after über die Kachel), damit der Linktext der Titel bleibt. */
.news-kacheln {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem;
  max-width: 1240px; margin: 0 auto; padding: 0 1.5rem 3.5rem;
}
.news-kachel {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border-radius: var(--mf-radius); box-shadow: var(--mf-schatten); overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}
.news-kachel-bild { aspect-ratio: 3 / 2; background: var(--mf-blau-hell); overflow: hidden; }
.news-kachel-bild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-kachel-text { display: flex; flex-direction: column; flex: 1; padding: 1.3em 1.5em 1.4em; }
#news .news-kachel-datum { font-size: 1rem; line-height: 1.4; font-weight: 700; letter-spacing: .01em; color: var(--mf-blau); margin: 0 0 .35em; }
#news .news-kachel h2 { font-size: clamp(1.375rem, 1.1rem + .6vw, 1.625rem); line-height: 1.2; letter-spacing: -.005em; margin: 0 0 .5em; text-align: left; }
#news .news-kachel-link { color: inherit; text-decoration: none; border: 0; }
.news-kachel-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.news-kachel-link:focus-visible { outline: none; }
.news-kachel:has(.news-kachel-link:focus-visible) { outline: 3px solid #ffce00; outline-offset: 3px; }
#news .news-kachel-anriss {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  font-size: 1.0625rem; line-height: 1.55; margin: 0 0 1em; max-width: none;
}
#news .news-kachel-weiter { margin: auto 0 0; font-weight: 700; color: var(--mf-blau); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .news-kachel:hover { box-shadow: var(--mf-schatten-hoch); transform: translateY(-5px); }
  .news-kachel:hover .news-kachel-bild img { transform: scale(1.04); }
}
@media screen and (max-width: 980px) { .news-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
@media screen and (max-width: 736px) { .news-kacheln { grid-template-columns: 1fr; gap: 1.25rem; padding: 0 .9rem 2.5rem; } }
.news-blaettern { text-align: center; }

/* Einzelner Beitrag (Detailansicht) */
#news .news-beitrag-bild img { display: block; width: 100%; height: auto; border-radius: var(--mf-radius-klein); margin: .4em 0 1.4em; }
#news .news-zurueck { margin: 1.6em 0 .4em; }
#news .news-zurueck a { font-weight: 700; color: var(--mf-blau); }
/* Beitrag als reine Inhaltsseite wie Impressum und Datenschutz: keine Karte, kein Schatten, keine Farbfläche (Stefan 01.12.) */
#news:has(.news-beitrag) > .wrapper { background: none; padding-top: 0; margin-left: 0; margin-right: 0; border-radius: 0; }
#news article.news-beitrag { background: none; box-shadow: none; border-radius: 0; margin: 0 auto; padding: 2.5em 0 3em; }
#news .news-beitrag > * { max-width: 72ch; }
#news .news-beitrag-text { font-size: var(--mf-text); line-height: var(--mf-zab); max-width: var(--mf-mass); }
/* Das alte Theme färbt h1–h3 und p mit !important grau und gibt jedem article 3em Abstand nach unten. */
#news .news-kachel { margin: 0; }
#news .news-kachel h2, #news .news-kachel-datum, #news .news-kachel-weiter { color: var(--mf-blau) !important; }

/* Die Show: Programmbilder mit runden Ecken und dem Kachelschatten (Stefan 01.12.) */
#show img.image.featured, #programm img.image.featured { border-radius: var(--mf-radius); box-shadow: var(--mf-schatten); }

/* Unterseiten: Kopfbild unten mit runden Ecken, über dem Titelband derselbe weiße Abstand wie darunter (Stefan 01.12.).
   Das Bild (Vegas) liegt fest auf dem body; seine Unterkante entsteht dort, wo der weiße Inhalt beginnt.
   flow-root hält den Außenabstand des Titelbands im Weiß (sonst rutscht er nach außen und das Bild läuft bis ans Band).
   Zwei weiße Eckmasken über der Oberkante runden die Unterkante des Bildes. */
#hintergrundfolgeseiten { position: relative; display: flow-root; }
#hintergrundfolgeseiten::before {
  content: ""; position: absolute; left: var(--mf-rand); right: var(--mf-rand); top: calc(-1 * var(--mf-radius));
  height: var(--mf-radius); pointer-events: none;
  background:
    radial-gradient(circle at 100% 0, transparent calc(var(--mf-radius) - .5px), #fff var(--mf-radius)) left top / var(--mf-radius) var(--mf-radius) no-repeat,
    radial-gradient(circle at 0 0, transparent calc(var(--mf-radius) - .5px), #fff var(--mf-radius)) right top / var(--mf-radius) var(--mf-radius) no-repeat;
}

/* Seitentitel exakt mittig im grauen Band (Stefan 01.12.): das alte Theme setzt oben 2em, unten 1em und unter den Titel 9 px. */
/* Gleich viel Grau über und unter dem Titel, ganze Pixel. An den Buchstaben gemessen bleibt ein Rest von ½ px
   (ein Gerätepixel am Retina-Schirm): Der Browser setzt Schrift auf ganze Pixel, feiner geht es nicht. */
#hintergrundfolgeseiten > .bannerheadline { padding-top: 16px; padding-bottom: 16px; }
#hintergrundfolgeseiten > .bannerheadline header p { line-height: 25px; }
#hintergrundfolgeseiten > .bannerheadline header, #hintergrundfolgeseiten > .bannerheadline header p { margin: 0; padding: 0; }
@media screen and (min-width: 981px) { #hintergrundfolgeseiten > .bannerheadline { padding-top: 32px; padding-bottom: 32px; } }

/* ===== Ankündigungen: Band und Textfenster im Musikfest-Look (Stefan 01.12.) =====
   Das Modul legt seine Grundgestaltung in eine niedrige CSS-Ebene; das alte Theme setzt pauschal alle
   Abstände auf null und gewinnt dagegen. Deshalb hier vollständig und ungelayert.
   Schriftfarben laufen über --ank-schrift: Das Modul erzwingt sie (Lesbarkeit auf der Fläche). */
.ank-band--hinweis, .ank-modal--hinweis { --ank-flaeche: var(--mf-blau); --ank-schrift: #fff; }
.ank-band--wichtig, .ank-modal--wichtig { --ank-flaeche: #ffce00; --ank-schrift: #0b2236; }
.ank-band--dringend, .ank-modal--dringend { --ank-flaeche: #dd0000; --ank-schrift: #fff; }

/* Band: runder Streifen unter der Navi, innerhalb des weißen Rahmens; schiebt den Kopf nach unten, verdeckt nichts */
#page-wrapper > .ank-band {
  position: relative; z-index: 5;
  margin: calc(var(--mf-rand) * 2 + var(--mf-navi-h)) var(--mf-rand) 0;
  border-radius: var(--mf-radius); box-shadow: var(--mf-schatten); border: 0;
}
#page-wrapper .ank-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem;
  max-width: 1240px; margin: 0 auto; padding: .9rem 1rem .9rem 1.6rem;
}
#page-wrapper .ank-band__text { flex: 1 1 22rem; margin: 0; font-size: 1.0625rem; line-height: 1.45; }
#page-wrapper .ank-band__titel { font-weight: 700; }
#page-wrapper .ank-band__satz { margin-left: .45em; font-weight: 400; }
#page-wrapper .ank-band__link, #page-wrapper .ank-modal__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55em 1.3em;
  border-radius: 999px; background: #ffce00; --ank-schrift: #0b2236;
  font-weight: 700; text-decoration: none; border: 0; white-space: nowrap;
  box-shadow: 0 1px 1px rgba(6, 28, 54, .18), 0 6px 14px -6px rgba(6, 28, 54, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
#page-wrapper .ank-band--wichtig .ank-band__link, #page-wrapper .ank-modal--wichtig .ank-modal__link { background: var(--mf-blau); --ank-schrift: #fff; }
#page-wrapper .ank-band__zu {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  cursor: pointer;
}
/* Ab Tablet (Stefan 02.12.): Text und Knopf als Gruppe mittig, Knopf kleiner, das Kreuz fest am rechten Rand */
@media screen and (min-width: 737px) {
  #page-wrapper .ank-band__inner { justify-content: center; gap: .6rem 1.1rem; padding: .75rem 4.2rem; }
  #page-wrapper .ank-band__text { flex: 0 1 auto; text-align: center; }
  #page-wrapper .ank-band__link { min-height: 36px; padding: 0 1.05em; font-size: .9375rem; line-height: 1.2; }
  #page-wrapper .ank-band__zu { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
}

/* Fenster: weiße Karte, Kopf als volle Fläche in der Stufenfarbe, Titel groß */
.ank-modal--bereit:not(.ank-modal--bild) { background: rgba(6, 28, 54, .62); padding: 1.2rem; }
.ank-modal--bereit:not(.ank-modal--bild) .ank-modal__blatt {
  max-width: 34rem; padding: 0; border-radius: var(--mf-radius); overflow: hidden auto;
  background: #fff; --ank-schrift: #2b3440; box-shadow: var(--mf-schatten-hoch);
}
#page-wrapper .ank-modal:not(.ank-modal--bild) .ank-modal__titel {
  margin: 0; padding: 1.5rem 1.8rem 1.3rem; background: var(--ank-flaeche);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em;
  text-align: left; text-wrap: balance;
}
#page-wrapper .ank-modal--hinweis .ank-modal__titel, #page-wrapper .ank-modal--dringend .ank-modal__titel { --ank-schrift: #fff; }
#page-wrapper .ank-modal--wichtig .ank-modal__titel { --ank-schrift: #0b2236; }
#page-wrapper .ank-modal:not(.ank-modal--bild) .ank-modal__text {
  margin: 0; padding: 1.4rem 1.8rem 0; font-size: 1.125rem; line-height: 1.6; text-wrap: pretty;
}
#page-wrapper .ank-modal:not(.ank-modal--bild) .ank-modal__fuss {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin: 0; padding: 1.4rem 1.8rem 1.7rem;
}
#page-wrapper .ank-modal:not(.ank-modal--bild) .ank-modal__zu {
  min-height: 44px; padding: .55em 1.2em; border: 1px solid #c9d3de; border-radius: 999px;
  --ank-schrift: var(--mf-blau); font: inherit; font-weight: 700; cursor: pointer;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #page-wrapper .ank-band__link:hover, #page-wrapper .ank-modal__link:hover { transform: translateY(-2px); box-shadow: 0 1px 1px rgba(6, 28, 54, .18), 0 10px 18px -8px rgba(6, 28, 54, .55); }
  #page-wrapper .ank-modal__zu:hover { border-color: var(--mf-blau); }
}
@media screen and (max-width: 736px) {
  #page-wrapper .ank-band__inner { padding: .8rem .8rem .8rem 1.1rem; gap: .6rem .9rem; }
  #page-wrapper .ank-band__text { flex-basis: calc(100% - 60px); font-size: 1rem; }
  #page-wrapper .ank-modal:not(.ank-modal--bild) .ank-modal__titel { padding: 1.2rem 1.3rem 1.1rem; }
  #page-wrapper .ank-modal:not(.ank-modal--bild) .ank-modal__text { padding: 1.1rem 1.3rem 0; font-size: 1.0625rem; }
  #page-wrapper .ank-modal:not(.ank-modal--bild) .ank-modal__fuss { padding: 1.1rem 1.3rem 1.4rem; }
}
/* Fokus: Das Modul erzwingt als Rahmenfarbe die Schriftfarbe des Elements. Beim Knopf liegt der Rahmen deshalb
   innen auf seiner eigenen Fläche (Dunkelblau auf Gelb), sonst stünde er dunkel auf dem blauen Band. */
#page-wrapper .ank-band__link:focus-visible, #page-wrapper .ank-modal__link:focus-visible { outline-width: 3px; outline-style: solid; outline-offset: -6px; }
#page-wrapper .ank-band__zu:focus-visible, #page-wrapper .ank-modal__zu:focus-visible { outline-width: 3px; outline-style: solid; outline-offset: 2px; }
/* Knopfflächen der Schließknöpfe laufen im Modul über Variablen (gegen fremde button-Regeln abgesichert) */
#page-wrapper .ank-band__zu { --ank-knopf-flaeche: rgba(255, 255, 255, .14); --ank-knopf-hover: rgba(255, 255, 255, .28); }
#page-wrapper .ank-band--wichtig .ank-band__zu { --ank-knopf-flaeche: rgba(11, 34, 54, .1); --ank-knopf-hover: rgba(11, 34, 54, .2); }
#page-wrapper .ank-modal:not(.ank-modal--bild) .ank-modal__zu { --ank-knopf-flaeche: #fff; --ank-knopf-hover: var(--mf-blau-hell); }
/* Band verdeckt nichts: unter dem Band so viel Weiß wie darüber (Stefan 01.12.), danach beginnt das Bildfenster mit runden Ecken.
   Eine Maske unter dem Band, drei Lagen von oben nach unten (je r = Radius, g = Rand):
   r hoch: Weiß außerhalb der unteren Bandecken | g hoch: weißer Streifen | r hoch: Weiß außerhalb der oberen Bildecken. */
#page-wrapper > .ank-band::after {
  --r: var(--mf-radius); --g: var(--mf-rand);
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% - var(--r)); height: calc(var(--r) * 2 + var(--g)); pointer-events: none;
  background:
    radial-gradient(circle at 100% 0, transparent calc(var(--r) - .5px), #fff var(--r)) left top / var(--r) var(--r) no-repeat,
    radial-gradient(circle at 0 0, transparent calc(var(--r) - .5px), #fff var(--r)) right top / var(--r) var(--r) no-repeat,
    linear-gradient(#fff, #fff) left var(--r) / 100% var(--g) no-repeat,
    radial-gradient(circle at 100% 100%, transparent calc(var(--r) - .5px), #fff var(--r)) left bottom / var(--r) var(--r) no-repeat,
    radial-gradient(circle at 0 100%, transparent calc(var(--r) - .5px), #fff var(--r)) right bottom / var(--r) var(--r) no-repeat;
}
/* Handy: Titel und Satz oben mit dem Kreuz daneben, der Knopf darunter über die volle Breite und darf umbrechen */
@media screen and (max-width: 736px) {
  #page-wrapper .ank-band__text { order: 1; flex: 1 1 calc(100% - 60px); }
  #page-wrapper .ank-band__zu { order: 2; align-self: flex-start; }
  #page-wrapper .ank-band__link { order: 3; flex: 1 1 100%; justify-content: center; text-align: center; white-space: normal; }
  #page-wrapper .ank-modal__link { white-space: normal; text-align: center; }
}

/* Über der Fußzeile derselbe Abstand wie zwischen den anderen Flächen (Stefan 01.12.): das alte Theme setzt 2em */
:has(+ #footer) > .wrapper { margin-bottom: var(--mf-rand); }

/* Handy-Navigation (Stefan 02.12.): dieselbe blaue, runde Leiste wie am Desktop statt der grauen Lasche des alten Themes.
   Geschlossen: Name links, »Menü« rechts. Offen: das Menü füllt genau das Bildfenster unter der Leiste (gleiche Form wie
   Hintergrund und Flächen), große Punkte, aktuelle Seite gelb, unten Tickets. Gebaut von musikfest.js aus #nav. */
.mf-kopf, .mf-menue { display: none; }
@media screen and (max-width: 736px) {
  :root { --mf-navi-h: 48px; }
  #navButton, #navPanel { display: none !important; }
  .mf-kopf {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    position: fixed; z-index: 10003; top: var(--mf-rand); left: var(--mf-rand); right: var(--mf-rand); height: var(--mf-navi-h);
    padding: 0 .35rem 0 1rem; background: var(--mf-blau); border-radius: var(--mf-radius); box-shadow: var(--mf-schatten);
    font-family: 'Lato', sans-serif;
  }
  .mf-marke, .mf-marke:hover { color: #fff !important; text-decoration: none !important; border: 0 !important; line-height: 1.05; }
  .mf-marke b { display: block; font-weight: 700; font-size: 1rem; letter-spacing: .06em; }
  .mf-marke span { display: block; font-weight: 400; font-size: .75rem; letter-spacing: .02em; color: rgba(255, 255, 255, .85); }
  .mf-knopf, .mf-knopf:hover, .mf-knopf:focus {
    display: inline-flex; align-items: center; gap: .55rem; flex: none; width: auto !important; height: 40px; min-width: 44px; margin: 0; padding: 0 .95rem !important;
    border: 0 !important; border-radius: 999px !important; background: rgba(255, 255, 255, .14) !important; box-shadow: none !important;
    color: #fff !important; font: 700 .8125rem/1 'Lato', sans-serif !important; letter-spacing: .1em !important; text-transform: uppercase; cursor: pointer;
  }
  .mf-knopf:hover { background: rgba(255, 255, 255, .26) !important; }
  .mf-knopf:focus-visible { outline: 3px solid #ffce00; outline-offset: 2px; }
  .mf-strich { position: relative; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; transition: background .2s; }
  .mf-strich::before, .mf-strich::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s ease; }
  .mf-strich::before { top: -6px; } .mf-strich::after { top: 6px; }
  .mf-knopf[aria-expanded="true"] .mf-strich { background: transparent; }
  .mf-knopf[aria-expanded="true"] .mf-strich::before { transform: translateY(6px) rotate(45deg); }
  .mf-knopf[aria-expanded="true"] .mf-strich::after { transform: translateY(-6px) rotate(-45deg); }

  .mf-menue {
    position: fixed; z-index: 10002; top: calc(var(--mf-rand) * 2 + var(--mf-navi-h)); left: var(--mf-rand); right: var(--mf-rand); bottom: var(--mf-rand);
    flex-direction: column; overflow: auto; overscroll-behavior: contain; padding: .5rem 1.25rem 1.25rem;
    background: var(--mf-blau); border-radius: var(--mf-radius); box-shadow: var(--mf-schatten-hoch); font-family: 'Lato', sans-serif;
  }
  .mf-menue.ist-offen { display: flex; animation: mf-auf .22s cubic-bezier(.2, .7, .2, 1); }
  @keyframes mf-auf { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
  .mf-menue ul { list-style: none; margin: 0; padding: 0; }
  .mf-menue li { margin: 0; padding: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .mf-menue li a, .mf-menue li a:hover {
    display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: .35rem 0;
    color: #fff !important; text-decoration: none !important; border: 0 !important;
    font-weight: 700; font-size: clamp(1.375rem, 6.6vw, 1.75rem); line-height: 1.1; letter-spacing: .03em; text-transform: uppercase;
  }
  .mf-menue li a[aria-current="page"] { color: #ffce00 !important; }
  .mf-menue li a[aria-current="page"]::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #ffce00; flex: none; }
  .mf-menue li a:focus-visible, .mf-menue-fuss a:focus-visible { outline: 3px solid #ffce00; outline-offset: 2px; border-radius: 6px; }
  .mf-menue-fuss { margin-top: auto; padding-top: 1.5rem; }
  .mf-menue-fuss .mf-tickets, .mf-menue-fuss .mf-tickets:hover {
    display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px;
    background: #ffce00 !important; color: #0b2236 !important; text-decoration: none !important; border: 0 !important;
    font-weight: 700; font-size: 1.125rem; box-shadow: 0 1px 1px rgba(6, 28, 54, .18), 0 6px 14px -6px rgba(6, 28, 54, .45);
  }
  .mf-menue-klein { display: flex; justify-content: center; gap: .4rem 1.2rem; flex-wrap: wrap; margin-top: 1rem; }
  .mf-menue-klein a, .mf-menue-klein a:hover { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, .88) !important; text-decoration: underline !important; text-underline-offset: 3px; border: 0 !important; font-size: 1rem; }
  body.mf-menue-offen { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-menue.ist-offen { animation: none; }
  .mf-strich, .mf-strich::before, .mf-strich::after { transition: none; }
}
/* Sprungziele (#show, #programm, #impressum) landen unter der festen Leiste, nicht dahinter */
html { scroll-padding-top: calc(var(--mf-rand) * 2 + var(--mf-navi-h) + 12px); }
