/*
 Theme Name: 79Academy Theme
 Theme URI: https://79academy.de
 Description: Dark Theme fuer 79Academy. Child Theme von GeneratePress — minimaler Overhead, Apple-like Design.
 Author: Colin Ugbekile
 Author URI: https://79academy.de
 Template: generatepress
 Version: 5.61
 Text Domain: 79academy-theme
*/

/* ================================================
   79ACADEMY GLOBAL OVERRIDES
   Nur fuer WordPress-Level Anpassungen die GeneratePress
   Customizer nicht abdeckt. Alles andere → Customizer.
   ================================================ */

/* App-Lock: Horizontales Swipen + Rubber-Band-Effekt global sperren.
   Beide Elemente noetig — html allein reicht auf iOS Safari nicht. */
html, body {
  overflow-x: clip;
  overscroll-behavior-x: none;
}

/* Site-wide Gradient Background (v3.2).
   Moved from homepage.css — identical gradient now on ALL pages.
   Fallback #0A0E17 for browsers that don't support gradients. */
body {
  background: linear-gradient(180deg,
    #0A0E17 0%,
    #0A0E17 14%,
    #0B1120 24%,
    #0D1424 36%,
    #0E1628 46%,
    #0D1424 56%,
    #0E1628 70%,
    #0C1220 82%,
    #0D1525 92%,
    #0A0E17 100%
  ) #0A0E17;
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links im 79Academy Accent Blue */
a {
  color: #2F80FF;
}

a:hover {
  color: #60A5FF;
}

/* WordPress Content Area — transparent fuer Plugin-Shortcodes */
.site-content {
  background: transparent;
}

/* GP parent sets .entry-title/.page-title to dark color.
   Override globally for our dark theme. body color inheritance
   does not reach these because GP has explicit selectors. */
.entry-title,
.page-title {
  color: #FFFFFF;
}

/* Secondary text color for content areas.
   Plugin shortcode pages override this via PostCSS scoping
   (higher specificity), so no collision risk. */
.entry-content p,
.entry-content li {
  color: rgba(255, 255, 255, 0.6);
}

/* ================================================
   FULL WIDTH CONTENT — GP Wrapper fuer Dark Theme
   Layout (Full Width / No Sidebar) wird per WP Admin
   Layout-Box gesetzt (Content Container + Sidebar).
   Diese Regeln machen GP-Wrapper transparent und
   entfernen Default-Padding fuer das dunkle Design.
   ================================================ */
.full-width-content .site-main {
  padding: 0;
  max-width: 100%;
}

.full-width-content .content-area,
.full-width-content .inside-article,
.full-width-content .entry-content,
.full-width-content article {
  background: transparent;
  padding: 0;
}

/* Mobile: Force edge-to-edge on full-width pages.
   GP parent may inject container/wrapper padding at mobile
   breakpoints that the above desktop rules don't override.
   High specificity (body.class) beats GP parent selectors. */
@media (max-width: 600px) {
  body.full-width-content #page,
  body.full-width-content .site-content,
  body.full-width-content .content-area,
  body.full-width-content .site-main,
  body.full-width-content .inside-article,
  body.full-width-content .entry-content {
    padding-left: 0;
    padding-right: 0;
  }
}

/* GeneratePress Site Header — transparent for gradient pass-through (v3.2).
   App pages use .nav-header (glassmorphism) instead, which already has its own bg. */
header.site-header {
  background: transparent;
}

/* Footer — transparent for gradient pass-through (v3.2). */
.site-footer {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

/* ================================================
   ONBOARDING HEADER — Nicht-eingeloggte User
   Minimaler Header: Logo links, Einloggen-Button rechts.
   Kein Hamburger, keine Navigation.
   Passend zum App-Header (gleiche Dimensionen/Farben).
   ================================================ */
.onboarding-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

body.admin-bar .onboarding-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .onboarding-header {
    top: 46px;
  }
}

.onboarding-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
}

.onboarding-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.onboarding-logo-link:hover {
  opacity: 0.8;
}

.onboarding-logo-link:focus-visible {
  outline: 2px solid #2F80FF;
  outline-offset: 4px;
  border-radius: 4px;
}

.onboarding-logo-link .nav-logo {
  display: block;
  height: 32px;
  width: auto;
}

.onboarding-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}

