/* Mountain Cruisers – Schwarz mit Gelb (Farbe aus dem Logo) */
:root {
  color-scheme: dark;
  --bg: #070707; --card: #121212; --card-2: #1a1a1a; --line: #2a2716;
  --yellow: #f7d708; --yellow-2: #ffe55c; --yellow-soft: rgba(247, 215, 8, .12);
  --ink: #f3e7a6; --muted: #a39a6b; --danger: #ff6b5e; --ok: #8fd17a; --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--yellow); }
a:hover { color: var(--yellow-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--yellow); }
h1 { font-size: 1.7rem; letter-spacing: .01em; } h2 { font-size: 1.3rem; margin-top: 1.4em; } h3 { font-size: 1.05rem; }
::selection { background: var(--yellow); color: #000; }

/* Kopfzeile */
.top { background: #000; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem; }
.logo { color: var(--yellow); text-decoration: none; font-weight: 800; letter-spacing: .04em; font-size: 1.15rem; display: flex; align-items: center; gap: .55rem; text-transform: uppercase; }
.logo img { height: 34px; width: auto; display: block; }
.logo:hover { color: var(--yellow-2); }
nav.main { display: flex; gap: .2rem; flex-wrap: wrap; flex: 1; }
nav.main a, .top form button { color: var(--ink); text-decoration: none; padding: .35rem .6rem; border-radius: 6px; font-size: .95rem; background: none; border: 0; cursor: pointer; font: inherit; }
nav.main a:hover, nav.main a.on { background: var(--yellow-soft); color: var(--yellow); }
.userbox { display: flex; gap: .3rem; align-items: center; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1rem; }
main.wrap { padding-top: 1.5rem; padding-bottom: 3rem; }
.subnav { background: #0d0d0d; border-bottom: 1px solid var(--line); overflow-x: auto; }
.subnav .wrap { display: flex; gap: .2rem; white-space: nowrap; }
.subnav a { display: inline-block; padding: .65rem .7rem; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; font-size: .93rem; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--yellow); border-color: var(--yellow); font-weight: 600; }

/* Bausteine */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 1rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.stat b { display: block; font-size: 1.7rem; color: var(--yellow); }
.stat span { color: var(--muted); font-size: .88rem; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.flash { background: var(--yellow-soft); border: 1px solid rgba(247, 215, 8, .35); color: var(--yellow-2); padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.error { background: rgba(255, 107, 94, .1); border: 1px solid rgba(255, 107, 94, .4); color: var(--danger); padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.btn, button.btn { display: inline-block; background: var(--yellow); color: #000; border: 1px solid var(--yellow); padding: .55rem 1rem; border-radius: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--yellow-2); color: #000; }
.btn.alt { background: transparent; color: var(--yellow); border: 1px solid rgba(247, 215, 8, .6); }
.btn.alt:hover { background: var(--yellow-soft); color: var(--yellow-2); }
.btn.orange { background: var(--yellow); color: #000; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn.danger:hover { background: rgba(255, 107, 94, .12); }
.btn.sm { padding: .3rem .65rem; font-size: .88rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .8rem 0; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.head h1 { margin: 0; }

/* Formulare */
form.stack label { display: block; margin-bottom: .8rem; font-weight: 600; font-size: .92rem; }
form.stack label.check { font-weight: 400; display: flex; gap: .5rem; align-items: center; }
input, select, textarea { width: 100%; font: inherit; padding: .5rem .6rem; border: 1px solid #3a3620; border-radius: 7px; background: #0b0b0b; margin-top: .25rem; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(247, 215, 8, .5); outline-offset: 0; border-color: var(--yellow); }
input::placeholder, textarea::placeholder { color: #6f6748; }
input[type=checkbox], input[type=radio] { width: auto; margin: 0; accent-color: var(--yellow); }
input[type=file] { padding: .4rem; }
input[type=file]::file-selector-button { background: var(--yellow); color: #000; border: 0; border-radius: 6px; padding: .3rem .7rem; font-weight: 700; margin-right: .6rem; cursor: pointer; }
input:disabled { opacity: .6; }
textarea { min-height: 7rem; }
textarea.big { min-height: 18rem; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; }
.row { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem; }
.filters input, .filters select { width: auto; min-width: 160px; margin: 0; }

/* Tabellen */
.tbl { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #0d0d0d; font-weight: 600; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(247, 215, 8, .03); }

/* Kennzeichnungen */
.badge { display: inline-block; font-size: .76rem; padding: .1rem .5rem; border-radius: 99px; background: #262626; color: var(--ink); font-weight: 600; }
.b-aktiv, .b-angemeldet, .b-gesendet { background: var(--yellow-soft); color: var(--yellow); }
.b-ausgetreten, .b-abgemeldet, .b-fehler, .b-austritt { background: rgba(255, 107, 94, .14); color: var(--danger); }
.b-eintritt, .b-wiedereintritt { background: rgba(143, 209, 122, .14); color: var(--ok); }
.b-passiv, .b-testmodus, .b-mutation { background: rgba(255, 170, 60, .14); color: #ffb35c; }
.b-ehrenmitglied { background: rgba(200, 160, 255, .14); color: #d2b4ff; }

/* Events */
.event-item { display: flex; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.event-item:last-child { border-bottom: 0; }
.event-item:hover strong { color: var(--yellow); }
.date { flex: 0 0 56px; text-align: center; background: var(--yellow); border-radius: 8px; padding: .35rem 0; color: #000; line-height: 1.1; }
.date b { display: block; font-size: 1.35rem; }
.date span { font-size: .75rem; text-transform: uppercase; font-weight: 600; }

.prose img { max-width: 100%; border-radius: 8px; }
.prose table { border: 1px solid var(--line); }
.prose h1, .prose h2 { color: var(--yellow); }
code, .mono { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: #1e1c12; color: var(--yellow-2); padding: .1rem .3rem; border-radius: 4px; word-break: break-all; }
details summary { cursor: pointer; color: var(--yellow); font-weight: 600; }
.hint { font-size: .84rem; color: var(--muted); font-weight: 400; display: block; margin-top: .2rem; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 0; border-top: 1px solid var(--line); }
footer img { height: 26px; opacity: .7; display: block; margin: 0 auto .5rem; }

/* Startseite: Logo-Bühne mit Sonnenstrahlen */
.hero { position: relative; overflow: hidden; text-align: center; border-radius: 16px; padding: 3rem 1.2rem 2.2rem; margin-bottom: 1.2rem;
  background: radial-gradient(ellipse at 50% 38%, rgba(247, 215, 8, .2) 0%, rgba(247, 215, 8, .05) 35%, transparent 65%), linear-gradient(180deg, #0b0b0b, #000);
  border: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; left: 50%; top: 36%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(247, 215, 8, .07) 0deg 3deg, transparent 3deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 45%); mask-image: radial-gradient(circle, #000 0%, transparent 45%);
  animation: rays 120s linear infinite; }
@keyframes rays { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero-logo { position: relative; width: min(440px, 82%); height: auto; filter: drop-shadow(0 0 28px rgba(247, 215, 8, .35)); animation: rise .9s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.hero-line { position: relative; width: min(520px, 90%); height: 1px; margin: 1.8rem auto 1.4rem; background: linear-gradient(90deg, transparent, var(--yellow), transparent); }
.hero .prose { position: relative; max-width: 640px; margin: 0 auto; color: var(--ink); }
.hero .prose h1 { font-size: 1.6rem; text-transform: uppercase; letter-spacing: .08em; }
.hero .actions { justify-content: center; position: relative; }

@media (max-width: 640px) {
  h1 { font-size: 1.4rem; }
  .top .wrap { gap: .4rem; }
  .logo { font-size: 1rem; }
  .logo img { height: 28px; }
  nav.main { order: 3; flex-basis: 100%; }
  .hide-sm { display: none; }
  .hero { padding: 2rem .8rem 1.6rem; }
}
.split { display: grid; gap: 1rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.photo-lg { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; vertical-align: middle; background: var(--yellow-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--yellow); font-size: .8rem; flex: 0 0 36px; }
.who { display: flex; gap: .6rem; align-items: center; }
.split > form { display: block; }

/* Verwaltung Startseite */
.thumbs { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.thumb { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.thumb-form { padding: .6rem; }
.thumb-form input { margin: 0; }

/* Startseite: Über uns */
.about { max-width: 760px; margin: 0 auto 2.2rem; text-align: center; font-size: 1.05rem; }
.about h1 { font-size: 1.6rem; text-transform: uppercase; letter-spacing: .08em; }
.about h2 { text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; margin-top: 1.6em; }
.about ul, .about ol { text-align: left; display: inline-block; }
.section-title { text-align: center; text-transform: uppercase; letter-spacing: .12em; font-size: 1.1rem; margin: 0 0 1rem; }
.section-title::after { content: ""; display: block; width: 60px; height: 2px; background: var(--yellow); margin: .6rem auto 0; }

/* Startseite: Galerie */
.gallery { max-width: 820px; margin: 0 auto 2.4rem; }
.slides { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000;
  border: 1px solid rgba(247, 215, 8, .35); box-shadow: 0 0 0 4px #000, 0 0 0 5px rgba(247, 215, 8, .15), 0 18px 50px rgba(0, 0, 0, .7), 0 0 60px rgba(247, 215, 8, .08); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 8s ease-out; }
.slide.on img { transform: scale(1); }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); color: var(--yellow); font-weight: 600; text-align: center; }
.gallery .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(247, 215, 8, .6);
  background: rgba(0, 0, 0, .55); color: var(--yellow); font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; }
.gallery .prev { left: .7rem; } .gallery .next { right: .7rem; }
.slides:hover .nav, .gallery .nav:focus-visible { opacity: 1; }
.dots { display: flex; justify-content: center; gap: .45rem; margin-top: .8rem; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--yellow); background: transparent; cursor: pointer; }
.dots button.on { background: var(--yellow); }
@media (hover: none) { .gallery .nav { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .slide, .slide img { transition: none; } }

/* Startseite: Hymnen-Player */
.hymn { display: flex; align-items: center; gap: 1rem; max-width: 640px; margin: 2.4rem auto 0; padding: 1rem 1.2rem; border-radius: 14px;
  background: linear-gradient(135deg, #141414, #0a0a0a); border: 1px solid rgba(247, 215, 8, .35); box-shadow: 0 0 40px rgba(247, 215, 8, .06); }
.hymn-mark { width: 54px; height: auto; flex: 0 0 54px; opacity: .9; }
.hymn.playing .hymn-mark { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 10px rgba(247, 215, 8, .7)); } }
.hymn-play { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--yellow); color: #000; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 0 0 4px rgba(247, 215, 8, .15); transition: transform .15s; }
.hymn-play:hover { transform: scale(1.06); background: var(--yellow-2); }
.hymn-play svg { width: 26px; height: 26px; fill: currentColor; }
.hymn-play .i-pause, .hymn.playing .hymn-play .i-play { display: none; }
.hymn.playing .hymn-play .i-pause { display: block; }
.hymn-body { flex: 1; min-width: 0; }
.hymn-title { color: var(--yellow); font-weight: 700; letter-spacing: .03em; margin-bottom: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hymn-bar { display: flex; align-items: center; gap: .6rem; }
.hymn-time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.6em; }
.hymn-time.dur { text-align: right; }
.hymn-seek { --p: 0%; flex: 1; -webkit-appearance: none; appearance: none; height: 6px; padding: 0; margin: 0; border: 0; border-radius: 3px; cursor: pointer;
  background: linear-gradient(to right, var(--yellow) var(--p), #2e2b1c var(--p)); }
.hymn-seek:focus { outline: none; }
.hymn-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow-2); border: 0; }
.hymn-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow-2); border: 0; }
@media (max-width: 640px) {
  .hymn-mark { display: none; }
  .hymn { padding: .8rem; gap: .8rem; }
  .gallery .nav { width: 36px; height: 36px; font-size: 1.3rem; }
}
