/* ============================================================
   make-ki.de — Styles
   Farb- & Typo-Werte: make-ki-brand tokens.json (Single Source of Truth)
   ============================================================ */

/* Source Sans 3 — lokal gehostet (Variable Font 300–700, Latin).
   Kein Google-Fonts-CDN → keine Datenübermittlung an Dritte (DSGVO). */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  /* Brand */
  --brand-blue-900: #0b6089;
  --brand-blue-700: #0075b2;
  --brand-ink: #000000;
  --brand-paper: #ffffff;
  --brand-orange: #ee5024;
  --brand-orange-50: #fdece4;

  /* Blue scale */
  --blue-50: #eaf4fb;
  --blue-100: #d2e7f4;
  --blue-200: #a6cfe9;
  --blue-800: #094c6c;
  --blue-900: #07384f;

  /* Neutral */
  --neutral-50: #f7f8fa;
  --neutral-100: #eef1f4;
  --neutral-200: #dfe4ea;
  --neutral-300: #c4ccd5;
  --neutral-500: #6b7682;
  --neutral-600: #4a5360;

  /* Semantik */
  --fg: var(--brand-ink);
  --fg-strong: var(--brand-blue-900);
  --fg-accent: var(--brand-blue-700);
  --fg-muted: var(--neutral-600);
  --fg-subtle: var(--neutral-500);
  --bg: var(--brand-paper);
  --bg-subtle: var(--neutral-50);
  --bg-tint: var(--blue-50);
  --border: var(--neutral-200);

  /* Typo */
  --font-sans: "Source Sans 3", "Aptos", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --content-w: 1120px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --shadow-md: 0 4px 10px -2px rgba(11, 96, 137, 0.10), 0 2px 4px -2px rgba(11, 96, 137, 0.06);
  --shadow-lg: 0 12px 24px -6px rgba(11, 96, 137, 0.14), 0 4px 8px -4px rgba(11, 96, 137, 0.08);
  --shadow-focus: 0 0 0 3px rgba(0, 117, 178, 0.30);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--fg-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 4px;
}

h1, h2, h3 {
  color: var(--fg-strong);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

.wrap {
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-blue-700);
  color: #fff;
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg-strong);
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 44px; height: 44px; }
.nav-brand .tld { color: var(--brand-orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--fg-muted);
  font-weight: 600;
  font-size: 1rem;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.nav-links a:hover {
  color: var(--fg-strong);
  background: var(--bg-tint);
  text-decoration: none;
}
.nav-links a.nav-cta {
  color: #fff;
  background: var(--brand-blue-700);
}
.nav-links a.nav-cta:hover { background: var(--brand-blue-900); }

/* Mobile-Navigation */
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--fg-strong);
  cursor: pointer;
}

/* Vereinfachte Navigation (Unterseiten): immer sichtbar, kein Toggle */
.nav-links.simple { display: flex; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; border-radius: var(--radius-md); }
  .nav-links.simple {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
  }
  .nav-links.simple a { display: inline-block; padding: 8px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--blue-100) 0%, transparent 60%),
    radial-gradient(700px 400px at -10% 110%, var(--blue-50) 0%, transparent 55%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  padding-block: 96px 104px;
}

.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-accent);
  margin-bottom: 20px;
}
.hero .kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-orange);
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--fg-accent); }

.hero .lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--fg-muted);
  max-width: 34em;
  margin: 0 0 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.0625rem;
  transition: transform 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand-blue-700); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--brand-blue-900); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: var(--bg);
  color: var(--fg-strong);
  border: 1.5px solid var(--neutral-300);
}
.btn-secondary:hover { border-color: var(--brand-blue-700); color: var(--fg-accent); }

.hero-visual { position: relative; justify-self: center; }
.hero-visual .logo-card {
  width: min(360px, 70vw);
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
  z-index: 1;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--blue-200), var(--blue-50));
  z-index: 0;
}
.hero-visual::after {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-orange);
  opacity: 0.9;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 64px 72px; }
  .hero-visual { order: -1; }
  .hero-visual .logo-card { width: min(240px, 60vw); }
}

