:root {
  --navy: #002C51;
  --blue: #006C94;
  --orange: #C25E10;
  --bg: #f7f9fc;
  --card: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #eef4f8;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(2, 44, 81, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.65; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ─────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0.8rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.brand img { width: 34px; height: 34px; }
.brand .accent { color: var(--orange); }
.header-nav { margin-left: auto; display: flex; gap: 1.1rem; align-items: center; }
.header-nav a { color: var(--ink); font-size: 0.92rem; font-weight: 500; }
.header-nav a:hover { color: var(--blue); text-decoration: none; }
.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle button { border: 0; background: transparent; padding: 0.3rem 0.8rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang-toggle button.active { background: var(--navy); color: #fff; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #eaf2f8 0%, #f7f9fc 60%);
  border-bottom: 1px solid var(--line);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero .kicker { color: var(--orange); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1rem; }
.hero h1 { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .sub { font-size: 1.12rem; color: #475569; max-width: 640px; margin: 0 auto 1.8rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; border: 0; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(194,94,16,0.3); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid var(--blue); color: var(--blue); }
.btn-chat { background: var(--orange); color: #fff; }

/* ── Sektionen ──────────────────────────────────────── */
.section { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { font-size: 1.8rem; color: var(--navy); font-weight: 700; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0.5rem auto 0; }

/* ── Pfade (Zielgruppen) ────────────────────────────── */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.path-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.5rem; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.path-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.path-card .icon { font-size: 1.7rem; }
.path-card h3 { color: var(--navy); font-size: 1.05rem; }
.path-card p { font-size: 0.88rem; color: var(--muted); flex: 1; }
.path-card .go { color: var(--orange); font-weight: 600; font-size: 0.85rem; }

/* ── Übungen ────────────────────────────────────────── */
.exercises { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.exercise-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.exercise-card h3 { color: var(--navy); margin-bottom: 0.4rem; }
.exercise-card p { font-size: 0.9rem; color: #475569; margin-bottom: 0.9rem; }

/* ── Bücher ─────────────────────────────────────────── */
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.book-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.book-card .isbn { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.03em; }
.book-card h3 { color: var(--navy); font-size: 1rem; margin: 0.3rem 0; }
.book-card p { font-size: 0.85rem; color: var(--muted); }

/* ── Blog ───────────────────────────────────────────── */
.blog-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.blog-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.blog-card .date { font-size: 0.75rem; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-card h3 { color: var(--navy); margin: 0.4rem 0; font-size: 1.05rem; }
.blog-card .src { font-size: 0.78rem; color: var(--muted); }
.blog-card p.excerpt { font-size: 0.9rem; color: #475569; margin-top: 0.5rem; }

/* ── Seite (Pfade, Übungen, Blog-Detail, Über) ──────── */
.page { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.page h1 { color: var(--navy); font-size: 2rem; margin-bottom: 0.6rem; }
.page .lead { color: #475569; font-size: 1.05rem; margin-bottom: 1.5rem; }
.page h2 { color: var(--navy); font-size: 1.3rem; margin: 1.8rem 0 0.5rem; }
.page p { margin-bottom: 1rem; }
.page ul, .page ol { margin: 0 0 1rem 1.3rem; }
.page li { margin-bottom: 0.4rem; }
.page blockquote { border-left: 3px solid var(--orange); background: var(--soft); padding: 0.8rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.2rem 0; color: #334155; }
.page .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }

/* ── Chat ───────────────────────────────────────────── */
#chat-root { position: fixed; bottom: 24px; right: 24px; z-index: 100; }
.fab {
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--orange); color: #fff; box-shadow: 0 8px 24px rgba(194,94,16,0.4);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  transition: transform 0.15s ease;
}
.fab:hover { transform: scale(1.06); }
.chat-popup {
  position: fixed; bottom: 100px; right: 24px; width: 400px; max-width: calc(100vw - 48px);
  height: 560px; max-height: calc(100vh - 140px); background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(2,44,81,0.25);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-head { background: var(--navy); color: #fff; padding: 0.9rem 1.2rem; display: flex; align-items: center; gap: 0.7rem; }
.chat-head img { width: 30px; height: 30px; border-radius: 50%; background: #fff; padding: 3px; }
.chat-head .t { font-weight: 700; font-size: 0.95rem; }
.chat-head .s { font-size: 0.72rem; opacity: 0.85; }
.chat-head .close { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; }
.chat-msg { padding: 1rem 1.2rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 0.7rem; background: var(--bg); }
.msg { max-width: 88%; padding: 0.7rem 0.95rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.assistant .badge { display: inline-block; font-size: 0.7rem; font-weight: 600; background: var(--soft); color: var(--navy); padding: 0.1rem 0.5rem; border-radius: 999px; margin-bottom: 0.4rem; }
.msg.assistant { position: relative; }
.msg-flag {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: transparent; border: 0; cursor: pointer;
  font-size: 0.85rem; color: var(--muted); opacity: 0.55; line-height: 1;
}
.msg-flag:hover { opacity: 1; color: var(--orange); }
.report-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2, 44, 81, 0.4);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.report-box {
  background: var(--card); border-radius: 16px; padding: 1.4rem;
  max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(2,44,81,0.3);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.report-head { display: flex; align-items: center; justify-content: space-between; }
.report-head strong { color: var(--navy); }
.report-head .close { background: transparent; border: 0; font-size: 1.1rem; cursor: pointer; color: var(--muted); }
.report-hint { font-size: 0.85rem; color: var(--muted); }
.report-box select, .report-box textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem;
  font-size: 0.9rem; font-family: inherit; background: var(--bg); outline: none;
}
.report-box select:focus, .report-box textarea:focus { border-color: var(--blue); }
.report-send { align-self: flex-end; }
.msg.assistant strong { color: var(--navy); }
.msg.assistant em { color: var(--orange); font-style: normal; font-weight: 600; }
.msg.assistant p { margin-bottom: 0.5rem; }
.msg.assistant p:last-child { margin-bottom: 0; }
.msg.assistant ul { margin: 0.3rem 0 0.6rem 1.1rem; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0.7rem 1.2rem 0.3rem; background: var(--bg); }
.chip { font-size: 0.78rem; border: 1px solid var(--blue); color: var(--blue); background: transparent; border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; }
.chip:hover { background: var(--soft); }
.chat-input { display: flex; gap: 0.5rem; padding: 0.7rem 1.2rem 1rem; background: var(--bg); border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1rem; font-size: 0.9rem; outline: none; }
.chat-input input:focus { border-color: var(--blue); }
.chat-input button { background: var(--orange); color: #fff; border: 0; border-radius: 999px; padding: 0.6rem 1.2rem; font-weight: 600; cursor: pointer; }
.chat-input button:disabled { opacity: 0.5; cursor: default; }
.chat-note { font-size: 0.7rem; color: var(--muted); text-align: center; padding: 0.3rem 1.2rem 0.6rem; background: var(--bg); }
.typing { font-style: italic; color: var(--muted); font-size: 0.85rem; }

/* ── Footer ─────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: var(--card); padding: 2rem 1.5rem 3rem; margin-top: 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer .brand { font-size: 0.95rem; }
.footer .links a { color: var(--muted); font-size: 0.85rem; margin-left: 1rem; }
.footer-report {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 0.78rem; padding: 0.3rem 0.8rem; cursor: pointer; margin-left: 1rem;
  font-family: inherit;
}
.footer-report:hover { border-color: var(--orange); color: var(--orange); }
.footer-private { margin-top: 0.8rem; justify-content: center; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 720px) {
  .hero h1 { font-size: 1.9rem; }
  .header-nav a.nav-hide { display: none; }
  .chat-popup { right: 12px; width: calc(100vw - 24px); height: calc(100vh - 130px); }
}
