/* =========================================================
   MF Oberornau – Stylesheet
   Vereinsfarben hier oben anpassen:
   ========================================================= */
:root {
  --primary: #1d4e3a;        /* Hauptfarbe (dunkelgrün) */
  --primary-dark: #133528;
  --accent: #e3a524;         /* Akzent (gold) */
  --bg: #f5f4ef;
  --card: #ffffff;
  --text: #1e2421;
  --muted: #6b726e;
  --line: #e2e0d8;
  --danger: #b3261e;
  --ok: #1f7a4d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .8em; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
main { min-height: 60vh; padding-bottom: 48px; }

/* ---------- Kopfzeile ---------- */
.topbar { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: .2px; }
.mainnav { display: flex; gap: 4px; flex-wrap: wrap; }
.mainnav a { color: rgba(255,255,255,.88); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.mainnav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.mainnav a.active { background: #fff; color: var(--primary); }
.mainnav .nav-admin, .mainnav .nav-login { border: 1px solid rgba(255,255,255,.35); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #222; font-size: .75rem; font-weight: 700; text-align: center; line-height: 20px; }
.navtoggle, .burger { display: none; }

@media (max-width: 760px) {
  .burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--primary-dark); flex-direction: column; padding: 8px 16px 16px; }
  .navtoggle:checked ~ .mainnav { display: flex; }
  .mainnav a { border-radius: 10px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: 520px; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, var(--primary) 0%, #2f6f55 60%, var(--accent) 140%); background-size: cover; background-position: center 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,22,.78) 0%, rgba(10,30,22,.45) 45%, rgba(0,0,0,0) 75%), linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 48px 0 40px; }
.hero h1 { text-shadow: 0 2px 12px rgba(0,0,0,.35); margin-bottom: .2em; }
.hero p { font-size: 1.15rem; max-width: 640px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero .kicker { font-size: .85rem; text-transform: uppercase; letter-spacing: .2em; opacity: .9; margin-bottom: 6px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Gruppenbild Startseite ---------- */
.crew { margin-top: 32px; }
.crew-photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.crew-photo img { width: 100%; max-height: 520px; object-fit: cover; object-position: center 40%; }
.crew-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 20px 14px; color: #fff; font-weight: 700; font-size: 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); }

.page-head { background: var(--primary); color: #fff; padding: 36px 0 30px; margin-bottom: 28px; }
.page-head p { margin: 0; opacity: .85; }

/* ---------- Layout ---------- */
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; margin-top: 32px; align-items: start; }
@media (max-width: 900px) { .grid-main { grid-template-columns: 1fr; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-title a { font-size: .95rem; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card + .card { margin-top: 18px; }
.grid-main > .card + .card, .two > .card + .card { margin-top: 0; }
.stack > * + * { margin-top: 18px; }

/* ---------- Buttons & Formulare ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #1c1c1c; }
.btn-accent:hover { background: #c98f17; }
.btn-ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #8c1d17; }
.btn-ok { background: var(--ok); }
.btn-small { padding: 6px 12px; font-size: .88rem; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

form .field { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=time], textarea, select {
  width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--text); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.hp { position: absolute; left: -9999px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }

.flash { margin: 18px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.flash-ok { background: #e2f3e9; color: #12543a; }
.flash-err { background: #fbe4e2; color: #7f1d17; }

/* ---------- Beiträge ---------- */
.post { padding: 0; overflow: hidden; }
.post-img img { width: 100%; max-height: 420px; object-fit: cover; }
.post-body { padding: 20px 22px 18px; }
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.post.pinned { box-shadow: inset 4px 0 0 var(--accent), var(--shadow); }
.tag { background: #fff3d6; color: #7a5600; border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 700; }
.post-text a { word-break: break-all; }
.post-actions { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.empty { text-align: center; color: var(--muted); padding: 32px; }

/* ---------- Termine ---------- */
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev-date { background: var(--primary); color: #fff; border-radius: 10px; text-align: center; padding: 6px 0; height: fit-content; }
.ev-date .d { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.ev-date .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; }
.ev h4 { margin: 0 0 2px; font-size: 1.05rem; }
.ev .meta { font-size: .9rem; color: var(--muted); }
.ev .meta div { margin-top: 2px; }
.ev .desc { margin-top: 6px; font-size: .95rem; }
.ev .desc p { margin-bottom: .4em; }

.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.cal-head h2 { margin: 0; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: .8rem; color: var(--muted); font-weight: 600; padding: 6px 0; }
.cal td { vertical-align: top; height: 92px; border: 1px solid var(--line); padding: 4px; font-size: .8rem; }
.cal td.other { background: #faf9f6; color: #b8bbb7; }
.cal td.today { background: #fff7e1; }
.cal .dn { font-weight: 700; font-size: .85rem; }
.cal .chip { display: block; background: var(--primary); color: #fff; border-radius: 6px; padding: 2px 5px; margin-top: 3px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .75rem; }
.cal .chip:hover { background: var(--accent); color: #222; }
@media (max-width: 640px) {
  .cal td { height: 56px; }
  .cal .chip { font-size: 0; padding: 0; height: 8px; width: 8px; border-radius: 50%; display: inline-block; margin-right: 2px; }
}

/* ---------- Fotos ---------- */
.social { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.social a { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: var(--radius); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; box-shadow: var(--shadow); transition: transform .15s; }
.social a:hover { transform: translateY(-2px); }
.social a small { display: block; font-weight: 400; opacity: .9; font-size: .85rem; }
.social .ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.social .fb { background: #1877f2; }
.social svg { width: 34px; height: 34px; flex: none; }
.photo { margin: 28px 0 0; }
.photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo figcaption { margin-top: 10px; font-weight: 600; font-size: 1.1rem; }
.placeholder { aspect-ratio: 16/9; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #ece9e0, #ece9e0 12px, #f4f2ec 12px, #f4f2ec 24px); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }

/* ---------- Mitglieder-Login ---------- */
.narrow { max-width: 440px; margin: 40px auto; }
.lock { width: 52px; height: 52px; border-radius: 50%; background: #fff3d6; display: grid; place-items: center; margin-bottom: 12px; font-size: 1.5rem; }

/* ---------- Verwaltung ---------- */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0; }
.subnav a { padding: 8px 14px; border-radius: 999px; background: #fff; text-decoration: none; color: var(--text); box-shadow: var(--shadow); font-weight: 500; font-size: .93rem; }
.subnav a.active { background: var(--primary); color: #fff; }
.subnav .logout { margin-left: auto; color: var(--danger); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.status { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.status-pending { background: #fff3d6; color: #7a5600; }
.status-approved { background: #e2f3e9; color: #12543a; }
.status-rejected { background: #fbe4e2; color: #7f1d17; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.stat .n { font-size: 2rem; font-weight: 800; color: var(--primary); }
.thumb { width: 100%; max-width: 360px; border-radius: 10px; margin: 6px 0 10px; }
.inline-form { display: inline; }

/* ---------- Fußzeile ---------- */
.footer { background: #1a201d; color: #cfd3d0; padding: 28px 0; font-size: .93rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer .muted { color: #8f9692; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: #e9ece9; text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* ---------- Verein ---------- */
.about .card p:last-child { margin-bottom: 0; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.person { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.person-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #e9e7df; }
.person-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.person-img:hover img { transform: scale(1.04); }
.person-noimg { display: grid; place-items: center; }
.person-noimg img { width: 40%; height: auto; opacity: .55; }
.person-body { padding: 14px 16px 16px; }
.person-body h3 { margin: 0 0 2px; }
.person-role { display: inline-block; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; margin-bottom: 6px; }
.person-bike { font-size: .9rem; color: var(--muted); }
.friends { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.friend { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; color: var(--text); font-size: .9rem; font-weight: 600; padding: 10px; border-radius: 10px; }
.friend:hover { background: #f1efe7; }
.friend img { height: 80px; width: auto; object-fit: contain; }
.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.linklist li:last-child { border-bottom: 0; }
.linklist a { font-weight: 600; text-decoration: none; }
.poster { max-width: 420px; }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 12px; }
.posters figure { margin: 0; }
.posters img { width: 100%; aspect-ratio: 595 / 842; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
.posters figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.people > .card + .card, .stats > * + * { margin-top: 0; }
.post-img.portrait { display: block; background: #1a201d; } .post-img.portrait img { max-height: 620px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }

/* =========================================================
   Schwarzes Farbschema (überschreibt die Farben oben,
   Aufteilung bleibt gleich). Zum Zurückschalten auf hell
   einfach diesen Block löschen.
   ========================================================= */
:root {
  --primary: #2a7cc7;        /* Blau aus dem Wappen (bayerische Rauten) */
  --primary-dark: #1f629f;
  --accent: #2a7cc7;
  --accent-light: #6fb3ef;   /* helles Blau für Links/Text auf Schwarz */
  --bg: #0c0c0c;
  --card: #161616;
  --text: #ebe7df;
  --muted: #9b978f;
  --line: #2a2a2a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.45);
  --on-primary: #fff;
  color-scheme: dark;
}
body { background: var(--bg); }
a { color: var(--accent-light); }
a:hover { color: #a3cff5; }

.topbar { background: #050505; border-bottom: 2px solid var(--accent); box-shadow: 0 2px 14px rgba(0,0,0,.6); }
.brand, .brand:hover { color: #fff; }
.mainnav a { color: #d6d2ca; }
.mainnav a.active { background: var(--accent); color: var(--on-primary); }
.mainnav .nav-admin, .mainnav .nav-login { border-color: #444; }
@media (max-width: 760px) { .mainnav { background: #050505; border-bottom: 2px solid var(--accent); } }

.hero { background-color: #050505; background-image: linear-gradient(135deg, #111 0%, #1d1d1d 60%, #0c2a45 140%); }
.hero::after { background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,.05) 75%), linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(12,12,12,.9) 100%); }
.page-head { background: linear-gradient(180deg, #050505, #121212); border-bottom: 1px solid var(--line); }
.page-head h1 { color: #fff; }

.card { border: 1px solid var(--line); }
.btn { color: var(--on-primary); }
.btn:hover { background: #3a8fdc; color: var(--on-primary); }
.btn-accent, .btn-accent:hover { color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--accent-light); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--on-primary); }
.hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.hero .btn-ghost:hover { background: #fff; color: #111; }
.btn-danger, .btn-danger:hover, .btn-ok { color: #fff; }

input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=time], textarea, select {
  background: #0f0f0f; border-color: #333; color: var(--text); }
input::placeholder, textarea::placeholder { color: #6d6a64; }
input[type=file] { color: var(--muted); }
input[type=checkbox] { accent-color: var(--accent); }

.flash-ok { background: #10241a; color: #a8e3c0; }
.flash-err { background: #2b1113; color: #ffb4b6; }
.tag { background: rgba(42,124,199,.15); color: #8cc3f2; }
.post-actions { border-color: var(--line); }
.post-img.portrait { background: #070707; }

.ev-date { background: var(--accent); color: var(--on-primary); }
.cal td { border-color: #262626; background: #121212; }
.cal td.other { background: #0d0d0d; color: #555; }
.cal td.today { background: #0f2030; box-shadow: inset 0 0 0 1px var(--accent); }
.cal .chip { background: var(--accent); color: var(--on-primary); }
.cal .chip:hover { background: #fff; color: #111; }

.placeholder { background: repeating-linear-gradient(45deg, #141414, #141414 12px, #1a1a1a 12px, #1a1a1a 24px); border: 1px dashed #333; }
.lock { background: rgba(42,124,199,.15); }

.subnav a { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.subnav a.active { background: var(--accent); color: var(--on-primary); border-color: var(--accent); }
.subnav .logout { color: #ff9a9d; }
.stat { background: var(--card); color: var(--muted); border: 1px solid var(--line); }
.stat .n { color: var(--accent-light); }
.status-pending { background: rgba(42,124,199,.15); color: #8cc3f2; }
.status-approved { background: rgba(31,122,77,.2); color: #8fdcae; }
.status-rejected { background: rgba(179,38,30,.2); color: #ff9a9d; }
.table tr:hover td { background: #1b1b1b; }

.person-img { background: #1e1e1e; }
.person-role { background: var(--accent); color: var(--on-primary); }
.friend { color: var(--text); }
.friend:hover { background: #202020; }
.friend img { border-radius: 6px; }

.footer { background: #000; border-top: 1px solid #1d1d1d; }

/* ---------- Hinweis-Popup ---------- */
.modal { max-width: 440px; width: calc(100% - 32px); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius);
  background: var(--card); color: var(--text); padding: 26px 26px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.6); text-align: center; }
.modal[open]:not(:modal) { position: fixed; top: 20vh; z-index: 100; margin: 0 auto; left: 0; right: 0; }
.modal::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.modal-icon { font-size: 2.2rem; margin-bottom: 6px; }
.modal h2 { margin-bottom: .4em; }
.modal p { color: var(--muted); }
.modal p strong { color: var(--text); }
.modal form { margin-top: 16px; }
.btn-accent:hover { background: #3a8fdc; }
.badge { color: #fff; }

/* ---------- Social-Media-Kasten ---------- */
.social-tabs { display: flex; gap: 6px; margin: 4px 0 14px; }
.social-tab { flex: 1; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.social-tab:hover { color: var(--text); border-color: #444; }
.social-tab.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.social-panel > .btn { margin-top: 12px; }
.hero { background-position: center 5%; }

/* ---------- Startseite: Bild komplett, Text blendet beim Scrollen ein ---------- */
.hero-full { position: relative; background: #000; display: flex; justify-content: center; overflow: hidden; }
.hero-full img { display: block; width: 100%; height: auto; max-height: calc(100vh - 66px); max-height: calc(100svh - 66px); object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); }
.hero-full::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.scroll-hint { position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; text-decoration: none; font-size: 1.6rem; line-height: 1; border: 1px solid rgba(255,255,255,.35);
  animation: hint 2.2s ease-in-out infinite; }
.scroll-hint:hover { background: var(--primary); color: #fff; }
@keyframes hint { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (max-width: 700px) { .scroll-hint { display: none; } }

.intro { padding: 44px 0 8px; text-align: center; scroll-margin-top: 70px; }
.intro .kicker { font-size: .85rem; text-transform: uppercase; letter-spacing: .25em; color: var(--accent-light, var(--accent)); margin-bottom: 8px; }
.intro h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .25em; }
.intro p { font-size: 1.12rem; color: var(--muted); max-width: 680px; margin: 0 auto; }
.intro .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.intro .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.intro .btn-ghost:hover { background: #fff; color: #111; }

.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js-reveal .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } .scroll-hint { animation: none; } }
.hero-full::after { height: 16px; }
.scroll-hint { left: auto; right: 24px; bottom: 22px; transform: none; animation-name: hint2; }
@keyframes hint2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 700px) { .hero-full img { -webkit-mask-image: none; mask-image: none; } }

/* ---------- Startseite: Gruppenbild als fester Hintergrund ---------- */
.page-bg { position: fixed; inset: 0; z-index: -1; background: #000 center top / cover no-repeat; }
.page-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.78) 100%); }
.page-start { background: #000; }
.page-start main { padding-bottom: 64px; }
.page-start .intro { position: relative; min-height: calc(100vh - 66px); min-height: calc(100svh - 66px); display: flex; align-items: flex-end;
  padding: 40px 0 90px; text-align: left; }
.intro-box { max-width: 620px; padding: 26px 28px; border-radius: var(--radius); background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.08); }
.page-start .intro .btns { justify-content: flex-start; }
.page-start .intro p { color: #ddd8cf; margin: 0; }
.page-start .intro h1 { color: #fff; }
.page-start .scroll-hint { right: auto; left: 50%; margin-left: -22px; bottom: 24px; }
.page-start .grid-main { margin-top: 0; scroll-margin-top: 80px; }
.page-start .section-title h2 { text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.page-start .card { background: rgba(18,18,18,.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.page-start .footer { position: relative; }
@media (max-width: 700px) {
  .page-bg { background-position: 60% top; }
  .page-start .intro { padding-bottom: 70px; }
  .intro-box { padding: 20px; }
  .page-start .scroll-hint { display: grid; }
}
.page-bg { top: 66px; }
.intro-box { max-width: 500px; padding: 20px 24px; background: rgba(0,0,0,.5); }
.intro-box h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.intro-box p { font-size: 1rem; }
.page-start .intro { padding-bottom: 40px; }
@media (max-width: 700px) {
  .page-bg { background-size: 100% auto; background-position: center top; }
  .page-bg::after { background: linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,.15) 50vw, #000 70vw); }
  .page-start .intro { min-height: 0; padding-top: calc(66.7vw + 8px); padding-bottom: 24px; }
  .page-start .scroll-hint { display: none; }
  .intro-box { background: rgba(20,20,20,.9); }
}

/* ---------- Social-Feed (vom Server zwischengespeichert) ---------- */
.feed { display: grid; gap: 10px; }
.feed-item { display: flex; gap: 12px; align-items: flex-start; padding: 8px; margin: 0 -8px; border-radius: 10px; color: var(--text); text-decoration: none; transition: background .15s; }
.feed-item:hover { background: rgba(255,255,255,.05); }
.feed-img { position: relative; flex: none; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: #222; }
.feed-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 1.3rem; text-shadow: 0 1px 6px #000; }
.feed-text { font-size: .9rem; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.feed-date { display: block; font-size: .78rem; color: var(--accent-light, var(--muted)); font-weight: 600; margin-bottom: 2px; }
.social-more { margin-top: 12px; }
