/* ==========================================================================
   klarheitjetzt.de — Dachseite
   Palette: helles Papier, tiefes Waldgrün, Tinte.
   ========================================================================== */

:root {
  --paper: #f2f1ec;
  --paper-2: #e8e7e0;
  --paper-3: #dcdbd2;
  --card: #fbfaf6;

  --ink: #16211d;
  --ink-2: #414f4a;
  --ink-3: #6d7b75;

  --dark: #10201b;
  --dark-2: #17302a;
  --on-dark: #e9efec;
  --on-dark-2: #9db0a8;

  --accent: #1e6650;
  --accent-2: #2e8467;
  --accent-soft: #dde9e3;
  --accent-on-dark: #7bc4a6;

  --line: #d5d4cb;
  --line-dark: #26443b;

  --shadow-sm:
    0 1px 2px rgba(22, 33, 29, 0.05), 0 4px 14px -10px rgba(22, 33, 29, 0.3);
  --shadow-md:
    0 2px 4px rgba(22, 33, 29, 0.05), 0 16px 36px -22px rgba(22, 33, 29, 0.45);

  --t-hero: clamp(2.3rem, 5.8vw, 4rem);
  --t-h2: clamp(1.7rem, 3.4vw, 2.5rem);
  --t-h3: clamp(1.1rem, 1.8vw, 1.32rem);
  --t-lead: clamp(1.05rem, 1.7vw, 1.24rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-label: 0.75rem;

  --wrap: 1120px;
  --gut: clamp(20px, 5vw, 40px);
  --sec: clamp(60px, 8.5vw, 108px);
  --r: 14px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Figtree",
    "Segoe UI",
    system-ui,
    -apple-system,
    Helvetica,
    Arial,
    sans-serif;
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent);
}
button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip:focus {
  left: 0;
}

/* ------------------------------------------------------------- Typografie */
h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
  font-variation-settings:
    "SOFT" 20,
    "WONK" 0;
}
h1 {
  font-size: var(--t-hero);
  line-height: 1.06;
}
h2 {
  font-size: var(--t-h2);
  line-height: 1.14;
}
h3 {
  font-size: var(--t-h3);
  line-height: 1.28;
}

.em {
  color: var(--accent);
  font-style: italic;
}
.on-dark .em {
  color: var(--accent-on-dark);
}

p {
  margin: 0 0 1em;
  max-width: 64ch;
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
}
.on-dark .lead {
  color: var(--on-dark-2);
}

