/* ==========================================================================
   Feierabend-Kit · Live-Demo (demo.css)
   Ton-Check, Generator mit Anonymisierungs-Wächter, Video-Kostproben und
   Kit-Überblick auf demo.html (öffentlich). Baut auf base.css auf,
   Papier-Look: Karten statt Glas, keine Gradients.
   ========================================================================== */

/* Tokens, die base.css (bewusst schlank) nicht mitbringt */
:root {
  --ok-soft: #E7F1EA;
  --bad: #B3372B;
  --bad-soft: #F7E7E3;
}

/* ---------- Kleine Bausteine (Pendants zu den Schwester-Kits) ---------- */
.btn-mini {
  min-height: 36px;
  padding: .35em .95em;
  font-size: .86rem;
  border-radius: 999px;
  background: var(--petrol-soft);
  color: var(--petrol-dark);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}
.btn-mini:hover { background: #d3e3e5; }
.pill-ok {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .3em .8em;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--ok-soft);
  color: var(--ok);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, .94);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.topbar .brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--petrol);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.topbar-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }

/* ---------- Seitengerüst ---------- */
.wz-wrap { max-width: 1100px; margin: 0 auto; padding: clamp(30px, 5vw, 56px) var(--pad-x) 90px; }
.wz-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 40px); }
.wz-head h1 { margin-bottom: .3em; }
.wz-section { margin-top: clamp(40px, 7vw, 72px); }
.wz-section > h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.wz-section > .sub { color: var(--ink-soft); max-width: 62ch; }

/* ---------- Ton-Check (Vorher/Nachher-Karten) ---------- */
.ton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.ton-card { overflow: hidden; cursor: pointer; transition: box-shadow .2s ease, transform .2s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ton-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.ton-kopf { padding: 14px 18px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ton-thema {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--petrol);
}
.ton-situation { font-size: .84rem; color: var(--ink-mute); }
.ton-bad, .ton-good { padding: 14px 18px 16px; }
.ton-bad { border-left: 4px solid var(--bad); margin-top: 10px; }
.ton-good { border-left: 4px solid var(--ok); background: var(--ok-soft); display: none; }
.ton-card.open .ton-good { display: block; }
.ton-card.open .ton-toggle { display: none; }
.ton-card .lbl { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; }
.ton-bad .lbl { color: var(--bad); }
.ton-good .lbl { color: var(--ok); }
.ton-card p { margin: 0; font-size: .95rem; }
.ton-toggle { display: inline-block; margin-top: 10px; font-size: .85rem; font-weight: 600; color: var(--petrol); }
.ton-good .why { display: block; margin-top: 8px; font-size: .84rem; color: var(--ink-soft); }

/* ---------- Generator (Demo) ---------- */
.gen-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 16px; }
.gen-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.gen-tab:hover { border-color: var(--petrol); }
.gen-tab.active { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.gen-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.gen-col { display: grid; gap: 18px; }
.gen-form, .gen-anon, .gen-output { padding: 20px; }
.gf-row { margin-bottom: 14px; }
.gf-row textarea { min-height: 110px; resize: vertical; }
.gf-ex { margin-top: 8px; }
.gen-run { width: 100%; margin-top: 6px; }
.ga-empty { text-align: center; color: var(--ink-soft); padding: 30px 14px; }
.ga-ic { font-size: 2rem; margin-bottom: 8px; }
.ga-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ga-head h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin: 0; }
.ga-note { border-radius: var(--radius); padding: 10px 13px; font-size: .9rem; margin-bottom: 12px; }
.ga-note.found { background: var(--orange-soft); color: var(--orange-dark); }
.ga-note.ok { background: var(--ok-soft); color: var(--ok); }
.ga-risk { border-radius: var(--radius); padding: 10px 13px; font-size: .9rem; margin-bottom: 12px; background: var(--bad-soft); color: var(--bad); }
.ga-prompt {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  font-size: .9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-body);
  margin: 0 0 14px;
}
.ga-prompt mark.ph { background: var(--petrol-soft); color: var(--petrol-dark); font-weight: 600; border-radius: 4px; padding: 0 3px; }
.out-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.out-flag { font-family: var(--font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--petrol); }
.out-text {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  font-size: .97rem;
  line-height: 1.6;
}
.out-note { margin: 12px 0 0; font-size: .84rem; color: var(--ink-mute); }

.disclaimer { margin-top: 26px; font-size: .85rem; color: var(--ink-mute); max-width: 72ch; }

/* ---------- Video-Kostproben ---------- */
.demo-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.demo-videos figure { margin: 0; }
.demo-videos video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--ink);
}
.demo-videos figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); }
.demo-videos figcaption strong { color: var(--petrol); }

/* ---------- Kit-Überblick (Kennzahlen) ---------- */
.kit-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.kit-stat { padding: 20px 18px; text-align: center; }
.kit-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--petrol);
}
.kit-stat .lbl { display: block; margin-top: 4px; font-size: .88rem; color: var(--ink-soft); }

/* ---------- Demo-spezifisch: CTA-Sektion ---------- */
.demo-cta {
  margin-top: clamp(48px, 8vw, 80px);
  text-align: center;
  padding: clamp(30px, 5vw, 50px);
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.demo-cta h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: #fff; }
.demo-cta .accent { color: var(--orange); }
.demo-cta p { color: rgba(255, 255, 255, .85); max-width: 54ch; margin: 14px auto 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gen-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topbar { gap: 8px; }
  .topbar .btn-ghost { display: none; } /* "Zur Website" entfällt, die Brand verlinkt ohnehin zur Startseite */
  .topbar .brand { flex: 1 1 auto; min-width: 0; font-size: .95rem; }
  .topbar .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
