/*
================================================================================
 Datei:  /assets/css/style.css
 Projekt: www.bdsm-muenster.com – BDSM Stammtisch Münster & Münsterland
 Zweck:  Zentrales Stylesheet – ALLES CSS hier, KEIN Inline-CSS in PHP-Dateien
================================================================================
*/

/* ============================================================
   1) CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --green:          #006400;
  --text:           #1f1f1f;
  --bg:             #f2f2f2;
  --page:           #ffffff;
  --soft:           #f4f6f4;
  --border:         #dcdcdc;
  --line:           #e9e9e9;
  --font:           Verdana, Arial, sans-serif;
  --max-width:      1100px;
  --radius:         6px;
  --radius-lg:      14px;
  --shadow:         0 18px 40px rgba(0,0,0,.12);
  --shadow-soft:    0 8px 20px rgba(0,0,0,.06);
  --shadow-strong:  0 26px 55px rgba(0,0,0,.18);
  --shadow-strong2: 0 12px 28px rgba(0,0,0,.12);
  --shadow-inset:   inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(0,0,0,.04);
  --thumb-w:        140px;
}

/* ============================================================
   2) RESET / BASE
   ============================================================ */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--green); text-decoration: none; }

a:focus,
button:focus,
summary:focus {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ============================================================
   3) LEGACY LAYOUT (Rückwärtskompatibilität)
   ============================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 1rem; }
.logo      { font-weight: bold; color: var(--green); }
.main-nav ul { list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0; }
.main-nav a  { font-weight: bold; }

