/* ============================================================
   Freelance AI Academy · Startseite
   Ergänzt styles.css. Gilt nur für <body class="home">.
   Farbwelt an die Live-Training-Seite angelehnt:
   Navy #111F34, Orange #FF6132, Lavendel #D9CDE4.
   ============================================================ */

/* ---------- Farb-Token nur für die Startseite (helles Theme) ---------- */
html:not([data-theme="dark"]) body.home {
  --dark: #111F34;
  --text: #111F34;
  --gray-900: #111F34;
  --gray-700: #4a5870;
  --gray-500: #6f7c93;
  --gray-300: #d2cadb;
  --gray-100: #f3eef6;
  --text-muted: #4a5870;
  --bg: #fdfcfd;
  --bg-elevated: #f7f2fa;
  --surface-2: #efe9f3;
  --border: #ece4f1;
  --border-strong: #ddd2e6;
  --shadow-card: 0 1px 2px rgba(17,31,52,0.04), 0 10px 30px rgba(17,31,52,0.07);
}
body.home {
  --navy: #111F34;
  --navy-deep: #0A1426;
  --lav: #D9CDE4;
  --banner-h: 42px;
}
body.home.no-live { --banner-h: 0px; }

/* ---------- Live-Training Banner ---------- */
.live-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: var(--banner-h);
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 0 1rem;
  background: var(--navy); color: #fdfcfd;
  font-size: 0.875rem; line-height: 1.2; text-decoration: none;
  white-space: nowrap; overflow: hidden;
}
.live-banner:hover { opacity: 1; color: #fff; }
.live-banner strong { font-weight: 700; }
.live-banner-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255,97,50,0.22);
}
.live-banner-cta {
  flex-shrink: 0; padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.8rem;
  transition: background var(--transition);
}
.live-banner:hover .live-banner-cta { background: var(--accent-light); }
body.home.no-live .live-banner { display: none; }
body.home .nav { top: var(--banner-h); }
[data-theme="dark"] .live-banner { background: var(--navy); border-bottom: 1px solid rgba(217,205,228,0.16); }
.live-banner-short { display: none; }
@media (max-width: 640px) {
  .live-banner { font-size: 0.82rem; gap: 0.6rem; }
  .live-banner-long { display: none; }
  .live-banner-short { display: inline; }
  .live-banner { padding: 0 0.75rem; }
  .live-banner-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 400px) {
  .live-banner-dot { display: none; }
  .live-banner { font-size: 0.78rem; gap: 0.5rem; }
}

/* ---------- Navigation: ein klarer Hauptweg ---------- */
body.home .nav-cta-call {
  padding: 0.55rem 1.1rem; border-radius: 10px; font-weight: 700;
  color: #fff; box-shadow: 0 4px 14px rgba(255,97,50,0.25);
}
body.home .nav-cta-call:hover { color: #fff; }
@media (max-width: 768px) {
  body.home .nav-cta-call { align-self: flex-start; }
}

/* ---------- Typografie: enger, kräftiger ---------- */
body.home .section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -0.03em; max-width: 22ch;
}
body.home .section-label { letter-spacing: 0.14em; margin-bottom: 0.9rem; }
body.home .section { padding: 6.5rem 2rem; }

