@font-face { font-family: Manrope; font-weight: 200 800; font-display: swap; src: url("/static/manrope.ttf") format("truetype"); }
:root { font: 100%/1.55 Manrope, system-ui, sans-serif; color: #0e141c; background: #f7f9fc; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
header { padding: 14px max(6vw, 24px); background: #17212e; border-bottom: 1px solid #39414b; }
header a, header img { display: block; width: fit-content; }
main { max-width: 43rem; margin: clamp(2rem, 10vh, 7rem) auto; padding: clamp(1.4rem, 5vw, 3.5rem); border-top: 4px solid #f59744; background: #fff; }
h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.12; letter-spacing: -.039em; overflow-wrap: anywhere; }
h2 { margin-top: 2.4rem; font-size: 1.15rem; }
p { max-width: 48ch; color: #535e6c; margin: 1rem 0; }
form { margin-top: 2rem; }
label { display: block; margin-bottom: .45rem; font-weight: 650; }
input { width: 100%; border: 1px solid #798493; border-radius: .4rem; padding: .78rem .95rem; font: inherit; }
button { margin: 1rem 0 0; padding: .8rem 1.2rem; border-radius: .4rem; border: 0; background: #f59744; color: #0e141c; font: inherit; font-weight: 700; cursor: pointer; }
button span { margin-left: .7rem; }
button:hover { background: #f4a65f; }
.secondary { background: #eff2f6; margin-top: 0; }
a { color: #39414b; text-underline-offset: .2em; }
.back { display: inline-block; margin-bottom: 1rem; }
:focus-visible { outline: 3px solid #79501b; outline-offset: 3px; }
.notice { border-left: 3px solid #ef7a12; padding: .6rem 1rem; background: #fff5eb; color: #39414b; }
.tasks { padding: 0; list-style: none; }
.tasks > li { border-top: 1px solid #dce2eb; padding: .8rem 0; overflow-wrap: anywhere; }
@media (max-width: 45rem) { main { margin-inline: 1rem; } }

/* Kundenansicht */
.customer {
  display: grid;
  grid-template-rows: auto 1fr auto;
  --canvas: #101821;
  --line: #33414d;
  --accent: #ffa95a;
  background: var(--canvas);
  color: #f5f7fa;
}
.customer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem max(5vw, calc((100vw - 64rem) / 2));
  background: #0d141c;
  border-color: var(--line);
}
.customer .back { margin: 0; color: #c8d3df; font-size: .88rem; }
.customer main {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) max(5vw, 1.25rem) 4rem;
  border: 0;
  background: transparent;
}
.project-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1.25rem;
  padding: .65rem max(5vw, calc((100vw - 64rem) / 2));
  border-top: 1px solid var(--line);
  color: #bbcad8;
  font-size: .8125rem;
}
.project-footer a { color: #d9e3eb; }
.project-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 13.5rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  background-color: #192733;
  background-image: radial-gradient(ellipse at top right, #2e4854 0%, transparent 65%);
  border: 1px solid #3c505b;
  border-radius: .85rem;
}
.project-heading h1 {
  position: relative;
  z-index: 1;
  max-width: 75%;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  text-wrap: balance;
}
.orbits {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  width: 19rem;
  height: 8rem;
  right: -2rem;
  top: 1.5rem;
  transform: rotate(-37deg);
  border: 1px solid #ffa95a;
  border-radius: 50%;
  box-shadow: 0 0 0 15px #243945, 0 0 0 16px #587281,
              0 0 0 34px #263d48, 0 0 0 35px #526a76,
              0 0 0 59px #243944, 0 0 0 60px #425a68;
}
.orbits::before {
  content: "";
  position: absolute;
  left: 42%; top: -4px;
  width: 8px; height: 8px;
  background: #ffbc7f; border-radius: 50%;
}
.customer h2 { display: flex; align-items: center; gap: .7rem; margin: 2.2rem 0 1rem; }
.customer p { color: #c1cfdb; }
.customer input { background: #182531; color: #f5f7fa; border-color: #748493; }
.customer form { max-width: 29rem; }
.customer .notice { background: #382a21; color: #ffe0c3; }
.customer :focus-visible { outline-color: var(--accent); }
.status-heading { display: block; }
.overview { position: relative; display: flex; gap: 1.6rem; margin: 1.6rem 0 0; }
.overview div + div { padding-left: 1.6rem; border-left: 1px solid #51616c; }
.overview dt { color: #d9e3eb; font-size: .87rem; }
.overview dd { margin: .15rem 0 0; font-size: 1.8rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.overview div:first-child dd { color: #81ddbb; }
.done { --tone: #81ddbb; }
.active { --tone: var(--accent); }
.open { --tone: #bbcad8; }
.customer .tasks { position: relative; padding: 0; margin: 0; }
.tasks::before {
  content: ""; position: absolute; top: 1.9rem; bottom: 1.9rem; left: 1.6rem;
  width: 1px; background: #526271;
}
.customer .step {
  position: relative; padding: 0; margin: .25rem 0;
  border: 1px solid transparent; border-bottom-color: #283744; border-radius: .55rem;
}
.step-row { display: grid; grid-template-columns: 1.65rem minmax(0,1fr) auto 1rem; align-items: center; gap: .2rem .9rem; padding: .95rem .85rem; }
summary.step-row { cursor: pointer; list-style: none; border-radius: .55rem; }
summary.step-row::-webkit-details-marker { display: none; }
summary.step-row:hover { background: #ffffff09; }
.disclosure { width: .5rem; height: .5rem; border: solid var(--tone); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
details[open] > summary .disclosure { transform: rotate(225deg); }
.description { margin: 0 1.25rem 1.25rem 3.45rem; color: #d6e1ea; max-width: 69ch; overflow-wrap: anywhere; line-height: 1.65; }
.description p { max-width: none; margin: .5rem 0; }
.description ul, .description ol { padding-left: 1.4rem; margin-block: .55rem; }
.customer .step.active { background: #30271f; border-color: #775231; }
.node {
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem;
  border: 1px solid var(--tone); border-radius: 50%; background: var(--canvas);
  color: var(--tone); font: 700 .92rem/1 system-ui, sans-serif;
}
.open .node { font-size: 0; }
.active .node { color: #332011; background: var(--accent); font-size: .72rem; }
.done .node { color: #103326; background: var(--tone); }
.step-title { font-weight: 650; overflow-wrap: anywhere; }
.todo-list::before { display: none; }
.todo-count { color: #bbcad8; font-size: .85rem; font-variant-numeric: tabular-nums; }
.owner-label {
  display: inline-block; margin-inline-start: .25rem; padding: .05rem .45rem;
  border: 1px solid #526271; border-radius: .35rem; color: #d9e3eb; font-size: .76rem;
}
.step.open .step-title { color: #c5d1dc; }
.state-label {
  justify-self: start; font-size: .8rem; font-weight: 750; color: var(--tone);
  padding: .2rem .65rem; border-radius: 2rem; background: #202c38;
}
.done .state-label { background: #18372e; }
.active .state-label { background: #493320; }
@media (max-width: 38rem) {
  .step-row { grid-template-columns: 1.65rem 1fr 1rem; }
  .disclosure { grid-column: 3; grid-row: 1 / 3; }
  .state-label { grid-column: 2; }
  .status-heading h1 { margin-top: 2.2rem; }
}
@media (max-width: 38rem) {
  .project-heading { min-height: 12rem; }
  .project-heading h1 { max-width: 100%; }
  .orbits { width: 12rem; height: 4.6rem; top: -2.8rem; right: -1.4rem; }
}
