/* ═══════════════════════════════════════════════════════
   deinerfolgsrezept.de — Hauptstylesheet
   Farbpalette: Dark Navy + Gold Amber
   ═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --bg-main:       #0d111a;
  --bg-card:       #131c2a;
  --bg-nav:        #080d14;
  --border:        #1e2a3a;
  --accent:        #f59e0b;
  --accent-hover:  #d97706;
  --accent-glow:   rgba(245, 158, 11, 0.15);
  --blue:          #4353ff;
  --text-main:     #f1f5f9;
  --text-muted:    #94a3b8;
  --text-faint:    #64748b;
  --danger:        #ef4444;
  --success:       #22c55e;
  --white-section: #f3f4f9;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(245,158,11,0.2);
  --transition: 0.25s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-main);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Section spacing ── */
section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header p {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin-left: 16px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  background: var(--border);
}

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(160deg, #0d111a 0%, #131c2a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-inner--solo {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-inner--solo .hero-sub { margin-left: auto; margin-right: auto; }
.hero-inner--solo .hero-buttons { justify-content: center; }
.hero-inner--solo .hero-stats { justify-content: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat .val {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stat .lbl {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Video placeholder / embed */
.hero-video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  inset: 0;
}

.video-placeholder {
  text-align: center;
  color: var(--text-faint);
  padding: 40px;
}
.video-placeholder .play-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.video-placeholder p { font-size: 13px; margin-top: 8px; }

/* ══════════════════════════════════════════
   BÖRSENKOMPASS
══════════════════════════════════════════ */
.kompass-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.kompass-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.kompass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  max-width: 520px;
}

.kompass-axis-label {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.kompass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.kompass-quadrant {
  border-radius: var(--radius-md);
  padding: 24px 20px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: default;
  transition: var(--transition);
  position: relative;
}

.kompass-quadrant h4 { font-size: 14px; margin-bottom: 4px; }
.kompass-quadrant .sub { font-size: 11px; opacity: 0.65; }

.q-new-up    { background: #1a3a28; }
.q-mature-up { background: #2a3a18; }
.q-new-down  { background: #3a1a1a; }
.q-mature-down { background: #2a1414; }

.kompass-quadrant.is-active {
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(245,158,11,0.2);
}

.q-current-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: var(--bg-main);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.kompass-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
}
.kompass-axis-label--long {
  margin-right: auto;
  padding-left: 38%;
}

/* Börsenkompass-Wert Box */
.bk-value-box {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  text-align: center;
}
.bk-value-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.bk-value-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.bk-value-number.is-negative { color: var(--risk-red, #ef4444); }
.bk-value-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* KGV Bewertungsskala */
.kompass-sidebar h3 { margin-bottom: 20px; }

.kgv-scale {
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--bg-main);
  border: 1px solid var(--border);
}
.kgv-scale-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.kgv-bar {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(to right, #006400, #90EE90, #FFD700, #FFA500, #8B0000);
  position: relative;
  margin-bottom: 6px;
}
.kgv-marker {
  position: absolute;
  top: -4px;
  width: 6px;
  height: 22px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255,255,255,0.7);
  transform: translateX(-50%);
}
.kgv-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 4px;
}

.kompass-update {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.kompass-update strong { color: var(--accent); }

/* ══════════════════════════════════════════
   YOUTUBE VIDEOS
══════════════════════════════════════════ */
.videos-section { background: var(--bg-main); }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.video-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #0a0f18;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.04); }

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: var(--transition);
}
.video-card:hover .video-play-btn { background: rgba(0,0,0,0.15); }

.play-circle {
  width: 52px;
  height: 52px;
  background: rgba(245,158,11,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--bg-main);
  transition: transform var(--transition);
}
.video-card:hover .play-circle { transform: scale(1.1); }

.video-info {
  padding: 16px;
}
.video-info h3 {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  font-size: 11px;
  color: var(--text-faint);
}

.videos-cta {
  text-align: center;
  margin-top: 40px;
}

/* Skeleton & Fehler-States für YouTube-Feed */
.video-card--skeleton { pointer-events: none; }
.video-card--skeleton .video-thumb {
  background: linear-gradient(90deg, #131c2a 0%, #1e2a3a 50%, #131c2a 100%);
  background-size: 200% 100%;
  animation: feedShimmer 1.4s linear infinite;
  aspect-ratio: 16 / 9;
}
.video-card--skeleton .video-info h3 { color: var(--text-faint); }
@keyframes feedShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.video-feed-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 32px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.video-feed-msg a { color: var(--accent); font-weight: 700; }

/* ══════════════════════════════════════════
   KURSE & LEAD-MAGNETEN
══════════════════════════════════════════ */
.courses-section { background: var(--bg-card); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.course-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.badge-free { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-premium { background: var(--accent-glow); color: var(--accent); }

.course-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.course-card h3 { font-size: 16px; margin-bottom: 8px; }
.course-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.course-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.course-card:hover .course-link { gap: 10px; }

/* ══════════════════════════════════════════
   TOOLS TEASER
══════════════════════════════════════════ */
.tools-section { background: var(--bg-main); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.tool-icon {
  font-size: 44px;
  margin-bottom: 20px;
}

.tool-card h3 { font-size: 20px; margin-bottom: 10px; }
.tool-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 28px;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  width: fit-content;
}

/* ══════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, #131c2a 0%, #1a2535 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section h2 span { color: var(--accent); }
.cta-section p {
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--text-faint);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: var(--text-faint); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: var(--text-faint); transition: color var(--transition); }
.footer-legal a:hover { color: var(--accent); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-video { max-width: 560px; }
  .kompass-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    z-index: 999;
  }

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

  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .kompass-grid { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
