/* ============================================================================
   WarumSchach Academy — CSS v13 "Bento"
   academy.warumschach.de

   Komplett neues Design: Hell, luftig, Bento-Box Layout.
   Mint/Teal-Akzente, abgerundete Karten, dekorative Shapes.
   Randloses Schachbrett mit runden Ecken.

   INSTALLATION:
   1. Datei nach /templates/shaper_helixultimate/css/custom.css kopieren
   2. academy-v13.js nach /templates/shaper_helixultimate/js/ kopieren
   3. Google Fonts im <head>:
      <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Barlow+Condensed:wght@600;700;800&display=swap" rel="stylesheet">
   ============================================================================ */


/* ==========================================================================
   1. Design Tokens — v13 "Bento"
   ========================================================================== */

:root {
    /* Primary — Indigo/Purple (Stitch-Vorgabe) */
    --ws-primary:         #6366f1;
    --ws-primary-light:   #e0e7ff;
    --ws-primary-dark:    #4338ca;
    --ws-gradient-primary: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    --ws-gradient-hero:   linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 45%, #ddd6fe 100%);

    /* Success — Mint Green (Action-Farbe) */
    --ws-success:         #10b981;
    --ws-success-light:   #d1fae5;

    /* Accent — Gold (satter fuer Verkaufsenergie) */
    --ws-accent:          #d97706;
    --ws-accent-light:    #f59e0b;
    --ws-gradient-accent: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);

    /* Secondary — Lila/Violet */
    --ws-secondary:       #8b5cf6;
    --ws-secondary-light: #ede9fe;
    --ws-gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);

    /* Surfaces */
    --ws-surface:         #ffffff;
    --ws-surface-glass:   rgba(255, 255, 255, 0.85);
    --ws-surface-dark:    #1e293b;
    --ws-bg:              #f8fafc;
    --ws-bg-alt:          #f1f5f9;
    --ws-bg-card:         #ffffff;

    /* Text — Slate Palette */
    --ws-text:            #1e293b;
    --ws-text-muted:      #64748b;
    --ws-text-on-dark:    #ffffff;
    --ws-text-on-dark-muted: rgba(255, 255, 255, 0.85);

    /* Borders */
    --ws-border:          #e2e8f0;
    --ws-border-light:    #f1f5f9;

    /* Shadows — Tailwind-Style */
    --ws-shadow-sm:       0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ws-shadow-md:       0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ws-shadow-lg:       0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --ws-shadow-card:     0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ws-shadow-hover:    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --ws-transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
    --ws-transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --ws-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Radius (Stitch-Vorgabe) */
    --ws-radius-sm:  12px;
    --ws-radius-md:  16px;
    --ws-radius-lg:  24px;
    --ws-radius-xl:  32px;

    /* Spacing */
    --ws-section-pad: clamp(60px, 8vw, 100px);

    /* Bento-spezifisch */
    --ws-bento-gap:  24px;
    --ws-bento-radius: 16px;

    /* Chessboard — Soft Slate Palette */
    --ws-board-light: #f1f5f9;
    --ws-board-dark:  #cbd5e1;

    /* Tags/Chips */
    --ws-tag-blue-bg:   #dbeafe;
    --ws-tag-blue-text: #1e40af;
    --ws-tag-green-bg:  #d1fae5;
    --ws-tag-green-text:#065f46;
    --ws-tag-purple-bg: #ede9fe;
    --ws-tag-purple-text:#5b21b6;
}


/* ==========================================================================
   2. Base
   ========================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ws-text);
    background: var(--ws-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Dekorative Blobs — Stitch-Design: Lila/Mint Kreise im Seitenhintergrund */
body::before {
    content: '';
    position: fixed;
    top: -15%;
    right: -12%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}