.onboarding-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: #2F80FF;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.onboarding-login-btn:hover {
  background: #60A5FF;
  color: #FFFFFF;
  text-decoration: none;
}

.onboarding-login-btn:focus-visible {
  outline: 2px solid #2F80FF;
  outline-offset: 4px;
}

.onboarding-login-btn:active {
  background: #2570E0;
}

@media (min-width: 769px) {
  .onboarding-header-inner {
    height: 64px;
    padding: 0 24px;
  }

  .onboarding-logo-link .nav-logo {
    height: 36px;
  }

  .onboarding-login-btn {
    padding: 8px 24px;
    font-size: 15px;
  }
}

/* ================================================
   LEGAL PAGES — Impressum + Datenschutz + AGB
   Seiten: /impressum/, /datenschutz/, /agb/
   ================================================ */

.page-slug-impressum .site-content .entry-content,
.page-slug-datenschutz .site-content .entry-content,
.page-slug-agb .site-content .entry-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.7;
}

.page-slug-impressum .entry-content h2,
.page-slug-datenschutz .entry-content h2,
.page-slug-agb .entry-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 32px;
}

.page-slug-impressum .entry-content h3,
.page-slug-datenschutz .entry-content h3,
.page-slug-agb .entry-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 40px;
  margin-bottom: 16px;
}

.page-slug-impressum .entry-content h4,
.page-slug-datenschutz .entry-content h4,
.page-slug-agb .entry-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 28px;
  margin-bottom: 12px;
}

.page-slug-impressum .entry-content p,
.page-slug-datenschutz .entry-content p,
.page-slug-agb .entry-content p {
  margin-bottom: 16px;
}

.page-slug-impressum .entry-content a,
.page-slug-datenschutz .entry-content a,
.page-slug-agb .entry-content a {
  color: #2F80FF;
  text-decoration: none;
}

.page-slug-impressum .entry-content a:hover,
.page-slug-datenschutz .entry-content a:hover,
.page-slug-agb .entry-content a:hover {
  text-decoration: underline;
}

.page-slug-impressum .entry-content ul,
.page-slug-datenschutz .entry-content ul,
.page-slug-agb .entry-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.page-slug-impressum .entry-content li,
.page-slug-datenschutz .entry-content li,
.page-slug-agb .entry-content li {
  margin-bottom: 8px;
}

.page-slug-impressum .entry-content strong,
.page-slug-datenschutz .entry-content strong,
.page-slug-agb .entry-content strong {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 600px) {
  .page-slug-impressum .site-content .entry-content,
  .page-slug-datenschutz .site-content .entry-content,
  .page-slug-agb .site-content .entry-content {
    padding: 24px 20px 60px;
  }

  .page-slug-impressum .entry-content h2,
  .page-slug-datenschutz .entry-content h2,
  .page-slug-agb .entry-content h2 {
    font-size: 20px;
  }

  .page-slug-impressum .entry-content h3,
  .page-slug-datenschutz .entry-content h3,
  .page-slug-agb .entry-content h3 {
    font-size: 16px;
  }
}

/* ================================================
   MENTAL TRAINING HUB — [79academy_mental_training]
   Seite: /mental-training/
   ================================================ */
.mt-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

@media (min-width: 769px) {
  .mt-container {
    padding: 56px 20px 60px;
  }
}

.mt-header {
  text-align: left;
  margin-bottom: 40px;
}

.mt-title {
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.mt-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.mt-courses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mt-course-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mt-course-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
}

.mt-course-card:focus {
  outline: 2px solid #2F80FF;
  outline-offset: 2px;
}

.mt-course-card:active {
  transform: translateY(0);
}

.mt-course-title {
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.mt-course-desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 20px;
  flex: 1;
}

.mt-course-cta {
  font-size: 14px;
  font-weight: 600;
  color: #2F80FF;
  transition: color 0.15s ease;
}

.mt-course-card:hover .mt-course-cta {
  color: #60A5FF;
}

@media (max-width: 600px) {
  .mt-container {
    padding: 24px 16px 48px;
  }

  .mt-title {
    font-size: 24px;
  }

  .mt-header {
    margin-bottom: 28px;
  }

  .mt-courses {
    grid-template-columns: 1fr;
  }

  .mt-course-card {
    padding: 24px 20px;
  }
}