.label {
  display: block;
  font-size: var(--t-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.on-dark .label {
  color: var(--accent-on-dark);
}

.small {
  font-size: var(--t-small);
  color: var(--ink-3);
}

/* ------------------------------------------------------------- Layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.narrow {
  max-width: 760px;
}

section {
  padding-block: var(--sec);
}
.on-dark {
  background: var(--dark);
  color: var(--on-dark);
}
.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: var(--on-dark);
}
.on-paper-2 {
  background: var(--paper-2);
}

.sec-head {
  max-width: 660px;
  margin-bottom: clamp(30px, 4.2vw, 50px);
}
.sec-head p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  background: var(--accent);
  color: #f4faf7;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(22, 33, 29, 0.14),
    0 12px 24px -16px rgba(30, 102, 80, 0.9);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--accent-2);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn .arrow {
  transition: transform 0.18s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn-quiet:hover,
.btn-quiet:focus-visible {
  background: var(--card);
  border-color: var(--ink-3);
}
.on-dark .btn-quiet {
  color: var(--on-dark);
  border-color: var(--line-dark);
}
.on-dark .btn-quiet:hover,
.on-dark .btn-quiet:focus-visible {
  background: rgba(123, 196, 166, 0.12);
  border-color: var(--accent-on-dark);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 18px 32px;
  font-size: 1.05rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}

/* ------------------------------------------------------------- Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(242, 241, 236, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.24rem;
  font-weight: 500;
}
.brand svg {
  flex: none;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.16s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s ease;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.6px;
  background: var(--ink);
  transition:
    transform 0.24s ease,
    top 0.24s ease;
}
.burger span::before {
  top: -6px;
}
.burger span::after {
  top: 6px;
}
.nav.open .burger span {
  background: transparent;
}
.nav.open .burger span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav.open .burger span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
}
@media (max-width: 880px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
  .mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 0 solid var(--line);
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav.open .mobile-menu {
    max-height: 400px;
    border-top-width: 1px;
  }
  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px 0 20px;
  }
  .mobile-menu li {
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu li:last-child {
    border-bottom: 0;
    padding-top: 14px;
  }
  .mobile-menu a:not(.btn) {
    display: block;
    padding: 13px 0;
    color: var(--ink);
    text-decoration: none;
  }
  .mobile-menu .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------------- Hero */
.hero {
  padding-block: clamp(52px, 7vw, 96px) clamp(48px, 6.5vw, 88px);
  background:
    radial-gradient(
      90% 70% at 88% 0%,
      rgba(30, 102, 80, 0.09) 0%,
      rgba(30, 102, 80, 0) 62%
    ),
    var(--paper);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.79rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--card);
  margin-bottom: 26px;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.hero h1 {
  margin-bottom: 22px;
  max-width: 17ch;
}
.hero .lead {
  margin-bottom: 30px;
}
.hero-note {
  font-size: var(--t-small);
  color: var(--ink-3);
  margin: 16px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Register-Karte im Hero */
.register {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.register .rh {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--paper-2);
}
.register ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.register li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.register li:last-child {
  border-bottom: 0;
}
.register .u {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.register .u b {
  color: var(--ink);
  font-weight: 600;
}

.state {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.state.live {
  background: var(--accent-soft);
  color: var(--accent);
}
.state.soon {
  background: var(--paper-2);
  color: var(--ink-3);
  border: 1px solid var(--line);
}

/* ------------------------------------------------------------- Schritte */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: s;
}
.step {
  counter-increment: s;
  padding-top: 24px;
  border-top: 2px solid var(--accent);
}
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.step h3 {
  margin-bottom: 8px;
}
.step p {
  font-size: var(--t-small);
  color: var(--ink-2);
  margin: 0;
}

/* ------------------------------------------------------------- Themen */
.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.topic.is-live:hover,
.topic.is-live:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.topic .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topic .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.topic h3 {
  margin: 0;
}
.topic p {
  font-size: var(--t-small);
  color: var(--ink-2);
  margin: 0;
  flex: 1;
}
.topic .url {
  font-size: 0.84rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  word-break: break-word;
}
.topic .url b {
  color: var(--accent);
  font-weight: 600;
}
.topic a.go {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.topic a.go:hover,
.topic a.go:focus-visible {
  text-decoration: underline;
}
.topic.is-soon {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}
.topic.is-soon .ico {
  background: var(--paper-2);
  color: var(--ink-3);
}

/* ------------------------------------------------------------- Prinzipien */
.principles {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 2px;
  border-bottom: 1px solid var(--line-dark);
}
.principles li:first-child {
  border-top: 1px solid var(--line-dark);
}
.principles .n {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  color: var(--accent-on-dark);
  line-height: 1.2;
  min-width: 1.6ch;
}
.principles h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.principles p {
  margin: 0;
  color: var(--on-dark-2);
  font-size: var(--t-small);
}

/* ------------------------------------------------------------- Plates */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 3vw, 30px);
}
.plate {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
}
.plate.quiet {
  background: transparent;
  border-style: dashed;
}
.plate h3 {
  margin-bottom: 10px;
}
.plate p:last-child {
  margin-bottom: 0;
}
.plate .mini-label {
  display: block;
  font-size: var(--t-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 13px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-size: var(--t-small);
  color: var(--ink-2);
}
.checklist svg {
  margin-top: 0.3em;
  flex: none;
  color: var(--accent);
}

/* ------------------------------------------------------------- FAQ */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 21px 44px 21px 0;
  position: relative;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.16s ease;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--accent);
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.24s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq .answer {
  padding: 0 40px 22px 0;
}
.faq .answer p {
  margin: 0 0 0.8em;
  color: var(--ink-2);
  font-size: var(--t-small);
  max-width: 62ch;
}
.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------- Abschluss */
.final {
  text-align: center;
}
.final h2 {
  margin-bottom: 18px;
}
.final .lead {
  margin: 0 auto 30px;
}
.final .cta-group {
  justify-content: center;
}

/* ------------------------------------------------------------- Footer */
.footer {
  background: var(--dark-2);
  color: var(--on-dark-2);
  padding-block: 50px 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-dark);
}
.footer .brand {
  color: var(--on-dark);
  margin-bottom: 12px;
}
.footer h2 {
  font-size: var(--t-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin: 0 0 14px;
  font-weight: 700;
  font-family: "Figtree", sans-serif;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer a {
  color: var(--on-dark-2);
  text-decoration: none;
  font-size: var(--t-small);
  transition: color 0.16s ease;
}
.footer a:hover,
.footer a:focus-visible {
  color: var(--accent-on-dark);
}
.footer p {
  font-size: var(--t-small);
  max-width: 42ch;
}
.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-size: 0.82rem;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ------------------------------------------------------------- Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.8, 0.3, 1),
    transform 0.6s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.js .reveal.d1.in {
  transition-delay: 0.07s;
}
.js .reveal.d2.in {
  transition-delay: 0.14s;
}
.js .reveal.d3.in {
  transition-delay: 0.21s;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