/* ==========================================================================
   3. Typografie — sauber und modern
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.sppb-addon-title {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--ws-text);
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.ws-hero-title {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    color: #312e81;
    margin-bottom: 1.2rem;
}

.ws-section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.6rem;
    line-height: 1.15;
    color: #312e81;
}

.ws-text-lg {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--ws-text-muted);
}

/* Teal-Gradient auf Schluesselwoerter */
.ws-text-gradient {
    background: var(--ws-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold-Gradient (Akzent) */
.ws-text-accent {
    background: var(--ws-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ==========================================================================
   4. Buttons — sanft und einladend
   ========================================================================== */

.ws-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--ws-radius-sm);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--ws-transition-fast),
                box-shadow var(--ws-transition-normal);
}

.ws-btn-primary {
    background: var(--ws-gradient-primary);
    color: #fff;
}
.ws-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    color: #fff;
    text-decoration: none;
}

.ws-btn-accent {
    background: var(--ws-gradient-accent);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}
.ws-btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* Pulse-Animation fuer primaere CTA-Buttons */
.ws-btn-accent-pulse {
    animation: cta-pulse 2.5s ease-in-out infinite;
}
@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3); }
    50% { box-shadow: 0 4px 24px rgba(217, 119, 6, 0.5), 0 0 0 8px rgba(217, 119, 6, 0.08); }
}

.ws-btn-outline {
    background: transparent;
    color: var(--ws-primary);
    border: 2px solid var(--ws-primary);
}
.ws-btn-outline:hover {
    background: var(--ws-primary);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.ws-btn-secondary {
    background: var(--ws-gradient-secondary);
    color: #fff;
}
.ws-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
    color: #fff;
    text-decoration: none;
}


/* ==========================================================================
   5. Bento Cards — das Herzstück von v13
   ========================================================================== */

.ws-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--ws-bento-gap);
    max-width: 1200px;
    margin: 0 auto;
}

.ws-bento-card {
    background: var(--ws-bg-card);
    border-radius: var(--ws-bento-radius);
    padding: 28px;
    box-shadow: var(--ws-shadow-card);
    border: 1px solid var(--ws-border-light);
    transition: transform var(--ws-transition-spring),
                box-shadow var(--ws-transition-normal);
}
.ws-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ws-shadow-hover);
}

/* Bento Card Varianten */
.ws-bento-card-mint {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    border-color: rgba(16, 185, 129, 0.15);
}
.ws-bento-card-purple {
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    border-color: rgba(99, 102, 241, 0.15);
}
.ws-bento-card-gold {
    background: linear-gradient(135deg, #fdf6e8 0%, #faecd0 100%);
    border-color: rgba(232, 168, 56, 0.15);
}
.ws-bento-card-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-color: rgba(59, 130, 246, 0.15);
}

/* Bento Card mit grossem Span */
.ws-bento-wide {
    grid-column: span 2;
}
.ws-bento-tall {
    grid-row: span 2;
}

/* Academy App-Views: kein Hover-Lift */
.com-academy-cabinet .ws-bento-card:hover,
.com-academy-dashboard .ws-bento-card:hover,
.com-academy-trainerpanel .ws-bento-card:hover,
.com-academy-progress .ws-bento-card:hover {
    transform: none;
}
.com-academy-cabinet .ws-bento-card,
.com-academy-dashboard .ws-bento-card,
.com-academy-trainerpanel .ws-bento-card,
.com-academy-progress .ws-bento-card {
    overflow: visible;
}

/* Backwards compat: .ws-card maps to .ws-bento-card */
.ws-card {
    background: var(--ws-bg-card);
    border-radius: var(--ws-bento-radius);
    box-shadow: var(--ws-shadow-card);
    border: 1px solid var(--ws-border-light);
    overflow: hidden;
    padding: 24px;
    transition: transform var(--ws-transition-spring),
                box-shadow var(--ws-transition-normal);
}
.ws-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ws-shadow-hover);
}
.com-academy-cabinet .ws-card,
.com-academy-dashboard .ws-card,
.com-academy-trainerpanel .ws-card,
.com-academy-progress .ws-card {
    overflow: visible;
}
.com-academy-cabinet .ws-card:hover,
.com-academy-dashboard .ws-card:hover,
.com-academy-trainerpanel .ws-card:hover,
.com-academy-progress .ws-card:hover {
    transform: none;
}


/* ==========================================================================
   5b. Browser Frame (Screenshot-Rahmen) — v13: zarter
   ========================================================================== */

