/* ===========================================================
   SGC AI Academy — Corporate Identity Stylesheet
   Purple #370C7B · Gold #FFC300 · Charcoal #2D2D2D · Arial
   =========================================================== */

:root {
  --sgc-purple: #370C7B;
  --sgc-purple-light: #5b34a8;
  --sgc-purple-dark: #260755;
  --sgc-gold: #FFC300;
  --sgc-charcoal: #2D2D2D;
  --sgc-grey: #6b6b75;
  --sgc-light: #f5f4f8;
  --sgc-white: #ffffff;
  --sgc-border: #e4e1ec;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(55, 12, 123, 0.08);
  --shadow-hover: 0 12px 36px rgba(55, 12, 123, 0.16);
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--sgc-charcoal);
  background: var(--sgc-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sgc-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--sgc-purple);
  color: var(--sgc-white);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-img {
  width: 25px; height: 25px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
.brand .brand-text strong { display: block; font-size: 17px; letter-spacing: .3px; }
.brand .brand-text span { font-size: 12px; opacity: .8; }
.nav-actions a {
  color: var(--sgc-white);
  font-size: 14px;
  margin-left: 22px;
  opacity: .92;
}
.nav-actions a.btn-login,
.btn-login {
  background: var(--sgc-gold);
  color: var(--sgc-purple);
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: bold;
  opacity: 1;
}
.btn-login:hover { text-decoration: none; filter: brightness(1.05); }

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

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--sgc-purple) 0%, var(--sgc-purple-dark) 100%);
  color: var(--sgc-white);
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,195,0,.25), transparent 70%);
  animation: heroFloat 9s ease-in-out infinite;
}
.hero::before {
  content: "";
  position: absolute; left: -120px; bottom: -140px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(91,52,168,.5), transparent 70%);
  animation: heroFloat 12s ease-in-out infinite reverse;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 24px) scale(1.12); }
}
/* Sanftes Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::after, .hero::before { animation: none; }
}
.hero h1 { font-size: 40px; line-height: 1.15; max-width: 720px; margin-bottom: 18px; }
.hero .lead { font-size: 19px; max-width: 640px; opacity: .92; }
.hero .pill {
  display: inline-block;
  background: rgba(255,195,0,.2);
  color: var(--sgc-gold);
  border: 1px solid rgba(255,195,0,.4);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 22px;
  letter-spacing: .5px;
}

/* ---------- Section ---------- */
.section { padding: 60px 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: 28px; color: var(--sgc-purple); margin-bottom: 8px; }
.section-head p { color: var(--sgc-grey); font-size: 16px; }

