/* AI1ST – Gestaltung. Ohne externe Abhängigkeiten, Schrift selbst gehostet. */

@font-face {
  font-family: 'Instrument Sans';
  src: url('/static/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #101828;
  --ink-2: #344054;
  --muted: #5b6475;
  --line: #e4e1d8;
  --line-strong: #cfcabd;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --brand: #2b3fe0;
  --brand-ink: #1c2aa6;
  --brand-soft: #eceefd;
  --green: #0f7b55;
  --green-soft: #e2f4ec;
  --amber: #a85a06;
  --amber-soft: #fdf0d9;
  --red: #b93228;
  --red-soft: #fde8e6;
  --gray-soft: #eeece6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px -12px rgba(16, 24, 40, 0.12);
  --font: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 650;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}
h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}
h3 {
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}
a {
  color: var(--brand);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--brand-ink);
}
code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--gray-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
img,
svg {
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
  color: #fff;
}

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}
.container-mid {
  width: min(820px, 100% - 40px);
}
.container-narrow {
  width: min(520px, 100% - 40px);
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.88rem;
}
.block {
  display: block;
}
.warn-text {
  color: var(--red);
}
.eyebrow {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.9em;
}
.lead {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}
.center .lead {
  margin-inline: auto;
}

/* ---------- Logo ---------- */
.logo {
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo span {
  color: var(--brand);
}
.logo:hover {
  color: var(--ink);
}

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-ink);
  color: #fff;
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover {
  background: var(--gray-soft);
  color: var(--ink);
}
.btn-danger {
  background: var(--surface);
  color: var(--red);
  border-color: var(--red);
}
.btn-danger:hover {
  background: var(--red);
  color: #fff;
}
.btn-sm {
  padding: 7px 12px;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 15px 26px;
  font-size: 1.06rem;
}
.btn-block {
  width: 100%;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.4em 0 0.9em;
}