.ws-browser-frame {
    border-radius: var(--ws-bento-radius);
    overflow: hidden;
    box-shadow: var(--ws-shadow-lg);
    border: 1px solid var(--ws-border);
    background: var(--ws-bg-card);
}
.ws-browser-bar {
    background: linear-gradient(90deg, var(--ws-primary), var(--ws-primary-light));
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ws-browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}
.ws-browser-dot:nth-child(1) { background: rgba(255,255,255,0.6); }
.ws-browser-dot:nth-child(2) { background: rgba(255,255,255,0.45); }
.ws-browser-dot:nth-child(3) { background: rgba(255,255,255,0.3); }
.ws-browser-url {
    margin-left: 12px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.15);
    padding: 4px 14px;
    border-radius: 4px;
    flex: 1;
}
.ws-browser-body {
    background: var(--ws-bg-card);
}

/* Hero-Perspektive — sanfter */
.ws-hero .ws-browser-frame {
    transform: perspective(1400px) rotateY(-1.5deg) rotateX(1deg);
    transition: transform 0.5s ease;
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.12);
}
.ws-hero .ws-browser-frame:hover {
    transform: perspective(1400px) rotateY(0) rotateX(0) scale(1.01);
}

.ws-feature .ws-browser-frame {
    transform: perspective(1400px) rotateY(-1.5deg) rotateX(1deg);
    transition: transform 0.5s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}
.ws-feature .ws-browser-frame:hover {
    transform: perspective(1400px) rotateY(0) rotateX(0) scale(1.01);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.15);
}

/* Screenshot-Bilder in Feature-Sektionen (auch ohne ws-browser-frame) */
.ws-feature img[src*="feature-"],
.ws-feature img[src*="screenshot"],
.ws-feature .sppb-addon-single-image img,
.ws-feature .sppb-addon img[loading="lazy"] {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
}
.ws-feature img[src*="feature-"]:hover,
.ws-feature img[src*="screenshot"]:hover,
.ws-feature .sppb-addon-single-image img:hover,
.ws-feature .sppb-addon img[loading="lazy"]:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.22);
}

/* Hero-Screenshot: Perspektive + leichter Tilt */
.ws-hero img[src*="feature-"],
.ws-hero img[src*="screenshot"],
.ws-hero .sppb-addon img[loading="lazy"] {
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.15);
    transform: perspective(1200px) rotateY(-3deg) rotateX(1.5deg);
    transition: transform 0.5s ease, box-shadow 0.4s ease;
}
.ws-hero img[src*="feature-"]:hover,
.ws-hero img[src*="screenshot"]:hover,
.ws-hero .sppb-addon img[loading="lazy"]:hover {
    transform: perspective(1200px) rotateY(-1deg) rotateX(0.5deg) scale(1.02);
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.25);
}


/* ==========================================================================
   5c. Randloses Schachbrett (v13 neu)
   ========================================================================== */

.ws-chess-board {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 400px;
    margin: 0 auto;
    border-radius: var(--ws-radius-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    box-shadow: var(--ws-shadow-md);
}
.ws-chess-square-light { background-color: #f0f4f8; }
.ws-chess-square-dark  { background-color: #cbd5e1; }


/* ==========================================================================
   6. Hero Section — v13: hell statt dunkel
   ========================================================================== */

.ws-hero {
    background: var(--ws-gradient-hero);
    position: relative;
    overflow: hidden;
    padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
}
.ws-hero .sppb-row-container,
.ws-hero .sppb-row,
.ws-hero .sppb-column,
.ws-hero .sp-column,
.ws-hero .container,
.ws-hero .container-inner {
    position: relative;
    z-index: 1;
}

/* Text im Hero ist jetzt DUNKEL (heller Hintergrund) */
.ws-hero .ws-text-lg,
.ws-hero p {
    color: var(--ws-text-muted) !important;
}

/* CTA-Section bleibt dunkel */
.ws-cta .ws-text-lg,
.ws-cta p,
.ws-cta-section .ws-text-lg,
.ws-cta-section p {
    color: var(--ws-text-on-dark-muted) !important;
}

.ws-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--ws-text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 2rem;
}

/* Dekorative Shapes im Hero */
.ws-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.ws-hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Welle deaktiviert */
.ws-hero-wave { display: none; }


/* ==========================================================================
   7. Trust Bar — v13: auf hellem Hintergrund
   ========================================================================== */

.ws-trust-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px 40px;
    padding: 24px 32px;
    background: #f1f5f9;
    border-top: 3px solid var(--ws-primary);
    border-radius: 0 0 var(--ws-radius-md) var(--ws-radius-md);
    margin-top: -1px;
}
.ws-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ws-text-muted);
    white-space: nowrap;
}
.ws-trust-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--ws-primary-light);
    color: var(--ws-primary);
    border-radius: 8px;
    flex-shrink: 0;
}


