/* Startseite von deepen-projekte.de
   Baut auf /downloads/assets/download.css auf (gleiche Farben, Schriften, Knöpfe, Band und Fuß). */

/* ---------- Bühne der Startseite: füllt fast den ganzen Bildschirm ---------- */
.buehne--start {
  min-height: calc(100svh - 120px);
  display: flex;
  align-items: flex-end;
}
.buehne--start .buehne__innen {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}
.buehne--start h1 { font-size: clamp(3.4rem, 11vw, 9.4rem); }
.buehne--start .einleitung { max-width: 30em; }

/* Kennzahlen-Tafel rechts in der Bühne */
.buehne--start.mit-tafel .buehne__innen { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.buehne--start.mit-tafel h1 { font-size: clamp(3.2rem, 7.6vw, 7.4rem); }
.mit-tafel .kennzahl__wert small { font-size: 0.42em; letter-spacing: 0.04em; }
.mit-tafel .merkmale { gap: 8px 16px; font-size: 0.8rem; }
.mit-tafel .merkmale li { gap: 6px; white-space: nowrap; }
.mit-tafel .merkmale svg { width: 16px; height: 16px; }

/* ---------- Werkstatt: so sieht die Arbeit mit Claude Code aus ---------- */
.werkstatt__einleitung {
  max-width: 40em;
  margin: calc(-1 * clamp(12px, 2vw, 24px)) 0 clamp(32px, 5vw, 48px);
  color: var(--text-leise);
}
.werkstatt {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

/* Links: so arbeiten wir – vier Schritte */
.schritte { margin: 0; padding: 0; list-style: none; counter-reset: schritt; }
.schritt {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 22px 0;
  border-top: 1px solid var(--linie);
  counter-increment: schritt;
}
.schritt:last-child { border-bottom: 1px solid var(--linie); }
.schritt::before {
  content: counter(schritt, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 2rem;
  line-height: 1;
  color: var(--glut);
}
.schritt h3 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.55rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.schritt p { margin: 0; color: var(--text-leise); font-size: 0.95rem; }

/* Rechts: Fenster einer Arbeitssitzung */
.sitzung {
  position: relative;
  margin: 0;
  border: 1px solid var(--linie-stark);
  border-radius: 10px;
  background: linear-gradient(180deg, #17120d, #110d09);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.sitzung::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 30%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(242, 116, 31, 0.16), transparent);
  pointer-events: none;
}
.sitzung__kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--linie);
  background: rgba(36, 27, 19, 0.6);
}
.sitzung__punkte { display: flex; gap: 6px; }
.sitzung__punkte i { width: 10px; height: 10px; border-radius: 50%; background: var(--linie-stark); }
.sitzung__punkte i:first-child { background: var(--glut); }
.sitzung__titel {
  flex: 1;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--text-still);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sitzung__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.sitzung__live .status__licht { width: 6px; height: 6px; }

.sitzung__verlauf {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 28px);
}
.nachricht { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; }
.nachricht p {
  margin: 0;
  padding: 11px 15px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.nachricht--ich { align-self: flex-end; }
.nachricht--ich p {
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(180deg, rgba(242, 116, 31, 0.22), rgba(196, 82, 14, 0.18));
  border: 1px solid rgba(255, 160, 77, 0.35);
}
.nachricht--ki p {
  border-radius: 14px 14px 14px 4px;
  background: var(--flaeche-hell);
  border: 1px solid var(--linie);
  color: var(--text);
}
.nachricht__name {
  display: block;
  margin: 0 0 5px 2px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-still);
}
/* Zeichen für Claude Code: Terminal-Eingabe, bewusst kein fremdes Logo */
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 7px;
  border: 1px solid rgba(255, 160, 77, 0.45);
  background: #0b0907;
  color: var(--glut-hell);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Plan-Liste mit Häkchen, wie in der Sitzung */
.plan {
  margin: 0 0 0 38px;
  padding: 14px 16px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: rgba(11, 9, 7, 0.55);
}
.plan__kopf {
  margin: 0 0 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-still);
}
.plan ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.plan li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-still);
}
.plan li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--linie-stark);
  border-radius: 50%;
}
.plan li.erledigt { color: var(--text-leise); text-decoration: line-through; text-decoration-color: rgba(182, 167, 150, 0.4); }
.plan li.erledigt::before {
  border-color: var(--glut);
  background: var(--glut) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='m4 8.3 2.6 2.5L12 5.4' fill='none' stroke='%231a0d03' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat;
}
.plan li.laeuft { color: var(--text); font-weight: 700; }
.plan li.laeuft::before {
  border-color: var(--glut-hell);
  border-right-color: transparent;
  animation: drehen 1s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }

/* Werkzeug-Zeilen: was gerade passiert */
.werkzeug {
  margin: 0 0 0 38px;
  display: grid;
  gap: 4px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.76rem;
  color: var(--text-still);
}
.werkzeug span::before { content: "› "; color: var(--glut); }
.werkzeug .ok::after { content: "  ✓"; color: var(--glut-hell); }

/* blinkender Schreib-Strich */
.cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--glut-hell);
  animation: blinken 1.1s steps(1) infinite;
}
@keyframes blinken { 50% { opacity: 0; } }

.sitzung__eingabe {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px);
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--linie-stark);
  border-radius: 10px;
  background: rgba(11, 9, 7, 0.7);
  font-size: 0.9rem;
  color: var(--text-still);
}
.sitzung__senden {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--glut-hell), var(--glut) 60%, var(--glut-tief));
  color: #1a0d03;
}
.sitzung__senden svg { width: 16px; height: 16px; }

/* ---------- Fuß mit dem kleinen Login-Link ---------- */
.fuss__trenner { color: var(--linie-stark); margin: 0 0.35em; }
.fuss__login { text-decoration: none !important; color: var(--text-still); }
.fuss__login:hover { color: var(--text); }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1000px) {
  .werkstatt { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .buehne--start.mit-tafel .buehne__innen { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .buehne--start { min-height: calc(100svh - 150px); }
  .nachricht { max-width: 96%; }
  .plan, .werkzeug { margin-left: 0; }
}