/* ---------- Hero ---------- */
body.home .hero {
  min-height: auto;
  padding: calc(9.5rem + var(--banner-h)) 2rem 6rem;
}
body.home .hero .section-container { grid-template-columns: 1.08fr 0.92fr; gap: 4.5rem; }
body.home .hero-headline {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 1.6rem;
}
body.home .hero-subtext {
  font-size: 1.15rem; line-height: 1.65; max-width: 34rem; margin-bottom: 2.2rem;
  color: var(--text-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
body.home .hero-cta {
  padding: 1.05rem 1.9rem; border-radius: 12px; font-weight: 700; font-size: 1.02rem;
  color: #fff; text-decoration: none;
  box-shadow: 0 10px 26px rgba(255,97,50,0.30), inset 0 1px 0 rgba(255,255,255,0.22);
}
body.home .hero-cta:hover { color: #fff; }
.hero-cta-secondary {
  display: inline-flex; align-items: center;
  padding: 1rem 1.5rem; border-radius: 12px;
  border: 1.5px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.hero-cta-secondary:hover { border-color: var(--accent); color: var(--accent); opacity: 1; transform: translateY(-1px); }
.hero-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--text-muted); }

body.home .hero-image {
  border-radius: 22px;
  box-shadow: 14px 14px 0 0 var(--accent), 0 30px 60px rgba(17,31,52,0.18);
}
body.home .hero-image img { border-radius: 0; aspect-ratio: 5 / 4; object-fit: cover; }
[data-theme="dark"] body.home .hero-image { box-shadow: 14px 14px 0 0 var(--accent), 0 30px 70px rgba(0,0,0,0.6); }

@media (max-width: 768px) {
  body.home .hero { padding: calc(6.5rem + var(--banner-h)) 1.5rem 4rem; }
  body.home .hero .section-container { grid-template-columns: 1fr; gap: 2.5rem; }
  body.home .hero-image { order: 2; margin-right: 12px; box-shadow: 10px 10px 0 0 var(--accent), 0 20px 40px rgba(17,31,52,0.16); }
  .hero-actions > * { width: 100%; justify-content: center; text-align: center; }
  body.home .section { padding: 4.5rem 1.5rem; }
}

/* ---------- Problem: ruhige Karten ohne Emojis ---------- */
body.home .problems-grid { gap: 1.25rem; }
body.home .problem-card {
  padding: 1.9rem 2rem 2rem; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-card);
}
body.home .problem-card::after {
  content: ''; position: absolute; left: 2rem; top: 0; width: 44px; height: 3px;
  background: var(--accent); border-radius: 0 0 3px 3px;
}
body.home .problem-text { font-size: 1.12rem; font-weight: 600; line-height: 1.45; color: var(--text); letter-spacing: -0.01em; }
body.home .problem-context {
  border-radius: 16px; background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: 1.05rem; line-height: 1.7; padding: 1.9rem 2rem;
}
body.home .problem-context strong { color: var(--text); }

/* ---------- Lösung ---------- */
body.home .solution-split { align-items: start; gap: 4rem; }
body.home .solution-text p { line-height: 1.7; }
body.home .solution-image { border-radius: 20px; box-shadow: 0 24px 50px rgba(17,31,52,0.14); }
body.home .solution-image img { border-radius: 0; }
.academy-list { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--border-strong); }
.academy-list li {
  position: relative; padding: 0.95rem 0 0.95rem 2rem;
  border-bottom: 1px solid var(--border-strong);
  font-size: 1.02rem; line-height: 1.5; color: var(--text-muted);
}
.academy-list li strong { color: var(--text); font-weight: 700; }
.academy-list li::before {
  content: ''; position: absolute; left: 0.15rem; top: 1.35rem;
  width: 11px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
body.home .showcase-grid img, body.home .img-break img { border-radius: 18px; }

/* ---------- Karten allgemein ---------- */
body.home .testimonial-card { border-radius: 16px; border-color: var(--border); box-shadow: var(--shadow-card); }
body.home .profi-kit-feature { border-radius: 20px; border-color: var(--border); box-shadow: var(--shadow-card); }
body.home .profi-kit-btn { border-radius: 12px; }

/* ---------- Kostenlose Werkzeuge ---------- */
.tools-section { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tools-section > #webinar { position: relative; top: -110px; display: block; height: 0; }
.tools-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1.25rem; margin-top: 3rem; }
.tool-feature {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 2rem; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  color: var(--text); text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.tool-feature:hover { opacity: 1; transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 44px rgba(255,97,50,0.14); }
.tool-feature-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,97,50,0.10); color: var(--accent);
}
.tool-feature-icon svg { width: 24px; height: 24px; }
.tool-feature h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.7rem; color: inherit; }
.tool-feature p { font-size: 0.98rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 1.5rem; }
.tool-feature-meta { font-size: 0.8rem; font-weight: 600; color: var(--gray-500); margin-top: auto; margin-bottom: 1.1rem; }
.tool-feature-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.98rem; color: var(--accent);
}
.tool-feature-link::after {
  content: ''; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); transition: transform var(--transition);
}
.tool-feature:hover .tool-feature-link::after { transform: translateX(4px) rotate(45deg); }