/* ==========================================================================
   8. Sections
   ========================================================================== */

.ws-section {
    padding: var(--ws-section-pad) 0;
}
.ws-section-alt {
    background: #eef2ff;
}
.ws-section-dark {
    background: var(--ws-surface-dark);
    color: var(--ws-text-on-dark);
}

/* Alternierung: gerade SPPB-Sections bekommen leichten Indigo-Tint */
.sppb-section:nth-child(even):not(.ws-hero):not(.ws-cta-section):not(.ws-section-dark) {
    background: #eef2ff;
}

.ws-section-subtitle {
    font-size: 1.05rem;
    color: var(--ws-text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}


/* ==========================================================================
   9. Feature Grid (Bento-Cards)
   ========================================================================== */

.ws-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--ws-bento-gap);
    max-width: 1100px;
    margin: 0 auto;
}

.ws-feature-card {
    background: var(--ws-bg-card);
    border-radius: var(--ws-bento-radius);
    padding: 32px 28px;
    border: 1px solid var(--ws-border-light);
    box-shadow: var(--ws-shadow-card);
    transition: transform var(--ws-transition-spring),
                box-shadow var(--ws-transition-normal);
}
.ws-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ws-shadow-hover);
}

.ws-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--ws-radius-md);
    background: var(--ws-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--ws-primary);
}

.ws-feature-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ws-text);
}


/* ==========================================================================
   10. Numbers / Stats — v13: auf hellem Hintergrund
   ========================================================================== */

.ws-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px 60px;
    padding: 40px 0;
}

.ws-number-item {
    text-align: center;
}

.ws-number-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--ws-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.ws-number-label {
    font-size: 0.9rem;
    color: var(--ws-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ==========================================================================
   11. Pricing — v13: Bento-Style
   ========================================================================== */

.ws-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ws-bento-gap);
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.ws-price-card {
    background: var(--ws-bg-card);
    border-radius: var(--ws-bento-radius);
    padding: 36px 28px;
    border: 1px solid var(--ws-border-light);
    box-shadow: var(--ws-shadow-card);
    transition: transform var(--ws-transition-spring),
                box-shadow var(--ws-transition-normal);
}
.ws-price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ws-shadow-hover);
}

.ws-price-card-highlight {
    border: 2px solid var(--ws-primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2), 0 4px 20px rgba(99, 102, 241, 0.15);
    position: relative;
    transform: scale(1.05);
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
}
.ws-price-card-highlight:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.28), 0 8px 30px rgba(99, 102, 241, 0.18);
}

/* "Beliebteste Wahl" Badge */
.ws-price-card-highlight::before {
    content: '\2605  Beliebteste Wahl';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ws-gradient-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 18px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

@media (max-width: 991px) {
    .ws-pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .ws-pricing-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   11b. Steps — v13: Teal statt Lila
   ========================================================================== */

.ws-steps-row {
    position: relative;
}
.ws-steps-row::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, rgba(74,143,125,0.15), var(--ws-primary), rgba(74,143,125,0.15));
    z-index: 0;
}
.ws-step {
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}
.ws-step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ws-gradient-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
    border: 3px solid var(--ws-accent);
}
.ws-step h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.ws-step p {
    font-size: 0.9rem;
    color: var(--ws-text-muted);
    line-height: 1.5;
}


/* ==========================================================================
   11c. Audience Cards
   ========================================================================== */

