/* Band-Bereich – übernimmt Schrift und Farben des Themes.
   Akzentfarbe: Einstellungen → Band-Bereich (oder --band-akzent im eigenen CSS). */

.band {
    --band-akzent: #2e7d4f;
    --band-abstand: clamp(0.75rem, 2vw, 1.5rem);
    --band-radius: 6px;
    --band-linie: rgba(128, 128, 128, 0.35);
    --band-flaeche: rgba(128, 128, 128, 0.1);
    margin: 0 auto;
    max-width: 1200px;
    font-family: var(--band-schrift, inherit);
    /* Gabriola ist bei gleicher Größe sehr klein: Größe über die x-Höhe angleichen,
       damit Gabriola und die Ersatzschriften gleich groß wirken */
    font-size-adjust: 0.5;
}

/* Buttons/Links übernehmen sonst teils die Theme-Schrift */
.band a,
.band h3,
.band h4,
.band dt,
.band dd {
    font-family: inherit;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
    .band {
        --band-linie: color-mix(in srgb, currentColor 18%, transparent);
        --band-flaeche: color-mix(in srgb, currentColor 6%, transparent);
    }
}

.band *,
.band *::before,
.band *::after {
    box-sizing: border-box;
}

/* ---------- Gruppenfoto ---------- */

.band-gruppenfoto {
    margin: 0 0 var(--band-abstand);
}

.band-gruppenfoto img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--band-radius);
}

/* ---------- Mitglieder-Kacheln ---------- */

.band .band-mitglieder {
    display: grid;
    grid-template-columns: repeat(var(--band-anzahl, 4), minmax(0, 1fr));
    gap: var(--band-abstand);
    list-style: none;
    margin: 0 0 var(--band-abstand);
    padding: 0;
}

.band .band-mitglieder li {
    margin: 0;
    padding: 0;
}

