/* ==========================================================================
   KI-Kurs Website – Base Styles (Framework-frei)
   Fokus: Lesbarkeit, klare Struktur, ruhiger Business-Look
   ========================================================================== */

/* ==========================================================================
   1) Design Tokens
   ========================================================================== */

:root {
  /* Light theme (default) */
  --bg: #f7f8fb;
  --panel: rgba(15, 17, 21, 0.03);
  --panel-strong: rgba(15, 17, 21, 0.05);
  --border: rgba(15, 17, 21, 0.12);

  --text: rgba(15, 17, 21, 0.90);
  --muted: rgba(15, 17, 21, 0.68);

  --link: #0b57d0;

  /* Primary action should be clear on light backgrounds */
  --brand: #0f1115;
  --brand-text: #ffffff;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.25);

  --max: 1100px;
  --pad: 20px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 28px;
  --space-5: 44px;
  --space-6: 64px;

  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji";
}

/* Dark mode optional – derzeit bewusst deaktiviert */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --panel: rgba(255, 255, 255, 0.04);
    --panel-strong: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.10);

    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.72);

    --link: #8ab4f8;

    --brand: #ffffff;
    --brand-text: #0f1115;
  }
}
*/


/* ==========================================================================
   2) Reset & Base Elements
   ========================================================================== */

* { box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  opacity: 0.92;
  text-decoration: underline;
}


/* ==========================================================================
   3) Accessibility
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #1b1f2a;
  border-radius: 10px;
  outline: 2px solid rgba(255,255,255,0.25);
  z-index: 9999;
}


/* ==========================================================================
   4) Layout Primitives
   ========================================================================== */

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


/* ==========================================================================
   5) Typography
   ========================================================================== */

h1, h2, h3 { letter-spacing: 0.2px; }

h1 {
  margin: 0 0 var(--space-3);
  line-height: 1.12;
  font-size: clamp(28px, 3.4vw, 46px);
  color: var(--text);
}

h2 {
  margin: 0 0 var(--space-2);
  font-size: 26px;
  line-height: 1.2;
  color: var(--text);
}

h3 {
  margin: 0 0 var(--space-1);
  font-size: 18px;
  line-height: 1.25;
  color: var(--text);
}

/* Standard-Absätze leicht gedimmt, Überschriften tragen die Hauptfarbe */
p {
  margin: 0 0 var(--space-2);
  color: var(--muted);
}

p strong, li strong { color: var(--text); }

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  font-weight: 500;
  max-width: 40ch;
  color: var(--text);
}

.small { font-size: 14px; color: var(--muted); }
.tiny  { font-size: 12px; color: var(--muted); }


/* ==========================================================================
   6) Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px var(--pad);
}

.brand__link {
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
}

.site-nav a:hover {
  background: var(--panel);
  color: var(--text);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}


/* ==========================================================================
   7) Buttons
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  min-height: 44px; /* WCAG touch target */
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: var(--panel);
  text-decoration: none;
}

.button:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

.button--primary {
  background: var(--brand);
  color: var(--brand-text);
  border-color: var(--brand);
}

.button--ghost {
  background: transparent;
  border-style: dashed;
}


/* ==========================================================================
   8) Sections & Grids (Grundstruktur)
   ========================================================================== */

.section {
  position: relative;
  padding: calc(var(--space-6) + 12px) 0;
}

.section:not(:first-of-type)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 90%);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(15,17,21,0.12),
    transparent
  );
}

/* „Alt“-Sektion als sanfter Block: optische Entlastung */
.section--alt {
  background: rgba(15,17,21,0.025); /* etwas sichtbarer als zuvor */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}


/* ==========================================================================
   9) Cards, Lists, Details
   ========================================================================== */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: none;
}

.card__title { margin-top: 0; }

.card__image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 12px;
  display: block;
}

ul, ol { margin: 0 0 var(--space-2); }
li { color: var(--muted); margin: 6px 0; }

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.25);
  margin: 12px 0;
}

summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--text);
}


/* ==========================================================================
   10) Hero (Message + Visual)
   ========================================================================== */

.hero {
  padding: var(--space-6) 0 var(--space-4);
}

.hero__grid {
  display: grid; /* wichtig: war vorher implizit, jetzt sauber */
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-4);
  align-items: start;
}

.hero .lead {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 600;          /* ruhiger als 800 */
  max-width: 42ch;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.hero__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-3) 0 var(--space-3);
}

.hero__bullets {
  margin: var(--space-3) 0 0;
  padding-left: 18px;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

/* Hero-Visual: gezielt größer für Wahrnehmung im Einstieg */
.hero-visual {
  transform: scale(1.08);
  transform-origin: center left;
}

.hero-visual svg {
  background: #fff;
  border-radius: 16px;
  display: block;
  width: 112%;
  height: auto;
  max-width: none;
  margin-left: -10%;
  filter: drop-shadow(0 10px 22px rgba(15,17,21,0.12));
}

/* Kurz-Check bewusst sekundär */
.hero__aside .card {
  padding: 14px;
  background: rgba(15,17,21,0.02);
  border: 1px solid rgba(15,17,21,0.10);
}

.hero__aside .card__title {
  font-size: 16px;
  margin-bottom: 8px;
}

.checklist {
  margin: var(--space-2) 0;
  padding-left: 18px;
}


/* ==========================================================================
   11) Notes / Callouts
   ========================================================================== */

.note { margin-top: var(--space-3); }

.callout {
  margin-top: var(--space-4);
  background: var(--panel-strong);
  border-color: rgba(15,17,21,0.12);
}


/* ==========================================================================
   12) Footer
   ========================================================================== */

.site-footer {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}


/* ==========================================================================
   13) Responsive
   ========================================================================== */

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

  .header-cta { display: none; }

  /* Mobile: kein Überstehen, kein Schatten */
  .hero-visual svg {
    width: 100%;
    margin-left: 0;
    filter: none;
  }
}

.calendar-visual {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 12px;
  margin: 10px 0 12px;
  filter: drop-shadow(0 10px 22px rgba(15,17,21,0.10));
}

.calendar-visual svg {
  display: block;
  width: 100%;
  height: auto;
}