.ws-audience-card {
    background: var(--ws-bg-card);
    border: 1px solid var(--ws-border-light);
    border-radius: var(--ws-bento-radius);
    overflow: hidden;
    transition: transform var(--ws-transition-spring),
                box-shadow var(--ws-transition-normal);
    height: 100%;
    border-top: 4px solid var(--ws-primary);
}
.ws-audience-card:hover {
    box-shadow: var(--ws-shadow-hover);
    transform: translateY(-4px);
    border-top-color: var(--ws-accent);
}
.ws-audience-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.ws-audience-body {
    padding: 1.5rem;
}
.ws-audience-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.ws-audience-body p {
    font-size: 0.95rem;
    color: var(--ws-text-muted);
    line-height: 1.6;
}
.ws-audience-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.8rem;
    color: var(--ws-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}
.ws-audience-link:hover {
    gap: 10px;
    color: var(--ws-primary-dark);
}


/* ==========================================================================
   11d. Hero Badge — v13: auf hellem Grund
   ========================================================================== */

.ws-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ws-primary-dark);
    margin-bottom: 1.5rem;
}
.ws-hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ws-primary);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.4); }
}


/* ==========================================================================
   11e. Feature Text (Screenshot-Sections)
   ========================================================================== */

.ws-feature {
    overflow: hidden;
}
/* Feature-Detail Sections: Vertikale Zentrierung der Text-Spalte */
.ws-feature .sppb-row {
    align-items: center;
}

.ws-feature-text-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #312e81;
    margin-bottom: 0.5rem;
}
.ws-feature-text-subtitle {
    font-size: 1.05rem;
    color: var(--ws-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}


/* ==========================================================================
   12. FAQ
   ========================================================================== */

.ws-faq-item {
    border-bottom: 1px solid var(--ws-border);
}
.ws-faq-question {
    padding: 20px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ws-text);
    list-style: none;
}
.ws-faq-question::-webkit-details-marker { display: none; }
.ws-faq-question::after {
    content: '+';
    float: right;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--ws-primary);
    transition: transform var(--ws-transition-fast);
}
details[open] .ws-faq-question::after { content: '\2212'; }
.ws-faq-answer {
    padding: 0 0 20px;
    color: var(--ws-text-muted);
    line-height: 1.7;
}


/* ==========================================================================
   13. Scroll-Animationen — com_academy Views
   Gate: html.ws-js (gesetzt durch academy-v13.js)
   Ohne JS: alle Elemente sofort sichtbar (progressive enhancement)
   Landing Pages (SP PB): nicht betroffen (nutzen inline styles)
   ========================================================================== */

/* Ohne JS: sofort sichtbar */
.ws-animate,
.ws-animate-left,
.ws-animate-right,
.ws-animate-scale,
.ws-stagger > * {
    opacity: 1;
    transform: none;
}

/* Mit JS: Anfangszustand versteckt */
html.ws-js .ws-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
html.ws-js .ws-animate-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
html.ws-js .ws-animate-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
html.ws-js .ws-animate-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
html.ws-js .ws-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Sichtbar-Zustand (gesetzt per JS IntersectionObserver) */
html.ws-js .ws-animate.ws-visible,
html.ws-js .ws-animate-left.ws-visible,
html.ws-js .ws-animate-right.ws-visible,
html.ws-js .ws-animate-scale.ws-visible,
html.ws-js .ws-stagger > .ws-visible {
    opacity: 1;
    transform: none;
}

/* Stagger-Verzoegerungen */
html.ws-js .ws-stagger > *:nth-child(1) { transition-delay: 0ms; }
html.ws-js .ws-stagger > *:nth-child(2) { transition-delay: 80ms; }
html.ws-js .ws-stagger > *:nth-child(3) { transition-delay: 160ms; }
html.ws-js .ws-stagger > *:nth-child(4) { transition-delay: 240ms; }
html.ws-js .ws-stagger > *:nth-child(5) { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
    html.ws-js .ws-animate,
    html.ws-js .ws-animate-left,
    html.ws-js .ws-animate-right,
    html.ws-js .ws-animate-scale,
    html.ws-js .ws-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* Focus-visible for keyboard navigation */
.ws-btn:focus-visible,
.ws-btn-accent:focus-visible,
.ws-btn-outline:focus-visible {
    outline: 3px solid var(--ws-accent);
    outline-offset: 2px;
}
.ws-card:focus-visible,
.ws-bento-card:focus-visible,
a:focus-visible {
    outline: 3px solid var(--ws-accent);
    outline-offset: 2px;
}


/* ==========================================================================
   14. CTA Section — v13: Teal-Gradient
   ========================================================================== */

.ws-cta-section {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #818cf8 100%);
    padding: clamp(60px, 8vw, 100px) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ws-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(91, 168, 152, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}


/* ==========================================================================
   15. Header Overrides (Helix Ultimate)
   ========================================================================== */

#sp-header {
    background: var(--ws-bg-card) !important;
    border-bottom: none !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04) !important;
    transition: box-shadow 0.3s ease;
    z-index: 100;
    overflow: visible !important;
}
#sp-header.header-sticky {
    position: sticky !important;
    top: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

