/* ============================================================
   MeisterKurs Interaktiv – Landing Page CSS
   Design: Dark SaaS (Linear/Vercel style)
   ============================================================ */

/* ── CSS Variables (redefined here; style.css not included on landing) */
:root {
  --bg-primary:    #0f1119;
  --bg-secondary:  #0a0b12;
  --bg-card:       #131520;
  --bg-card-hover: #1a1c2e;

  --border-default: #1e2030;
  --border-subtle:  #2a2d42;

  --text-primary:   #ffffff;
  --text-secondary: #e2e4ea;
  --text-muted:     #8b8fa6;
  --text-dim:       #6b6f82;

  --accent-red:    #e85d4a;
  --accent-orange: #f0a03c;
  --accent-blue:   #3b82f6;
  --accent-purple: #a78bfa;
  --accent-green:  #4ade80;
  --accent-yellow: #f59e0b;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  min-height: 100vh;
  line-height: 1.6;
  display: block;
}

a { text-decoration: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 3px; }

/* ── Shared Section Helpers ─────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 52px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 25, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-default);
  transition: box-shadow 0.2s;
}

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

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  font-family: inherit;
}

.btn-nav-primary {
  background: var(--accent-red);
  color: #fff;
}

.btn-nav-primary:hover {
  background: #d44e3c;
}

.btn-nav-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-nav-ghost:hover {
  color: var(--text-secondary);
  border-color: var(--text-dim);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 100px 24px 80px;
  overflow: hidden;
  text-align: center;
}

/* Background grid pattern */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-default) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-default) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}

/* Radial gradient overlays on the grid to fade edges */
.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, transparent 40%, var(--bg-primary) 100%);
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.12;
}

.hero-glow-left {
  left: -150px;
  top: -100px;
  background: var(--accent-red);
}

.hero-glow-right {
  right: -150px;
  top: -50px;
  background: var(--accent-blue);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-headline-gradient {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-orange) 50%, var(--accent-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtext {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  font-family: inherit;
}

.btn-hero svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

.btn-hero-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 32px rgba(232, 93, 74, 0.35);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(232, 93, 74, 0.5);
}

.btn-hero-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-hero-secondary:hover {
  border-color: var(--text-dim);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-disclaimer {
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-card);
  padding: 32px 24px;
}

.stats-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stats-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stats-number {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
}

.stats-label {
  font-size: 13px;
  color: var(--text-muted);
}

.stats-divider {
  width: 1px;
  height: 48px;
  background: var(--border-default);
  flex-shrink: 0;
  margin: 0 16px;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 80px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: inherit;
  pointer-events: none;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-subtle);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.feature-icon-red    { background: rgba(232, 93, 74, 0.12);  color: var(--accent-red); }
.feature-icon-blue   { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue); }
.feature-icon-orange { background: rgba(240, 160, 60, 0.12); color: var(--accent-orange); }
.feature-icon-purple { background: rgba(167, 139, 250, 0.12);color: var(--accent-purple); }
.feature-icon-green  { background: rgba(74, 222, 128, 0.12); color: var(--accent-green); }
.feature-icon-yellow { background: rgba(245, 158, 11, 0.12); color: var(--accent-yellow); }

.feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ftag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ftag-red    { background: rgba(232, 93, 74, 0.12);  color: var(--accent-red);    border: 1px solid rgba(232, 93, 74, 0.2); }
.ftag-blue   { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue);   border: 1px solid rgba(59, 130, 246, 0.2); }
.ftag-orange { background: rgba(240, 160, 60, 0.12); color: var(--accent-orange); border: 1px solid rgba(240, 160, 60, 0.2); }
.ftag-purple { background: rgba(167,139,250, 0.12);  color: var(--accent-purple); border: 1px solid rgba(167,139,250, 0.2); }
.ftag-green  { background: rgba(74, 222, 128, 0.12); color: var(--accent-green);  border: 1px solid rgba(74, 222, 128, 0.2); }
.ftag-muted  { background: var(--bg-card-hover);     color: var(--text-dim);      border: 1px solid var(--border-default); }

.feature-badge-row {
  margin-top: auto;
}

.feature-badge {
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg-card-hover);
  border: 1px solid var(--border-default);
  padding: 3px 9px;
  border-radius: 20px;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: all 0.2s;
}

.pricing-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-2px);
}

.pricing-card-premium {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue), 0 8px 48px rgba(59, 130, 246, 0.18);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.06) 0%, var(--bg-card) 60%);
}

.pricing-card-premium:hover {
  box-shadow: 0 0 0 1px var(--accent-blue), 0 16px 64px rgba(59, 130, 246, 0.28);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.pricing-card-header {
  margin-bottom: 24px;
}

.pricing-tier {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 12px;
}

.pricing-tier-premium {
  color: var(--accent-blue);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-dim);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-feature {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-feature::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-feature-check {
  color: var(--text-secondary);
}

.pricing-feature-check::before {
  background-color: rgba(74, 222, 128, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8 6.5 11 12.5 5' stroke='%234ade80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pricing-feature-x {
  color: var(--text-dim);
}

.pricing-feature-x::before {
  background-color: rgba(107, 111, 130, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M5 5 11 11M11 5 5 11' stroke='%236b6f82' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.btn-pricing {
  display: block;
  text-align: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  font-family: inherit;
}

.btn-pricing-primary {
  background: var(--accent-blue);
  color: #fff;
}

.btn-pricing-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-pricing-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-pricing-ghost:hover {
  color: var(--text-secondary);
  border-color: var(--text-dim);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border-default);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.footer-brand-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-brand-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  width: 100%;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-default);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 70px 20px 60px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .nav-logo-text { display: none; }
  .btn-nav { padding: 7px 12px; font-size: 12px; }
}

/* ── Prüfungstermine Widget Bar ──────────────────────────────── */
.termine-widget-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  padding: 16px 0;
}

.termine-widget-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.termine-widget-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.termine-widget-cards {
  display: flex;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}

.termin-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 12px;
  flex: 1 1 180px;
  min-width: 180px;
  max-width: 320px;
  overflow: hidden;
}

.termin-card-datum {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.termin-card-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.termin-card-faecher {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.termin-card-typ {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.termin-card-countdown {
  font-size: 10px;
  color: var(--accent-orange);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.termine-skeleton {
  height: 52px;
  flex: 1 1 180px;
  min-width: 180px;
  max-width: 320px;
  background: var(--bg-secondary);
  border-radius: 10px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.termine-widget-hint {
  font-size: 10px;
  color: var(--text-dim);
  flex-shrink: 0;
  text-decoration: none;
  cursor: default;
  max-width: 140px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .termine-widget-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .termin-card, .termine-skeleton {
    max-width: 100%;
    width: 100%;
  }
  .termine-widget-hint { max-width: 100%; }
}

/* ============================================================
   GRÜNDER SECTION
   ============================================================ */
.gruender-section {
  padding: 60px 20px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.gruender-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}
.gruender-bild {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.gruender-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gruender-bild.no-img .gruender-placeholder { display: flex; }
.gruender-placeholder { display: none; }
.gruender-text h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #f0a03c;
}
.gruender-text p {
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  font-style: italic;
}
@media (max-width: 600px) {
  .gruender-container { flex-direction: column; align-items: center; text-align: center; }
}
