/*--------------------------------------------------------------------
  smz-pages.css — v1.0  |  Shared Foundation for all SMZ Custom Pages
  Brand: Blue #4169E1  |  Gold #a99671  |  Font: Ubuntu
  Scope: .smz-page wrapper — never touches BuddyBoss community pages
--------------------------------------------------------------------*/


/* ================================================================
   1. CSS-VARIABLEN
   ================================================================ */

:root {
  --smz-blue:        #4169E1;
  --smz-blue-dark:   #2d4db8;
  --smz-blue-light:  #6b8ae8;
  --smz-gold:        #a99671;
  --smz-gold-dark:   #8f7b58;
  --smz-gold-light:  #c4b08f;
  --smz-dark:        #111827;
  --smz-grey:        #374151;
  --smz-grey-mid:    #6b7280;
  --smz-grey-light:  #9ca3af;
  --smz-bg-light:    #f5f7fa;
  --smz-white:       #ffffff;
  --smz-border:      #e5e7eb;
  --smz-radius:      8px;
  --smz-radius-md:   12px;
  --smz-radius-lg:   16px;
  --smz-shadow:      0 4px 20px rgba(65,105,225,.12);
  --smz-shadow-lg:   0 8px 40px rgba(65,105,225,.18);
  --smz-max-width:   1760px;
  --smz-section-pad: 80px;
  --smz-font:        'Ubuntu', sans-serif;
}


/* ================================================================
   1B. GLOBAL OVERFLOW FIX
   Prevents any element from causing horizontal scroll
   ================================================================ */

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.smz-page *,
.smz-page *::before,
.smz-page *::after {
  box-sizing: border-box;
}

/* ================================================================
   2. PAGE WRAPPER — .smz-page
   Jede Custom-Page bekommt diesen Top-Level-Container.
   BuddyBoss-Seiten verwenden ihn NICHT → keine Kollision.
   ================================================================ */

.smz-page {
  font-family: var(--smz-font);
  color: var(--smz-dark);
  background: var(--smz-white);
  overflow-x: hidden;
  width: 100%;
}

/* All wrapper variants: full width, no horizontal overflow. */
.smz-page.smz-sp-wrap,
.smz-page.smz-fp-wrap,
.smz-page.smz-about-wrap,
[class*="smz-"][class*="-wrap"].smz-page {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-x: hidden;
}

/* Alle Container-Varianten: einheitlich 32px Padding, max-width 1760px */
.smz-page .smz-sp-container,
.smz-page .smz-fp-container,
.smz-page .smz-about-container,
.smz-page .smz-container {
  max-width: var(--smz-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* Header z-index on SMZ pages (left/width handled in custom.css bug fix) */
body:has(.smz-page) .site-header,
body:has(.smz-page) #masthead {
  z-index: 9999 !important;
}


/* ================================================================
   3. FULL-WIDTH LAYOUT OVERRIDE
   Nur aktiv wenn .smz-page auf der Seite ist.
   Hebt BuddyBoss Container-Begrenzungen auf.
   ================================================================ */

body:has(.smz-page) .bb-grid.site-content-grid,
body:has(.smz-page) .bb-grid.site-content-grid > .bb-grid-cell,
body:has(.smz-page) .bb-grid.site-content-grid > *:not(.no-gutter) {
  padding-left:  0 !important;
  padding-right: 0 !important;
  margin-left:   0 !important;
  margin-right:  0 !important;
}

body:has(.smz-page) .site-content,
body:has(.smz-page) #content.site-content {
  padding-left:  0 !important;
  padding-right: 0 !important;
}

body:has(.smz-page) .container,
body:has(.smz-page) .site-content > .container,
body:has(.smz-page) #content > .container {
  padding-left:  0 !important;
  padding-right: 0 !important;
  max-width:     100% !important;
  width:         100% !important;
}

body:has(.smz-page) .buddypanel {
  position: fixed !important;
  z-index:  9999  !important;
}


/* ================================================================
   4. CONTAINER
   ================================================================ */

.smz-page .smz-container {
  max-width:    var(--smz-max-width);
  margin-left:  auto;
  margin-right: auto;
  padding-left:  32px;
  padding-right: 32px;
}


/* ================================================================
   5. SECTIONS
   ================================================================ */

.smz-page .smz-section {
  padding-top:    var(--smz-section-pad);
  padding-bottom: var(--smz-section-pad);
  width: 100%;
}

