/* ============================================================
   AusbildungConnect Redesign — "Warm & Trustworthy"
   Loaded after style.css. Design tokens + homepage components.
   All new classes are prefixed .afc- to avoid collisions.
   ============================================================ */

:root {
  --afc-teal-950: #082f2a;
  --afc-teal-900: #0a3f35;
  --afc-teal-800: #0d4f43;
  --afc-teal-700: #0e7c66;
  --afc-teal-600: #12967c;
  --afc-teal-100: #d7efe7;
  --afc-teal-50:  #ecf7f2;
  --afc-amber-500: #f59e0b;
  --afc-amber-400: #fbbf24;
  --afc-amber-100: #fef3c7;
  --afc-cream: #faf7f2;
  --afc-ink: #182b28;
  --afc-muted: #5b6f6a;
  --afc-line: #e5e0d6;
  --afc-radius: 18px;
  --afc-shadow-sm: 0 2px 10px rgba(10,63,53,.06);
  --afc-shadow-md: 0 10px 30px rgba(10,63,53,.10);
  --afc-shadow-lg: 0 24px 60px rgba(10,63,53,.16);
}

/* ---------- global typography & palette refresh ---------- */
html, body {
  overflow-x: hidden; /* prevent AOS slide animations from creating horizontal scroll on mobile */
}
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--afc-cream);
  color: var(--afc-ink);
}
h1, h2, h3, h4, h5, .navbar-brand {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ---------- navbar override (all pages) ---------- */
nav.navbar.bg-white {
  background: rgba(250, 247, 242, .88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 224, 214, .7);
  box-shadow: none !important;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar-nav .nav-link { color: var(--afc-muted) !important; font-weight: 500; }
.navbar-nav .nav-link:hover { color: var(--afc-teal-700) !important; }
.navbar-brand { color: var(--afc-teal-900) !important; }

/* ---------- footer override (all pages) ---------- */
.footer-brand {
  background: var(--afc-teal-950) !important;
  color: rgba(255,255,255,.65);
}
.footer-brand a { color: rgba(255,255,255,.65) !important; text-decoration: none; }
.footer-brand a:hover { color: var(--afc-amber-400) !important; }
.footer-brand h5, .footer-brand h6 { color: #fff; }

/* ---------- shared elements ---------- */
.afc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--afc-teal-700); background: var(--afc-teal-50);
  border: 1px solid var(--afc-teal-100);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.afc-eyebrow .afc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--afc-amber-500); }
.afc-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.afc-sub { color: var(--afc-muted); font-size: 1.08rem; max-width: 640px; }
.text-center .afc-sub, .afc-center .afc-sub { margin-left: auto; margin-right: auto; }

.btn-afc-amber {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--afc-amber-500); color: var(--afc-teal-950);
  font-weight: 600; border-radius: 999px; padding: 13px 26px; border: none;
  box-shadow: 0 6px 18px rgba(245,158,11,.35);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-afc-amber:hover { background: var(--afc-amber-400); color: var(--afc-teal-950); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(245,158,11,.45); }
.btn-afc-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--afc-line); color: var(--afc-ink); background: transparent;
  font-weight: 600; border-radius: 999px; padding: 13px 26px;
  transition: transform .2s, border-color .2s, color .2s;
}
.btn-afc-ghost:hover { border-color: var(--afc-teal-700); color: var(--afc-teal-700); transform: translateY(-2px); }
.btn-afc-dark { display: inline-flex; align-items: center; gap: 9px; background: var(--afc-teal-900); color: #fff; font-weight: 600; border-radius: 999px; padding: 10px 22px; border: none; transition: background .2s, transform .2s; }
.btn-afc-dark:hover { background: var(--afc-teal-800); color: #fff; transform: translateY(-2px); }

/* ---------- hero ---------- */
.afc-hero { position: relative; overflow: hidden; padding: 90px 0 110px; background: var(--afc-cream); }
.afc-hero::before { content: ""; position: absolute; top: -220px; right: -180px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(18,150,124,.14), transparent 65%); }
.afc-hero::after { content: ""; position: absolute; bottom: -260px; left: -200px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.12), transparent 65%); }
.afc-hero .container { position: relative; z-index: 1; }
.afc-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 22px; overflow-wrap: break-word; }
.afc-hero h1 em { font-style: normal; color: var(--afc-teal-700); }
.afc-hero .afc-lead { font-size: 1.13rem; color: var(--afc-muted); max-width: 520px; margin-bottom: 32px; }
.afc-stat b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--afc-teal-900); }
.afc-stat span { font-size: .85rem; color: var(--afc-muted); }

