/* Öffentliche Vereinsseite (/v/{slug}) – eigenes Layout ohne Sidebar, Mobile-First.
   Vereinsfarben kommen als CSS-Variablen aus verein_css_vars (Fallback unten). */
:root {
  --green: #1F7A4A;
  --green-dark: #175c38;
  --green-light: #e6f1eb;
  --accent: #f0a500;
}

body.oeff {
  background: #f6f7f8;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2a24;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.oeff-header {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
}
.oeff-header a:not(.btn) { color: #fff; text-decoration: none; }
.oeff-logo {
  height: 44px; width: 44px; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 3px;
}
.oeff-name { font-weight: 700; font-size: 1.1rem; line-height: 1.2; overflow-wrap: anywhere; }
/* Flex-Kinder dürfen schmaler als ihr Text werden (sonst schieben lange Namen alles hinaus) */
.min-w-0 { min-width: 0; }

/* „Als meinen Verein merken" – Stern immer gold, unabhängig von den Vereinsfarben.
   Nicht gemerkt: leerer Stern + goldener Rand; gemerkt: gefüllter Stern auf goldenem Grund.
   Eigene Klasse statt .btn, damit Fokus-/Gedrückt-Farben von Bootstrap nicht dazwischenfunken. */
.oeff-merken {
  --gold: #f5b301;
  display: inline-flex; align-items: center; gap: .3rem;
  min-height: 31px; padding: .2rem .55rem; border-radius: 8px;
  border: 1.5px solid var(--gold); background: rgba(0, 0, 0, .15);
  color: #fff; font-size: .875rem; line-height: 1.2; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.oeff-merken .bi { color: var(--gold); font-size: 1.05rem; }
.oeff-merken.gemerkt { background: var(--gold); }
.oeff-merken.gemerkt .bi, .oeff-merken.gemerkt span { color: #3d2c00; }
.oeff-merken:focus { outline: none; }
.oeff-merken:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.oeff-hinweis {
  position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 2000;
  transform: translateX(-50%); max-width: calc(100% - 2rem);
  background: #222; color: #fff; padding: .6rem 1rem; border-radius: 10px;
  font-size: .9rem; box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.oeff-hinweis .bi { color: #f5b301; }
.oeff-mein-verein { color: #8a6200; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.oeff-mein-verein .bi { color: #f5b301; }
.oeff-ort  { font-size: .8rem; opacity: .85; }

.oeff-nav { background: var(--green-dark); }
.oeff-nav .nav-link {
  color: rgba(255,255,255,.8); font-size: .9rem; white-space: nowrap; padding: .6rem .8rem;
}
.oeff-nav .nav-link.active, .oeff-nav .nav-link:hover { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.oeff-nav .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }

main.oeff-main { flex: 1; }

.oeff-karte {
  background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.oeff-titel {
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7570;
}
.oeff-titel i { color: var(--green); }

.oeff-gebet { text-align: center; padding: .5rem .25rem; border-radius: 10px; background: var(--green-light); }
.oeff-gebet .zeit  { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); }
.oeff-gebet .label { font-size: .72rem; color: #5b6660; }

.oeff-datum {
  min-width: 52px; text-align: center; border-radius: 10px; background: var(--green-light); color: var(--green-dark);
  padding: .3rem .4rem; line-height: 1.1;
}
.oeff-datum .tag   { font-size: 1.25rem; font-weight: 700; }
.oeff-datum .monat { font-size: .7rem; text-transform: uppercase; }

.oeff-eintrag { color: inherit; text-decoration: none; display: block; }
.oeff-eintrag:hover .oeff-eintrag-titel { color: var(--green); }
.oeff-eintrag-titel { font-weight: 600; overflow-wrap: anywhere; }

/* Bilder nie zuschneiden (Flyer im Hochformat): ganzes Bild auf hellem Vereinsfarben-Hintergrund */
.oeff-bild {
  width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block;
  background: var(--green-light); border-radius: 12px 12px 0 0;
}
.oeff-bild-gross {
  display: block; width: 100%; max-height: 80vh; object-fit: contain;
  background: var(--green-light); border-radius: 12px;
}
.oeff-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
[data-vollbild] { cursor: zoom-in; }

/* Vollbild-Ansicht (oeffentlich.js) */
.oeff-vollbild {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .9); padding: 16px; cursor: zoom-out;
}
.oeff-vollbild img { max-width: 100%; max-height: 100%; object-fit: contain; }
.oeff-vollbild-zu {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 16px;
  background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1;
}

.progress-bar.oeff-fortschritt { background: var(--green); }

.oeff-cta {
  background: var(--green-light); border: 1px solid rgba(0,0,0,.05); border-radius: 14px;
}
.btn-oeff { background: var(--green); border-color: var(--green); color: #fff; }
.btn-oeff:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-oeff-outline { border-color: var(--green); color: var(--green); }
.btn-oeff-outline:hover { background: var(--green); color: #fff; }

.oeff-text { white-space: pre-line; }

.oeff-footer { background: #1f2a24; color: rgba(255,255,255,.7); font-size: .85rem; }
.oeff-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.oeff-footer a:hover { color: #fff; text-decoration: underline; }

.oeff-tabelle th { font-size: .75rem; color: #6b7570; font-weight: 600; }
.oeff-tabelle .heute td { background: var(--green-light); font-weight: 600; }

/* Embed-Modus (?embed=1) – eingebettet auf der Vereinswebseite: Höhe richtet sich nach dem Inhalt
   (oeffentlich.js meldet sie an embed.js), sonst würde min-height das iframe nie schrumpfen lassen */
body.oeff-embed { min-height: 0; }