#sp-header,
#sp-header > .container-fluid,
#sp-header .container-inner,
#sp-header .container-inner > .row,
#sp-header #sp-logo,
#sp-header #sp-logo .sp-column,
#sp-header #sp-logo .logo {
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    contain: none !important;
}

#sp-header .container-inner > .row {
    min-height: 80px;
    align-items: center !important;
}

/* Logo-Quadrat */
#sp-header #sp-logo {
    position: relative;
    z-index: 110;
}
#sp-header #sp-logo .logo a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    width: 120px;
    height: 120px;
    padding: 12px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
    border: 3px solid var(--ws-accent);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    margin-top: 10px;
    margin-bottom: -50px;
    position: relative;
    z-index: 110;
}
#sp-header #sp-logo .logo a:hover {
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.12);
}

/* Mega-Menu — Padding/Line-Height explizit, damit active vs. non-active
   keinen Versatz erzeugt (siehe TASK-NAV-SPACING.md) */
.sp-megamenu-parent > li > a {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--ws-text) !important;
    transition: color 0.2s ease !important;
    padding: 18px 16px 20px !important;
    line-height: 1 !important;
}
.sp-megamenu-parent > li > a:hover,
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.current-item.active > a {
    color: var(--ws-primary) !important;
    font-weight: 700 !important;
    padding: 18px 16px 20px !important;
    line-height: 1 !important;
}

/* Academy-Button in Nav — gleiche Baseline wie andere Items */
.sp-megamenu-parent > li > a[href*="academy"],
.sp-megamenu-parent > li > a[href*="kabinett"] {
    background: var(--ws-gradient-primary) !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: var(--ws-radius-sm) !important;
    margin-left: 4px;
    font-weight: 700 !important;
    line-height: 1 !important;
}
.sp-megamenu-parent > li > a[href*="academy"]:hover,
.sp-megamenu-parent > li > a[href*="kabinett"]:hover {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3) !important;
    color: #fff !important;
}


/* ==========================================================================
   16. Footer
   ========================================================================== */

#sp-footer {
    background: var(--ws-surface-dark) !important;
    color: var(--ws-text-on-dark-muted) !important;
    padding: 48px 0 24px !important;
}
#sp-footer a {
    color: var(--ws-text-on-dark-muted) !important;
    text-decoration: none;
    transition: color 0.2s;
}
#sp-footer a:hover {
    color: var(--ws-accent) !important;
}

/* Footer-Menü: 3 Spalten */
#sp-footer .mod-menu,
#sp-footer ul.mod-menu {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    height: 5.5em !important;
    gap: 6px 4rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#sp-footer .mod-menu li {
    list-style: none !important;
}
#sp-footer .mod-menu li a {
    font-size: 0.9rem;
    color: var(--ws-text-on-dark-muted) !important;
}
@media (max-width: 768px) {
    #sp-footer .mod-menu,
    #sp-footer ul.mod-menu {
        flex-direction: row !important;
        height: auto !important;
        gap: 8px 2rem !important;
        flex-wrap: wrap !important;
    }
}

#sp-bottom {
    background: var(--ws-surface-dark) !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.5) !important;
    padding: 16px 0 !important;
    font-size: 0.85rem;
}


/* ==========================================================================
   17. XP Progress Bar (v13 neu)
   ========================================================================== */

