/* =========================================================
   EvoLux Schulungssystem — Design Tokens & Base
   ========================================================= */

:root {
  /* Brand */
  --black: #0a0a0a;
  --black-soft: #1a1a1a;
  --ink: #111111;
  --ink-2: #2a2a2a;
  --ink-3: #4a4a4a;
  --muted: #6e6e6e;
  --muted-2: #8a8a8a;
  --line: #e7e5e0;
  --line-2: #efece6;
  --bg: #f6f4ef;
  --bg-2: #fbfaf6;
  --paper: #ffffff;
  --paper-tinted: #f1ede5;

  /* Accents from EvoLux logo */
  --teal: #1b6f7e;
  --teal-deep: #134955;
  --gold: #b68a3f;
  --gold-soft: #d9b878;

  /* Feedback */
  --success: #1f8a5b;
  --error: #c0392b;

  /* Type */
  --font-display: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* Radii */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --r-5: 20px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1320px;
  --maxw-text: 720px;
  --shell-pad: clamp(20px, 4vw, 48px);

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(10, 10, 10, 0.04), 0 1px 3px rgba(10, 10, 10, 0.04);
  --shadow-2: 0 8px 24px -8px rgba(10, 10, 10, 0.12), 0 2px 6px rgba(10, 10, 10, 0.05);
  --shadow-3: 0 24px 60px -20px rgba(10, 10, 10, 0.22), 0 8px 24px -12px rgba(10, 10, 10, 0.1);
  --shadow-card: 0 1px 0 rgba(10, 10, 10, 0.04), 0 8px 24px -12px rgba(10, 10, 10, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* kompensiert den sticky site-header bei #anker-Sprüngen */
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Ergänzung pro Section, falls scroll-padding-top mal nicht greift (z. B. JS-getriggert) */
section[id],
[id^="kurs"],
[id="trainer"],
[id="standort"],
[id="faq"],
[id="kurse"] {
  scroll-margin-top: 96px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--bg-2);
}

/* ========== Type ========== */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}

.eyebrow--teal { color: var(--teal); }
.eyebrow--gold { color: var(--gold); }
.eyebrow--light { color: rgba(255,255,255,0.7); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
}

h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
}

p { margin: 0; }

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 60ch;
}

/* ========== Layout primitives ========== */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--shell-pad);
}

.section {
  padding-block: clamp(72px, 8vw, 128px);
}

.section--tight {
  padding-block: clamp(48px, 5vw, 80px);
}

.section--dark {
  background: var(--black);
  color: #f0ede5;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #f6f3eb;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--ink);
  color: #fbfaf6;
}
.btn--primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg-2);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fbfaf6;
}
.btn--ghost-light:hover {
  background: #fbfaf6;
  color: var(--ink);
  border-color: #fbfaf6;
}

.btn--light {
  background: #fbfaf6;
  color: var(--ink);
}
.btn--light:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.btn--lg {
  padding: 18px 30px;
  font-size: 16px;
}

.btn--sm {
  padding: 9px 14px;
  font-size: 13px;
}

.btn--icon {
  padding: 14px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(246, 244, 239, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-dark {
  background: rgba(10, 10, 10, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fbfaf6;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 80px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--shell-pad);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav__brand img {
  height: 36px;
  width: auto;
}

.nav__brand-tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  line-height: 1;
}

.is-dark .nav__brand-tag {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.16);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 8px 0;
  transition: color .15s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
}

.is-dark .nav__link {
  color: rgba(255,255,255,0.78);
}
.is-dark .nav__link:hover { color: #fff; }
.is-dark .nav__link.is-active { color: #fff; }

.nav__cta {
  margin-left: 8px;
}

.nav__menu-btn {
  display: none;
}

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__menu-btn {
    display: inline-flex;
    margin-left: auto;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line);
  }
}

/* ========== Footer ========== */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.78);
  padding-block: 80px 32px;
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 20px;
}
.site-footer a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  transition: color .15s ease;
}
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px 40px;
}
.footer-brand img { height: 48px; margin-bottom: 20px; }
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.55;
}
.footer-bar {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bar a { display: inline; color: rgba(255,255,255,0.55); margin-left: 18px; padding: 0; }
.footer-bar a:hover { color: #fff; }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ========== Trust Bar ========== */
.trust-bar {
  background: var(--ink);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.trust-bar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--shell-pad);
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
}
.trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.trust-bar__item strong {
  color: #fff;
  font-weight: 600;
}
.trust-bar__sep { color: rgba(255,255,255,0.3); }
.stars {
  color: var(--gold-soft);
  letter-spacing: 1px;
  font-size: 12px;
}

/* ========== Cards ========== */
.card {
  background: var(--paper);
  border-radius: var(--r-4);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: var(--line-2);
}

/* ========== Form controls ========== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.005em;
}
.field input,
.field select,
.field textarea {
  appearance: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
.field--row { flex-direction: row; gap: 12px; }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .field-grid { grid-template-columns: 1fr; }
}

/* ========== Misc ========== */
.divider-line {
  height: 1px;
  background: var(--line);
  margin: 0;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--ink-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--paper-tinted);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill--teal {
  background: rgba(27, 111, 126, 0.1);
  color: var(--teal-deep);
}
.pill--gold {
  background: rgba(182, 138, 63, 0.12);
  color: #8a6624;
}
.pill--dark {
  background: var(--ink);
  color: #fbfaf6;
}

/* Dot before nav active states, etc */
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) both; }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
