:root {
  --card: #ffffff;
  --ink: #1c2633;
  --muted: #667085;
  --line: #d9d2c4;
  --navy: #101c2f;
  --gold: #b88a2d;
  --gold-soft: #f0dfb8;
  --red: #b42318;
  --red-bg: #fff1f0;
  --yellow: #b7791f;
  --yellow-bg: #fff8e1;
  --green: #027a48;
  --green-bg: #ecfdf3;
  --shadow: 0 12px 30px rgba(16, 28, 47, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #f7f4ed 0%, #efe7d7 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

body,
input,
textarea,
select,
button {
  overflow-wrap: anywhere;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #d8dfda;
  background: rgba(247, 248, 245, .95);
  backdrop-filter: blur(12px);
  font-family: Arial, Helvetica, sans-serif;
}

.nav-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.brand {
  color: #214d3f;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #18211f;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: #d8dfda;
  background: #ffffff;
  outline: none;
}

.nav-links .nav-cta {
  border-color: #2f6b57;
  color: #214d3f;
  background: #dfeae4;
}

.menu-toggle {
  display: none;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 42px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: min(480px, 80vw);
  height: min(480px, 80vw);
  border-radius: 50%;
  right: -190px;
  top: -220px;
  background: radial-gradient(circle,
      rgba(184, 138, 45, 0.42),
      rgba(184, 138, 45, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-size: 13px;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 700;
}

.subtitle {
  font-size: clamp(17px, 2.2vw, 23px);
  max-width: 850px;
  color: #e9edf3;
  margin: 0 0 22px;
}

.hero-principle {
  max-width: 860px;
  font-size: 18px;
  color: #f7f1e4;
  margin: 0 0 20px;
  border-left: 4px solid var(--gold);
  padding-left: 16px;
}

.privacy-note {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 16px 18px;
  max-width: 920px;
  color: #eef2f6;
  font-size: 15px;
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
  max-width: 980px;
}

.intro-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 16px;
  color: #eef2f6;
}

.intro-card strong {
  display: block;
  color: var(--gold-soft);
  margin-bottom: 6px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.grid>*,
.form-row>*,
.report-grid>*,
.intro-cards>*,
.decision-title-wrap {
  min-width: 0;
}

.panel,
.decision-card,
.report {
  background: var(--card);
  border: 1px solid rgba(16, 28, 47, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.panel h2,
.report h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.diagnosis-note {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #faf7f0;
  border: 1px solid #eadfce;
  color: #39475b;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
  color: #26364a;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  background: #fffdf8;
  color: var(--ink);
}

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

.decision-list {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.decision-card {
  padding: 22px;
}

.decision-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.decision-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f6ead0;
  color: #6f4d10;
  font-weight: 800;
  border: 1px solid #e0c27f;
}

.decision-title-wrap {
  flex: 1;
}

.decision-title {
  font-size: 23px;
  margin: 0 0 5px;
  line-height: 1.2;
}

.decision-kern {
  margin: 0;
  color: var(--muted);
}

.why-matters {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  color: #344054;
  font-size: 15px;
}

.questions {
  padding: 14px 16px;
  background: #faf7f0;
  border: 1px solid #eadfce;
  border-radius: 14px;
  margin: 16px 0;
}

.questions ul,
.deep-content ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.questions li,
.deep-content li {
  margin: 6px 0;
}

.rating-row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.rating-option input {
  display: none;
}

.rating-box {
  display: grid;
  grid-template-columns: minmax(34px, 42px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffdf8;
  cursor: pointer;
  transition: 0.15s ease;
}

.rating-option input:checked+.rating-box {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: translateY(-1px);
}

.rating-option input:checked+.rating-box .rating-number {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.rating-option input:checked+.rating-box .rating-text {
  color: #fff;
}

.rating-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f4ecd9;
  color: #65460f;
  font-weight: 800;
  border: 1px solid #e3ca92;
}

.rating-text {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.scale-help {
  font-size: 14px;
  color: var(--muted);
  margin-top: -6px;
  margin-bottom: 12px;
}

.deep-toggle,
.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}

.deep-toggle {
  background: #f4ecd9;
  color: #65460f;
  border: 1px solid #e3ca92;
  margin-bottom: 14px;
}

.deep-content {
  display: none;
  background: #fffdf8;
  border: 1px dashed #cfb880;
  border-radius: 14px;
  padding: 16px;
  margin: 4px 0 16px;
}

.deep-content.open {
  display: block;
}

.insight-box {
  margin-top: 14px;
  border-left: 4px solid var(--gold);
  background: #fbf4e4;
  padding: 12px 14px;
  border-radius: 10px;
  color: #493514;
}

.sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
}

.score-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.score-number {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin: 12px 0;
  color: var(--gold-soft);
}

.score-subline {
  color: #dce4ef;
  font-size: 15px;
}

.progress-wrap {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  margin-top: 14px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.legend-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
}

.actions {
  display: grid;
  gap: 10px;
}

.primary-btn {
  background: var(--gold);
  color: #fff;
}

.secondary-btn {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.report {
  padding: 26px;
  margin-top: 24px;
}

.report-intro {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 20px;
  margin: 16px 0 18px;
}

.report-intro strong {
  color: var(--gold-soft);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.metric {
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fffdf8;
}

.metric strong {
  display: block;
  font-size: 28px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  margin-left: 8px;
  vertical-align: middle;
}

.status-red {
  color: var(--red);
  background: var(--red-bg);
}

.status-yellow {
  color: var(--yellow);
  background: var(--yellow-bg);
}

.status-green {
  color: var(--green);
  background: var(--green-bg);
}

.status-empty {
  color: #475467;
  background: #f2f4f7;
}

.report-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-item,
.priority-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  background: #fffdf8;
}

.priority-item {
  border-left: 5px solid var(--gold);
}

.small {
  color: var(--muted);
  font-size: 14px;
}

.disclaimer {
  margin-top: 18px;
  padding: 14px;
  background: #f5f5f5;
  border-radius: 12px;
  color: #555;
  font-size: 14px;
}

.error-box {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid #fecdca;
  border-radius: 14px;
  padding: 16px;
  font-weight: 700;
}

footer {
  border-top: 1px solid #d8dfda;
  padding: 24px 0;
  color: #596964;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

footer p {
  margin: 0 auto;
  max-width: 880px;
}

footer a {
  color: #214d3f;
  font-weight: 800;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
  outline: none;
}

@media (max-width: 920px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .form-row,
  .report-grid,
  .intro-cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    text-align: center;
  }

  .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 24px, 1120px);
  }

  .nav-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-links a {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav {
    position: static;
    top: auto;
  }

  .nav-inner {
    min-height: 58px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
  }

  .brand {
    font-size: 18px;
    line-height: 1.2;
    text-align: left;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #d8dfda;
    border-radius: 8px;
    background: #ffffff;
    color: #214d3f;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
  }

  .menu-toggle:focus-visible {
    outline: 3px solid rgba(47, 107, 87, .25);
    outline-offset: 2px;
  }

  .menu-toggle .icon-close,
  .menu-toggle[aria-expanded="true"] .icon-menu {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .icon-close {
    display: inline;
  }

  .nav-links {
    width: 100%;
    flex-basis: 100%;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 4px 0 6px;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    width: 100%;
    min-height: 38px;
    justify-content: flex-start;
    padding: 7px 10px;
    font-size: 14px;
  }

  .nav-links .nav-cta {
    justify-content: center;
  }

  .app-shell {
    width: min(100%, calc(100% - 20px));
    padding: 12px 0 36px;
  }

  .hero,
  .panel,
  .decision-card,
  .report,
  .score-card,
  .profile-box {
    width: 100%;
    border-radius: 14px;
  }

  .hero {
    padding: 22px 18px;
  }

  h1 {
    font-size: clamp(28px, 10vw, 42px);
    line-height: 1.1;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .subtitle,
  .hero-principle {
    font-size: 16px;
  }

  .hero-principle {
    padding-left: 12px;
  }

  .panel,
  .decision-card,
  .report,
  .score-card,
  .profile-box {
    padding: 18px;
  }

  .decision-top {
    flex-wrap: wrap;
  }

  .decision-title {
    font-size: 20px;
  }

  .rating-row {
    flex-wrap: wrap;
  }

  .rating-box {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rating-number {
    width: 32px;
    height: 32px;
  }

  .legend-item,
  .status-pill {
    flex-wrap: wrap;
  }

  .status-pill {
    margin: 6px 0 0;
  }

  .deep-toggle,
  .primary-btn,
  .secondary-btn,
  .start-button {
    width: 100%;
  }

  .start-container {
    min-height: 100dvh;
    padding: 28px 18px;
  }

  .start-container h1 {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }
}

@media print {
  body {
    background: #fff;
  }

  .hero,
  .panel,
  .decision-list,
  .sidebar,
  .actions,
  .deep-toggle,
  .nav,
  footer {
    display: none !important;
  }

  .app-shell {
    width: 100%;
    padding: 0;
  }

  .report {
    display: block !important;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .report-section,
  .summary-item,
  .priority-item {
    page-break-inside: avoid;
  }

  .report-intro {
    background: #fff;
    color: #111;
    border: 1px solid #ccc;
  }
}

/* Version 4: Echtzeit-Spiegelung */
.mirror-box {
  display: none;
  margin: 14px 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border-left: 5px solid var(--gold);
  background: #fff8e8;
  color: #3d2f18;
}

.mirror-box.active {
  display: block;
}

.mirror-label {
  display: block;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7a5b1b;
  font-weight: 800;
  margin-bottom: 6px;
}

.mirror-text {
  font-size: 16px;
  font-weight: 700;
}

.profile-box {
  background: var(--card);
  border: 1px solid rgba(16, 28, 47, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.profile-box h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.profile-name {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: #f6ead0;
  color: #65460f;
  font-weight: 800;
  margin-bottom: 10px;
}

.profile-text {
  color: #344054;
  margin: 0;
}

/* Version 4: Live-Spiegelung */

.mirror-box {
  display: none;
  margin: 14px 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border-left: 5px solid var(--gold);
  background: #fff8e8;
  color: #3d2f18;
}

.mirror-box.active {
  display: block;
}

.mirror-label {
  display: block;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7a5b1b;
  font-weight: 800;
  margin-bottom: 6px;
}

.mirror-text {
  font-size: 16px;
  font-weight: 700;
}

.profile-box {
  background: var(--card);
  border: 1px solid rgba(16, 28, 47, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.profile-box h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.profile-name {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: #f6ead0;
  color: #65460f;
  font-weight: 800;
  margin-bottom: 10px;
}

.profile-text {
  color: #344054;
  margin: 0;
}

.start-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  background: #111827;
  color: #f5f5f5;
}

.start-icon {
  width: 180px;
  max-width: 70%;
  margin-bottom: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.start-container h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.start-container p {
  max-width: 700px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 35px;
}

.start-button {
  display: inline-block;
  padding: 16px 34px;
  background: linear-gradient(135deg, #d4a017, #f2c94c);
  color: #111827;
  text-decoration: none;
  font-weight: bold;
  border-radius: 12px;
  transition: 0.25s ease;
}

.start-button:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}
