/* pfit.digital · Startseite */

.hero { padding: 72px 0 44px; }
@media (max-width: 600px) { .hero { padding: 44px 0 32px; } }

/* Fallstudien-Karte direkt unter dem Hero */
.case-wrap { padding: 8px 0 72px; }
.case {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center;
  border: 1px solid var(--line); border-left: 4px solid var(--acc); border-radius: 16px;
  padding: 32px 36px; background: linear-gradient(135deg, var(--acc-soft) 0%, var(--bg) 60%);
}
.case h2 { font-size: clamp(24px, 3vw, 32px); }
.case p { color: var(--mut); margin-top: 10px; max-width: 620px; }
.case .eyebrow { margin-bottom: 8px; }
.case-facts { display: grid; gap: 14px; }
.case-facts div { display: grid; grid-template-columns: 92px 1fr; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.case-facts div:first-child { border-top: 0; padding-top: 0; }
.case-facts b { font-family: var(--mono); font-size: 30px; line-height: 1; }
.case-facts dd { color: var(--mut); font-size: 14px; }
@media (max-width: 800px) {
  .case { grid-template-columns: 1fr; padding: 24px 20px; gap: 22px; }
}

/* Projekt 01: dunkle Bühne mit echten Screenshots */
.stage { position: relative; margin: 36px 0 0; border-radius: 16px; background: var(--stage); padding: 40px 40px 0; overflow: hidden; }
.stage-grid { display: grid; grid-template-columns: 1fr 230px; gap: 28px; align-items: end; }
.browser { background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.bbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f1f1f1; border-bottom: 1px solid #e3e3e3; }
.bbar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d6d6; }
.bbar .url { flex: 1; background: #fff; border-radius: 6px; font-family: var(--ui); font-size: 11px; color: #666; padding: 4px 10px; margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; }
.phone { width: 230px; aspect-ratio: 230 / 470; background: #111; border-radius: 34px; padding: 9px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); margin-bottom: -60px; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; }
.stage-cap { font-family: var(--mono); font-size: 11px; color: var(--stage-mut); padding: 18px 0 14px; position: relative; }
@media (max-width: 900px) {
  .stage { padding: 20px 20px 0; }
  .stage-grid { grid-template-columns: 1fr; }
  .phone { display: none; }
  .stage-cap { padding: 12px 0; }
}
@media (max-width: 600px) {
  /* Handy: Handy-Screenshot ohne Rahmen statt PC-Ansicht */
  .browser { display: none; }
  .stage-grid { justify-items: center; }
  .phone { display: block; width: 100%; max-width: 300px; aspect-ratio: 780 / 1300; background: none; padding: 0; box-shadow: none; margin: 0; }
  .phone img { border-radius: 14px 14px 0 0; }
}

/* Projekt 02: Agenten-Team */
.team { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 28px; }
.agent { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px 14px; position: relative; transition: border-color .35s, box-shadow .35s, transform .35s; min-height: 196px; display: flex; flex-direction: column; }
.agent .av { width: 44px; height: 44px; border-radius: 12px; background: var(--bg3); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 16px; margin-bottom: 12px; position: relative; transition: background .35s, color .35s; }
.agent .av::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: #C9CED8; }
.agent.work .av::after { background: var(--work); }
.agent h4 { font-size: 14px; letter-spacing: -.01em; }
.agent .cad { font-family: var(--mono); font-size: 10px; color: var(--acc-ink); margin: 2px 0 8px; }
.agent p { font-size: 12px; color: var(--mut); line-height: 1.4; flex: 1; }
.agent .st { margin-top: 10px; font-family: var(--mono); font-size: 10px; padding: 3px 8px; border-radius: 999px; background: var(--bg3); color: var(--mut); align-self: flex-start; }
.agent.work .st { background: var(--work-soft); color: var(--work-ink); }
.agent.running { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft), 0 12px 30px rgba(59, 91, 255, .12); transform: translateY(-3px); }
.agent.running .av { background: var(--acc); color: #fff; }
.agent .run { position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: 9.5px; color: var(--acc-ink); opacity: 0; transition: opacity .3s; }
.agent.running .run { opacity: 1; }
.agent .run::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin-right: 5px; }
.anim-on .agent.running .run::before { animation: blink 1s steps(1) infinite; }
.ticker { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--mut); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; min-height: 22px; }
.ticker-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--acc-ink); }
.ticker-label::before { content: "▶ "; }
#ticker { color: var(--txt); white-space: pre-wrap; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .team { grid-template-columns: 1fr 1fr; gap: 10px; }
  .agent { min-height: 0; padding: 14px 12px 12px; }
  .agent .run { display: none; }
}

