/* ============================================================
   IBR THEME v1.2.0 – 4 Modi: Standard / Hell / Dunkel / Kontrast
   ============================================================ */

@font-face {
  font-family: 'DM Sans';
  src: url('https://dxfiles.de/fonts/dm-sans/dm-sans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('https://dxfiles.de/fonts/dm-sans/dm-sans-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url('https://dxfiles.de/fonts/dm-serif/dm-serif-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ── STANDARD MODUS (Header/Footer dunkel, Inhalt hell) ── */
:root {
  --accent:             #3a7d2c;
  --accent-light:       rgba(58,125,44,0.12);
  --accent-text:        #2a6e1a;
  --nav-bg:             #1c1c1c;
  --nav-border:         1px solid rgba(255,255,255,0.06);
  --nav-text:           #ffffff;
  --nav-text-muted:     rgba(255,255,255,0.6);
  --nav-link-hover-bg:  rgba(58,125,44,0.15);
  --nav-link-hover-c:   #5bb84a;
  --hero-bg:            #1c1c1c;
  --hero-title:         #ffffff;
  --hero-sub:           rgba(255,255,255,0.6);
  --hero-btn-ghost-c:   rgba(255,255,255,0.8);
  --hero-btn-ghost-b:   rgba(255,255,255,0.25);
  --hero-btn-ghost-bg:  rgba(255,255,255,0.06);
  --hero-card-bg:       #ffffff;
  --meeting-date-bg:    #1c1c1c;
  --meeting-date-color: #5bb84a;
  --footer-bg:          #1c1c1c;
  --footer-text:        rgba(255,255,255,0.45);
  --footer-title:       #ffffff;
  --footer-border:      rgba(255,255,255,0.08);
  --bg-page:            #f5f3ef;
  --bg-white:           #ffffff;
  --text-primary:       #1c1c1c;
  --text-secondary:     #555555;
  --text-muted:         #888888;
  --border:             #e0dbd2;
  --border-light:       #f0ede8;
  --acc-bar-bg:         #1c1c1c;
  --acc-bar-border:     rgba(255,255,255,0.08);
  --acc-btn-bg:         rgba(255,255,255,0.06);
  --acc-btn-border:     rgba(255,255,255,0.1);
  --acc-btn-color:      rgba(255,255,255,0.7);
  --acc-label-color:    rgba(255,255,255,0.35);
  --acc-close-color:    rgba(255,255,255,0.3);
  --font-display:       'DM Serif Display', Georgia, serif;
  --font-body:          'DM Sans', system-ui, sans-serif;
  --radius-sm:          4px;
  --radius-md:          8px;
  --radius-lg:          12px;
  --shadow-md:          0 4px 16px rgba(0,0,0,0.08);
  --transition:         0.2s ease;
  --font-size-base:     16px;
}

/* ── HELL MODUS (alles hell) ── */
[data-theme="light"] {
  --nav-bg:             #ffffff;
  --nav-border:         1px solid #e0dbd2;
  --nav-text:           #1c1c1c;
  --nav-text-muted:     #555555;
  --nav-link-hover-bg:  rgba(58,125,44,0.1);
  --nav-link-hover-c:   #2a6e1a;
  --hero-bg:            #eef5ec;
  --hero-title:         #1c1c1c;
  --hero-sub:           #555555;
  --hero-btn-ghost-c:   #1c1c1c;
  --hero-btn-ghost-b:   #e0dbd2;
  --hero-btn-ghost-bg:  #f0ede8;
  --hero-card-bg:       #ffffff;
  --meeting-date-bg:    #1c1c1c;
  --meeting-date-color: #5bb84a;
  --footer-bg:          #f0ede8;
  --footer-text:        #555555;
  --footer-title:       #1c1c1c;
  --footer-border:      #e0dbd2;
  --bg-page:            #f5f3ef;
  --bg-white:           #ffffff;
  --text-primary:       #1c1c1c;
  --text-secondary:     #555555;
  --text-muted:         #888888;
  --border:             #e0dbd2;
  --border-light:       #f0ede8;
  --acc-bar-bg:         #f0ede8;
  --acc-bar-border:     #e0dbd2;
  --acc-btn-bg:         #ffffff;
  --acc-btn-border:     #e0dbd2;
  --acc-btn-color:      #555555;
  --acc-label-color:    #888888;
  --acc-close-color:    #888888;
}

/* ── DUNKEL MODUS (alles dunkel) ── */
[data-theme="dark"] {
  --nav-bg:             #1c1c1c;
  --nav-border:         1px solid rgba(255,255,255,0.06);
  --nav-text:           #ffffff;
  --nav-text-muted:     rgba(255,255,255,0.55);
  --nav-link-hover-bg:  rgba(58,125,44,0.2);
  --nav-link-hover-c:   #5bb84a;
  --hero-bg:            #1c1c1c;
  --hero-title:         #ffffff;
  --hero-sub:           rgba(255,255,255,0.6);
  --hero-btn-ghost-c:   rgba(255,255,255,0.8);
  --hero-btn-ghost-b:   rgba(255,255,255,0.2);
  --hero-btn-ghost-bg:  rgba(255,255,255,0.05);
  --hero-card-bg:       #2a2a2a;
  --meeting-date-bg:    #333333;
  --meeting-date-color: #5bb84a;
  --footer-bg:          #111111;
  --footer-text:        rgba(255,255,255,0.4);
  --footer-title:       #ffffff;
  --footer-border:      rgba(255,255,255,0.06);
  --bg-page:            #111111;
  --bg-white:           #1c1c1c;
  --text-primary:       #f0ede8;
  --text-secondary:     #aaaaaa;
  --text-muted:         #666666;
  --border:             #333333;
  --border-light:       #2a2a2a;
  --acc-bar-bg:         #111111;
  --acc-bar-border:     rgba(255,255,255,0.06);
  --acc-btn-bg:         rgba(255,255,255,0.05);
  --acc-btn-border:     rgba(255,255,255,0.1);
  --acc-btn-color:      rgba(255,255,255,0.65);
  --acc-label-color:    rgba(255,255,255,0.3);
  --acc-close-color:    rgba(255,255,255,0.3);
  --accent-text:        #5bb84a;
}

/* ── KONTRAST MODUS ── */
[data-theme="contrast"] {
  --accent:             #ffff00;
  --accent-light:       rgba(255,255,0,0.15);
  --accent-text:        #ffff00;
  --nav-bg:             #000000;
  --nav-border:         2px solid #ffff00;
  --nav-text:           #ffffff;
  --nav-text-muted:     #ffff00;
  --nav-link-hover-bg:  rgba(255,255,0,0.15);
  --nav-link-hover-c:   #ffff00;
  --hero-bg:            #000000;
  --hero-title:         #ffffff;
  --hero-sub:           #ffff00;
  --hero-btn-ghost-c:   #ffffff;
  --hero-btn-ghost-b:   #ffff00;
  --hero-btn-ghost-bg:  transparent;
  --hero-card-bg:       #111111;
  --meeting-date-bg:    #000000;
  --meeting-date-color: #ffff00;
  --footer-bg:          #000000;
  --footer-text:        #ffff00;
  --footer-title:       #ffffff;
  --footer-border:      #ffff00;
  --bg-page:            #000000;
  --bg-white:           #000000;
  --text-primary:       #ffffff;
  --text-secondary:     #ffff00;
  --text-muted:         #aaaaaa;
  --border:             #ffff00;
  --border-light:       #555555;
  --acc-bar-bg:         #000000;
  --acc-bar-border:     #ffff00;
  --acc-btn-bg:         #ffff00;
  --acc-btn-border:     #ffff00;
  --acc-btn-color:      #000000;
  --acc-label-color:    #ffff00;
  --acc-close-color:    #ffff00;
}

/* ── SCHRIFTGRÖSSEN ── */
[data-fontsize="large"]  { --font-size-base: 19px; }
[data-fontsize="xlarge"] { --font-size-base: 22px; }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--font-size-base); scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg-page); color: var(--text-primary); line-height: 1.6; transition: background var(--transition), color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ── SKIP LINK ── */
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--accent); color: #fff; padding: 0.5rem 1rem; border-radius: 0 0 var(--radius-md) var(--radius-md); font-weight: 600; z-index: 9999; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* ── NAVIGATION ── */
.site-nav { background: var(--nav-bg); border-bottom: var(--nav-border); position: sticky; top: 0; z-index: 100; transition: background var(--transition), border-color var(--transition); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.nav-logo-mark { width: 36px; height: 36px; background: var(--accent); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.85rem; color: #fff; flex-shrink: 0; }
.nav-logo-mark img { width: 28px; height: 28px; object-fit: contain; border-radius: 2px; }
.nav-logo-text { font-size: 0.875rem; font-weight: 500; color: var(--nav-text); line-height: 1.2; transition: color var(--transition); }
.nav-logo-sub  { font-size: 0.7rem; color: var(--nav-text-muted); transition: color var(--transition); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a { font-size: 0.875rem; color: var(--nav-text-muted); padding: 0.4rem 0.75rem; border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--nav-link-hover-c); background: var(--nav-link-hover-bg); opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.theme-toggle { background: var(--acc-btn-bg); border: 1px solid var(--acc-btn-border); border-radius: var(--radius-sm); padding: 0.4rem; color: var(--acc-btn-color); cursor: pointer; font-size: 1rem; display: flex; align-items: center; transition: background var(--transition); }
.theme-toggle:hover { filter: brightness(1.1); }
.nav-hamburger { display: none; background: none; border: none; color: var(--nav-text); font-size: 1.25rem; cursor: pointer; padding: 0.25rem; }

/* ── HERO ── */
.hero { background: var(--hero-bg); padding: 5rem 2rem 4rem; transition: background var(--transition); }
.hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--accent-light); color: var(--accent-text); font-size: 0.75rem; font-weight: 500; padding: 0.3rem 0.75rem; border-radius: 20px; margin-bottom: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-title { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 400; color: var(--hero-title); line-height: 1.2; margin-bottom: 1rem; transition: color var(--transition); }
.hero-subtitle { font-size: 1rem; color: var(--hero-sub); line-height: 1.7; max-width: 460px; margin-bottom: 2rem; transition: color var(--transition); }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; font-family: var(--font-body); cursor: pointer; border: none; transition: all var(--transition); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); opacity: 1; }
.btn-ghost { background: var(--hero-btn-ghost-bg); color: var(--hero-btn-ghost-c); border: 1px solid var(--hero-btn-ghost-b); }
.btn-ghost:hover { filter: brightness(0.95); opacity: 1; }
.hero-card { background: var(--hero-card-bg); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1.5rem; box-shadow: var(--shadow-md); transition: background var(--transition); }
.card-label { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1rem; }
.meeting-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border-light); }
.meeting-item:last-child { border-bottom: none; }
.meeting-date { background: var(--meeting-date-bg); color: var(--meeting-date-color); border-radius: var(--radius-sm); padding: 0.4rem 0.6rem; text-align: center; min-width: 40px; flex-shrink: 0; }
.meeting-date .day   { font-size: 1.1rem; font-weight: 600; line-height: 1; }
.meeting-date .month { font-size: 0.65rem; opacity: 0.7; text-transform: uppercase; }
.meeting-info { flex: 1; }
.meeting-title { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); }
.meeting-place { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }
.meeting-chip { font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 10px; flex-shrink: 0; }
.chip-soon    { background: #e8f5e3; color: #2a6e1a; }
.chip-archive { background: var(--bg-page); color: var(--text-muted); }

/* ── SECTIONS ── */
.section { padding: 4rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 2.5rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.4rem,3vw,2rem); font-weight: 400; color: var(--text-primary); margin-bottom: 0.4rem; }
.section-subtitle { font-size: 0.9rem; color: var(--text-secondary); }
.topics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1rem; }
.topic-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: transform var(--transition), box-shadow var(--transition); }
.topic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.topic-icon { width: 40px; height: 40px; background: var(--accent); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.topic-title { font-size: 1rem; font-weight: 500; color: var(--text-primary); margin-bottom: 0.5rem; }
.topic-text  { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ── VEREINSSEITE ── */
.verein-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
.verein-logo-box { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.verein-info { display: flex; flex-direction: column; gap: 1rem; }
.info-row { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: flex-start; }
.info-row-icon { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.info-row-label { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.2rem; }
.info-row-value { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }

/* ── FOOTER ── */
.site-footer { background: var(--footer-bg); padding: 2.5rem 2rem 1.5rem; transition: background var(--transition); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--footer-border); margin-bottom: 1.5rem; }
.footer-brand p { font-size: 0.8rem; color: var(--footer-text); line-height: 1.6; margin-top: 0.5rem; }
.footer-col-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--footer-text); margin-bottom: 0.75rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { font-size: 0.85rem; color: var(--footer-text); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); opacity: 1; }
.footer-logo-text { font-size: 0.9rem; font-weight: 500; color: var(--footer-title); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--footer-text); flex-wrap: wrap; gap: 0.5rem; }
.footer-email { color: var(--accent); }

