:root {
  --navy: #1e3a6e;
  --navy-mid: #2a4f8f;
  --blue: #2f6fed;
  --blue-soft: #e8f0fe;
  --green: #2f9e6f;
  --green-soft: #e8f6ef;
  --orange: #c47a3a;
  --orange-soft: #f8efe6;
  --ink: #1a2332;
  --muted: #5b677a;
  --line: #d9e0ea;
  --bg: #f7f9fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(30, 58, 110, 0.08);
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Outfit", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header + Logo-Sprachblase */
.site-header {
  padding-top: 5px;
}
.topbar-actions {
  position: absolute;
  top: 15px; /* erneut 5px tiefer */
  right: 0.15rem;
  display: flex;
  justify-content: flex-end;
  align-items: center; /* Anmelden und Mein Konto auf einer Höhe */
  gap: 0.85rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  z-index: 3;
  line-height: 1;
  height: 36px;
}
.topbar-actions > a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  height: 100%;
  line-height: 1;
}
.btn-account {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  padding-right: 0.85rem;
  padding-left: 0.3rem;
  height: 36px;
  background: var(--white);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  box-sizing: border-box;
}

.nav-bubble {
  display: flex;
  align-items: flex-end;
  position: relative;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  gap: 0;
  min-height: 0;
}
/* Menüfarbe hinter dem Logo durchziehen – ohne Nahtstück */
.nav-bubble::before {
  content: "";
  position: absolute;
  left: 4.5rem;
  right: 0;
  bottom: 0;
  height: 3.4rem;
  background: var(--navy);
  border-radius: 0 18px 18px 18px;
  z-index: 0;
}

.site-logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: flex-end;
  line-height: 0;
  flex-shrink: 0;
  padding: 0.7rem 1.2rem 0.5rem;
  margin: 0;
  background: var(--white);
  border: 2.5px solid var(--navy);
  border-radius: 32px;
  box-shadow: none;
}
.site-logo::after { display: none; content: none; }
.site-logo img {
  height: 104px;
  width: auto;
  max-width: min(520px, 58vw);
  object-fit: contain;
  display: block;
}