/* Projekt 02: Fehler-Agent im Detail */
#fehler-agent { margin-top: 48px; }
.ops-head { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
h3.sec { font-size: 20px; }
.example { color: var(--work-ink); background: var(--work-soft); border-radius: 999px; padding: 3px 10px; }
.ops { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; }
.ph-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--mut); }
.ph-head b { color: var(--txt); }
.ph-body { padding: 14px 16px; }
.tk { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg2); font-size: 12.5px; }
.tk .id { font-family: var(--mono); font-size: 11px; color: var(--mut); }
.tk .q { margin: 8px 0; font-size: 14px; }
.ctx { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-family: var(--mono); font-size: 10.5px; color: var(--mut); border-top: 1px dashed var(--line); padding-top: 8px; }
.ctx dd { color: var(--txt); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; list-style: none; }
.step { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--bg2); font-size: 11.5px; transition: border-color .3s, background .3s, box-shadow .3s; position: relative; }
.step .n { font-family: var(--mono); font-size: 10px; color: var(--mut); display: block; }
.step b { display: block; font-size: 12.5px; margin: 2px 0; }
.step span:last-child { color: var(--mut); font-size: 11px; line-height: 1.35; display: block; }
.step.on { border-color: var(--acc); background: var(--acc-soft); box-shadow: 0 0 0 3px rgba(59, 91, 255, .15); }
.step.done { border-color: var(--acc); }
.step.done::after { content: "✓"; position: absolute; top: 8px; right: 10px; color: var(--acc-ink); font-weight: 700; }
.step.hum { border-style: dashed; }
.log { font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--stage-mut); background: var(--stage); border-radius: 10px; padding: 12px 14px; height: 150px; overflow: hidden; margin-top: 12px; }
.log .ln { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.js .log .ln { animation: fadein .4s both; }
.log .ln.g { color: #3DD6A8; }
.log .ln.y { color: #E8B84A; }
.log .ln.w { color: #fff; }
@keyframes fadein { from { opacity: 0; } }
.prob { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.prob .row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 12.5px; align-items: center; }
.prob .row:first-child { border-top: 0; }
.prob .row.p { background: var(--bg2); }
.prob .row small { display: block; color: var(--mut); font-size: 11px; }
.prob .inc { padding-left: 28px; position: relative; }
.prob .inc::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.st { font-family: var(--mono); font-size: 10px; padding: 3px 8px; border-radius: 999px; background: var(--bg3); color: var(--mut); white-space: nowrap; }
.st.fix { background: var(--acc-soft); color: var(--acc-ink); }
.st.wait { background: var(--work-soft); color: var(--work-ink); }
.st.ok { background: var(--live-soft); color: var(--live-ink); }
.okrow { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.okbtn { display: inline-block; background: var(--acc); color: #fff; font-weight: 700; font-size: 12px; padding: 8px 14px; border-radius: 6px; }
.okbtn.g { background: transparent; border: 1px solid var(--line); color: var(--txt); }
.cost { margin-top: 10px; font-size: 12px; color: var(--mut); }
.ops-cap { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--mut); }
.rails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.rail { border-left: 2px solid var(--acc); padding: 2px 0 2px 12px; font-size: 13px; color: var(--mut); }
.rail h4 { color: var(--txt); font-size: 13px; }
@media (max-width: 900px) {
  .ops { grid-template-columns: 1fr; }
  .rails { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .rails { grid-template-columns: 1fr; }
  .log { font-size: 10px; height: auto; min-height: 150px; }
  .log .ln { white-space: pre-wrap; }
}

/* Projekt 03: ERP-Bühne */
.erp-stage { position: relative; margin: 36px 0 0; border-radius: 20px; background: linear-gradient(135deg, #EEF2FF 0%, #F7F8FA 45%, #E8F7F1 100%); border: 1px solid var(--line); padding: 44px 44px 0; overflow: hidden; min-height: 560px; font-family: var(--ui); }
.erp-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#c7cfe6 1px, transparent 1px); background-size: 22px 22px; opacity: .35; pointer-events: none; }
.app { position: relative; background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 30px 80px rgba(17, 24, 39, .18), 0 0 0 1px rgba(17, 24, 39, .06); width: 70%; overflow: hidden; }
.app .top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12px; flex-wrap: wrap; }
.app .top .brand { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.app .top .brand i { width: 22px; height: 22px; border-radius: 6px; background: var(--acc); display: inline-block; }
.app .top .tabs2 { display: flex; gap: 16px; margin-left: 24px; color: var(--mut); }
.app .top .tabs2 span.on { color: var(--txt); font-weight: 600; border-bottom: 2px solid var(--acc); padding-bottom: 4px; margin-bottom: -6px; }
.app .top .me { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--mut); }
.app .top .me i { width: 22px; height: 22px; border-radius: 50%; background: #FBBF24; display: inline-block; }
.app .body { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 430px; }
.docpane { background: #F3F4F6; padding: 18px; border-right: 1px solid var(--line); position: relative; }
.doc { background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); padding: 18px 20px; font-size: 10px; color: #333; height: 100%; position: relative; overflow: hidden; }
.doc .lh { display: flex; justify-content: space-between; margin-bottom: 10px; }
.doc .lh b { font-size: 13px; }
.doc .lh .lg { width: 54px; height: 16px; background: #1f2937; border-radius: 3px; }
.doc p { margin: 2px 0; color: #555; }
.doc p.gap { margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 9.5px; }
.doc th { text-align: left; font-weight: 600; border-bottom: 1px solid #ddd; padding: 3px 0; }
.doc td { border-bottom: 1px solid #f0f0f0; padding: 4px 0; }
.doc .hl { background: rgba(59, 91, 255, .16); outline: 1.5px solid var(--acc); border-radius: 2px; padding: 0 2px; }
.doc .hl.y { background: rgba(232, 184, 74, .3); outline-color: #E8B84A; }
.scan { display: none; }
.erp-motion .scan { display: block; position: absolute; left: 0; right: 0; height: 60px; background: linear-gradient(180deg, transparent, rgba(59, 91, 255, .22)); border-bottom: 2px solid rgba(59, 91, 255, .8); box-shadow: 0 6px 18px rgba(59, 91, 255, .35); animation: scan 4s ease-in-out infinite; pointer-events: none; }
.erp-paused .scan, .erp-paused .cb i { animation-play-state: paused; }
@keyframes scan { 0% { top: -60px; } 50% { top: 100%; } 100% { top: -60px; } }
.fieldpane { padding: 18px 20px; }
.fieldpane h4 { font-size: 14px; margin-bottom: 2px; }
.fieldpane .sm { font-size: 11px; color: var(--mut); margin-bottom: 14px; }
.f { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; margin-bottom: 8px; display: grid; grid-template-columns: 1fr 76px; gap: 10px; align-items: center; font-size: 12px; background: #fff; }
.f small { display: block; color: var(--mut); font-size: 10px; margin-bottom: 1px; }
.f .v { font-weight: 600; }
.cb { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.cb i { display: block; height: 100%; background: var(--live); border-radius: 3px; width: var(--w); }
.erp-motion .cb i { width: 0; transition: width 1.2s ease-out; }
.erp-motion.erp-filled .cb i { width: var(--w); }
.f .cv { font-family: var(--mono); font-size: 10px; color: var(--live-ink); text-align: right; margin-top: 3px; }
.f.y { border-color: #E8B84A; background: #FFFBEE; }
.f.y .cb i { background: #E8B84A; }
.f.y .cv { color: var(--work-ink); }
.fieldpane .act { display: flex; gap: 8px; margin-top: 14px; align-items: center; flex-wrap: wrap; }
.fieldpane .act span { font-size: 12px; padding: 9px 14px; border-radius: 7px; background: var(--acc); color: #fff; font-weight: 600; }
.fieldpane .act span.g { background: var(--bg3); color: var(--txt); }
.fieldpane .act small { margin-left: auto; font-size: 11px; color: var(--mut); }
.float { position: absolute; background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(17, 24, 39, .18), 0 0 0 1px rgba(17, 24, 39, .06); font-size: 11px; overflow: hidden; }
.float .fh { padding: 9px 12px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 12px; display: flex; justify-content: space-between; }
.float .fh small { font-weight: 400; color: var(--mut); }
.inbox { right: 34px; top: 40px; width: 300px; }
.inbox .r { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; padding: 8px 12px; border-top: 1px solid #f1f1f1; align-items: center; }
.inbox .r:nth-child(2) { border-top: 0; }
.inbox .ic { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 7px; letter-spacing: -.02em; font-weight: 700; color: #fff; background: #6B7280; }
.inbox .ic.m { background: #DC2626; }
.inbox .ic.x { background: #2563EB; }
.inbox .ic.f { background: #6B7280; }
.inbox b { font-weight: 600; display: block; font-size: 11px; }
.inbox small { color: var(--mut); font-size: 10px; }
.report { right: 34px; bottom: 0; width: 300px; border-radius: 12px 12px 0 0; }
.report .big { font-size: 28px; font-weight: 800; letter-spacing: -.03em; padding: 12px 12px 0; line-height: 1; }
.report .big small { display: block; font-size: 10.5px; color: var(--mut); font-weight: 400; letter-spacing: 0; margin-top: 3px; }
.report .bars { padding: 10px 12px 12px; }
.report .b { display: grid; grid-template-columns: 96px 1fr auto; gap: 8px; align-items: center; font-size: 10.5px; padding: 3px 0; }
.report .b i { display: block; height: 7px; border-radius: 4px; background: var(--acc); }
.report .b i.y { background: #E8B84A; }
.report .b i.r { background: #EF4444; }
.report .b b { font-variant-numeric: tabular-nums; font-weight: 600; }
.report .rfoot { border-top: 1px solid var(--line); padding: 8px 12px; font-size: 10.5px; color: var(--mut); }
.report .rfoot b { color: var(--txt); }
.erp-cap { position: relative; font-family: var(--mono); font-size: 11px; color: var(--mut); padding: 16px 0 14px; }
.triggers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.trg { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; display: flex; flex-direction: column; }
.trg h4 { font-size: 14px; letter-spacing: -.01em; }
.trg .d { font-family: var(--mono); font-size: 10.5px; color: var(--acc-ink); margin: 2px 0 6px; }
.trg p { font-size: 12.5px; color: var(--mut); line-height: 1.4; flex: 1; }
.trg a { margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--acc-ink); align-self: flex-start; }
@media (max-width: 1000px) {
  .app { width: 100%; }
  .float { display: none; }
}
@media (max-width: 900px) {
  .erp-stage { padding: 20px 20px 0; min-height: 0; }
  .triggers { grid-template-columns: 1fr 1fr; }
  .app .top .tabs2 { margin-left: 0; }
}
@media (max-width: 700px) {
  .app .body { grid-template-columns: 1fr; min-height: 0; }
  .docpane { display: none; }
}
@media (max-width: 600px) {
  .triggers { grid-template-columns: 1fr; }
  .app .top .me { display: none; }
  .fieldpane { padding: 14px; }
}

/* Über mich */
.me { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; max-width: 760px; margin-top: 16px; }
.ava { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; background: var(--bg3); border: 1px solid var(--line); }
.me p { color: var(--mut); font-size: 16px; }
.me p b { color: var(--txt); }
.me p + p { margin-top: 10px; }
.me p.small { margin-top: 10px; font-size: 14px; }
.me .contact { margin-top: 14px; font-family: var(--mono); font-size: 14px; }
@media (max-width: 600px) {
  .me { grid-template-columns: 1fr; gap: 16px; }  .ava { width: 80px; height: 80px; }
}