/* Das erste Werkzeug ist der Haupteinstieg */
.tool-feature-main { background: var(--navy); border-color: var(--navy); color: #fdfcfd; }
.tool-feature-main p { color: #c3cbda; }
.tool-feature-main .tool-feature-meta { color: #93a0b8; }
.tool-feature-main .tool-feature-icon { background: rgba(255,97,50,0.18); color: #ff8659; }
.tool-feature-main .tool-feature-link {
  padding: 0.8rem 1.25rem; border-radius: 11px; background: var(--accent); color: #fff;
}
.tool-feature-main:hover { border-color: var(--accent); }
[data-theme="dark"] .tool-feature-main { border-color: rgba(217,205,228,0.18); }
.tools-grid-two { grid-template-columns: 1.25fr 1fr; }
@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } }

/* ---------- Strategie-Call (kompaktes Band) ---------- */
.call-section { padding-top: 2.5rem !important; padding-bottom: 3.5rem !important; scroll-margin-top: calc(64px + var(--banner-h) + 1.5rem); }
.call-section > #cta { display: block; height: 0; }
.call-panel {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2.5rem;
  padding: 2rem 2.5rem; border-radius: 20px;
  background:
    radial-gradient(ellipse 45% 120% at 100% 0%, rgba(255,97,50,0.18), transparent 62%),
    var(--navy);
  color: #fdfcfd;
  box-shadow: 0 16px 40px rgba(17,31,52,0.18);
}
[data-theme="dark"] .call-panel { border: 1px solid rgba(217,205,228,0.16); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.call-copy { min-width: 0; }
body.home .call-title {
  margin: 0 0 0.5rem; color: #fdfcfd;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;
}
.call-text { margin: 0; max-width: 58ch; font-size: 1rem; line-height: 1.6; color: #b9c2d3; }
.call-action { flex: 0 0 auto; text-align: center; }
.call-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.9rem; border-radius: 12px; white-space: nowrap;
  background: #FF6132; color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: none;
  box-shadow: 0 10px 26px rgba(255,97,50,0.32), inset 0 1px 0 rgba(255,255,255,0.22);
  transition: background var(--transition), transform var(--transition);
}
.call-btn:hover { background: #ff8659; color: #fff; opacity: 1; transform: translateY(-2px); }
.call-meta { margin: 0.7rem 0 0; font-size: 0.875rem; line-height: 1.4; color: #b9c2d3; }

@media (max-width: 900px) {
  .call-section { padding-left: 1rem !important; padding-right: 1rem !important; }
  .call-panel { flex-direction: column; align-items: stretch; gap: 1.4rem; padding: 1.6rem 1.4rem; border-radius: 18px; }
  .call-btn { display: flex; width: 100%; }
}

/* Kalender als Seitenleiste rechts (Cal.com, lädt erst nach Klick) */
.call-drawer-backdrop {
  position: fixed; inset: 0; z-index: 300; background: rgba(17,31,52,0.45);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.call-drawer-backdrop[hidden] { display: none; }
.call-embed {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 301;
  width: min(420px, 100vw); display: flex; flex-direction: column;
  background: #fff; color: #111F34; box-shadow: -20px 0 60px rgba(17,31,52,0.25);
  border-radius: 20px 0 0 20px; overflow: hidden;
  animation: callDrawerIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.call-embed[hidden] { display: none; }
@keyframes callDrawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.call-embed-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.1rem 0.9rem 1.25rem; border-bottom: 1px solid #ECE4F1;
}
.call-embed-title { margin: 0; font-size: 1.05rem; font-weight: 800; color: #111F34; }
.call-embed-sub { margin: 0.15rem 0 0; font-size: 0.85rem; color: #4A5870; }
.call-embed-close {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; border: 1px solid #ECE4F1;
  background: #fff; color: #111F34; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.call-embed-close:hover { border-color: #FF6132; color: #E04A1E; }
.call-embed-loading { margin: 0; padding: 2rem 1rem 0; text-align: center; font-size: 0.9rem; color: #4A5870; }
.call-embed-loading[hidden] { display: none; }
.call-embed-frame { flex: 1; width: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.call-embed-note { margin: 0; padding: 0.6rem 1.25rem 0.8rem; font-size: 0.75rem; line-height: 1.45; color: #4A5870; border-top: 1px solid #ECE4F1; }
.call-embed-note a { color: inherit; text-decoration: underline; }
body.call-drawer-open { overflow: hidden; }
body.call-drawer-open .call-float { opacity: 0; pointer-events: none; }
@media (max-width: 480px) { .call-embed { width: 100vw; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .call-embed { animation: none; } }

/* ---------- Schwebender Button ---------- */
.call-float { text-decoration: none; }
.call-float:hover { color: var(--text-on-accent); opacity: 1; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .tool-feature, .call-btn, .hero-cta-secondary { transition: none; }
}