/* ---------- Module grid ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.module-card {
  background: var(--sgc-white);
  border: 1px solid var(--sgc-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
  position: relative;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.module-card .mod-number {
  position: absolute; top: 20px; right: 22px;
  font-size: 38px; font-weight: bold;
  color: var(--sgc-light);
  line-height: 1;
}
.module-card .mod-badge {
  display: inline-block;
  font-size: 11px; font-weight: bold; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
  text-transform: uppercase;
}
.mod-badge.available { background: rgba(55,12,123,.1); color: var(--sgc-purple); }
.mod-badge.coming { background: #efedf3; color: var(--sgc-grey); }
.module-card h3 { font-size: 19px; color: var(--sgc-charcoal); margin-bottom: 4px; max-width: 85%; }
.module-card .mod-sub { color: var(--sgc-grey); font-size: 14px; margin-bottom: 14px; }
.module-card .mod-summary { font-size: 14px; color: #4a4a52; flex-grow: 1; margin-bottom: 18px; }
.module-card .mod-meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--sgc-grey); }
.module-card .mod-cta {
  display: inline-block; margin-top: 16px;
  background: var(--sgc-purple); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  font-weight: bold; font-size: 14px; text-align: center;
}
.module-card .mod-cta:hover { text-decoration: none; background: var(--sgc-purple-light); }
.module-card .mod-cta.disabled { background: #d9d6e0; color: #8a8794; cursor: not-allowed; }
.gold-accent { color: var(--sgc-gold); }

/* ---------- Startseite: So funktioniert es + Themen ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.how-step {
  background: var(--sgc-light);
  border: 1px solid var(--sgc-border);
  border-radius: var(--radius);
  padding: 22px;
}
.how-step .how-num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sgc-purple); color: var(--sgc-gold);
  font-weight: bold; font-size: 16px; margin-bottom: 12px;
}
.how-step h3 { font-size: 16px; color: var(--sgc-purple); margin-bottom: 6px; }
.how-step p { font-size: 14px; color: #4a4a52; }
@media (max-width: 880px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .how-grid { grid-template-columns: 1fr; } }

.topic-card { padding: 20px 22px; }
.topic-card h3 { max-width: 82%; }
.topic-card .mod-sub { margin-bottom: 0; }
.topic-card .topic-icon {
  font-size: 26px; margin-bottom: 10px; display: inline-block;
  transition: transform .2s ease;
}
.topic-card:hover .topic-icon { transform: scale(1.25) rotate(-6deg); }
.how-step { transition: transform .18s ease, box-shadow .18s ease; }
.how-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); background: #fff; }

/* ---------- Über Selina (mit Foto) ---------- */
.about-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
}
.about-photo {
  position: relative;
}
.about-photo img {
  width: 100%; border-radius: 18px;
  box-shadow: 0 16px 44px rgba(55,12,123,.22);
}
.about-photo::after {
  content: "";
  position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid var(--sgc-gold); border-radius: 18px;
  z-index: -1;
}
.about-name { font-size: 20px; font-weight: bold; color: var(--sgc-purple); margin-bottom: 2px; }
.about-role { font-size: 14px; color: var(--sgc-grey); margin-bottom: 14px; }
.about-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline {
  display: inline-block; border: 1.5px solid var(--sgc-purple); color: var(--sgc-purple);
  padding: 10px 20px; border-radius: 8px; font-weight: bold; font-size: 14px;
}
.btn-outline:hover { background: var(--sgc-purple); color: #fff; text-decoration: none; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 280px; } }

/* ---------- Module detail page ---------- */
.module-detail { padding-top: 40px; }
.breadcrumb { font-size: 14px; color: var(--sgc-grey); margin-bottom: 18px; }
.video-frame {
  background: var(--sgc-charcoal);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  color: #fff; text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.video-frame .play {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--sgc-gold); color: var(--sgc-purple);
  display: grid; place-items: center; font-size: 30px; margin: 0 auto 14px;
}
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.lesson-list { list-style: none; }
.lesson-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--sgc-border);
  border-radius: 10px; margin-bottom: 10px; background: #fff;
  cursor: pointer; transition: border-color .15s;
}
.lesson-list li:hover { border-color: var(--sgc-purple); }
.lesson-list li.active { border-color: var(--sgc-purple); background: rgba(55,12,123,.04); }
.lesson-list .num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sgc-light); color: var(--sgc-purple);
  display: grid; place-items: center; font-weight: bold; font-size: 13px; flex-shrink: 0;
}
.lesson-list .l-title { flex-grow: 1; font-size: 15px; }
.lesson-list .l-dur { font-size: 13px; color: var(--sgc-grey); }

.sidebar-card {
  background: #fff; border: 1px solid var(--sgc-border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.sidebar-card h4 { color: var(--sgc-purple); font-size: 16px; margin-bottom: 14px; }
.sidebar-card ul { list-style: none; }
.sidebar-card li { font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--sgc-border); }
.sidebar-card li:last-child { border-bottom: none; }
.material-link { display: flex; align-items: center; gap: 10px; }
.material-link .ico { font-size: 18px; }
.objectives li::before { content: "✓ "; color: var(--sgc-gold); font-weight: bold; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sgc-charcoal);
  color: #cfcdd6;
  padding: 40px 0;
  font-size: 14px;
  margin-top: 40px;
}
.site-footer a { color: var(--sgc-gold); }
.site-footer .foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer .confidential { font-size: 12px; opacity: .6; margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .detail-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .nav-actions a:not(.btn-login) { display: none; }
}