/* ── BARRIEREFREIHEITS-LEISTE ── */
.acc-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--acc-bar-bg); border-top: 1px solid var(--acc-bar-border); padding: 0.5rem 2rem; display: flex; align-items: center; gap: 0.75rem; z-index: 90; flex-wrap: wrap; transition: background var(--transition); }
.acc-bar-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--acc-label-color); margin-right: 0.25rem; }
.acc-btn-bar { display: flex; align-items: center; gap: 0.35rem; background: var(--acc-btn-bg); border: 1px solid var(--acc-btn-border); border-radius: var(--radius-sm); padding: 0.35rem 0.7rem; color: var(--acc-btn-color); font-size: 0.78rem; font-family: var(--font-body); cursor: pointer; transition: all var(--transition); }
.acc-btn-bar:hover { filter: brightness(1.1); }
.acc-btn-bar.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.acc-bar-spacer { flex: 1; }
.acc-close { background: none; border: none; color: var(--acc-close-color); font-size: 1rem; cursor: pointer; padding: 0.25rem; }

/* ── RTL ── */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner   { grid-template-columns: 1fr; }
  .hero-card    { display: none; }
  .verein-grid  { grid-template-columns: 1fr; }
  .footer-top   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links      { display: none; }
  .nav-hamburger  { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--nav-bg); padding: 1rem; gap: 0.25rem; border-bottom: var(--nav-border); }
  .footer-top     { grid-template-columns: 1fr; }
  .hero           { padding: 3rem 1.25rem 2.5rem; }
  .section        { padding: 2.5rem 1.25rem; }
  .acc-bar        { padding: 0.5rem 1rem; }
}