.smz-page .smz-section--white { background: var(--smz-white); }
.smz-page .smz-section--grey  { background: var(--smz-bg-light); }
.smz-page .smz-section--dark  { background: var(--smz-dark); }
.smz-page .smz-section--blue  {
  background: linear-gradient(135deg, #111827 0%, #1c2b65 52%, #111827 100%);
}
.smz-page .smz-section--cta   {
  background: linear-gradient(135deg, #0b111b 0%, #111827 60%, #171d2c 100%);
  border-top: 1px solid rgba(169,150,113,.16);
}

/* Diagonal clip between sections */
.smz-page .smz-section--clip {
  clip-path: polygon(0 36px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--smz-section-pad) + 36px);
  margin-top: -36px;
}


/* ================================================================
   6. SECTION HEADER (Titel + Einleitung pro Abschnitt)
   ================================================================ */

.smz-page .smz-section-header {
  text-align:    center;
  max-width:     640px;
  margin:        0 auto 56px;
}

.smz-page .smz-section-header h2 {
  font-family: var(--smz-font);
  font-size:   2.1rem;
  font-weight: 700;
  line-height: 1.22;
  color:       var(--smz-dark);
  margin:      10px 0 14px;
}

.smz-page .smz-section--dark  .smz-section-header h2,
.smz-page .smz-section--blue  .smz-section-header h2,
.smz-page .smz-section--cta   .smz-section-header h2 {
  color: var(--smz-white);
}

.smz-page .smz-section-header p {
  font-size:   1rem;
  line-height: 1.75;
  color:       var(--smz-grey-mid);
}

.smz-page .smz-section--dark .smz-section-header p,
.smz-page .smz-section--blue .smz-section-header p,
.smz-page .smz-section--cta  .smz-section-header p {
  color: rgba(255,255,255,.65);
}


/* ================================================================
   7. TYPOGRAFIE — innerhalb .smz-page
   ================================================================ */

.smz-page h1,
.smz-page h2,
.smz-page h3,
.smz-page h4,
.smz-page h5,
.smz-page h6 {
  font-family: var(--smz-font);
  line-height: 1.2;
  letter-spacing: 0;
}

.smz-page h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 700; }
.smz-page h2 { font-size: 2rem;   font-weight: 700; }
.smz-page h3 { font-size: 1.15rem; font-weight: 700; }
.smz-page h4 { font-size: 1rem;   font-weight: 700; }

.smz-page p {
  line-height: 1.75;
  color: var(--smz-grey-mid);
}

.smz-page a {
  color: var(--smz-blue);
  text-decoration: none;
  transition: color .2s;
}
.smz-page a:hover { color: var(--smz-blue-dark); }


/* ================================================================
   8. TAGS / BADGES / LABELS
   ================================================================ */

.smz-page .smz-tag {
  display:         inline-block;
  font-family:     var(--smz-font);
  font-size:       .72rem;
  font-weight:     700;
  text-transform:  uppercase;
  letter-spacing:  1.6px;
  padding:         4px 14px;
  border-radius:   50px;
  margin-bottom:   12px;
}

.smz-page .smz-tag--blue  { background: rgba(65,105,225,.1);   color: var(--smz-blue); }
.smz-page .smz-tag--gold  { background: rgba(169,150,113,.14); color: var(--smz-gold); }
.smz-page .smz-tag--light { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }
.smz-page .smz-tag--dark  { background: rgba(0,0,0,.08);       color: var(--smz-grey); }


/* ================================================================
   9. BUTTONS
   ================================================================ */

.smz-page .smz-btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  padding:         13px 26px;
  min-height:      46px;
  border-radius:   var(--smz-radius);
  font-family:     var(--smz-font);
  font-size:       .93rem;
  font-weight:     500;
  text-decoration: none !important;
  white-space:     nowrap;
  cursor:          pointer;
  transition:      background .2s, color .2s, border-color .2s, box-shadow .2s;
  border:          1px solid transparent;
}

/* Primary — Gold */
.smz-page .smz-btn--primary {
  background:   var(--smz-gold);
  border-color: var(--smz-gold);
  color:        var(--smz-white) !important;
}
.smz-page .smz-btn--primary:hover {
  background:   var(--smz-gold-dark);
  border-color: var(--smz-gold-dark);
  color:        var(--smz-white) !important;
}

/* Blue */
.smz-page .smz-btn--blue {
  background:   var(--smz-blue);
  border-color: var(--smz-blue);
  color:        var(--smz-white) !important;
}
.smz-page .smz-btn--blue:hover {
  background:   var(--smz-blue-dark);
  border-color: var(--smz-blue-dark);
  color:        var(--smz-white) !important;
}

