/* KI-Praxisstart: Grundgestaltung vor der gemeinsamen Seitennavigation */
:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --paper-warm: #f4efe7;
  --surface: #ffffff;
  --mist: #edf3f5;
  --sage: #eef4ee;
  --ink: #20242a;
  --muted: #5c6670;
  --quiet: #7c858e;
  --line: #d9ded5;
  --teal: #1d6b66;
  --teal-dark: #144f4c;
  --understand: #3f7080;
  --understand-dark: #315c69;
  --understand-soft: #edf3f5;
  --reset: #4f715f;
  --reset-dark: #3f5c4c;
  --reset-soft: #edf2ef;
  --agentic: #6d667e;
  --agentic-soft: rgba(109, 102, 126, 0.09);
  --amber: #d4943d;
  --rose: #b96b5f;
  --blue: #516b7a;
  --violet: #6d667e;
  --shadow: 0 18px 48px rgba(31, 36, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(31, 36, 42, 0.08);
  --radius: 8px;
  --max: var(--seite-breite, 1120px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: 62px;
  line-height: 1.02;
  font-weight: 820;
  letter-spacing: 0;
}

.section {
  padding: 86px 0;
  scroll-margin-top: 88px;
}

#problem {
  border-top: 1px solid rgba(217, 222, 213, 0.58);
  background: linear-gradient(180deg, rgba(251, 250, 246, 0.98), rgba(237, 242, 239, 0.66)),
          var(--reset-soft);
}

#problem .section-title {
  font-size: 37px;
  line-height: 1.18;
}

.container {
  width: min(100% - var(--seite-rand, 40px), var(--max));
  margin: 0 auto;
}

.section-title {
  margin: 0;
  max-width: 780px;
  font-size: 40px;
  line-height: 1.14;
  letter-spacing: 0;
}

#problem .section-title {
  max-width: 940px;
}

.section-intro {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

blockquote {
  margin: 0;
  color: #343a40;
  font-size: 24px;
  line-height: 1.35;
  font-style: italic;
  font-weight: 650;
}

details {
  border: 1px solid rgba(217, 222, 213, 0.92);
  border-left: 3px solid rgba(79, 113, 95, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(31, 36, 42, 0.06);
}

details[open] {
  border-left-color: var(--reset);
  box-shadow: 0 16px 38px rgba(31, 36, 42, 0.08);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 760;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  border-top: 1px solid rgba(217, 222, 213, 0.7);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

label {
  display: grid;
  gap: 7px;
  color: #363d44;
  font-size: 14px;
  font-weight: 720;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 12px;
  border: 1px solid #cbd3cc;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(31, 36, 42, 0.03);
}

textarea {
  min-height: 124px;
  resize: vertical;
}

@media (max-width: 980px) {
  h1 {
    font-size: 46px;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .section {
    padding: 62px 0;
  }

  .section-title {
    font-size: 31px;
  }

  blockquote {
    font-size: 21px;
  }
}

@media print {
  *, *::before, *::after {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Der Druckhintergrund hat Vorrang vor dem spezifischeren Seitenhintergrund am body. */
  html, body {
    background: #fbfaf6 !important;
  }

  /* details[open] setzt einen spezifischeren Schatten. Für den Filter ist aktuell
     keine konkurrierende Deklaration an details belegt. */
  details {
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
}

body.ki-praxisstart {
  background: var(--paper);
}

body.ki-praxisstart .editorial-accent {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.018em;
}

body.ki-praxisstart .section {
  padding: 88px 0;
  border-top: 1px solid rgba(217, 222, 213, 0.62);
}

body.ki-praxisstart .section-title {
  max-width: 900px;
  font-size: clamp(38px, 3.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.012em;
}

body.ki-praxisstart .section-title .editorial-accent {
  color: var(--reset);
}

body.ki-praxisstart .section-intro {
  max-width: 820px;
  margin-top: 20px;
  font-size: 18px;
}

body.ki-praxisstart #problem {
  background: #ffffff;
}

body.ki-praxisstart #problem .section-title {
  max-width: 660px;
}

@media (max-width: 680px) {
  body.ki-praxisstart .section {
    padding: 64px 0;
  }

  body.ki-praxisstart .section-title {
    font-size: 36px;
  }
}