@media (max-width: 900px) {
    .band .band-mitglieder { grid-template-columns: repeat(min(var(--band-anzahl, 3), 3), minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .band .band-mitglieder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.band .band-karte {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    text-align: center;
}

.band-karte-bild {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--band-radius);
    background: var(--band-flaeche);
}

.band-karte-bild img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.band .band-karte:hover .band-karte-bild img,
.band .band-karte:focus-visible .band-karte-bild img {
    transform: scale(1.04);
}

.band .band-karte:focus-visible {
    outline: 2px solid var(--band-akzent);
    outline-offset: 4px;
    border-radius: var(--band-radius);
}

.band-karte-name {
    display: block;
    margin-top: 0.6em;
    font-weight: 700;
    line-height: 1.25;
}

.band-karte-rolle {
    display: block;
    font-size: 0.9em;
    opacity: 0.75;
    line-height: 1.3;
}

/* Platzhalter ohne Foto: schlichte Silhouette */
.band-ohne-foto {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 8rem;
    background:
        radial-gradient(circle at 50% 38%, var(--band-linie) 0 17%, transparent 17.5%),
        radial-gradient(ellipse 34% 26% at 50% 88%, var(--band-linie) 0 99%, transparent 100%),
        var(--band-flaeche);
}

/* ---------- Buttons & Links ---------- */

.band .band-knoepfe {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6em 0.8em;
    margin: calc(var(--band-abstand) * 1.5) 0 0;
}

/* ---------- Ausklappliste (mehrere Techrider/Pressetexte) ---------- */

.band .band-menue {
    position: relative;
    display: inline-block;
}

.band .band-menue > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.band .band-menue > summary::-webkit-details-marker {
    display: none;
}

/* Pfeil nur bei Buttons mit Ausklappliste */
.band .band-menue > summary::after {
    content: "";
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    margin-left: 0.55em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.2em) rotate(45deg);
    transition: transform 0.2s;
}

.band .band-menue[open] > summary::after {
    transform: translateY(0.1em) rotate(-135deg);
}

.band .band-menue[open] > summary {
    background: var(--band-akzent);
    color: #fff;
}

.band .band-menue-liste {
    position: absolute;
    z-index: 50;
    top: calc(100% + 0.4em);
    left: 50%;
    transform: translateX(-50%);
    min-width: 15em;
    margin: 0;
    padding: 0.35em 0;
    list-style: none;
    text-align: left;
    background: var(--band-menue-hg, #fff);
    color: var(--band-menue-text, #222);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--band-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.band .band-menue-liste li {
    margin: 0;
}

.band .band-menue-liste a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1em;
    padding: 0.45em 1em;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.band .band-menue-liste a:hover,
.band .band-menue-liste a:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    color: var(--band-akzent);
}

/* Handy: Liste unter der ganzen Button-Reihe, volle Breite */
@media (max-width: 600px) {
    .band .band-knoepfe { position: relative; }
    .band .band-menue { position: static; }
    .band .band-menue-liste {
        left: 0;
        right: 0;
        transform: none;
        min-width: 0;
        top: calc(100% + 0.4em);
    }
    .band .band-menue-liste a { white-space: normal; }
}

.band-menue-titel {
    font-weight: 700;
}

.band-menue-info {
    font-size: 0.85em;
    opacity: 0.7;
}


.band .band-knopf {
    display: inline-block;
    padding: 0.6em 1.4em;
    border: 2px solid var(--band-akzent);
    border-radius: 999px;
    color: var(--band-akzent);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.band .band-knopf:hover,
.band .band-knopf:focus-visible {
    background: var(--band-akzent);
    color: #fff;
}

.band .band-zurueck {
    display: inline-block;
    margin-bottom: var(--band-abstand);
    color: var(--band-akzent);
    font-weight: 700;
    text-decoration: none;
}

.band .band-zurueck:hover,
.band .band-zurueck:focus-visible {
    text-decoration: underline;
}

/* ---------- Detailansicht ---------- */

.band-detail {
    margin-top: calc(var(--band-abstand) * 2);
    padding-top: var(--band-abstand);
    border-top: 1px solid var(--band-linie);
}

.band-detail-raster {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: calc(var(--band-abstand) * 1.5);
    align-items: start;
}

@media (max-width: 700px) {
    .band-detail-raster { grid-template-columns: 1fr; }
    .band-detail-foto { max-width: 420px; }
}

.band-detail-foto img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--band-radius);
}

.band-detail-foto .band-ohne-foto {
    aspect-ratio: 4 / 5;
    border-radius: var(--band-radius);
}

.band .band-detail h3 {
    margin: 0 0 0.15em;
    font-size: 2em;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: normal;
    text-transform: none;
}

.band.band-js .band-history h3 {
    margin-bottom: 0.4em;
}

.band-detail h3:focus {
    outline: none;
}

.band-detail-rolle {
    margin: 0 0 1em;
    font-style: italic;
    opacity: 0.8;
}

.band-steckbrief {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.3em 1em;
    margin: 0 0 1.2em;
    padding: 0.8em 1em;
    background: var(--band-flaeche);
    border-radius: var(--band-radius);
}

.band-steckbrief dt {
    font-weight: 700;
    margin: 0;
}

.band-steckbrief dt::after {
    content: ":";
}

.band-steckbrief dd {
    margin: 0;
}

@media (max-width: 420px) {
    .band-steckbrief { grid-template-columns: 1fr; }
    .band-steckbrief dd { margin-bottom: 0.4em; }
}

.band-detail a:not(.band-zurueck):not(.band-vor):not(.band-nach):not(.band-knopf) {
    color: var(--band-akzent);
}

.band-blaettern {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    margin-top: calc(var(--band-abstand) * 1.5);
    padding-top: var(--band-abstand);
    border-top: 1px solid var(--band-linie);
}

.band .band-blaettern a {
    color: var(--band-akzent);
    font-weight: 700;
    text-decoration: none;
}

.band .band-blaettern a:hover {
    text-decoration: underline;
}

.band-nach {
    margin-left: auto;
    text-align: right;
}

.band .band-history-text h4,
.band .band-detail-text h4 {
    margin: 1.4em 0 0.3em;
    color: var(--band-akzent);
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
}

.band-history-text h4:first-child {
    margin-top: 0.4em;
}

.band-history-text p {
    margin-top: 0;
}

/* ---------- Bandfotos (hohe Auflösung) ---------- */

.band-fotos-hinweis {
    margin: 0 0 1em;
    opacity: 0.8;
}

.band .band-fotoliste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--band-abstand);
    list-style: none;
    margin: var(--band-abstand) 0 0;
    padding: 0;
}

.band .band-fotoliste li {
    margin: 0;
}

.band .band-fotoliste a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.band .band-fotoliste img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--band-radius);
    transition: opacity 0.2s;
}

.band .band-fotoliste a:hover img,
.band .band-fotoliste a:focus-visible img {
    opacity: 0.85;
}

.band-foto-info {
    display: block;
    margin-top: 0.3em;
    font-size: 0.85em;
    opacity: 0.75;
}

.band-foto-info::before {
    content: "↓ ";
}

.band-leer {
    text-align: center;
    font-style: italic;
    opacity: 0.75;
}

/* ---------- Mit JavaScript: nur Übersicht ODER eine Detailansicht ---------- */

.band.band-js .band-detail {
    display: none;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.band.band-js .band-detail.ist-offen {
    display: block;
    animation: band-einblenden 0.25s ease;
}

.band.band-js.zeigt-detail .band-uebersicht {
    display: none;
}

@keyframes band-einblenden {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .band.band-js .band-detail.ist-offen { animation: none; }
    .band-karte-bild img { transition: none; }
}