/* Outline Blue */
.smz-page .smz-btn--outline {
  background:   transparent;
  border:       2px solid var(--smz-blue);
  color:        var(--smz-blue) !important;
}
.smz-page .smz-btn--outline:hover {
  background:   var(--smz-blue);
  color:        var(--smz-white) !important;
}

/* Ghost — auf dunklem Hintergrund */
.smz-page .smz-btn--ghost {
  background:   transparent;
  border:       1px solid rgba(255,255,255,.45);
  color:        rgba(255,255,255,.85) !important;
}
.smz-page .smz-btn--ghost:hover {
  border-color: var(--smz-white);
  color:        var(--smz-white) !important;
}

/* White — auf farbigem Hintergrund */
.smz-page .smz-btn--white {
  background:   var(--smz-white);
  border-color: var(--smz-white);
  color:        var(--smz-gold-dark) !important;
  font-weight:  700;
}
.smz-page .smz-btn--white:hover {
  background:   var(--smz-bg-light);
  border-color: var(--smz-bg-light);
}

/* Full width */
.smz-page .smz-btn--full {
  width:       100%;
  display:     flex;
}

/* Button group */
.smz-page .smz-btn-group {
  display:    flex;
  gap:        14px;
  flex-wrap:  wrap;
}
.smz-page .smz-btn-group--center { justify-content: center; }


/* ================================================================
   10. KARTEN / CARDS
   ================================================================ */

.smz-page .smz-card {
  padding:       28px 24px;
  border-radius: var(--smz-radius-lg);
  border:        1px solid rgba(65,105,225,.1);
  background:    var(--smz-white);
  transition:    box-shadow .25s, transform .25s, border-color .25s;
}

.smz-page .smz-card:hover {
  box-shadow:    var(--smz-shadow-lg);
  transform:     translateY(-4px);
  border-color:  rgba(65,105,225,.28);
}

.smz-page .smz-card--dark {
  background:   rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.07);
}
.smz-page .smz-card--dark:hover {
  background:   rgba(65,105,225,.12);
  border-color: rgba(65,105,225,.3);
  box-shadow:   none;
}

.smz-page .smz-card--grey {
  background:   var(--smz-bg-light);
  border-color: var(--smz-border);
}

.smz-page .smz-card h3 {
  font-size:   1rem;
  font-weight: 700;
  color:       var(--smz-dark);
  margin:      0 0 8px;
}
.smz-page .smz-card--dark h3 { color: var(--smz-white); }

.smz-page .smz-card p {
  font-size:   .88rem;
  color:       var(--smz-grey-mid);
  line-height: 1.7;
  margin:      0;
}
.smz-page .smz-card--dark p { color: rgba(255,255,255,.5); }

/* Card Icon */
.smz-page .smz-card-icon {
  width:         48px;
  height:        48px;
  border-radius: 12px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink:   0;
}
.smz-page .smz-card-icon svg { width: 22px; height: 22px; }
.smz-page .smz-card-icon--blue { background: rgba(65,105,225,.1);   color: var(--smz-blue); }
.smz-page .smz-card-icon--gold { background: rgba(169,150,113,.14); color: var(--smz-gold); }


/* ================================================================
   11. GRID-SYSTEM
   ================================================================ */

.smz-page .smz-grid {
  display: grid;
  gap:     20px;
}
.smz-page .smz-grid--2 { grid-template-columns: repeat(2, 1fr); }
.smz-page .smz-grid--3 { grid-template-columns: repeat(3, 1fr); }
.smz-page .smz-grid--4 { grid-template-columns: repeat(4, 1fr); }


/* ================================================================
   12. HERO BASE
   Gemeinsame Basis für alle Hero-Sektionen.
   Jede Page überschreibt nur was nötig ist.
   ================================================================ */