/* ── INHALTSSTILE ── */
.content-body h1, .content-body h2, .content-body h3 { font-family: var(--font-display); font-weight: 400; color: var(--text-primary); margin: 1.5rem 0 0.75rem; line-height: 1.3; }
.content-body h1 { font-size: 1.8rem; }
.content-body h2 { font-size: 1.4rem; }
.content-body h3 { font-size: 1.15rem; }
.content-body p  { margin-bottom: 1rem; color: var(--text-secondary); }
.content-body ul, .content-body ol { margin: 0.75rem 0 1rem 1.5rem; color: var(--text-secondary); }
.content-body li { margin-bottom: 0.4rem; }
.content-body strong { color: var(--text-primary); font-weight: 600; }
.content-body blockquote { border-left: 3px solid var(--accent); padding: 0.75rem 1.25rem; margin: 1.5rem 0; background: var(--accent-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-primary); font-style: italic; }

/* ── UTILITY ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 500; padding: 0.2rem 0.6rem; border-radius: 20px; background: var(--accent-light); color: var(--accent); }

/* ── LOGO HELL/DUNKEL ── */
.nav-logo-mark {
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}
.nav-logo-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.logo-light { display: none; }
.logo-dark  { display: block; }

[data-theme="light"] .logo-light { display: block; }
[data-theme="light"] .logo-dark  { display: none; }

/* ── WASSERZEICHEN ── */
.hero { position: relative; overflow: hidden; }
.hero-watermark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  object-fit: contain;
  opacity: 0.20;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .hero-watermark {
    width: 280px;
    height: 280px;
    right: -40px;
    opacity: 0.12;
  }
}

/* ── WASSERZEICHEN UPDATE ── */
.hero-watermark {
  position: absolute;
  left: 40px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  object-fit: contain;
  opacity: 0.25;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-text { position: relative; z-index: 1; }

/* ── NAV LOGO GRÖSSER ── */
.nav-logo-mark {
  width: 56px !important;
  height: 56px !important;
}
.nav-logo-mark img {
  width: 56px !important;
  height: 56px !important;
}
.nav-logo-text { font-size: 1rem !important; }
.nav-logo-sub  { font-size: 0.8rem !important; }
.site-nav .nav-inner { height: 72px !important; }

/* ── FOOTER LOGO GRÖSSER ── */
.footer-brand img {
  width: 64px !important;
  height: 64px !important;
}

@media (max-width: 640px) {
  .hero-watermark {
    left: 20px;
    width: 260px;
    height: 260px;
    opacity: 0.18;
  }
}
