/* =============================================================
   E-Scooter Führerschein – Design System
   Farben: Anthrazit #2B2D42 | Orange #FF6B2B
   ============================================================= */

/* --- Variables ------------------------------------------------ */
:root {
  --anthrazit:        #2B2D42;
  --anthrazit-light:  #3D3F56;
  --orange:           #FF6B2B;
  --orange-dark:      #E55A1C;
  --orange-light:     rgba(255, 107, 43, 0.12);
  --hell-grau:        #F5F6F8;
  --border:           #E0E1E8;
  --text:             #2B2D42;
  --text-muted:       #6C757D;

  /* Backward compat – templates still using old variable names */
  --dunkelblau:       #2B2D42;
  --hellblau:         #3D3F56;
  --grau:             #F5F6F8;

  --radius:           12px;
  --radius-sm:        8px;
  --shadow-sm:        0 2px 12px rgba(0,0,0,.07);
  --shadow-md:        0 6px 28px rgba(0,0,0,.11);
  --shadow-lg:        0 12px 48px rgba(0,0,0,.15);
  --t:                .18s ease;
}

/* --- Reset / Base -------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* --- Navbar --------------------------------------------------- */
.navbar {
  background: var(--anthrazit) !important;
  padding: .65rem 0;
  box-shadow: 0 2px 16px rgba(0,0,0,.22);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  padding: 0;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-name-top {
  font-weight: 800;
  font-size: .95rem;
  color: white;
  line-height: 1.15;
  letter-spacing: .01em;
}

.brand-name-sub {
  font-size: .62rem;
  color: var(--orange);
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

.nav-link {
  color: rgba(255,255,255,.82) !important;
  font-weight: 500;
  padding: .4rem .8rem !important;
  border-radius: 6px;
  transition: background var(--t), color var(--t);
}

.nav-link:hover,
.nav-link:focus {
  color: white !important;
  background: rgba(255,255,255,.1);
}

.nav-link.active {
  color: var(--orange) !important;
  background: rgba(255,107,43,.15);
}

.dropdown-menu {
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: .4rem;
}

.dropdown-item {
  border-radius: 6px;
  font-size: .9rem;
  padding: .45rem .75rem;
  transition: background var(--t);
}

.dropdown-item:hover { background: var(--hell-grau); }

.btn-nav-cta {
  background: var(--orange) !important;
  color: white !important;
  font-weight: 700;
  border-radius: var(--radius-sm) !important;
  padding: .4rem 1.15rem !important;
  border: none;
  font-size: .875rem;
  transition: background var(--t), transform .1s;
}

.btn-nav-cta:hover {
  background: var(--orange-dark) !important;
  color: white !important;
  transform: translateY(-1px);
}

/* --- Buttons -------------------------------------------------- */
.btn-orange {
  background: var(--orange);
  color: white;
  border: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: .65rem 1.75rem;
  transition: background var(--t), transform .1s, box-shadow var(--t);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-orange:hover, .btn-orange:focus {
  background: var(--orange-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,43,.35);
}
.btn-orange:active { transform: translateY(0); box-shadow: none; }

.btn-outline-orange {
  border: 2px solid var(--orange);
  color: var(--orange);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: .6rem 1.75rem;
  background: transparent;
  transition: all var(--t);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-outline-orange:hover {
  background: var(--orange);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,.55);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: .6rem 1.75rem;
  background: transparent;
  transition: all var(--t);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: white;
  color: white;
}

/* --- Section Variants ---------------------------------------- */
.section-dark    { background: var(--anthrazit); color: white; }
.section-orange  { background: var(--orange);    color: white; }
.section-light   { background: var(--hell-grau); }
.section-mid     { background: var(--anthrazit-light); color: white; }

/* --- Cards ---------------------------------------------------- */
.card-feature {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
  background: white;
}
.card-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.icon-orange { color: var(--orange); font-size: 2rem; }

/* --- Hero ---------------------------------------------------- */
.hero-section {
  background: var(--anthrazit);
  color: white;
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-blob-1,
.hero-blob-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-blob-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,107,43,.15) 0%, transparent 70%);
  top: -120px; right: -80px;
}
.hero-blob-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,107,43,.1) 0%, transparent 70%);
  bottom: -80px; left: -40px;
}

.hero-headline {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.hero-headline .highlight {
  color: var(--orange);
  position: relative;
}

.hero-scooter-bg {
  opacity: .06;
  font-size: 16rem;
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
}

/* --- Stats Strip --------------------------------------------- */
.stats-strip {
  background: var(--orange);
  padding: 2.25rem 0;
}

.stat-item { text-align: center; color: white; }

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: .8rem;
  opacity: .88;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-top: .2rem;
}

/* --- How-it-Works ------------------------------------------- */
.step-circle {
  width: 60px;
  height: 60px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .9rem;
  box-shadow: 0 4px 16px rgba(255,107,43,.4);
}