.event-box { background: var(--soft); border-left: 6px solid var(--green); padding: 1.5rem; border-radius: var(--radius); }
.event-actions { margin-top: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary,
.btn-secondary { padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: bold; }
.btn-primary   { background: var(--green); color: #fff; }
.btn-secondary { border: 2px solid var(--green); }

.values    { background: var(--soft); padding: 2rem 0; }
.grid-4    { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.value-box { background: #fff; border: 1px solid var(--border); padding: 1rem; border-radius: var(--radius); text-align: center; font-weight: bold; }

details  { margin-bottom: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem; }
summary  { cursor: pointer; font-weight: bold; }

/* ============================================================
   4) PAGE WRAPPER
   ============================================================ */
.page {
  max-width: 1060px;
  margin: 26px auto;
  background: var(--page);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
}
.page--wide { max-width: 1120px; }

/* ============================================================
   5) HEADER
   ============================================================ */
header.site-header {
  background: linear-gradient(#ffffff, #fafafa);
  border-bottom: 1px solid var(--border);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
}
.brand       { font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 10px; }
.brand a     { color: var(--text); }
.brand a:hover{ color: var(--green); }
.brand .dot  { width: 10px; height: 10px; border-radius: 999px; background: var(--green); display: inline-block; }

nav.main-nav ul      { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0; flex-wrap: wrap; }
nav.main-nav a       { font-weight: 700; color: var(--text); }
nav.main-nav a:hover { color: var(--green); }

/* ============================================================
   6) HERO
   ============================================================ */
.hero { padding: 0 18px; background: transparent; }
.hero-image {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

/* ============================================================
   7) MAIN CONTENT
   ============================================================ */
main.inner { padding: 18px 20px 22px; }
.stack     { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }

/* ============================================================
   8) LAYOUT GRIDS
   ============================================================ */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
@media (min-width: 980px) { .layout { grid-template-columns: 1.12fr .88fr; } }

.col { display: flex; flex-direction: column; gap: 16px; }

.infos-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 14px; align-items: start; }
@media (max-width: 980px) { .infos-grid { grid-template-columns: 1fr; } }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }

.row.tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
@media (max-width: 720px) { .row.tiles { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }

/* ============================================================
   9) CARDS
   ============================================================ */
.card    { background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.04); }
.card h1 { margin: 0; color: var(--green); font-size: 1.55rem; font-weight: 900; line-height: 1.25; }
.card h2 { margin: 0 0 10px; color: var(--green); font-size: 1.25rem; font-weight: 900; }
.card h3 { margin: 0 0 8px;  color: var(--green); font-size: 1.05rem; font-weight: 900; }

/* ============================================================
   10) TILES (3D-Kachel)
   ============================================================ */
.tile {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border: 1px solid rgba(0,100,0,.22);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-strong2);
  position: relative;
  overflow: hidden;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 16px;
  box-shadow: var(--shadow-inset);
}
.tile h2 { margin: 0 0 10px; font-weight: 900; color: var(--green); font-size: 1.05rem; }
.tile h3 { margin: 0 0 8px;  font-weight: 900; color: var(--green); font-size: 1.0rem; }

.work-item    { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.04); }
.work-item a  { display: block; }
.work-item .image { margin-bottom: 10px; }
.work-item h3 { margin: 6px 0 8px; color: var(--green); font-size: 1.05rem; }
.work-item p  { margin: 0; color: #333; }

/* ============================================================
   11) EVENTS – Termin-Cards
   ============================================================ */
.event { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: 0 10px 22px rgba(0,0,0,.06); }

.event-grid {
  display: grid;
  grid-template-columns: var(--thumb-w) 1fr;
  gap: 14px;
  align-items: start;
}
.thumbBox {
  width: var(--thumb-w); max-width: var(--thumb-w);
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 8px; box-shadow: 0 8px 18px rgba(0,0,0,.06); overflow: hidden; display: block;
}
.thumbBox img { width: 100%; height: auto; display: block; border-radius: 10px; }

.eventTheme          { margin: 0 0 6px; color: darkgreen; font-weight: 900; line-height: 1.25; }
h1.eventTheme        { font-size: 1.55rem; }
h3.eventTheme        { font-size: 1.25rem; }
h4.eventTheme        { font-size: 1.05rem; }
.eventTheme a        { color: darkgreen; font-weight: 900; text-decoration: none; }
.eventTheme a:hover  { text-decoration: underline; text-decoration-color: rgba(0,100,0,.35); }

.line     { margin: 0; }
.whenLine { font-weight: normal; color: #222; margin-top: 2px; margin-bottom: 0; }

.metaLabel { font-weight: 900; color: var(--green); }
.metaText  { margin-top: 4px; color: #333; font-weight: 700; }
.thema     { font-weight: 900; font-size: 1.2rem; color: #111; margin: 0 0 6px 0; }

.detailLinkRow       { margin-top: 10px; display: flex; gap: 10px; align-items: flex-start; }
.detailLinkRow .arrow{ color: var(--green); font-weight: 900; }
.detailLinkRow a     { color: var(--green); font-weight: 900; text-decoration: none; }
.detailLinkRow a:hover { text-decoration: underline; }

/* KV-Blöcke (Termindetail) */
.kv { display: grid; grid-template-columns: 1fr; gap: 8px; }
.kv .line {
  background: rgba(0,100,0,.05);
  border: 1px solid rgba(0,100,0,.14);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  margin: 0;
}

/* ============================================================
   12) KALENDER
   ============================================================ */
.banner-wrap     { display: flex; justify-content: center; }
.banner-wrap img { width: 520px; max-width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-soft); }

.cal-tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-flow: row; gap: 14px; }
@media (max-width: 720px) { .cal-tiles { grid-template-columns: 1fr; } }

.cal-tile { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: 0 10px 22px rgba(0,0,0,.06); }
.cal-tile .event-grid { grid-template-columns: var(--thumb-w) 1fr; gap: 12px; }

@media (max-width: 420px) {
  .cal-tile .event-grid { grid-template-columns: 1fr; }
  .event-grid            { grid-template-columns: 1fr; }
}

.jumpmenu { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; font-size: .92rem; color: #444; }
.jumpmenu select { font-family: var(--font); font-size: .92rem; color: var(--text); padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; max-width: 100%; }
.jumpmenu select:focus { outline: 3px solid var(--green); outline-offset: 2px; }

.monthTitle {
  margin: 18px 0 10px;
  color: var(--green);
  font-weight: 900;
  font-size: 1.15rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  scroll-margin-top: 20px;
}
.monthTitle:first-of-type { margin-top: 4px; }
.monthTitle .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--green); display: inline-block; flex: 0 0 auto; }

/* ============================================================
   13) COUNTDOWN
   ============================================================ */
.countdown-row { margin-top: 10px; }
.countdown {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  color: var(--green); font-weight: bold;
}

/* ============================================================
   14) NAVIGATION / PILLS
   ============================================================ */
.navlinks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900;
  border: 1px solid rgba(0,100,0,.25);
  background: rgba(0,100,0,.06);
  padding: 8px 10px; border-radius: 999px;
  line-height: 1; white-space: nowrap; color: var(--green);
}
button.pill {
  cursor: pointer; font-family: var(--font); font-size: 14px;
  appearance: none; -webkit-appearance: none;
}
button.pill:active { transform: translateY(1px); }

.az-nunav-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-weight: 700; font-size: 12px; line-height: 1;
  text-decoration: none; border: 2px solid currentColor; transform: translateY(-1px);
}
.az-nunav-info:hover { opacity: .9; text-decoration: none; }

/* ============================================================
   15) CONTENT-KOMPONENTEN
   ============================================================ */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: #ffffff; border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(0,0,0,.04); margin-bottom: 10px; font-weight: 900; }
.badge img { width: 18px; height: auto; display: block; }

.intro { margin-top: 10px; color: #222; }
.muted { color: #444; margin: 0; }

.note         { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 18px rgba(0,0,0,.04); }
.note strong  { color: var(--green); }

.hint         { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 18px rgba(0,0,0,.04); margin-top: 10px; }
.hint.good    { border-color: rgba(0,100,0,.35); }
.hint.bad     { border-color: rgba(220,38,38,.35); }
.hint strong  { color: var(--green); }

.list        { margin: 0.3rem 0 0.3rem 1.05rem; padding: 0; }
.list li     { margin: 0.18rem 0; }

.pill-list   { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill-list .pill { font-size: .92rem; font-weight: 700; color: #1f1f1f; background: #fff; border-color: var(--border); }

.cta { font-weight: 900; color: var(--green); margin-top: 8px; }

.content p            { margin: 0 0 12px; color: #111; }
.content p:last-child { margin-bottom: 0; }

.desc      { overflow-wrap: anywhere; }
.desc img  { max-width: 100%; height: auto; border-radius: 12px; }
.desc a    { font-weight: 900; }

.trenner     { margin: 10px 0 2px; text-align: center; }
.trenner img { width: 100%; max-width: 600px; height: auto; }

/* ============================================================
   16) FORMULARE
   ============================================================ */
.formgrid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .row2 { grid-template-columns: 1fr; } }

label { display: block; font-weight: 900; color: #222; margin: 0 0 6px 0; }

input[type="text"],
select {
  width: 100%; padding: 12px; border-radius: 12px;
  border: 1px solid rgba(0,100,0,.45); background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 22px rgba(0,0,0,.06);
  font-family: var(--font); font-size: 16px; outline: none;
}
input[type="text"]:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,100,0,.15), inset 0 1px 0 rgba(255,255,255,.7);
}

.checks { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.check  { display: flex; align-items: center; gap: 8px; font-weight: 900; color: #222; background: rgba(0,100,0,.06); border: 1px solid rgba(0,100,0,.18); padding: 10px 12px; border-radius: 999px; }
.check input { transform: scale(1.15); }

.alert     { border-radius: 12px; padding: 10px 12px; font-weight: 900; margin-top: 10px; }
.alert.ok  { background: rgba(0,100,0,.08); border: 1px solid rgba(0,100,0,.25); color: #0b3b0b; }
.alert.err { background: rgba(176,0,32,.08); border: 1px solid rgba(176,0,32,.22); color: #7a0016; }

.form-wrap { width: 100%; max-width: 920px; margin: 0 auto; }
.form-hint { margin: 0 0 10px; color: #222; }
#awf-form  { width: 100%; }

/* ============================================================
   17) BUTTONS
   ============================================================ */
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 14px; border-radius: 14px; font-weight: 900;
  border: 2px solid var(--green); background: #fff; color: var(--green);
  box-shadow: 0 14px 28px rgba(0,0,0,.10); cursor: pointer;
  width: 100%; font-family: var(--font); font-size: 16px; text-align: center; text-decoration: none;
}
.btn.primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn.outline { border: 2px solid var(--green); color: var(--green); background: #fff; }
.btn.small   { padding: 8px 10px; border-width: 1px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
@media (min-width: 980px) { .btn.half { width: calc(50% - 5px); } }

/* ============================================================
   18) MEDIEN / BILDER
   ============================================================ */
.media {
  border-radius: 14px; border: 1px solid rgba(0,100,0,.25);
  box-shadow: var(--shadow-strong2); width: 100%; height: auto; display: block; background: #fff;
}

.media-share {
  display: block; overflow: hidden; border-radius: 14px;
  border: 1px solid rgba(0,100,0,.25); box-shadow: var(--shadow-strong2);
  background: #fff; cursor: zoom-in;
}
.media-share img          { width: 100%; height: auto; display: block; transition: transform .35s ease; }
.media-share:hover img    { transform: scale(1.035); }

.qrwrap { display: flex; justify-content: center; align-items: center; margin-top: 12px; }
.qrwrap a.qr-link {
  display: inline-flex; justify-content: center; align-items: center;
  border-radius: 18px; border: 1px solid rgba(0,100,0,.28);
  box-shadow: 0 18px 40px rgba(0,0,0,.16); background: #fff; overflow: hidden; padding: 10px;
}
.qrwrap a.qr-link:hover { box-shadow: 0 24px 48px rgba(0,0,0,.20); }
.qrwrap img             { width: 260px; max-width: 100%; height: auto; display: block; background: #fff; }

.gallery     { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gallery img { max-width: 160px; height: auto; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(0,0,0,.04); background: #fff; }

.ico     { width: 24px; height: auto; vertical-align: middle; margin-right: 6px; }
.ico-top { width: 32px; height: auto; display: block; margin: 0 auto 8px; }

/* ============================================================
   19) SIDEBOX / SPRUCH / WHATSAPP
   ============================================================ */
.sidebox    { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.04); }
.sidebox h3 { margin: 0 0 10px; color: var(--green); font-size: 1.05rem; }

.spruch-wrap     { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.spruch-wrap img { width: 300px; height: 300px; max-width: 100%; max-height: 300px; display: block; border-radius: 12px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-soft); object-fit: contain; }

.spruch-videos           { display: flex; flex-direction: column; gap: 12px; }
.spruch-video            { border-top: 1px solid rgba(0,0,0,.08); padding-top: 12px; }
.spruch-video:first-child{ border-top: none; padding-top: 0; }
.spruch-video a          { display: block; color: var(--green); text-decoration: none; }
.spruch-video a:hover    { text-decoration: underline; }
.spruch-video img        { max-width: 250px; max-height: 250px; width: 100%; height: auto; margin: 0 auto; display: block; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-soft); background: #fff; object-fit: cover; }
.spruch-video .open      { text-align: center; margin: 8px 0 0; color: var(--green); font-style: italic; font-weight: normal; }
.spruch-video .caption   { text-align: center; margin: 8px 0 0; color: #222; }
.spruch-video .caption b { color: var(--green); }

.wa-channel     { margin-top: 12px; border-top: 1px solid rgba(0,0,0,.08); padding-top: 12px; }
.wa-channel a   { display: block; text-decoration: none; color: inherit; }
.wa-channel img { width: 100%; max-width: 250px; height: auto; margin: 0 auto; display: block; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-soft); background: #fff; object-fit: cover; }

/* ============================================================
   20) SHARE
   ============================================================ */
.sharebox    { margin: 14px 0 2px; }
.share-links { margin-top: 10px; }
.share-sep   { height: 1px; background: var(--line); border: 0; margin: 14px 0; }
.share-hint  { display: flex; justify-content: center; margin-top: 12px; }
.share-hint .pill { background: var(--green); color: #fff; border-color: var(--green); font-size: 13px; }

/* ============================================================
   21) LINKLISTE
   ============================================================ */
.links-list { display: flex; flex-direction: column; gap: 14px; }

.link-item  { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px; box-shadow: 0 10px 22px rgba(0,0,0,.06); display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.link-thumb { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 8px 18px rgba(0,0,0,.05); background: #fff; }
.link-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--green); font-weight: 900; font-size: 1.25rem; line-height: 1.25; margin: 0 0 6px; }
.link-meta  { color: #6b7280; font-size: .92rem; margin-bottom: 10px; }
.link-desc  { color: #1f2937; line-height: 1.55; word-break: break-word; }
.link-cta   { margin-top: 10px; font-weight: 900; }
.link-cta a:hover { text-decoration: underline; }
.rating     { width: 100px; height: 20px; display: inline-block; vertical-align: middle; }

.banner-block { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; box-shadow: 0 10px 22px rgba(0,0,0,.06); }
code { display: block; background: #f3f4f6; padding: 14px; border-radius: 10px; white-space: pre-wrap; word-break: break-word; border: 1px solid #e5e7eb; }

@media (max-width: 920px) { .link-item { grid-template-columns: 1fr; } }

/* ============================================================
   22) FAQ
   ============================================================ */
.faq-cat h2,
.faq-cat-title { color: darkgreen; font-weight: 700; font-size: 1.35rem; margin: 0 0 .6rem; border-bottom: 1px solid #e5e7eb; padding-bottom: 4px; }

details.faq-item       { margin: .65rem 0; border: 1px solid #e5e7eb; border-radius: 12px; padding: .6rem .8rem; background: #fafafa; }
details.faq-item[open] { background: #fff; box-shadow: 0 10px 22px rgba(0,0,0,.06); }

summary.faq-q           { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-left: 22px; user-select: none; }
summary.faq-q::-webkit-details-marker { display: none; }
summary.faq-q::before   { content: "▶"; position: absolute; left: 0; top: 0; color: var(--green); transition: transform .2s ease; }
details[open] > summary.faq-q::before { transform: rotate(90deg); }

.faq-a { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: .6rem; align-items: start; }
@media (max-width: 640px) { .faq-a { grid-template-columns: 1fr; } }
.faq-more  { margin: 10px 0 0; }
.faq-thumb { max-width: 150px; max-height: 150px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.04); }

/* ============================================================
   23) MEDIEN-TABS (bdsm-medien.php)
   ============================================================ */
.tabs    { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.tab-btn { appearance: none; border: 1px solid rgba(0,0,0,.15); background: #fff; color: var(--green); padding: 10px 14px; border-radius: 12px; cursor: pointer; font-weight: 900; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.04); font-family: var(--font); }
.tab-btn img { width: 20px; height: auto; display: block; }
.tab-btn[aria-selected="true"] { background: #e9ece9; border-color: rgba(0,100,0,.25); }
.tab-panel        { display: none; margin-top: 14px; }
.tab-panel.active { display: block; }

.panel-title     { margin: 0 0 10px; color: var(--green); font-weight: 900; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.panel-title img { width: 26px; height: auto; display: block; }

details.media-item       { margin: .65rem 0; border: 1px solid #e5e7eb; border-radius: 12px; padding: .6rem .8rem; background: #fafafa; }
details.media-item[open] { background: #fff; box-shadow: 0 10px 22px rgba(0,0,0,.06); }

summary.media-q           { font-weight: 900; cursor: pointer; list-style: none; position: relative; padding-left: 22px; user-select: none; color: var(--green); }
summary.media-q::-webkit-details-marker { display: none; }
summary.media-q::before   { content: "▶"; position: absolute; left: 0; top: 0; color: var(--green); transition: transform .2s ease; }
details[open] > summary.media-q::before { transform: rotate(90deg); }

.media-body   { display: grid; grid-template-columns: 200px 1fr; gap: 14px; margin-top: .75rem; align-items: start; }
.media-cover  { width: 100%; max-width: 180px; height: auto; display: block; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.04); }
.media-desc   { color: #111; }
.info-block   { margin-top: 12px; padding: 10px 12px; background: #fff; border: 1px solid #d1d5db; border-radius: 12px; box-shadow: 0 2px 6px rgba(15,23,42,.10); color: #111; line-height: 1.7; }
.info-block strong { color: var(--green); font-weight: 900; }
.info-block a      { color: var(--green); font-weight: 900; }

@media (max-width: 760px) { .media-body { grid-template-columns: 1fr; } .media-cover { max-width: 220px; } }

/* ============================================================
   24) CHRONIK / STATISTIK
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 10px; }
.mini       { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 18px rgba(0,0,0,.04); }
.mini .row  { display: flex; align-items: center; gap: 8px; }
.mini img   { height: 18px; display: block; }
.mini .val  { font-weight: 900; color: var(--text); }
.mini .lbl  { color: #333; }

.table-wrap {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(145deg,#f3f4f6,#e5e7eb);
  border: 1px solid rgba(0,0,0,.06); border-radius: 14px; padding: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
table.overall { width: 100%; border-collapse: separate; border-spacing: 0 6px; min-width: 640px; }
table.overall th { background: #fff; border: 1px solid var(--border); padding: 8px 10px; text-align: left; white-space: nowrap; font-size: .95rem; box-shadow: 0 1px 0 rgba(255,255,255,.8); }
table.overall td { background: #fff; border: 1px solid var(--border); padding: 8px 10px; vertical-align: top; font-size: .95rem; }
table.overall tr:nth-child(even) td { background: #9ca3af; }
table.overall td.total { background: linear-gradient(145deg,#d4d4d8,#e5e7eb) !important; font-weight: 900; text-align: right; min-width: 80px; }
.dash { color: #666; }

.chart-wrap        { background: linear-gradient(145deg,#f9fafb,#eef2ff); border: 1px solid var(--border); border-radius: 14px; padding: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.04); }
.chart-wrap canvas { width: 100%; max-height: 260px; }

details.year-details { border-radius: 14px; background: linear-gradient(145deg,#f3f4f6,#e5f3e8); border: 1px solid rgba(0,0,0,.08); overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.04); }
details.year-details summary { cursor: pointer; list-style: none; padding: 10px 12px; background: linear-gradient(135deg,#e5f3e8,#eef2ff); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 900; color: #0f172a; border-bottom: 1px solid rgba(0,0,0,.06); }
details.year-details summary::-webkit-details-marker { display: none; }
.summary-left  { display: flex; align-items: center; gap: 8px; }
.summary-arrow { font-size: 1.15rem; line-height: 1; }
.summary-info  { font-weight: normal; color: #4b5563; font-size: .92rem; }

.year-body  { padding: 12px; }
.month-sep  { margin: 12px 0 6px; padding-top: 8px; border-top: 1px solid rgba(0,0,0,.12); font-weight: 900; color: #0f172a; }

.event-row      { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.event-row.alt  { background: #9ca3af; }
.event-date     { color: #555; font-weight: 700; margin-bottom: 2px; }
.event-thema    { color: #111; }

.lines          { display: flex; flex-direction: column; gap: 6px; }
.chronik-line   { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #e5e7eb; border-radius: 10px; color: #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); flex-wrap: wrap; }
.chronik-line img   { height: 18px; }
.chronik-line .label{ min-width: 70px; font-weight: 900; }
.muted-italic   { color: #555; font-style: italic; }

/* ============================================================
   25) KASSENBUCH
   ============================================================ */
.table-wrap.kassenbuch-wrap { overflow: auto; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; padding: 0; }
table.kassenbuch { width: 100%; border-collapse: collapse; min-width: 920px; }
.kassenbuch th,
.kassenbuch td    { padding: 10px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.kassenbuch th    { text-align: left; background: #fff; font-weight: 900; color: var(--green); position: sticky; top: 0; z-index: 1; }
.kassenbuch tr:nth-child(even) td { background: #fafafa; }
.col-datum    { width: 250px; white-space: nowrap; }
.col-ein,
.col-aus,
.col-saldo    { width: 170px; text-align: right; white-space: nowrap; }
.col-kommentar{ width: auto; min-width: 260px; }
.row-anfang td{ background: #e8f5e9 !important; font-weight: 900; }
.saldo-positiv{ color: #065f46; font-weight: 900; }
.saldo-negativ{ color: #991b1b; font-weight: 900; }

.kasse-cards { display: none; flex-direction: column; gap: 12px; }
.kasse-card  { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.04); }
.kasse-top   { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.kasse-date  { font-weight: 900; color: #111; }
.kasse-saldo { font-weight: 900; white-space: nowrap; }
.kasse-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.kasse-field { border: 1px solid #eef0f2; border-radius: 10px; padding: 8px 10px; background: #fafafa; }
.kasse-field b   { display: block; color: var(--green); font-size: 12px; margin-bottom: 2px; letter-spacing: .2px; }
.kasse-field .val{ font-weight: 800; color: #111; }
.kasse-comment   { margin-top: 10px; color: #222; border-top: 1px solid #eef0f2; padding-top: 10px; word-break: break-word; }

/* ============================================================
   26) ALTERS-KACHELN
   ============================================================ */
.age-grid        { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 12px; }
.age-card        { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 12px; box-shadow: 0 8px 20px rgba(0,0,0,.06); text-align: center; }
.age-card img    { width: 44px; height: auto; display: block; margin: 0 auto 8px; }
.age-card .label { font-weight: 900; color: #111; margin-bottom: 4px; }
.age-card .value { font-size: 1.05rem; }

/* ============================================================
   27) THEMENPOOL
   ============================================================ */
ul.topic-list    { list-style: none; padding: 0; margin: 10px 0 0; }
ul.topic-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid #e5e7eb; background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.04); margin: 10px 0; }
ul.topic-list li .bullet { width: 10px; height: 10px; border-radius: 999px; background: var(--green); margin-top: 6px; flex: 0 0 auto; }
ul.topic-list li .txt    { font-weight: 700; color: #1f2937; line-height: 1.35; word-break: break-word; }

/* ============================================================
   28) WOHER-TABELLEN
   ============================================================ */
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th,
.tbl td   { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; }
.tbl th   { text-align: left; background: #fff; font-weight: 900; color: var(--green); }
.tbl tr:nth-child(even) td { background: #fafafa; }
.tbl .num { text-align: right; width: 120px; white-space: nowrap; }

/* ============================================================
   29) FOOTER
   ============================================================ */
footer.site-footer { background: var(--green); color: #fff; padding: 14px 18px; margin-top: 18px; text-align: center; }

.footer-line       { color: #fff; font-size: 16px; line-height: 1.7; margin: 2px 0; word-break: break-word; }
.footer-line a     { color: #fff; font-size: 16px; text-decoration: none; }
.footer-line a:hover{ text-decoration: underline; }

.footer-bullet     { padding: 0 8px; opacity: .95; }

.footer-flags      { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.footer-flags a    { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.08); text-decoration: none; font-size: 14px; color: #fff; }
.footer-flags a span{ color: #fff; }
.footer-flags a:hover{ text-decoration: underline; }
.footer-flags img  { width: 22px; height: auto; display: block; }

/* ============================================================
   30) RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  main.inner  { padding: 14px 14px 18px; }
  .hero       { padding: 0 14px; }
  .card       { padding: 14px; }
  .card h1    { font-size: 1.35rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .age-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .event-row    { grid-template-columns: 1fr; }
  table.overall { min-width: 520px; }
}
@media (max-width: 700px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  nav.main-nav ul          { flex-wrap: wrap; }
}
@media (max-width: 640px) { .faq-a { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .link-item { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .table-wrap.kassenbuch-wrap { display: none; }
  .kasse-cards                { display: flex; }
}

/* ============================================================
   31) DRUCK
   ============================================================ */
@media print {
  body { margin: 8mm; font-size: 12px; }
  a    { color: #000; text-decoration: none; }
}

/* ============================================================
   32) ADDENDUM – fehlende Klassen
   ============================================================ */

/* Stack Below (Vollbreite unter 2-Spalten-Layout) */
.stack-below {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

/* Kassenbuch Table-Wrap (explizit für Mobile-Toggle) */
.table-wrap.kassenbuch-wrap { overflow: auto; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; }

/* Korrektur: .kv .line (stammtisch-termin.php – in HTML muss class="line" statt "kv-line" stehen) */
.kv .line {
  background: rgba(0,100,0,.05);
  border: 1px solid rgba(0,100,0,.14);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  margin: 0;
}

/* Print-Kalender (kalender.php) */
.page-table { width: 100%; border-collapse: collapse; }
.page-table th, .page-table td { padding: 0; border: none; text-align: left; font-weight: normal; }
.page-header { text-align: center; padding-bottom: 14px; border-bottom: 1px solid #ccc; }
.page-header img.logo { max-width: 100px; height: auto; display: inline-block; margin: 0 auto 4px; }
.page-header .title { font-size: 15px; font-weight: bold; margin: 2px auto; text-align: center; }
.page-header .meta-line { font-size: 11px; margin: 2px auto 6px; text-align: center; }
.spacer-row td { height: 20px; }
.section-header td { padding-top: 0; padding-bottom: 6px; }
.section-header h2 { margin: 0; font-size: 15px; }
.termin-row td { padding: 8px 0; border-bottom: 1px solid #ccc; vertical-align: top; }
.termin-bild { width: 95px; padding-right: 12px !important; }
.termin-bild img { width: 85px; height: 85px; object-fit: cover; border-radius: 8px; display: block; }
.termin-info strong { font-size: 14px; }
.termin-info .line { margin: .1em 0; font-size: 13px; }
.page-footer { text-align: center; padding-top: 12px; font-size: 11px; }

/* ============================================================
   33) FAQ Thumbnail (Floatbox-Vorschaubild)
   ============================================================ */
.faq-thumb {
  max-width: 150px;
  max-height: 150px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  display: block;
}

/* ============================================================
   34) KASSENBUCH – Mobile Toggle via CSS-Media-Query
       (ersetzt den PHP-basierten Breakpoint-Ansatz)
   ============================================================ */
@media (max-width: 900px) {
  .kassenbuch-wrap   { display: none !important; }
  .kasse-cards       { display: flex !important; }
}
@media (min-width: 901px) {
  .kasse-cards       { display: none !important; }
  .kassenbuch-wrap   { display: block !important; }
}

/* ============================================================
   35) STAMMTISCH-TERMIN ANMELDELISTE (includes/stammtisch_termin_anmeldeliste.php)
   ============================================================ */
.stmd-anmeldeliste {
  margin-top: 18px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
}
.stmd-anmeldeliste h3 {
  margin: 0 0 8px 0;
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 900;
}
.stmd-hinweis {
  margin: 0 0 12px 0;
  font-size: .9rem;
  color: #444;
}
.stmd-anmeldeliste ul { margin: 0; padding-left: 18px; }
.stmd-anmeldeliste li { font-weight: 700; color: #222; margin: 4px 0; }

/* ============================================================
   36) STAMMTISCH-TERMIN DETAILS (includes/stammtisch_termin_details.php)
   ============================================================ */
.stmd-details {
  --stmd-green:  #006400;
  --stmd-text:   #1f1f1f;
  --stmd-muted:  #5a5a5a;
  --stmd-line:   #e9e9e9;
  --stmd-border: #dcdcdc;
  --stmd-soft:   #f4f6f4;
  --stmd-shadow: 0 10px 22px rgba(0,0,0,.05);
  font-family: var(--font);
  color: var(--stmd-text);
}
.stmd-details a       { color: var(--stmd-green); text-decoration: none; }
.stmd-details a:hover { text-decoration: underline; text-decoration-color: rgba(0,100,0,.35); }
.stmd-details *       { box-sizing: border-box; }

.stmd-h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: .1px;
}

.stmd-grid { display: grid; grid-template-columns: 1.2fr .95fr; gap: 14px; align-items: start; }
@media (max-width: 920px) { .stmd-grid { grid-template-columns: 1fr; } }

.stmd-meta { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }

.stmd-tile {
  background: #fff;
  border: 1px solid var(--stmd-line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
  min-width: 0;
}
.stmd-k { display: block; color: var(--stmd-muted); font-weight: 900; font-size: .95rem; margin-bottom: 6px; }
.stmd-v { display: block; color: #1a1a1a; font-weight: 900; font-size: 1.05rem; line-height: 1.25; word-break: break-word; }
.stmd-small { display: block; margin-top: 6px; color: var(--stmd-muted); font-weight: 700; font-size: .95rem; line-height: 1.35; }

.stmd-navrow           { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.stmd-navrow a {
  font-weight: 900;
  border: 1px solid rgba(0,100,0,.25);
  background: rgba(0,100,0,.06);
  padding: 8px 10px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  color: var(--stmd-green);
}

.stmd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.stmd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  border: 2px solid var(--stmd-green);
  background: #fff;
  color: var(--stmd-green);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  text-align: center;
  white-space: normal;
  width: 100%;
  text-decoration: none;
  font-family: var(--font);
}
.stmd-btn.primary {
  background: var(--stmd-green);
  color: #fff;
  border-color: var(--stmd-green);
}

.stmd-media {
  background: #fff;
  border: 1px solid var(--stmd-line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--stmd-shadow);
}
.stmd-media img { width: 100%; height: auto; display: block; border-radius: 12px; }

.stmd-divider { height: 1px; background: var(--stmd-line); margin: 14px 0; }

.stmd-section-title {
  margin: 0 0 10px;
  color: var(--stmd-green);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.2;
}

.stmd-content {
  background: #fff;
  border: 1px solid var(--stmd-line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--stmd-shadow);
}

.stmd-gallery       { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.stmd-thumb {
  width: 160px;
  max-width: 46%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  display: block;
}
.stmd-thumb img { width: 100%; height: auto; display: block; border-radius: 10px; }
@media (max-width: 640px) { .stmd-thumb { width: 48%; } }

.stmd-save {
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--stmd-line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--stmd-shadow);
}

.stmd-qr { border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px; background: #fff; text-align: center; }
.stmd-qr img { width: 100%; max-width: 360px; height: auto; display: inline-block; }

.stmd-icalcol { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }

.stmd-icalbtn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  font-weight: 900;
  color: var(--stmd-green);
  text-decoration: none;
}
.stmd-icalbtn img { width: 22px; height: auto; display: block; }

.stmd-kalbtnwrap { margin-top: 12px; }

/* ============================================================
   37) KALENDER (kalender.php – Druckversion)
   ============================================================ */
@media print {
  .page-table { width: 100%; border-collapse: collapse; }
  .page-table th,
  .page-table td { padding: 0; border: none; text-align: left; font-weight: normal; }

  .page-header { text-align: center; padding-bottom: 14px; border-bottom: 1px solid #ccc; }
  .page-header img.logo { max-width: 100px; height: auto; display: inline-block; margin: 0 auto 4px; }
  .page-header .title  { font-size: 15px; font-weight: bold; margin: 2px auto; text-align: center; }
  .page-header .meta-line { font-size: 11px; margin: 2px auto 6px; text-align: center; }

  .spacer-row td { height: 20px; }

  .section-header td { padding-top: 0; padding-bottom: 6px; }
  .section-header h2 { margin: 0; font-size: 15px; }

  .termin-row td { padding: 8px 0; border-bottom: 1px solid #ccc; vertical-align: top; }
  .termin-bild   { width: 95px; padding-right: 12px !important; }
  .termin-bild img { width: 85px; height: 85px; object-fit: cover; border-radius: 8px; display: block; }

  .termin-info strong  { font-size: 14px; }
  .termin-info .line   { margin: .1em 0; font-size: 13px; }

  .page-footer { text-align: center; padding-top: 12px; font-size: 11px; }

  a { color: #000 !important; text-decoration: none !important; }
  .termin-row { break-inside: avoid; }
}

/* Kalender Drucklayout (auch ohne @print sichtbar im Browser) */
.page-table { width: 100%; border-collapse: collapse; }
.page-table th,
.page-table td { padding: 0; border: none; text-align: left; font-weight: normal; }

.page-header { text-align: center; padding-bottom: 14px; border-bottom: 1px solid #ccc; }
.page-header img.logo { max-width: 100px; height: auto; display: inline-block; margin: 0 auto 4px; }
.page-header .title   { font-size: 15px; font-weight: bold; margin: 2px auto; text-align: center; }
.page-header .meta-line { font-size: 11px; margin: 2px auto 6px; text-align: center; }

.spacer-row td          { height: 20px; }
.section-header td      { padding-top: 0; padding-bottom: 6px; }
.section-header h2      { margin: 0; font-size: 15px; }
.termin-row td          { padding: 8px 0; border-bottom: 1px solid #ccc; vertical-align: top; }
.termin-bild            { width: 95px; padding-right: 12px !important; }
.termin-bild img        { width: 85px; height: 85px; object-fit: cover; border-radius: 8px; display: block; }
.termin-info strong     { font-size: 14px; }
.termin-info .line      { margin: .1em 0; font-size: 13px; }
.page-footer            { text-align: center; padding-top: 12px; font-size: 11px; }

/* ============================================================
   38) FOOTER – Floatbox-Links (kein Inline-CSS mehr nötig)
   ============================================================ */
footer.site-footer a.floatbox {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}
footer.site-footer a.floatbox:hover {
  text-decoration: underline;
}