/* ---------- Öffentlicher Kopf ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.97rem;
}
.nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}
.nav a:not(.btn):hover {
  color: var(--ink);
}
.nav-sep {
  width: 1px;
  height: 20px;
  background: var(--line-strong);
}
.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- Abschnitte ---------- */
.section {
  padding: clamp(56px, 8vw, 104px) 0;
}
.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.page-top {
  padding-top: clamp(40px, 6vw, 72px);
}
.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.grid-2,
.grid-3 {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(43, 63, 224, 0.1), transparent 60%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  letter-spacing: -0.03em;
}
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -28px rgba(16, 24, 40, 0.28);
  padding: 24px;
  transform: rotate(0.6deg);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.panel-title {
  font-weight: 650;
}
.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.panel-list li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.panel-list strong {
  font-weight: 600;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.panel-foot {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.dot-green {
  background: var(--green);
}
.dot-amber {
  background: #e08a12;
}
.dot-red {
  background: var(--red);
}

.strip {
  background: var(--ink);
  color: #e7e9f0;
  padding: 40px 0 28px;
}
.strip p {
  margin: 0;
  font-size: 0.98rem;
}
.strip-date {
  font-weight: 650;
  color: #fff;
  margin-bottom: 6px !important;
  font-size: 1.02rem !important;
}
.strip-note {
  margin-top: 24px !important;
  color: #a9b0c2;
}
.strip-note a {
  color: #c9d0ff;
}

/* ---------- Karten ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 24px;
}
.card > :last-child {
  margin-bottom: 0;
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.card-head h2 {
  margin: 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--surface);
  padding: 26px 24px;
}
.feature p:last-child {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.96rem;
}
.feature-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.steps li::before {
  content: '0' counter(step);
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--brand);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.tool-card h3 {
  font-size: 1.4rem;
}

/* ---------- Preise ---------- */
.price-grid {
  align-items: stretch;
  margin-bottom: 24px;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
}
.price-card .btn,
.price-card form {
  margin-top: auto;
}
.price-card-featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow);
}
.price-flag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--brand);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  margin: 0;
}
.price {
  margin: 12px 0 2px;
}
.price-amount {
  font-size: 2.3rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.price-unit {
  color: var(--muted);
}
.service-price {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.price-notes {
  margin-top: 16px;
}
.check-list,
.plain-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 9px;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 15px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.plain-list li {
  margin-bottom: 10px;
}
.price-card .check-list {
  margin: 18px 0 22px;
  font-size: 0.96rem;
}
.service-list {
  display: grid;
  gap: 24px;
}
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.service-aside {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  align-self: start;
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 20px 36px 20px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 1.5rem;
  color: var(--brand);
  line-height: 1.2;
}
.faq details[open] summary::after {
  content: '–';
}
.faq summary h3 {
  margin: 0;
  display: inline;
}
.faq details p {
  color: var(--ink-2);
  padding-right: 36px;
}
.cta-band {
  background: var(--ink);
  color: #fff;
}
.cta-band .lead {
  color: #c8cdd9;
  margin-bottom: 1.6em;
}

/* ---------- Fuß ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.footer-grid h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-grid nav a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 8px;
}
.footer-grid nav a:hover {
  color: var(--brand);
}
.footer-claim {
  max-width: 34ch;
  margin-top: 12px;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-base p {
  margin: 0;
}

/* ---------- Formulare ---------- */
.form {
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-inline {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.form-inline .field {
  flex: 1 1 260px;
}
.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 18px;
}
.form-section legend {
  font-weight: 650;
  font-size: 1.05rem;
  padding: 0;
  margin-bottom: 12px;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.label {
  font-weight: 600;
  font-size: 0.95rem;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.input {
  font: inherit;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  min-height: 46px;
}
.input-sm {
  padding: 6px 10px;
  min-height: 36px;
  font-size: 0.92rem;
}
textarea.input {
  resize: vertical;
  line-height: 1.5;
}
.input:focus {
  outline: 3px solid rgba(43, 63, 224, 0.25);
  border-color: var(--brand);
}
.field-invalid .input,
.input[aria-invalid='true'] {
  border-color: var(--red);
}
.help {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}
.error-text {
  font-size: 0.9rem;
  color: var(--red);
  margin: 0;
  font-weight: 500;
}
.choices {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.choices legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.4;
}
.choices .help {
  margin-bottom: 10px;
}
.choice-list {
  display: grid;
  gap: 8px;
}
.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--surface);
  line-height: 1.45;
}
.choice:hover {
  border-color: var(--line-strong);
}
.choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.choice input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex: none;
}
.choice-plain {
  border: 0;
  padding: 0;
  background: none;
}
.choice-plain:has(input:checked) {
  background: none;
}
.choice-hint {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}
.question-list {
  list-style: none;
  padding: 0;
  counter-reset: q;
  display: grid;
  gap: 0;
}
.question-list > li {
  counter-increment: q;
}
.question-list legend::before {
  content: counter(q) '. ';
  color: var(--brand);
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-form .input {
  width: auto;
}

/* ---------- Hinweise, Marken ---------- */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  margin-bottom: 20px;
  font-size: 0.97rem;
}
.alert-info {
  background: var(--brand-soft);
  border-color: #c5cbf7;
  color: #1a2470;
}
.alert-ok {
  background: var(--green-soft);
  border-color: #a9dcc5;
  color: #0a4a34;
}
.alert-warn {
  background: var(--amber-soft);
  border-color: #f0cf96;
  color: #6b3a04;
}
.alert-error {
  background: var(--red-soft);
  border-color: #f2b9b3;
  color: #7c1d16;
}
.alert a {
  color: inherit;
  font-weight: 600;
}
.banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: middle;
}
.badge-green {
  background: var(--green-soft);
  color: var(--green);
}
.badge-amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge-red {
  background: var(--red-soft);
  color: var(--red);
}
.badge-gray {
  background: var(--gray-soft);
  color: var(--ink-2);
}
.badge-blue {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

/* ---------- Ergebnisse der Checks ---------- */
.result-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.score-ring {
  text-align: center;
}
.ring-track {
  stroke: var(--gray-soft);
}
.ring-value {
  stroke: var(--brand);
}
.score-green .ring-value {
  stroke: var(--green);
}
.score-amber .ring-value {
  stroke: #e08a12;
}
.score-red .ring-value {
  stroke: var(--red);
}
.ring-number {
  font-size: 30px;
  font-weight: 650;
  fill: var(--ink);
  font-family: var(--font);
}
.ring-unit {
  font-size: 10px;
  fill: var(--muted);
  font-family: var(--font);
}
.ring-label {
  margin: 4px 0 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.96rem;
}
.area {
  border-left: 5px solid var(--line-strong);
}
.area-rot {
  border-left-color: var(--red);
}
.area-gelb {
  border-left-color: #e08a12;
}
.area-gruen {
  border-left-color: var(--green);
}
.area-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.area-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.area-headline {
  font-weight: 650;
  font-size: 1.08rem;
  margin-top: 10px;
}
.area h3 {
  margin-top: 1.2em;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.cta-card {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.cta-card p {
  color: #d5d9e4;
}
.cta-card .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #5b6475;
}
.cta-card .btn-secondary:hover {
  border-color: #fff;
}
.cat-list {
  display: grid;
  gap: 14px;
}
.cat-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
progress {
  width: 100%;
  height: 8px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--gray-soft);
  overflow: hidden;
  display: block;
}
progress::-webkit-progress-bar {
  background: var(--gray-soft);
}
progress::-webkit-progress-value {
  background: var(--brand);
  border-radius: 999px;
}
progress::-moz-progress-bar {
  background: var(--brand);
  border-radius: 999px;
}
.todo-list {
  padding-left: 1.3em;
}
.todo-list li {
  margin-bottom: 10px;
}
.finding-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.finding {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.finding:first-child {
  border-top: 0;
  padding-top: 0;
}
.finding p {
  margin: 6px 0 0;
  font-size: 0.96rem;
}
.finding-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.geo-explain {
  margin-top: 40px;
}
.geo-explain h2 {
  font-size: 1.2rem;
}

/* ---------- Fließtext, Rechtstexte ---------- */
.prose h2 {
  margin-top: 1.8em;
  font-size: 1.4rem;
}
.prose h3 {
  margin-top: 1.4em;
}
.prose section:first-child h2 {
  margin-top: 0;
}
.prose li {
  margin-bottom: 6px;
}
.prose table,
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.prose th,
.prose td,
.table th,
.table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose address {
  font-style: normal;
  margin-bottom: 1em;
}
.legal {
  overflow-wrap: anywhere;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  border-left: 2px solid var(--line-strong);
}
.timeline-item {
  position: relative;
  padding: 0 0 30px 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid #e08a12;
}
.timeline-past::before {
  border-color: var(--green);
  background: var(--green);
}
.timeline-date {
  font-weight: 650;
  margin-bottom: 4px;
}
.timeline h2 {
  margin: 0 0 6px;
  font-size: 1.18rem;
}
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0 0 1.2em;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-weight: 500;
}
.verify-ok {
  border-color: #a9dcc5;
  background: #f4fbf8;
}

/* ---------- Schlanke Seiten (Anmeldung, Lernen) ---------- */
.focus-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.focus-context {
  text-align: right;
}
.focus-main {
  padding: clamp(28px, 5vw, 56px) 0 72px;
  min-height: 70vh;
}
.focus-footer {
  padding: 24px 0 40px;
}
.auth-card {
  padding: clamp(24px, 5vw, 40px);
}
.auth-card h1 {
  font-size: 1.8rem;
}
.learn-head {
  margin-bottom: 28px;
}
.lesson h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}
.lesson .prose {
  margin: 28px 0;
  font-size: 1.06rem;
  line-height: 1.7;
}
.lesson .prose p,
.lesson .prose ul {
  max-width: 68ch;
}
.callout {
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  padding: 16px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.2em 0;
  max-width: 68ch;
}
.callout p {
  margin: 0;
}
.callout-label {
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-ink);
  margin-bottom: 4px !important;
}
.callout-achtung {
  border-left-color: #e08a12;
  background: var(--amber-soft);
}
.callout-achtung .callout-label {
  color: var(--amber);
}
.callout-praxis {
  border-left-color: var(--green);
  background: var(--green-soft);
}
.callout-praxis .callout-label {
  color: var(--green);
}
.self-check {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.self-check-q {
  margin-bottom: 8px;
}
.self-check-options {
  margin-bottom: 10px;
}
.self-check summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 600;
}
.self-check details p {
  margin: 10px 0 0;
}
.lesson-list,
.step-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.lesson-row,
.step {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.lesson-row p,
.step p {
  margin: 2px 0 0;
}
.lesson-row a {
  font-weight: 600;
}
.step-title {
  font-weight: 600;
}
.step-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--muted);
}
.lesson-done .step-mark,
.step-done .step-mark {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.step-done .step-title {
  color: var(--muted);
}
.lesson-nav {
  margin-top: 28px;
}
.lesson-outline li {
  margin-bottom: 12px;
}
.lesson-outline p {
  margin: 2px 0 0;
}

/* ---------- Kundenbereich ---------- */
body.app {
  background: var(--paper);
  font-size: 16px;
}
.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--ink);
  color: #cdd2de;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .logo {
  color: #fff;
}
.sidebar .logo span {
  color: #8f9bff;
}
.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 20px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: calc(100vh - 110px);
}
.side-nav a {
  color: #cdd2de;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.96rem;
}
.side-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.side-nav a[aria-current='page'] {
  background: #fff;
  color: var(--ink);
  font-weight: 650;
}
.side-org {
  font-size: 0.8rem;
  color: #8e96a8;
  padding: 0 12px 10px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #7a8296;
  padding: 18px 12px 6px;
  margin: 0;
}
.side-logout {
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.side-user {
  color: #8e96a8 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 6px;
}
.side-logout .btn {
  color: #cdd2de;
  padding-left: 4px;
}
.side-logout .btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.app-main {
  padding: 32px clamp(20px, 4vw, 48px) 80px;
  max-width: 980px;
  width: 100%;
  min-width: 0;
}
.app-main-wide {
  max-width: 1240px;
}
.app-main h1 {
  font-size: 1.9rem;
}
.app-main h2 {
  font-size: 1.22rem;
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.page-head h1,
.page-head p {
  margin-bottom: 4px;
}
.crumb {
  font-size: 0.9rem;
  margin: 0 0 6px;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.dash-top {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.dash-score {
  margin: 0;
  display: grid;
  place-items: center;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.stat-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat p {
  margin: 0;
}
.stat-value {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-label {
  font-weight: 600;
  margin-top: 4px !important;
}
.stat-amber .stat-value {
  color: var(--amber);
}
.stat-green .stat-value {
  color: var(--green);
}
.next-step {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.next-step p:last-child {
  margin: 0;
}
.activity {
  list-style: none;
  padding: 0;
  margin: 0;
}
.activity li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}
.activity li:first-child {
  border-top: 0;
}
.survey-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background: var(--brand-soft);
  border-color: #c5cbf7;
}
.survey-box h2,
.survey-box p {
  margin-bottom: 4px;
}
.copy-row {
  display: flex;
  gap: 8px;
}
.copy-row .input {
  font-size: 0.86rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.report-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.report-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.report-list p {
  margin: 2px 0 0;
  white-space: pre-line;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.filter-bar a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--surface);
}
.filter-bar a[aria-current='true'] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.table-wrap {
  /* relative: sonst ragen unsichtbare Hilfstexte (.sr-only) aus dem Scrollbereich und verbreitern die Seite */
  position: relative;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card .table-wrap {
  border: 0;
  border-radius: 0;
}
.table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 650;
  background: #fbfaf7;
  white-space: nowrap;
}
.table tbody th {
  font-weight: 600;
}
.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table .actions {
  white-space: nowrap;
  text-align: right;
}
.table .actions form {
  display: inline-block;
}
.table progress {
  min-width: 90px;
}
.table-compact th,
.table-compact td {
  padding: 6px 8px;
  font-size: 0.86rem;
}
.table-facts th {
  width: 42%;
  font-weight: 500;
  color: var(--ink-2);
}
.row-muted {
  opacity: 0.55;
}
.cell-wrap {
  white-space: pre-line;
  max-width: 420px;
}
.empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.empty p {
  max-width: 52ch;
  margin-inline: auto;
}
.danger-zone {
  border-color: #f2b9b3;
}
.checklist {
  margin-top: 18px;
  gap: 0;
}
.check-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.check-item p {
  margin: 0 0 4px;
}
.check-title {
  font-weight: 600;
}
.checklist .btn {
  justify-self: start;
  margin-top: 16px;
}
.snippet blockquote {
  margin: 0;
  padding: 16px 18px;
  background: var(--paper);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.doc-grid .card {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.doc-grid .card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.doc-grid {
  margin-bottom: 24px;
}

/* ---------- Dokumente (Druck) ---------- */
.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 6vw, 64px);
}
.doc-embedded {
  border: 1px solid var(--line);
  background: #fdfcfa;
  padding: 28px;
  max-height: 560px;
  overflow: auto;
  font-size: 0.95rem;
}
.doc-embedded h2 {
  font-size: 1.1rem;
}
.doc-head {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.doc-head h1 {
  font-size: 2rem;
}
.doc h2 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}
.doc-foot {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.print-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}
.signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 72px;
  font-size: 0.88rem;
  color: var(--muted);
}
.sign-line {
  display: block;
  border-top: 1px solid var(--ink);
  margin-bottom: 6px;
}

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1020px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    transform: none;
    max-width: 520px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  body {
    font-size: 16px;
  }
  .nav-toggle {
    display: inline-block;
  }
  .site-header .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
  }
  .site-header .nav.open {
    display: flex;
  }
  .site-header .nav a:not(.btn) {
    padding: 10px 0;
  }
  .nav-sep {
    display: none;
  }
  .grid-2,
  .grid-3,
  .steps,
  .form-row,
  .service,
  .result-head,
  .dash-top,
  .survey-box {
    grid-template-columns: 1fr;
  }
  .service-aside {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-main {
    min-width: 0;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 14px 16px;
  }
  .sidebar-head {
    padding-bottom: 0;
  }
  .sidebar .nav-toggle {
    background: transparent;
    color: #fff;
    border-color: #5b6475;
  }
  .side-nav {
    display: none;
    min-height: 0;
    padding-top: 14px;
  }
  .side-nav.open {
    display: flex;
  }
  .side-logout {
    margin-top: 12px;
  }
  .activity li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .check-item {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .facts dd {
    margin-bottom: 10px;
  }
  .lesson-row,
  .step {
    grid-template-columns: 32px 1fr;
  }
  .step > a {
    grid-column: 2;
  }
}
@media (max-width: 560px) {
  .feature-grid,
  .footer-grid,
  .stat-grid,
  .stat-grid-4 {
    grid-template-columns: 1fr;
  }
  .btn-lg {
    width: 100%;
  }
  .copy-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }
  .no-print,
  .focus-header,
  .focus-footer,
  .site-header,
  .site-footer,
  .sidebar {
    display: none !important;
  }
  .focus-main,
  .container {
    width: 100%;
    padding: 0;
  }
  .doc {
    border: 0;
    padding: 0;
  }
  .doc h2 {
    break-after: avoid;
  }
  .table tr {
    break-inside: avoid;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}
