﻿:root {
  color-scheme: light;
  --canvas: #f7f6f1;
  --paper: #fff;
  --ink: #192720;
  --muted: #46564d;
  --line: #d3dbd3;
  --accent: #286047;
  --wash: #e8f2e9;
  --wash-line: #b7ceb9;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; }
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #185cbd; outline-offset: 4px; }
.frame { width: min(100% - 3rem, 68rem); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; font-weight: 750; letter-spacing: -.025em; }
.brand-icon { width: 1.7rem; height: 1.7rem; border-radius: .45rem; position: relative; background: var(--accent); }
.brand-icon::before, .brand-icon::after { content: ""; position: absolute; background: white; border-radius: .125rem; }
.brand-icon::before { width: .8rem; height: .15rem; top: .76rem; left: .45rem; }
.brand-icon::after { width: .15rem; height: .8rem; top: .435rem; left: .775rem; }
.topbar-label { font-size: .9rem; color: var(--muted); text-underline-offset: .2em; }
.intro { padding-block: clamp(2.5rem, 6vw, 4.8rem) 2rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-weight: 750; font-size: clamp(2.5rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.065em; overflow-wrap: anywhere; }
.accent { color: var(--accent); }
.intro p { margin-top: 1.2rem; max-width: 39rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.23rem); }
.overview, .advisor { padding-bottom: 3.5rem; }
.overview .intro { padding-bottom: 2.75rem; }
.profiles { display: grid; gap: 1.2rem; }
.profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile, .result { border: 1px solid var(--line); border-radius: 1.125rem; }
.profile { display: flex; align-items: start; flex-direction: column; min-height: 14rem; padding: clamp(1.35rem, 3vw, 2rem); text-decoration: none; background: var(--wash); border-color: var(--wash-line); transition: border-color .15s, box-shadow .15s; }
.profile:hover { box-shadow: inset 0 0 0 1px var(--accent); border-color: var(--accent); }
.profile h2 { font-size: clamp(1.65rem, 4vw, 2.45rem); letter-spacing: -.045em; overflow-wrap: anywhere; line-height: 1.15; }
.profile p { margin-block: .7rem 1.45rem; max-width: 29ch; color: var(--muted); }
.profile-action { display: flex; gap: .55rem; margin-top: auto; color: var(--accent); font-weight: 700; }
[data-profile="handwerk"] { --accent: #874527; --wash: #f8ece0; --wash-line: #dec3af; }
.advisor h1 { font-size: clamp(2.25rem, 5.9vw, 4.15rem); }
.level-picker label { display: block; padding: 0; margin-bottom: .75rem; font-weight: 700; }
select { width: 100%; padding: .6rem; color: var(--ink); border: 1px solid #818e84; border-radius: .55rem; background: var(--paper); }
.result { padding: clamp(1.2rem, 4vw, 2.25rem); background: var(--paper); }
.result h2 { margin-bottom: .55rem; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.15; letter-spacing: -.045em; }
.result h3 { margin: 1.25rem 0 .4rem; font-size: 1rem; }
.result p { max-width: 65ch; }
blockquote { margin: 0 0 .8rem; background: var(--wash); border-left: .2rem solid var(--accent); padding: .85rem 1rem; border-radius: 0 .55rem .55rem 0; }
button { min-height: 2.65rem; background: var(--accent); border: 1px solid var(--accent); color: white; font-weight: 650; border-radius: .5rem; padding: .45rem .8rem; }
button:hover { filter: brightness(.9); }
.instructions { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: .9rem; }
.instructions summary { cursor: pointer; color: var(--accent); font-weight: 650; }
.instructions p { margin: .55rem 0 .7rem; }
.secondary { background: white; color: var(--accent); }
.copy-status:not(:empty) { margin-top: .65rem; color: var(--muted); }
.copy-fallback { width: 100%; min-height: 7rem; margin-top: .5rem; font: inherit; }
.notice { margin-block: 1rem; }
@media (max-width: 540px) {
  .frame { width: min(100% - 1.75rem, 68rem); }
  .profiles { grid-template-columns: minmax(0, 1fr); }
  .profile { min-height: auto; }
  .topbar-label { font-size: .8rem; }
}

.section-bar { display: flex; justify-content: space-between; align-items: end; gap: 1.15rem; margin-bottom: 1rem; }
.section-bar h2, .question h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); letter-spacing: -.045em; line-height: 1.14; }
.section-bar .level-picker { min-width: 13.5rem; margin-top: 0; }
.section-bar .level-picker label { font-size: .88rem; margin-bottom: .35rem; }
.opportunities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.opportunity { display: flex; flex-direction: column; align-items: start; gap: .55rem; background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem 1.3rem; }
.opportunity:has(button[aria-expanded="true"]) { border-color: var(--accent); background: var(--wash); }
.opportunity h3 { font-size: 1.18rem; line-height: 1.24; letter-spacing: -.02em; }
.opportunity p { max-width: 58ch; }
.opportunity .benefit { color: var(--muted); font-size: .94rem; }
.opportunity button { margin-top: auto; }
.opportunity button, .detail-heading button, .matches button { min-height: 2.4rem; }
.result, .question { margin-top: 1.15rem; }
.detail-heading { display: flex; align-items: start; justify-content: space-between; gap: .75rem; }
.detail-heading h2 { overflow-wrap: anywhere; }
#result-title:focus { outline-offset: .33rem; }
.question { max-width: 48rem; background: var(--wash); border: 1px solid var(--wash-line); border-radius: 1rem; padding: clamp(1.2rem, 4vw, 2rem); }
.question h2 { margin-bottom: .85rem; }
.question label { display: block; margin-bottom: .4rem; font-weight: 650; }
.question textarea { display: block; width: 100%; padding: .65rem .75rem; border: 1px solid #818e84; border-radius: .55rem; color: var(--ink); background: var(--paper); font: inherit; resize: vertical; }
#question-hint { margin: .45rem 0 .75rem; color: var(--muted); font-size: .9rem; }
button:disabled, select:disabled { opacity: .7; cursor: wait; }
.matches { display: flex; gap: .5rem; flex-wrap: wrap; }
.matches:empty { display: none; }
.matches:not(:empty), .live-answer { margin-top: .75rem; }
.live-answer { border-left: .2rem solid var(--accent); background: var(--paper); padding: 1rem; border-radius: 0 .55rem .55rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .section-bar { align-items: start; flex-direction: column; }
  .opportunities { grid-template-columns: minmax(0, 1fr); }
}