/* journey card */
.afc-journey { background: #fff; border: 1px solid var(--afc-line); border-radius: 24px; box-shadow: var(--afc-shadow-lg); padding: 28px; max-width: 420px; margin-left: auto; }
.afc-journey-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.afc-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--afc-teal-600), var(--afc-teal-900)); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; flex-shrink: 0; }
.afc-jstep { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px dashed var(--afc-line); }
.afc-jstep:last-child { border-bottom: none; }
.afc-jicon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.afc-jicon.done { background: var(--afc-teal-100); color: var(--afc-teal-700); }
.afc-jicon.now  { background: var(--afc-amber-100); color: var(--afc-amber-500); }
.afc-jicon.next { background: #f1efe9; color: #b8b2a4; }
.afc-jstep b { font-size: .9rem; font-weight: 600; }
.afc-jstep small { display: block; font-size: .76rem; color: var(--afc-muted); }
.afc-jbadge { margin-left: auto; font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; white-space: nowrap; }
.afc-jbadge.done { background: var(--afc-teal-100); color: var(--afc-teal-800); }
.afc-jbadge.now  { background: var(--afc-amber-100); color: #92600a; }
.afc-float-chip { position: absolute; background: #fff; border: 1px solid var(--afc-line); border-radius: 14px; box-shadow: var(--afc-shadow-md); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; animation: afc-floaty 5s ease-in-out infinite; z-index: 2; }
.afc-chip-1 { top: -22px; left: -8px; }
.afc-chip-2 { bottom: -20px; right: 24px; animation-delay: 2.2s; }
@keyframes afc-floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- trust strip ---------- */
.afc-trust { padding: 26px 0; border-top: 1px solid var(--afc-line); border-bottom: 1px solid var(--afc-line); background: #fff; }
.afc-trust .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--afc-muted); font-size: .9rem; font-weight: 500; }
.afc-trust b { color: var(--afc-teal-800); }

/* ---------- services ---------- */
.afc-services { background: #fff; }
.afc-svc { background: var(--afc-cream); border: 1px solid var(--afc-line); border-radius: var(--afc-radius); padding: 30px 28px; height: 100%; transition: transform .3s, box-shadow .3s, border-color .3s; }
.afc-svc:hover { transform: translateY(-6px); box-shadow: var(--afc-shadow-md); border-color: var(--afc-teal-100); }
.afc-svc-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--afc-teal-900); color: var(--afc-amber-400); display: grid; place-items: center; margin-bottom: 20px; font-size: 1.3rem; transition: transform .3s; }
.afc-svc:hover .afc-svc-icon { transform: scale(1.08) rotate(-4deg); }
.afc-svc h3 { font-size: 1.14rem; font-weight: 700; margin-bottom: 9px; }
.afc-svc p { font-size: .93rem; color: var(--afc-muted); margin-bottom: 16px; }
.afc-svc a { font-size: .88rem; font-weight: 600; color: var(--afc-teal-700); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.afc-svc a:hover { gap: 10px; color: var(--afc-teal-700); }
.afc-order-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; font-size: .9rem; font-weight: 500; color: var(--afc-muted); flex-wrap: wrap; }
.afc-soon { background: var(--afc-amber-100); color: #92600a; font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; }

/* ---------- how it works ---------- */
.afc-step { position: relative; padding: 0 8px; }
.afc-step .afc-step-num { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 2.6rem; color: var(--afc-teal-100); display: block; margin-bottom: 10px; line-height: 1; }
.afc-step h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.afc-step p { font-size: .9rem; color: var(--afc-muted); }

/* ---------- why AFC (dark) ---------- */
.afc-why { background: var(--afc-teal-950); color: #fff; position: relative; overflow: hidden; }
.afc-why::before { content: ""; position: absolute; top: -160px; right: -120px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.14), transparent 65%); }
.afc-why .container { position: relative; z-index: 1; }
.afc-why .afc-eyebrow { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: var(--afc-amber-400); }
.afc-why .afc-title { color: #fff; }
.afc-why .afc-sub { color: rgba(255,255,255,.72); }
.afc-pb { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 22px; height: 100%; transition: background .3s, transform .3s; }
.afc-pb:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.afc-pb i { color: var(--afc-amber-400); font-size: 1.4rem; margin-bottom: 12px; display: block; }
.afc-pb b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .98rem; margin-bottom: 6px; }
.afc-pb span { font-size: .85rem; color: rgba(255,255,255,.65); }

/* ---------- testimonial ---------- */
.afc-quote { background: #fff; border: 1px solid var(--afc-line); border-radius: 24px; box-shadow: var(--afc-shadow-md); padding: 44px; max-width: 760px; margin: 52px auto 0; position: relative; }
.afc-quote::before { content: "\201C"; position: absolute; top: 6px; left: 28px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 5rem; color: var(--afc-teal-100); line-height: 1; }
.afc-quote p { font-size: 1.12rem; font-weight: 500; margin-bottom: 22px; position: relative; z-index: 1; }
.afc-quote-who { display: flex; align-items: center; gap: 13px; }
.afc-quote-who b { display: block; font-size: .95rem; }
.afc-quote-who span { font-size: .82rem; color: var(--afc-muted); }

/* ---------- featured partner ---------- */
.afc-partner-card { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; background: #fff; border: 1px solid var(--afc-line); border-radius: 24px; box-shadow: var(--afc-shadow-md); padding: 48px; margin-top: 52px; }
.afc-partner-logo { background: #fff; border: 1px solid var(--afc-line); border-radius: 18px; padding: 36px 28px; display: grid; place-items: center; }
.afc-partner-logo img { max-width: 100%; height: auto; }
.afc-partner-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--afc-teal-50); border: 1px solid var(--afc-teal-100); color: var(--afc-teal-800); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; margin-bottom: 14px; }
.afc-partner-card h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.afc-partner-card p { color: var(--afc-muted); font-size: .98rem; margin-bottom: 18px; }
.afc-partner-points { display: flex; gap: 22px; flex-wrap: wrap; }
.afc-partner-points span { display: inline-flex; align-items: center; gap: 8px; font-size: .87rem; font-weight: 600; color: var(--afc-teal-800); }
.afc-partner-points i { color: var(--afc-teal-600); }

/* ---------- FAQ ---------- */
.afc-faq { max-width: 760px; margin: 48px auto 0; }
.afc-faq details { background: #fff; border: 1px solid var(--afc-line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; transition: box-shadow .3s; }
.afc-faq details[open] { box-shadow: var(--afc-shadow-sm); }
.afc-faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: .98rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.afc-faq summary::-webkit-details-marker { display: none; }
.afc-faq .afc-plus { width: 26px; height: 26px; border-radius: 50%; background: var(--afc-teal-50); color: var(--afc-teal-700); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; transition: transform .3s, background .3s; }
.afc-faq details[open] .afc-plus { transform: rotate(45deg); background: var(--afc-amber-100); color: #92600a; }
.afc-faq .afc-faq-body { padding: 0 24px 20px; color: var(--afc-muted); font-size: .93rem; }

/* ---------- CTA band ---------- */
.afc-cta { background: linear-gradient(135deg, var(--afc-teal-900), var(--afc-teal-700)); border-radius: 28px; padding: 72px 48px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.afc-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(245,158,11,.22), transparent 55%); }
.afc-cta h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; position: relative; }
.afc-cta p { color: rgba(255,255,255,.78); margin-bottom: 32px; position: relative; }
.afc-cta .btn-afc-amber { position: relative; }

/* ---------- "coming soon" chip inside CTA buttons ---------- */
.afc-btn-soon {
  background: rgba(255,255,255,.85);
  color: #92600a;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- WhatsApp / direct support ---------- */
.btn-afc-whatsapp { display: inline-flex; align-items: center; gap: 9px; background: #25d366; color: #fff; font-weight: 600; border-radius: 999px; padding: 13px 26px; border: none; box-shadow: 0 6px 18px rgba(37,211,102,.35); transition: transform .2s, box-shadow .2s, background .2s; }
.btn-afc-whatsapp:hover { background: #1fb958; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,211,102,.45); }
.afc-support-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px dashed var(--afc-line); text-align: left; }
.afc-support-row:last-child { border-bottom: none; }
.afc-support-row .afc-jicon { background: var(--afc-teal-50); color: var(--afc-teal-700); }
.afc-support-row b { font-size: .92rem; font-weight: 700; display: block; }
.afc-support-row small { color: var(--afc-muted); font-size: .8rem; }

/* ---------- founder card (contact page) ---------- */
.afc-founder-card { grid-template-columns: 240px 1fr; gap: 32px; margin-top: 0; }
.afc-founder-photo { padding: 0; overflow: hidden; }
.afc-founder-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; display: block; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .afc-journey { margin: 48px auto 0; max-width: 100%; }
  .afc-hero { padding: 56px 0 72px; }
}
@media (max-width: 820px) {
  .afc-partner-card { grid-template-columns: 1fr !important; padding: 28px; gap: 24px; }
  .afc-founder-card { grid-template-columns: 1fr !important; }
  .afc-founder-photo { max-width: 260px; margin: 0 auto; }
  .afc-founder-photo img { max-height: 300px; }
  .afc-cta { padding: 56px 24px; }
}
@media (max-width: 575px) {
  .afc-float-chip { display: none; } /* floating badges overflow small screens */
  .afc-hero h1 { font-size: 2rem; }
  .afc-hero .afc-lead { font-size: 1.02rem; }
  .afc-journey { padding: 20px; }
  .afc-jbadge { display: none; } /* keep journey rows on one line on narrow phones */
  .afc-hero .d-flex.gap-5 { gap: 1.5rem !important; }
  .afc-stat b { font-size: 1.4rem; }
  .afc-title { font-size: 1.7rem; }
  .afc-partner-card { padding: 22px; }
  .afc-quote { padding: 32px 24px; }
}
