:root {
  --ink: #151a1a;
  --muted: #5a6667;
  --line: #dde5e5;
  --bg: #f5f7f7;
  --surface: #ffffff;
  --turq: #00b1ac;
  --turq-600: #0c9088;
  --turq-700: #006d68;
  --turq-900: #004744;
  --tint: #e7f6f5;
  --tint-2: #f1faf9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 40, .06), 0 4px 16px rgba(16, 40, 40, .05);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--turq-700); text-underline-offset: 3px; }
a:hover { color: var(--turq-900); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
p { margin: 0 0 .6em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 920px; margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }

.i { width: 20px; height: 20px; flex: none; }
.i--sm { width: 16px; height: 16px; }
.i--inline { width: 18px; height: 18px; vertical-align: -3px; color: var(--turq-700); }

/* ---------- Header / Hero ---------- */
.hero { background: var(--surface); padding-block: 26px; border-bottom: 1px solid var(--line); }
.hero__inner { display: flex; align-items: center; gap: 28px; }
.hero__text { flex: 1; min-width: 0; }
.hero__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; margin-bottom: 6px; }
.hero__logo { flex: none; display: block; }
.hero__logo img { height: 150px; width: auto; }
.hero--compact { padding-block: 18px; }
.hero--compact h1 { font-size: clamp(22px, 3.4vw, 30px); }
.hero--compact .hero__logo img { height: 104px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--turq-600); }
.event { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--turq-700); }
.event span { color: var(--muted); font-weight: 500; }
.hero h1 { font-size: clamp(28px, 4.6vw, 42px); font-weight: 700; letter-spacing: -.01em; }
.hero__lead { margin: 8px 0 0; font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); }
.hero__meta { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Phase navigation ---------- */
.phases { position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 247, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.phases__inner { display: flex; align-items: center; gap: 8px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.phases__inner::-webkit-scrollbar { display: none; }
.phases__sep { width: 1px; align-self: stretch; margin: 4px 4px; background: var(--line); flex: none; }

.phase {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.phase__code { display: grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--tint); color: var(--turq-700); font-weight: 700; font-size: 13px; }
.phase:hover:not(:disabled) { border-color: var(--turq); }
.phase.is-viewing { border-color: var(--turq-700); box-shadow: inset 0 0 0 1px var(--turq-700); }
.phase.is-live { background: var(--turq-700); border-color: var(--turq-700); color: #fff; }
.phase.is-live .phase__code { background: rgba(255, 255, 255, .18); color: #fff; }
.phase.is-live .phase__label::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: #7ff5ef; vertical-align: 1px; animation: blink 1.6s ease-in-out infinite; }
.phase:disabled { cursor: default; color: #9aa5a5; background: transparent; border-style: dashed; }
.phase:disabled .phase__code { background: #edf1f1; color: #9aa5a5; }
body[data-mode="alles"] .phase.is-live .phase__label::after { display: none; }

@keyframes blink { 50% { opacity: .35; } }

.backbar { background: #fff8e5; border-top: 1px solid #f1e2b5; font-size: 15px; }
.backbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-block: 10px; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--turq-700); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Views ---------- */
.main { padding-block: 32px 56px; }
.js .view { display: none; }
.js .view.is-active { display: block; animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .view.is-active { animation: none; } .phase.is-live .phase__label::after, .pulse { animation: none !important; } }

body[data-mode="alles"] .view { scroll-margin-top: 76px; }
body[data-mode="alles"] .view + .view { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }

/* ---------- Start ---------- */
.welcome { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 32px 32px; border-top: 5px solid var(--turq); }
.welcome h2 { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 12px; }
.welcome p { max-width: 62ch; }
.pulse { position: absolute; top: 28px; right: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 0 rgba(0, 177, 172, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(0, 177, 172, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 177, 172, 0); } }
.prep { margin-top: 20px; padding: 24px 32px; border-radius: var(--radius); background: var(--tint-2); border: 1px solid #cdebe9; }
.prep h3 { font-size: 18px; margin-bottom: 6px; }
.prep p { color: var(--muted); margin-bottom: 14px; }

/* ---------- Overview (Alles) ---------- */
.overview__title { font-size: 24px; margin-bottom: 16px; }
.filelist { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.filelist li + li { border-top: 1px solid var(--line); }
.filelist a { display: flex; align-items: center; gap: 12px; padding: 14px 20px; text-decoration: none; color: var(--ink); font-weight: 500; }
.filelist a:hover { background: var(--tint-2); }
.filelist .i { color: var(--turq-700); }
.filelist span { margin-left: auto; padding-left: 12px; color: var(--muted); font-size: 14px; font-weight: 400; white-space: nowrap; }
.overview__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.js body:not([data-mode="alles"]) .view--overview { display: none; }

/* ---------- Task header ---------- */
.task-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.task-head__code { font-size: clamp(56px, 10vw, 84px); font-weight: 800; line-height: .85; color: var(--turq); letter-spacing: -.03em; }
.task-head__kicker { margin: 0 0 4px; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--turq-600); }
.task-head h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 600; }
.intro { font-size: 19px; margin-bottom: 20px; color: var(--turq-900); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; counter-increment: step; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px 24px 80px; }
.step::before {
  content: counter(step); position: absolute; left: 24px; top: 22px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--turq-700); color: #fff; font-weight: 700; font-size: 17px;
}
.step__title { font-size: 20px; font-weight: 600; color: var(--turq-900); margin: 5px 0 12px; }

.substeps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.substeps__action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hint { font-size: 15px; color: var(--muted); }

.alt { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.alt .i { vertical-align: -2px; }
.docs + .alt { margin: -8px 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--turq-700); color: #fff; }
.btn--primary:hover { background: var(--turq-900); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--turq-700); border-color: #b9dcda; }
.btn--ghost:hover { border-color: var(--turq-700); color: var(--turq-900); }

/* ---------- Documents ---------- */
.docs { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 760px) { .docs:has(> .doc + .doc) { grid-template-columns: 1fr 1fr; } }
.docs .doc { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; gap: 14px; }
.docs .doc__thumb { width: 60px; }
.docs .btn { padding-inline: 14px; }
.doc { display: flex; gap: 18px; align-items: flex-start; }
.doc__thumb { width: 76px; border-radius: 4px; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); flex: none; background: #fff; }
.doc__body { min-width: 0; }
.doc__title { font-weight: 600; margin-bottom: 2px; }
.doc__meta { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.doc__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.doc__actions + .doc__meta { margin: 10px 0 0; }

/* ---------- Prompt ---------- */
.prompt {
  display: flex; align-items: stretch; gap: 0; margin-top: 10px;
  border: 2px solid var(--turq); border-radius: 12px; background: var(--tint); overflow: hidden;
}
.prompt__text { flex: 1; margin: 0; padding: 16px 18px; font-size: 18px; font-style: italic; color: var(--turq-900); user-select: all; -webkit-user-select: all; }
.copy {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: none;
  min-width: 96px; padding: 10px 14px; border: 0; border-left: 2px solid var(--turq);
  background: var(--turq-700); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.copy:hover { background: var(--turq-900); }
.copy.is-copied { background: #1f7a3a; }
.prompt--light { border-width: 1px; background: var(--surface); }
.prompt--light .copy { border-left-width: 1px; }

.followup { margin-top: 20px; padding: 20px 28px; border-radius: var(--radius); border: 1px dashed #9fd3d0; background: var(--tint-2); }
.followup__label { margin: 0; font-size: 14px; font-weight: 600; color: var(--turq-700); letter-spacing: .02em; }

/* ---------- Questions / lists ---------- */
.questions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.questions p { margin: 0; padding: 10px 16px; border-radius: 10px; background: var(--tint); color: var(--turq-900); font-weight: 600; }
.bullets { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.bullets li::marker { color: var(--turq); }
.note { margin-top: 14px; padding: 10px 14px; border-left: 3px solid var(--turq); background: var(--tint-2); font-size: 15px; color: var(--muted); border-radius: 0 8px 8px 0; }

.criteria { margin: 16px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.criteria > div { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 12px; padding: 12px 16px; background: var(--surface); }
.criteria dt { font-weight: 700; color: var(--turq-600); }
.criteria dd { margin: 0; }

.example { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 15px; }
.example__row { display: grid; grid-template-columns: 1fr 1fr; }
.example__row > span { padding: 10px 14px; }
.example__row > span + span { border-left: 1px solid var(--line); }
.example__row + .example__row { border-top: 1px solid var(--line); }
.example__row--head { background: var(--turq-700); color: #fff; font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.split__col { padding: 16px 18px; border-radius: 10px; background: var(--tint); }
.split__col--alt { background: #fff4e8; }
.split__label { margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--turq-700); }
.split__col--alt .split__label { color: #9a4d0c; }

/* ---------- Canvas (T1/T2) ---------- */
.canvas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.canvas__preview { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .08); transition: transform .2s, box-shadow .2s; }
.canvas__preview:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.canvas__body h3 { font-size: 22px; margin: 4px 0 10px; }
.canvas__body > p { color: var(--muted); }
.chips { list-style: none; margin: 16px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; background: var(--bg); }
.chips .chips__hl { background: var(--turq-700); border-color: var(--turq-700); color: #fff; font-weight: 600; }
.license { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

.reflect { margin-top: 24px; padding: 24px 28px; border-radius: var(--radius); background: var(--turq-900); color: #e9f7f6; }
.reflect__kicker { margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7fe0db; }
.reflect__lead { font-size: 19px; color: #fff; margin-bottom: 16px; }
.reflect__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.reflect__grid > div { padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.reflect h4 { font-size: 16px; color: #fff; margin-bottom: 6px; }
.reflect__grid p { font-size: 15px; }

/* ---------- Footer / Toast ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 24px 32px; font-size: 14px; color: var(--muted); }
.site-footer p { margin-bottom: 4px; }
.live-status { margin-top: 10px; font-size: 13px; }
.live-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #9aa5a5; }
.live-status.is-online::before { background: #22a55b; }
.live-status.is-offline::before { background: #d4880f; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 12px;
  background: var(--turq-900); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: rise .3s ease-out;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 20px; }
  .hero__inner { align-items: flex-start; gap: 14px; }
  .hero__top { flex-direction: column; }
  .hero__logo img { height: 118px; }
  .main { padding-block: 22px 40px; }
  .task-head { gap: 12px; margin-bottom: 18px; }
  .step { padding: 20px 18px 20px 18px; }
  .step::before { position: static; margin-bottom: 8px; width: 32px; height: 32px; font-size: 15px; }
  .step__title { margin-top: 0; }
  .welcome, .prep { padding: 24px 20px; }
  .prompt { flex-direction: column; }
  .copy { flex-direction: row; border-left: 0; border-top: 2px solid var(--turq); padding: 12px; }
  .prompt--light .copy { border-top-width: 1px; }
  .criteria > div { grid-template-columns: 1fr; gap: 2px; }
  .example__row { grid-template-columns: 1fr; }
  .example__row > span + span { border-left: 0; border-top: 1px dashed var(--line); }
  .example__row--head { display: none; }
  .split, .reflect__grid { grid-template-columns: 1fr; }
  .canvas { grid-template-columns: 1fr; padding: 18px; }
  .canvas__preview { max-width: 360px; }
  .followup, .reflect { padding: 20px; }
  .filelist a { flex-wrap: wrap; }
  .filelist span { margin-left: 32px; padding-left: 0; width: 100%; }
}

@media print {
  .phases, .backbar, .toast, .live-status, .copy { display: none !important; }
  .js .view { display: block !important; }
  body { background: #fff; }
}