/* ---------- Sektionen ---------- */
.section { padding-block: 96px; }
.section.alt { background: var(--bg-subtle); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .kicker {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.section-head p { color: var(--fg-muted); font-size: 1.1875rem; margin: 0; }

@media (max-width: 760px) {
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 36px; }
}

/* ---------- Über mich ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.about-photo { position: relative; }
.about-photo img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: -20px auto auto -20px;
  width: 45%;
  height: 45%;
  border-radius: var(--radius-xl);
  background: var(--blue-100);
  z-index: 0;
}
.about-photo::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-orange), #f4764f);
  z-index: 0;
}

.about-text h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.about-text p { color: var(--fg-muted); margin: 0 0 1em; }
.about-text p strong { color: var(--fg); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tint);
  color: var(--fg-strong);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 420px; }
}

/* ---------- Leistungen ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--bg-tint);
  color: var(--fg-accent);
}
.card:nth-child(2) .icon { background: var(--brand-orange-50); color: var(--brand-orange); }
.card .icon svg { width: 28px; height: 28px; }

.card h3 { font-size: 1.375rem; margin-bottom: 10px; }
.card p { color: var(--fg-muted); margin: 0; font-size: 1.0625rem; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 520px; }
}

/* ---------- Seminare ---------- */
.seminar-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seminar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.seminar:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }

.seminar .num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--fg-strong);
  font-weight: 700;
  font-size: 1rem;
}

.seminar h3 {
  font-size: 1.125rem;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0 0 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg-accent);
  background: var(--bg-tint);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
}
.chip.half { color: var(--brand-orange); background: var(--brand-orange-50); }

/* Inhouse-CTA als letztes Raster-Element */
.seminar-cta {
  background: var(--brand-orange-50);
  border: 1.5px dashed var(--brand-orange);
  align-items: center;
}
.seminar-cta:hover { border-color: var(--brand-orange); box-shadow: var(--shadow-md); }
.seminar-cta h3 {
  color: var(--fg-strong);
  font-weight: 700;
}
.cta-link {
  display: inline-block;
  margin-top: 2px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-orange);
}
.cta-link:hover { color: var(--fg-accent); }

.seminar-note {
  margin-top: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-blue-700);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  color: var(--fg-muted);
  font-size: 1.0625rem;
}
.seminar-note strong { color: var(--fg-strong); }

@media (max-width: 860px) {
  .seminar-list { grid-template-columns: 1fr; }
}

/* ---------- Kontakt ---------- */
.contact {
  background: linear-gradient(135deg, var(--brand-blue-900) 0%, var(--blue-800) 55%, var(--brand-blue-700) 100%);
  color: #fff;
}
.contact .section-head .kicker { color: var(--brand-orange); }
.contact h2 { color: #fff; }
.contact .section-head p { color: var(--blue-100); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
  text-decoration: none;
}
.contact-card .icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-orange);
}
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card small {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-100);
  margin-bottom: 2px;
}

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: var(--blue-100);
  padding-block: 36px;
  font-size: 1rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.footer-brand img { width: 32px; height: 32px; background: #fff; border-radius: 8px; padding: 2px; }
.footer-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--blue-100); }
.footer-links a:hover { color: #fff; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.legal { padding-block: 72px 96px; max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.5rem; margin-top: 44px; }
.legal p, .legal li { color: var(--fg-muted); }
.legal .todo {
  background: var(--brand-orange-50);
  border: 1px solid #fbd5c2;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #8a3416;
  font-size: 1rem;
}

/* ---------- Demo-Seite (Prompt-Karten) ---------- */
.demo-main { padding-block: 64px 96px; }
.demo-main .section-head { margin-bottom: 40px; }

.prompt-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  overflow: hidden;
}

.prompt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.prompt-head h2 {
  font-size: 1.25rem;
  margin: 0;
}
.prompt-head .hint {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fg-muted);
}
.prompt-head .hint strong { color: var(--brand-orange); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--brand-blue-700);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}
.copy-btn:hover { background: var(--brand-blue-900); transform: translateY(-1px); }
.copy-btn.copied { background: #1f8a5b; }
.copy-btn svg { width: 18px; height: 18px; }

.prompt-card pre {
  margin: 0;
  padding: 26px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .contact-card:hover { transform: none; }
}
