/* ============================================================
   GermanPrompt — Design System
   Palette: Ink Blue / Amber / Forest Green / Off-white / Slate
   Type: Fraunces (display) + Inter (body) + JetBrains Mono (data)
   ============================================================ */

:root {
  --ink: #1B2A4A;
  --ink-deep: #0F1B30;
  --amber: #D98E3F;
  --amber-deep: #B5712A;
  --forest: #2F5D4F;
  --forest-deep: #214238;
  --cream: #FAF7F2;
  --cream-dim: #F0EAE0;
  --slate: #4A5568;
  --slate-light: #8590A3;
  --white: #FFFFFF;
  --border: #E3DCCF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1180px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { color: var(--slate); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 600;
}

.lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 640px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--amber);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo span { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: center;
}

.nav-links a,
.nav-dropdown-trigger {
  color: #C9D2E0;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active { color: var(--amber); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
}
.nav-dropdown-trigger svg { transition: transform 0.15s ease; flex-shrink: 0; }
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15,27,48,0.18);
  min-width: 250px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 3px;
  color: var(--ink) !important;
}
.nav-dropdown-menu a:hover { background: var(--cream-dim); }
.nav-dropdown-menu a.active { background: rgba(217,142,63,0.12); }
.nav-dropdown-menu .dd-title { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.nav-dropdown-menu .dd-desc { font-size: 0.78rem; color: var(--slate-light); }

.nav-cta {
  background: var(--amber);
  color: var(--ink-deep) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: #E6A45D; }

.mobile-toggle {
  display: none;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.mobile-toggle svg .line-top,
.mobile-toggle svg .line-mid,
.mobile-toggle svg .line-bot {
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
.mobile-toggle.is-active svg .line-top { transform: translateY(5.5px) rotate(45deg); }
.mobile-toggle.is-active svg .line-mid { opacity: 0; }
.mobile-toggle.is-active svg .line-bot { transform: translateY(-5.5px) rotate(-45deg); }

body.mobile-nav-open { overflow: hidden; }

/* Mobile slide-down panel */
.mobile-panel {
  display: none;
  flex-direction: column;
  background: var(--ink-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.mobile-panel.open { max-height: 600px; }
.mobile-panel a {
  color: #C9D2E0;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-panel a.active { color: var(--amber); }
.mobile-panel a.mobile-sub { padding-left: 42px; font-size: 0.9rem; }
.mobile-subgroup-label {
  padding: 14px 28px 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.mobile-panel .mobile-cta {
  margin: 16px 28px;
  text-align: center;
  border-bottom: none;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: block; }
  .mobile-panel { display: flex; }
}

@media (max-width: 480px) {
  .nav-wrap { padding: 14px 18px; }
  .logo { font-size: 1.25rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--amber); color: var(--ink-deep); }
.btn-primary:hover { background: #E6A45D; transform: translateY(-1px); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-outline-light { border-color: rgba(255,255,255,0.5); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }

.btn-forest { background: var(--forest); color: var(--white); }
.btn-forest:hover { background: var(--forest-deep); }

/* ---------- Sections ---------- */

section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

.section-ink { background: var(--ink); color: var(--white); }
.section-ink h2, .section-ink h3, .section-ink h4 { color: var(--white); }
.section-ink p { color: #C9D2E0; }

.section-dim { background: var(--cream-dim); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--white);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,142,63,0.18) 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { color: var(--white); margin: 14px 0 18px; }
.hero p.lede { color: #C9D2E0; }

.hero-cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--amber);
}
.hero-stat .label {
  font-size: 0.8rem;
  color: var(--slate-light);
  margin-top: 2px;
}

/* ---------- Stepped Path (signature element: Werdegang) ---------- */

.path-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.path-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  position: relative;
  padding-bottom: 38px;
}

.path-step:last-child { padding-bottom: 0; }

.path-step .node {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.path-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 64px;
  bottom: -38px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--border) 0 6px, transparent 6px 12px);
}

.path-step .content h4 { margin-bottom: 6px; }
.path-step .content p { font-size: 0.95rem; }

/* light variant for use on cream background */
.path-track.on-light .node { background: var(--cream); }

/* ---------- Cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.card .icon-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--forest);
  background: rgba(47,93,79,0.09);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { font-size: 0.93rem; }

.card-bordered-top { border-top: 3px solid var(--amber); }

/* ---------- Level Table (German courses) ---------- */

.level-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
}
.level-table th, .level-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.level-table th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.level-table td.level-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--amber-deep);
}
.level-table tr:last-child td { border-bottom: none; }
.level-table tr:hover td { background: var(--cream-dim); }

@media (max-width: 700px) {
  .level-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- Job role cards ---------- */

.role-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.role-card .salary {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--forest-deep);
  font-weight: 700;
  margin-top: 6px;
}
.role-card .meta {
  font-size: 0.82rem;
  color: var(--slate-light);
}

/* ---------- Quote / testimonial ---------- */

.quote-card {
  background: var(--cream-dim);
  border-left: 3px solid var(--amber);
  padding: 26px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-card p.q { font-style: italic; color: var(--ink); font-size: 1.02rem; margin-bottom: 14px; }
.quote-card .who { font-family: var(--font-mono); font-size: 0.8rem; color: var(--slate-light); }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item h4 { margin-bottom: 8px; }
.faq-item p { font-size: 0.93rem; }

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-light);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--forest); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--forest);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: #D8E6E0; max-width: 560px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */

footer {
  background: var(--ink-deep);
  color: #94A0B8;
  padding: 56px 0 24px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
footer h4 { color: var(--white); font-size: 0.85rem; margin-bottom: 16px; font-family: var(--font-body); letter-spacing: 0.03em; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer a:hover { color: var(--amber); }
.footer-logo { font-family: var(--font-display); color: var(--white); font-size: 1.3rem; margin-bottom: 12px; }
.footer-logo span { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

/* ---------- Badge row (trust strip) ---------- */

.trust-strip {
  background: var(--cream-dim);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.trust-strip .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 600;
}
.trust-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* ---------- Numbered process (legit sequence) ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 26px 22px;
  position: relative;
}
.process-card .step-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--cream-dim);
  -webkit-text-stroke: 1.5px var(--amber);
  color: transparent;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
}

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.tag-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--cream-dim);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 20px;
  color: var(--slate);
}

/* ============================================================
   Global Responsive Hardening
   ============================================================ */

@media (max-width: 880px) {
  section { padding: 56px 0; }
  .section-tight { padding: 38px 0; }
  .cta-band { padding: 44px 0; }

  .container { padding: 0 20px; }

  .hero { padding: 50px 0 44px; }
  .hero::after { width: 220px; height: 220px; top: -80px; right: -80px; }

  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 1.4rem; }

  .path-step { grid-template-columns: 52px 1fr; gap: 16px; }
  .path-step .node { width: 52px; height: 52px; font-size: 0.95rem; }
  .path-step:not(:last-child)::before { left: 25px; top: 52px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .quote-card { padding: 20px 20px; }

  .process-card { padding: 22px 18px; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { text-align: center; }

  .trust-strip .container { flex-direction: column; align-items: flex-start; gap: 12px; }

  .card, .role-card, .process-card { padding: 22px 18px; }

  table.level-table { font-size: 0.85rem; }
  .level-table th, .level-table td { padding: 12px 12px; }
}

@media (max-width: 420px) {
  .nav-wrap { gap: 12px; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