.smz-page .smz-hero {
  position:   relative;
  overflow:   hidden;
  padding:    100px 0 80px;
  text-align: center;
  background: linear-gradient(160deg, #0d1117 0%, #111827 45%, #1a2240 100%);
}

.smz-page .smz-hero::before {
  content:  '';
  position: absolute;
  inset:    0;
  background:
    linear-gradient(135deg, rgba(8,15,40,.78) 0%, rgba(18,35,90,.65) 55%, rgba(8,15,40,.78) 100%),
    radial-gradient(ellipse at 55% 35%, rgba(65,105,225,.22) 0%, transparent 60%);
  z-index:        1;
  pointer-events: none;
}

.smz-page .smz-hero > * {
  position: relative;
  z-index:  5;
}

.smz-page .smz-hero h1 {
  font-size:   clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  color:       var(--smz-white);
  margin:      0 0 20px;
  line-height: 1.12;
}
.smz-page .smz-hero h1 em      { font-style: normal; color: var(--smz-blue); }
.smz-page .smz-hero h1 .gold   { color: var(--smz-gold); }

.smz-page .smz-hero-sub {
  font-size:   1.05rem;
  color:       rgba(255,255,255,.7);
  max-width:   580px;
  margin:      0 auto 40px;
  line-height: 1.8;
}

.smz-page .smz-hero-icon {
  width:         80px;
  height:        80px;
  border-radius: 22px;
  display:       inline-flex;
  align-items:   center;
  justify-content: center;
  margin-bottom: 28px;
  background:    rgba(65,105,225,.15);
  border:        1px solid rgba(65,105,225,.4);
  color:         var(--smz-blue-light);
  animation:     smzGlow 3.5s ease-in-out infinite;
}
.smz-page .smz-hero-icon--gold {
  background:   rgba(169,150,113,.15);
  border-color: rgba(169,150,113,.4);
  color:        var(--smz-gold);
  animation:    smzGlowGold 3.5s ease-in-out infinite;
}
.smz-page .smz-hero-icon svg { width: 36px; height: 36px; }

/* Gold accent hero variant */
.smz-page .smz-hero--gold::before {
  background:
    radial-gradient(ellipse at 55% 35%, rgba(169,150,113,.2) 0%, transparent 60%);
}


/* ================================================================
   13. STATS-STREIFEN
   ================================================================ */

.smz-page .smz-stats {
  display:       flex;
  justify-content: center;
  max-width:     680px;
  margin:        0 auto;
  background:    rgba(255,255,255,.04);
  border:        1px solid rgba(255,255,255,.08);
  border-radius: var(--smz-radius-lg);
  overflow:      hidden;
}

.smz-page .smz-stat {
  flex:       1;
  min-width:  110px;
  padding:    22px 14px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.06);
}
.smz-page .smz-stat:last-child { border-right: none; }

.smz-page .smz-stat-num {
  display:     block;
  font-size:   1.85rem;
  font-weight: 700;
  color:       var(--smz-blue);
  font-family: var(--smz-font);
  line-height: 1;
  margin-bottom: 4px;
}
.smz-page .smz-stat-num--gold { color: var(--smz-gold); }

.smz-page .smz-stat-label {
  font-size:      .68rem;
  color:          rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .7px;
}


/* ================================================================
   14. STEPS / PROZESS
   ================================================================ */

.smz-page .smz-steps {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   32px;
  position:              relative;
}
.smz-page .smz-steps::before {
  content:    '';
  position:   absolute;
  top:        27px;
  left:       16.67%;
  right:      16.67%;
  height:     1px;
  background: linear-gradient(90deg, var(--smz-blue), var(--smz-gold));
  opacity:    .2;
}

.smz-page .smz-step { text-align: center; }

.smz-page .smz-step-num {
  width:         54px;
  height:        54px;
  border-radius: 50%;
  background:    rgba(65,105,225,.1);
  border:        2px solid rgba(65,105,225,.3);
  display:       flex;
  align-items:   center;
  justify-content: center;
  margin:        0 auto 18px;
  font-size:     1.1rem;
  font-weight:   700;
  color:         var(--smz-blue);
  font-family:   var(--smz-font);
  position:      relative;
  z-index:       1;
  transition:    background .25s, border-color .25s, color .25s;
}
.smz-page .smz-step:hover .smz-step-num {
  background:   var(--smz-blue);
  border-color: var(--smz-blue);
  color:        var(--smz-white);
}

.smz-page .smz-step h3 {
  font-size:   1rem;
  font-weight: 700;
  color:       var(--smz-dark);
  margin:      0 0 7px;
}
.smz-page .smz-step p { font-size: .87rem; color: var(--smz-grey-mid); line-height: 1.65; margin: 0; }


/* ================================================================
   15. HIGHLIGHT-BAND (dark, 2-spaltig mit Mini-Stats)
   ================================================================ */

.smz-page .smz-band {
  padding:    56px 0;
  background: var(--smz-dark);
}
.smz-page .smz-band-inner {
  display:     flex;
  align-items: center;
  gap:         52px;
}
.smz-page .smz-band-text { flex: 1; }
.smz-page .smz-band-text h2 {
  font-size:   1.75rem;
  font-weight: 700;
  color:       var(--smz-white);
  margin:      0 0 12px;
}
.smz-page .smz-band-text p { color: rgba(255,255,255,.62); font-size: .95rem; line-height: 1.75; margin: 0 0 22px; }