.btn-account .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Nav – Unterkante = Logo-Unterkante */
.mainnav {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
  background: transparent;
  border-radius: 0 18px 18px 0;
  padding: 0.45rem 0.65rem 0.45rem 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
  align-self: flex-end;
  min-height: 3.4rem;
  box-shadow: none;
  margin-left: -1.75rem;
}
.mainnav a {
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.mainnav a:hover,
.mainnav a.is-active {
  background: var(--navy-mid);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(47, 111, 237, 0.18), transparent 40%),
    radial-gradient(circle at 78% 25%, rgba(47, 158, 111, 0.16), transparent 35%),
    radial-gradient(circle at 88% 70%, rgba(196, 122, 58, 0.14), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 18px;
  opacity: 0.45;
  filter: blur(2px);
}
.hero::before {
  width: 120px; height: 120px;
  background: rgba(47, 111, 237, 0.25);
  top: 12%; left: 8%;
  transform: rotate(18deg);
}
.hero::after {
  width: 90px; height: 90px;
  background: rgba(47, 158, 111, 0.22);
  top: 18%; right: 12%;
  transform: rotate(-12deg);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}
.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
  margin: 0 0 1.5rem;
}
.hero-visual {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0.9rem;
  min-height: 300px;
  align-items: stretch;
}
.notebook {
  background:
    linear-gradient(#d7e0ec, #d7e0ec) 14% 0 / 2px 100% no-repeat,
    repeating-linear-gradient(
      transparent 0 26px,
      rgba(47, 111, 237, 0.14) 26px 27px
    ),
    #fbfcfe;
  border-radius: 12px;
  border: 1px solid #e4ebf4;
  position: relative;
  min-height: 260px;
}
.notebook::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 96px;
  background: linear-gradient(180deg, #355fa8, #1e3a6e);
  border-radius: 8px;
  right: 22%;
  top: 26%;
  transform: rotate(22deg);
  box-shadow: 2px 4px 0 rgba(0,0,0,0.08);
}
.book-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}
.book {
  color: #fff;
  border-radius: 8px;
  padding: 0.85rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 10px rgba(0,0,0,0.08);
}
.book.b1 { background: linear-gradient(180deg, #7a5bb8, #5b3f91); }
.book.b2 { background: linear-gradient(180deg, #2fafa2, #21887e); }
.book.b3 { background: linear-gradient(180deg, #2a4f8f, #1e3a6e); }
.book.b4 { background: linear-gradient(180deg, #a06a3a, #7a4f28); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  padding: 0.8rem 1.25rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: #2159d4; }
.btn-outline {
  background: #fff;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline.green { border-color: var(--green); color: var(--green); }
.btn-outline.orange { border-color: var(--orange); color: var(--orange); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

/* Feature cards */
.features {
  padding: 1rem 0 3rem;
  margin-top: -0.5rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}
.card.green { border-top-color: var(--green); }
.card.orange { border-top-color: var(--orange); }
.card h3 {
  margin: 0;
  font-size: 1.2rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
}
.icon-badge.blue { background: var(--blue-soft); color: var(--blue); }
.icon-badge.green { background: var(--green-soft); color: var(--green); }
.icon-badge.orange { background: var(--orange-soft); color: var(--orange); }

/* App shells */
.page {
  background: var(--bg);
  min-height: calc(100vh - 180px);
  padding: 2rem 0 3rem;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.panel h1, .panel h2 { margin-top: 0; font-family: var(--display); }
.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.stat {
  background: var(--blue-soft);
  border-radius: 12px;
  padding: 1rem;
}
.stat strong { display: block; font-size: 1.4rem; }
.stat span { color: var(--muted); font-size: 0.9rem; }

label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
  margin-bottom: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.priority-list {
  display: grid;
  gap: 0.75rem;
}
.priority-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.flash {
  background: var(--green-soft);
  color: #1f6b49;
  border: 1px solid #b7e2cd;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.error {
  color: #b42318;
  font-size: 0.9rem;
  margin-top: -0.6rem;
  margin-bottom: 0.8rem;
}

.mission-list { display: grid; gap: 0.75rem; }
.mission-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.mission-item .meta { color: var(--muted); font-size: 0.9rem; }
.badge {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--blue-soft);
  color: var(--blue);
}
.badge.done { background: var(--green-soft); color: var(--green); }
.badge.locked { background: #eef1f5; color: #7a8699; }

.child-shell {
  background:
    radial-gradient(circle at 90% 10%, rgba(47,111,237,0.18), transparent 30%),
    radial-gradient(circle at 10% 80%, rgba(47,158,111,0.14), transparent 35%),
    var(--bg);
}
.xp-bar {
  height: 10px;
  background: #dfe7f3;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.xp-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #5b8ef5);
}

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 1.75rem;
  margin-top: 1rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
}
.socials { display: flex; gap: 0.75rem; color: var(--muted); min-width: 2rem; }

.prose h1,
.prose h2 {
  font-family: var(--display);
}
.prose .lead {
  color: var(--muted);
  font-size: 1.08rem;
}
.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: var(--ink);
}
.prose li { margin: 0.35rem 0; }
.legal-note {
  background: var(--orange-soft);
  border: 1px solid #e7c9a8;
  color: #7a4f28;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}
.step p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
  margin-bottom: 1rem;
  resize: vertical;
  min-height: 140px;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .grid-2,
  .form-row,
  .stats,
  .steps { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .nav-bubble {
    flex-wrap: wrap;
  }
  .nav-bubble::before {
    left: 0;
    border-radius: 18px;
  }
  .site-logo {
    border-radius: 32px;
  }
  .site-logo img { height: 80px; max-width: min(440px, 90vw); }
  .mainnav {
    flex: 1 1 100%;
    margin-left: 0;
    margin-top: 0.45rem;
    border-radius: 18px;
    background: var(--navy);
  }
  .topbar-actions { gap: 0.5rem; }
}