/* --- Module Cards ------------------------------------------- */
.module-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
  border: none;
}
.module-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.module-card-head {
  background: var(--anthrazit-light);
  color: white;
  padding: .85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  font-size: .9rem;
}
.module-num {
  background: var(--orange);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .8rem;
  flex-shrink: 0;
}
.module-card-body {
  padding: 1rem 1.1rem;
  font-size: .88rem;
  color: var(--text-muted);
}

/* --- Testimonials ------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-quote {
  font-size: 3.5rem;
  color: var(--orange);
  opacity: .18;
  position: absolute;
  top: .5rem;
  left: 1.1rem;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-text {
  font-size: .92rem;
  color: #444;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.t-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}
.t-avatar-teen   { background: var(--orange); }
.t-avatar-parent { background: var(--anthrazit); }

.t-name {
  font-weight: 700;
  font-size: .88rem;
  color: var(--anthrazit);
  line-height: 1.2;
}
.t-role {
  font-size: .75rem;
  color: var(--text-muted);
}
.t-badge {
  font-size: .68rem;
  font-weight: 700;
  border-radius: 4px;
  padding: .2rem .5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.t-badge-teen   { background: rgba(255,107,43,.14); color: var(--orange); }
.t-badge-parent { background: rgba(43,45,66,.1);   color: var(--anthrazit); }

.stars { color: #FFC107; font-size: .85rem; }

/* --- Parents Section ---------------------------------------- */
.parents-section {
  background: var(--anthrazit);
  color: white;
}

.parents-icon {
  width: 64px;
  height: 64px;
  background: var(--orange-light);
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--orange);
  margin-bottom: .75rem;
}

/* --- Trust/Guarantee Banner ---------------------------------- */
.trust-strip {
  background: var(--hell-grau);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--anthrazit);
}
.trust-item i { color: var(--orange); font-size: 1.3rem; }

/* --- Pricing Cards ------------------------------------------ */
.card-pricing {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
}
.card-pricing:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-pricing-featured {
  background: var(--anthrazit) !important;
  transform: scale(1.04);
  box-shadow: 0 12px 48px rgba(43,45,66,.25) !important;
  border: none !important;
}
.card-pricing-featured:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 18px 56px rgba(43,45,66,.3) !important;
}

/* --- Accordion ---------------------------------------------- */
.accordion-button:not(.collapsed) {
  color: var(--orange);
  background: var(--orange-light);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(255,107,43,.2);
  border-color: var(--orange);
}

/* --- Forms -------------------------------------------------- */
.form-control,
.form-select {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
  transition: border-color var(--t), box-shadow var(--t);
  font-size: .95rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,43,.15);
  outline: none;
}

/* --- Page Heroes (inner pages) ------------------------------ */
.page-hero {
  background: var(--anthrazit);
  color: white;
  padding: 3rem 0 2.5rem;
}

.page-hero-orange {
  background: var(--orange);
  color: white;
  padding: 2.75rem 0 2.25rem;
}

/* --- Dashboard Tiles ---------------------------------------- */
.tile-card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  background: white;
  overflow: hidden;
}
.tile-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.tile-header {
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tile-header i { color: var(--orange); }

/* --- Lektion Content ---------------------------------------- */
.lektion-inhalt {
  line-height: 1.8;
  font-size: 1rem;
}
.lektion-inhalt h2,
.lektion-inhalt h3,
.lektion-inhalt h4 {
  color: var(--anthrazit);
  margin-top: 2rem;
  margin-bottom: .75rem;
}
.lektion-inhalt .alert { border-radius: 10px; }
.lektion-inhalt .card  { border-radius: 10px; }
.lektion-inhalt table  { font-size: .9rem; }

/* --- Progress Bar ------------------------------------------- */
.progress-bar { background: var(--orange); }

/* --- Breadcrumb --------------------------------------------- */
.breadcrumb-item a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb-item a:hover { text-decoration: underline; }

/* --- Sidebar (Lektion) -------------------------------------- */
.sidebar-sticky {
  position: sticky;
  top: 80px;
}

/* --- Badges ------------------------------------------------- */
.badge-orange { background: var(--orange) !important; color: white; }

/* --- Certificate -------------------------------------------- */
.certificate-card {
  border: 3px solid var(--orange);
  border-radius: 18px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

/* --- Flash Messages ----------------------------------------- */
.messages-container {
  position: sticky;
  top: 58px;
  z-index: 1030;
}

/* --- Utility ------------------------------------------------ */
.text-orange  { color: var(--orange) !important; }
.bg-orange    { background: var(--orange) !important; }
.text-anthrazit { color: var(--anthrazit) !important; }

.rounded-lg { border-radius: var(--radius) !important; }
.rounded-xl { border-radius: 18px !important; }

.section-py { padding-top: 5rem; padding-bottom: 5rem; }
.section-py-sm { padding-top: 3.5rem; padding-bottom: 3.5rem; }

/* --- Responsive -------------------------------------------- */
@media (max-width: 576px) {
  .hero-headline { font-size: 1.85rem; }
  .stat-number { font-size: 1.9rem; }
  .hero-scooter-bg { display: none; }
}
