/* BergmannCMS – Public CSS
   Alle Farben als CSS-Variablen – einfach via Einstellungen > custom_css überschreiben:
   :root { --accent: #e63946; --bg-dark: #0a0a1a; }
*/
:root {
  /* Farben */
  --accent:          #2563eb;
  --accent-rgb:      37,99,235;
  --accent-light:    #93c5fd;
  --bg-1:            #ffffff;
  --bg-2:            #f7f8fa;
  --bg-dark:         #111827;
  --text:            #111827;
  --text-light:      #6b7280;
  --text-inv:        #f9fafb;
  --text-inv-light:  rgba(249,250,251,.75);
  --border:          #e5e7eb;

  /* Typografie */
  --font-sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: var(--font-sans);

  /* Abstände */
  --container:   1140px;
  --radius:      6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-1);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a   { color: var(--accent); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.hdr-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 1.5rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-wrap {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: inherit;
}
.logo-img { height: 40px; width: auto; }
.site-title  { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text); }
.site-tagline{ font-size: 0.72rem; color: var(--text-light); }
.nav-burger  { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Navigation ──────────────────────────────────────────── */
.main-nav {
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}
.main-nav ul {
  max-width: var(--container); margin: 0 auto;
  padding: 0 1.5rem; list-style: none;
  display: flex; gap: 0; flex-wrap: wrap;
}
.main-nav a {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.75rem 1rem; font-size: 0.88rem;
  text-decoration: none; color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--accent); border-bottom-color: var(--accent);
}
.nav-icon { font-size: 0.9rem; }

/* ── Main ────────────────────────────────────────────────── */
main { min-height: 60vh; }

/* ── CMS Sektionen ───────────────────────────────────────── */
.cms-section { /* Sektions-Wrapper */ }
.cms-container { max-width: var(--container); margin: 0 auto; }

.sec-head    { text-align: center; margin-bottom: 2.5rem; }
.sec-eye     { font-size: 0.78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 0.5rem; }
.sec-head h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.sec-rule    { width: 48px; height: 3px; background: var(--accent); margin: 0 auto; }
.sec-text    { line-height: 1.8; font-size: 0.93rem; }
.sec-text p  { margin-bottom: 1em; }
.sec-text ul,
.sec-text ol { padding-left: 1.4em; margin-bottom: 1em; }
.sec-text h2,
.sec-text h3 { margin: 1.5em 0 0.5em; font-family: var(--font-display); }
.sec-more    { text-align: center; margin-top: 2.5rem; }
.sec-split   {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.sec-img img { width: 100%; border-radius: var(--radius); }

/* ── Hero Slider ─────────────────────────────────────────── */
.cms-hero-slider {
  position: relative; overflow: hidden;
  background: #111; user-select: none;
}
.slider-track { position: relative; }
.slide {
  display: none; position: relative;
  min-height: inherit;
}
.slide.active { display: flex; }
.slide-overlay {
  position: absolute; inset: 0; z-index: 1;
}
.slide-content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 4rem 2rem;
  display: flex; align-items: center; gap: 3rem;
}
.slide-content.layout-zentriert { justify-content: center; }
.slide-content.layout-links     { flex-direction: row; }
.slide-content.layout-rechts    { flex-direction: row-reverse; }
.slide-inner { flex: 1; }
.slide-bild  { flex-shrink: 0; width: 40%; }
.slide-bild img { width: 100%; border-radius: var(--radius); }
.slide-eye {
  font-size: 0.75rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: 0.75rem;
}
.slide-titel {
  font-family: var(--font-display); font-size: 3rem; font-weight: 900;
  color: #fff; line-height: 1.1; margin-bottom: 1rem;
}
.slide-sub {
  font-size: 1.1rem; color: rgba(255,255,255,.8);
  line-height: 1.6; max-width: 540px; margin-bottom: 2rem;
}
.slide-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.slide-btn  { padding: 0.75rem 1.75rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; transition: all .2s; }

/* Slider Controls */
.slider-dots {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.4rem; z-index: 10;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.dot.active { background: #fff; transform: scale(1.3); }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35); color: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.slider-arrow:hover { background: rgba(0,0,0,.6); }
.slider-arrow.prev { left: 1rem; }
.slider-arrow.next { right: 1rem; }

/* ── Statistiken ─────────────────────────────────────────── */
.stats-bar   { padding: 3rem 2rem; }
.stats-inner { max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; }
.stat-item   { text-align: center; }
.stat-num    { font-family: var(--font-display); font-size: 2.8rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-lbl    { font-size: 0.8rem; opacity: .7; margin-top: 0.4rem; letter-spacing: .05em; }

/* ── Events ──────────────────────────────────────────────── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.event-date  { text-align: center; min-width: 48px; flex-shrink: 0; }
.event-day   { font-size: 1.8rem; font-weight: 900; color: var(--accent); line-height: 1; }
.event-mon   { font-size: 0.6rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.event-year  { font-size: 0.6rem; opacity: .5; }
.event-body  { flex: 1; }

/* ── Blog ────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.blog-date { font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.blog-mehr { display: inline-block; margin-top: 1rem; font-size: 0.8rem; color: var(--accent); }

/* ── Buttons (Public) ────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--accent); color: #fff;
  padding: 0.65rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  border: 2px solid var(--accent); transition: all .2s;
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-outline {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--text);
  padding: 0.65rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  border: 2px solid var(--border); transition: all .2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-inv {
  display: inline-flex; align-items: center;
  background: transparent; color: #fff;
  padding: 0.65rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  border: 2px solid rgba(255,255,255,.6); transition: all .2s;
}
.btn-outline-inv:hover { background: rgba(255,255,255,.15); }
.btn-white {
  display: inline-flex; align-items: center;
  background: #fff; color: var(--accent);
  padding: 0.65rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  border: 2px solid #fff; transition: all .2s;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.6); padding: 3rem 1.5rem 2rem; }
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-name    { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.footer-tagline { font-size: 0.85rem; opacity: .6; margin-bottom: 1rem; }
.footer-desc    { font-size: 0.85rem; max-width: 400px; line-height: 1.6; margin-bottom: 1.5rem; opacity: .7; }
.footer-nav     { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-bottom: 1.5rem; }
.footer-nav a   { color: rgba(255,255,255,.5); text-decoration: none; font-size: 0.85rem; transition: color .15s; }
.footer-nav a:hover { color: #fff; }
.footer-social  { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1.5rem; }
.footer-social a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 0.82rem; transition: color .15s; }
.footer-social a:hover { color: #fff; }
.footer-copy    { font-size: 0.75rem; opacity: .4; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .slide-titel { font-size: 2rem; }
  .sec-head h2 { font-size: 1.5rem; }
  .sec-split   { grid-template-columns: 1fr; }
  .slide-content.layout-links,
  .slide-content.layout-rechts { flex-direction: column; }
  .slide-bild  { width: 100%; }
  .nav-burger  { display: flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a  { border-bottom: none; border-left: 2px solid transparent; }
  .stats-inner { gap: 1.5rem; }
  .stat-num    { font-size: 2rem; }
}
@media (max-width: 480px) {
  .slide-titel { font-size: 1.6rem; }
  .slide-sub   { font-size: 0.95rem; }
  .slide-btns  { flex-direction: column; }
}