.ws-xp-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--ws-bg-card);
    border-radius: var(--ws-bento-radius);
    box-shadow: var(--ws-shadow-card);
}
.ws-xp-bar-track {
    flex: 1;
    height: 12px;
    background: var(--ws-border);
    border-radius: 6px;
    overflow: hidden;
}
.ws-xp-bar-fill {
    height: 100%;
    background: var(--ws-gradient-primary);
    border-radius: 6px;
    transition: width 0.6s ease;
}
.ws-xp-bar-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ws-text);
    white-space: nowrap;
}


/* ==========================================================================
   18. Leaderboard Podium (v13 neu)
   ========================================================================== */

.ws-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    padding: 32px 0;
}
.ws-podium-item {
    text-align: center;
    padding: 20px;
    border-radius: var(--ws-bento-radius);
    min-width: 120px;
}
.ws-podium-1 {
    background: linear-gradient(180deg, #ffeaa7 0%, #fdcb6e 100%);
    min-height: 180px;
}
.ws-podium-2 {
    background: linear-gradient(180deg, #dfe6e9 0%, #b2bec3 100%);
    min-height: 150px;
}
.ws-podium-3 {
    background: linear-gradient(180deg, #fab1a0 0%, #e17055 100%);
    min-height: 130px;
}
.ws-podium-name {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 8px;
}
.ws-podium-xp {
    font-size: 0.85rem;
    color: var(--ws-text-muted);
}


/* ==========================================================================
   19. Quick Start Cards (v13 neu)
   ========================================================================== */

.ws-quick-start {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}
.ws-quick-card {
    background: var(--ws-bg-card);
    border-radius: var(--ws-bento-radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--ws-shadow-card);
    border: 1px solid var(--ws-border-light);
    transition: transform var(--ws-transition-spring),
                box-shadow var(--ws-transition-normal);
    cursor: pointer;
    text-decoration: none;
    color: var(--ws-text);
}
.ws-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ws-shadow-hover);
    text-decoration: none;
    color: var(--ws-text);
}
.ws-quick-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.ws-quick-card-label {
    font-size: 0.8rem;
    color: var(--ws-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ws-quick-card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 4px;
}


/* ==========================================================================
   20. Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .ws-hero {
        padding: 60px 0 50px;
    }
    .ws-hero-title {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }
    .ws-feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ws-numbers {
        gap: 24px 40px;
    }
    .ws-bento-wide {
        grid-column: span 1;
    }
    .ws-bento-grid {
        grid-template-columns: 1fr;
    }
    .ws-quick-start {
        grid-template-columns: repeat(2, 1fr);
    }
    .ws-hero .ws-browser-frame {
        transform: none;
    }
    .ws-hero::before,
    .ws-hero::after {
        display: none;
    }
    .ws-hero .row > [class*="col-"]:last-child {
        margin-top: 32px;
    }
    .ws-section,
    .sppb-section {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    .ws-podium {
        flex-direction: row;
        gap: 8px;
    }
    .ws-podium-item {
        min-width: 90px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .ws-quick-start {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   SPPB Inline-Style Overrides
   SPPB setzt box-shadow: 0 0 0 0 #FFFFFF als Inline-Style auf .sppb-addon.
   Ohne !important greifen die v13-Shadows nicht.
   ========================================================================== */

/* Feature-Cards: SPPB-Addons die als Bento-Cards gestylt sind */
.ws-bento-card.sppb-addon,
.ws-card.sppb-addon,
.ws-feature .sppb-addon {
    box-shadow: var(--ws-shadow-card) !important;
}
.ws-bento-card.sppb-addon:hover,
.ws-card.sppb-addon:hover,
.ws-feature .sppb-addon:hover {
    box-shadow: var(--ws-shadow-hover) !important;
}

/* SPPB Link-Farbe: altes Blau → Indigo — NUR auf Landing Pages (SPPB), NICHT in com_academy */
.sppb-section a:not(.ws-btn):not(.btn):not([class*="sp-megamenu"]),
.com-sppagebuilder a:not(.ws-btn):not(.btn):not([class*="sp-megamenu"]) {
    color: var(--ws-primary);
}
.sppb-section a:not(.ws-btn):not(.btn):hover,
.com-sppagebuilder a:not(.ws-btn):not(.btn):hover {
    color: var(--ws-primary-dark);
}