.smz-page .smz-band-visual {
  flex:                  0 0 260px;
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   10px;
}
.smz-page .smz-mini {
  background:    rgba(255,255,255,.05);
  border:        1px solid rgba(255,255,255,.08);
  border-radius: var(--smz-radius-md);
  padding:       18px 14px;
  text-align:    center;
  transition:    background .2s;
}
.smz-page .smz-mini:hover { background: rgba(65,105,225,.15); }
.smz-page .smz-mini-num   { display: block; font-size: 1.5rem; font-weight: 700; color: var(--smz-blue); font-family: var(--smz-font); }
.smz-page .smz-mini-label { font-size: .68rem; color: rgba(255,255,255,.42); text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; display: block; }


/* ================================================================
   16. CTA-SEKTION (Abschluss-Bereich jeder Page)
   ================================================================ */

.smz-page .smz-cta {
  padding:    90px 0;
  background: linear-gradient(135deg, #0d1117 0%, #1b2660 50%, #0d1117 100%);
  text-align: center;
}
.smz-page .smz-cta h2 {
  font-size:   2rem;
  font-weight: 700;
  color:       var(--smz-white);
  margin:      16px auto 16px;
  max-width:   560px;
}
.smz-page .smz-cta p {
  color:     rgba(255,255,255,.65);
  font-size: 1rem;
  max-width: 460px;
  margin:    0 auto 36px;
  line-height: 1.75;
}

/* Back-Link */
.smz-page .smz-back {
  text-align: center;
  padding:    18px;
  background: #090d14;
}
.smz-page .smz-back a {
  color:           rgba(255,255,255,.35) !important;
  font-size:       .8rem;
  text-decoration: none !important;
  transition:      color .2s;
}
.smz-page .smz-back a:hover { color: rgba(255,255,255,.72) !important; }


/* ================================================================
   17. ANIMATIONEN
   ================================================================ */

@keyframes smzFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes smzGlow {
  0%, 100% { box-shadow: 0 0 0 0   rgba(65,105,225,0); }
  50%       { box-shadow: 0 0 28px 8px rgba(65,105,225,.28); }
}
@keyframes smzGlowGold {
  0%, 100% { box-shadow: 0 0 0 0   rgba(169,150,113,0); }
  50%       { box-shadow: 0 0 24px 6px rgba(169,150,113,.3); }
}
@keyframes smzPulse {
  0%   { box-shadow: 0 0 0 0 rgba(65,105,225,.45); }
  70%  { box-shadow: 0 0 0 8px rgba(65,105,225,0); }
  100% { box-shadow: 0 0 0 0 rgba(65,105,225,0); }
}

.smz-page .smz-animate { animation: smzFadeUp .55s cubic-bezier(.22,.61,.36,1) both; }
.smz-page .smz-d1 { animation-delay: .08s; }
.smz-page .smz-d2 { animation-delay: .16s; }
.smz-page .smz-d3 { animation-delay: .24s; }
.smz-page .smz-d4 { animation-delay: .32s; }
.smz-page .smz-d5 { animation-delay: .40s; }
.smz-page .smz-d6 { animation-delay: .48s; }


/* ================================================================
   18. RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  .smz-page .smz-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .smz-page .smz-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --smz-section-pad: 64px; }

  .smz-page .smz-hero h1 { font-size: 2.1rem; }
  .smz-page .smz-band-inner { flex-direction: column; }
  .smz-page .smz-band-visual { flex: none; width: 100%; grid-template-columns: repeat(4, 1fr); }
  .smz-page .smz-steps::before { display: none; }
}

@media (max-width: 768px) {
  :root { --smz-section-pad: 52px; }

  .smz-page .smz-container { padding-left: 20px; padding-right: 20px; }

  .smz-page .smz-grid--2,
  .smz-page .smz-grid--3,
  .smz-page .smz-grid--4 { grid-template-columns: 1fr; }

  .smz-page .smz-steps { grid-template-columns: 1fr; }

  .smz-page .smz-stats { flex-direction: column; }
  .smz-page .smz-stat  { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .smz-page .smz-stat:last-child { border-bottom: none; }

  .smz-page .smz-band-visual { grid-template-columns: repeat(2, 1fr); }

  .smz-page .smz-section-header h2 { font-size: 1.7rem; }

  .smz-page .smz-btn-group { flex-direction: column; align-items: stretch; }
  .smz-page .smz-btn { width: 100%; text-align: center; white-space: normal; }
}

@media (max-width: 640px) {
  .smz-page .smz-hero { padding: 70px 0 52px; }
  .smz-page .smz-hero h1 { font-size: 1.85rem; }
  .smz-page .smz-hero-sub { font-size: .97rem; }
  .smz-page .smz-cta h2 { font-size: 1.6rem; }
}
