:root {
  --ink: #102128;
  --ink-soft: #43555c;
  --paper: #f1eee6;
  --navy: #102d38;
  --navy-deep: #09232c;
  --line: rgba(16, 33, 40, 0.17);
  --teal: #1d766e;
  --teal-pale: #d9ebe5;
  --amber: #e7a63a;
  --amber-pale: #f7e7c5;
  --grey: #c9c5ba;
  --white: #fffef9;
  --shadow: 0 18px 55px rgba(9, 35, 44, 0.1);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Aptos, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { color: var(--ink); background: var(--paper); }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--sans);
  line-height: 1.55;
  background:
    linear-gradient(rgba(16, 45, 56, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 28px;
}

a { color: var(--teal); }

a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: 0.35rem;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--white);
  background: var(--navy-deep);
}
.masthead a { color: var(--amber-pale); text-decoration: none; }
.masthead a:hover { text-decoration: underline; }
.masthead__brand { display: flex; gap: 0.7rem; align-items: center; }
.masthead__brand small { display: block; opacity: 0.75; }
.masthead__meta { margin: 0; font-size: 0.9rem; opacity: 0.85; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--amber);
  border-radius: 50%;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) 2rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; }
h1 { margin: 0 0 0.8rem; font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }

.hero { margin-bottom: 2rem; }
.lead { max-width: 46rem; margin: 0; font-size: 1.12rem; color: var(--ink-soft); }

.panel {
  margin-bottom: 1.75rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}
.panel__head { margin-bottom: 1.2rem; }

/* Überblick: neun Segmente */
.summary { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0.35rem; }
.summary__seg { height: 0.9rem; background: var(--grey); border-radius: 999px; }
.summary__seg--done { background: var(--teal); }
.summary__seg--active {
  background: repeating-linear-gradient(-45deg, var(--amber), var(--amber) 6px, #f0c070 6px, #f0c070 12px);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0.7rem 0 1.4rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.4rem;
  vertical-align: -0.05rem;
  background: var(--grey);
  border-radius: 50%;
}
.dot--done { background: var(--teal); }
.dot--active { background: var(--amber); }

/* Schritte */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--grey);
  border-radius: 0.6rem;
}
.step p { margin: 0 0 0.5rem; font-size: 0.93rem; color: var(--ink-soft); }
.step--done { border-left-color: var(--teal); background: rgba(217, 235, 229, 0.45); }
.step--active { border-left-color: var(--amber); background: rgba(247, 231, 197, 0.5); }
.step__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--grey);
  border-radius: 50%;
}
.step--done .step__num { color: var(--white); background: var(--teal); }
.step--active .step__num { background: var(--amber); }

.tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #ebe7dc;
  border-radius: 999px;
}
.tag--done { color: #0f4d47; background: var(--teal-pale); }
.tag--active { color: #6b4a0e; background: var(--amber-pale); }

/* Restaufwand */
.range { max-width: 34rem; margin-bottom: 1rem; }
.range__bar {
  position: relative;
  display: block;
  height: 1.1rem;
  background: #ebe7dc;
  border-radius: 999px;
}
.range__fill {
  position: absolute;
  inset: 0 0 0 56%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  border-radius: 999px;
}
.range__fill::before {
  content: "";
  position: absolute;
  inset: 0 100% 0 -127%;
  background: var(--teal);
  border-radius: 999px 0 0 999px;
}
.range__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
  padding-left: 56%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.facts { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.facts li { margin-bottom: 0.3rem; }

/* Aktuelle Arbeit */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 1rem;
}
.card { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 0.7rem; }
.card p { margin: 0 0 0.9rem; font-size: 0.95rem; color: var(--ink-soft); }

.pipe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pipe__s {
  padding: 0.35rem 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink-soft);
  background: #ebe7dc;
  border-radius: 0.35rem;
}
.pipe__s--done { color: var(--white); background: var(--teal); }
.pipe__s--done::before { content: "✓ " / ""; }
.pipe__s--active { color: #6b4a0e; background: var(--amber-pale); outline: 2px solid var(--amber); }
.pipe__s--active::before { content: "● " / ""; }

.note {
  margin: 1.2rem 0 0;
  padding: 0.8rem 1rem;
  background: var(--amber-pale);
  border-left: 4px solid var(--amber);
  border-radius: 0.4rem;
}

/* Tabelle */
.who { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.who th, .who td { padding: 0.6rem 0.5rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.who th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }

@media (max-width: 560px) {
  .who thead { display: none; }
  .who tr { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .who td { display: block; padding: 0.1rem 0; border: 0; }
  .who td:first-child { font-weight: 600; }
  .who td:nth-child(2)::before { content: "Wer: "; color: var(--ink-soft); }
  .who td:nth-child(3)::before { content: "Wann: "; color: var(--ink-soft); }
  .pipe__s { font-size: 0.7rem; }
}

.footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 2.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Gruppen der Restliste */
.group { margin: 1.4rem 0 0.4rem; font-size: 1.05rem; }
.group:first-of-type { margin-top: 0.4rem; }
