/* ════════════════════════════════════════════════════════
   TempConnect — Produktseite
   Ergänzt styles.css (Design-System wird wiederverwendet).
   3D-Motion: Basiszustand IMMER sichtbar; Ausgangs-Transforms
   werden erst mit html.js-motion aktiv (kein FOUC, SEO-sicher).
   ════════════════════════════════════════════════════════ */

/* ─── Hero ─── */
.tc-hero { overflow: visible; }
.tc-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
}
/* H1 auf dieser Seite etwas kompakter, damit «Temporärpersonal.»
   nicht in die Showpiece-Spalte läuft */
.tc-hero h1 { font-size: clamp(38px, 3.9vw, 54px); }
@media (max-width: 980px) {
  .tc-hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.tc-hero-copy .eyebrow { letter-spacing: 0.14em; }

.tc-hero-note {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-soft); /* AA-Kontrast (ink-muted wäre nur ~3.3:1 bei 12px) */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.tc-hero-note .tc-sep { color: var(--red); font-weight: 700; }

/* ─── 3D-Showpiece ───
   Perspektive auf dem Container, Ebenen auf translateZ-Tiefen.
   Maus-Tilt (max ±7°) setzt tempconnect.js auf .tc-scene. */
.tc-hero-visual {
  perspective: 1300px;
  min-height: 480px;
  position: relative;
}
.tc-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.tc-layer {
  position: absolute;
  transform-style: preserve-3d;
  transform: translateZ(var(--z, 0px));
}

.tc-glow {
  position: absolute;
  inset: 12% 6%;
  background: radial-gradient(circle, var(--blue-tint), transparent 66%);
  filter: blur(12px);
  transform: translateZ(-60px);
}

/* Ebene 1 — App-Fenster */
.tc-app {
  top: 9%;
  left: 0;
  width: min(420px, 88%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  animation: tcFloatA 9s var(--ease-io) infinite;
}
html[data-theme="dark"] .tc-app { background: var(--bg-soft); }
.tc-app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.tc-win-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.tc-app-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  white-space: nowrap;
}
.tc-app-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

.tc-vacancy {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg-soft);
  padding: 14px 16px;
}
.tc-vacancy-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tc-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: 99px;
  padding: 3px 9px;
  white-space: nowrap;
}
.tc-vacancy-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); white-space: nowrap; }
.tc-vacancy-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.tc-vacancy-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 500;
}
.tc-avatars { display: inline-flex; }
.tc-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--bg-soft);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  color: #fff;
  background: var(--blue-mid);
}
.tc-avatar + .tc-avatar { margin-left: -7px; }
.tc-avatar.a2 { background: var(--blue); }
.tc-avatar.a3 { background: var(--blue-deep); }

.tc-app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.tc-row-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-mid); flex-shrink: 0; }
.tc-row-txt { font-size: 12.5px; color: var(--ink-soft); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-row-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-muted); white-space: nowrap; }

/* Ebene 2 — schwebendes Kurzprofil
   (bottom: 0 statt 8%: Karte hängt unter der rechten Fensterecke
   und schneidet die Kurzprofil-Zeilen nicht mehr an) */
.tc-profile {
  right: 0;
  bottom: 0;
  width: min(348px, 80%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-float);
  padding: 16px 18px;
  animation: tcFloatB 7s var(--ease-io) infinite;
  animation-delay: 0.8s;
}
html[data-theme="dark"] .tc-profile { background: var(--bg-soft); }
.tc-profile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tc-avatar-lg {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.tc-profile-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tc-profile-name b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tc-profile-name span { font-size: 11.5px; color: var(--ink-muted); }
.tc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tc-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  padding: 4px 7px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-soft);
  white-space: nowrap;
}
.tc-chip.ok { color: #1B7A50; background: rgba(34, 160, 107, 0.10); border-color: rgba(34, 160, 107, 0.28); }
.tc-chip.star { color: var(--blue); background: var(--blue-tint); border-color: transparent; }
html[data-theme="dark"] .tc-chip.ok { color: #6FD3A4; }

/* Ebene 3 — Notification-Pille */
.tc-notif {
  top: 0;
  right: 4%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  animation: tcFloatC 6s var(--ease-io) infinite;
  animation-delay: 1.6s;
}
html[data-theme="dark"] .tc-notif { background: var(--bg-soft); }
.tc-notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22A06B;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.18);
  animation: pulse 2.2s var(--ease-io) infinite;
}

/* Schwebe-Keyframes (translateZ bleibt Teil der Transform-Kette) */
@keyframes tcFloatA {
  0%, 100% { transform: translateZ(var(--z, 0px)) translateY(0); }
  50%      { transform: translateZ(var(--z, 0px)) translateY(-8px); }
}
@keyframes tcFloatB {
  0%, 100% { transform: translateZ(var(--z, 0px)) translateY(0) rotate(0.0deg); }
  50%      { transform: translateZ(var(--z, 0px)) translateY(-12px) rotate(-0.6deg); }
}
@keyframes tcFloatC {
  0%, 100% { transform: translateZ(var(--z, 0px)) translateY(0); }
  50%      { transform: translateZ(var(--z, 0px)) translateY(-9px); }
}

@media (max-width: 980px) {
  .tc-hero-visual { min-height: 440px; max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 719px) {
  .tc-hero-visual { min-height: 490px; }
  .tc-app { width: min(360px, 94%); }
  /* Karte unterhalb des App-Fensters statt darüber (verdeckt sonst die Kurzprofil-Zeilen) */
  .tc-profile { width: min(290px, 84%); bottom: 0; }
  .tc-notif { right: 14px; }
}

/* ─── Ablauf: Scrollytelling-Karten (semantisch: <ol>) ─── */
.tc-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.6vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.tc-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 2.6vw, 28px);
  align-items: start;
  width: min(780px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3.4vw, 40px);
}
html[data-theme="dark"] .tc-step { background: var(--bg-soft); }
.tc-step:nth-child(even) { margin-left: auto; }
.tc-step-num {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 10px 22px -10px rgba(216, 35, 42, 0.55);
}
.tc-step-body h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  text-wrap: balance;
}
.tc-step-body p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; max-width: 58ch; }

/* ─── Neutralitäts-Block (dunkel) ─── */
.tc-neutral {
  background: var(--blue-deep);
  color: #fff;
  overflow: hidden;
}
.tc-neutral::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(46, 117, 182, 0.35), transparent 65%);
  pointer-events: none;
}
.tc-neutral::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -12%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(216, 35, 42, 0.14), transparent 65%);
  pointer-events: none;
}
.tc-neutral .shell { position: relative; z-index: 1; }
.tc-neutral-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.tc-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FF8A8E;
}
.tc-neutral-head h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 54px); /* nicht grösser als das H1 (Typo-Hierarchie) */
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
  text-wrap: balance;
  color: #fff;
}
.tc-neutral-head p {
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 58ch;
  text-wrap: pretty;
}
.tc-neutral-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .tc-neutral-grid { grid-template-columns: 1fr; } }
.tc-neutral-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-l);
  padding: 28px 28px 30px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.3s, background 0.3s;
  will-change: transform;
}
.tc-neutral-card:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.085); }
.tc-neutral-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: #fff;
  margin-bottom: 10px;
  text-wrap: balance;
}
.tc-neutral-card p { font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.78); }

/* Sekundär-CTA am Ende des dunklen Blocks */
.tc-neutral-cta { margin-top: clamp(28px, 4vw, 44px); }
.tc-neutral-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 3px;
}
.tc-neutral-cta a:hover { border-bottom-color: #fff; }
.tc-neutral-cta a .arrow { transition: transform 0.2s var(--ease); }
.tc-neutral-cta a:hover .arrow { transform: translateX(3px); }

/* ─── Vorteile: 6er-Grid ─── */
.tc-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .tc-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tc-benefits { grid-template-columns: 1fr; } }
.tc-benefit {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.3s, border-color 0.3s;
  will-change: transform;
}
html[data-theme="dark"] .tc-benefit { background: var(--bg-soft); }
.tc-benefit:hover { box-shadow: var(--shadow-float); border-color: var(--line-strong); }
.tc-benefit::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.tc-benefit:hover::after { transform: scaleX(1); }
.tc-benefit .service-ico { margin-bottom: 18px; }
.tc-benefit h3 {
  font-family: var(--font-display);
  font-size: 19.5px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 9px;
}
.tc-benefit p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* ─── Ökosystem ─── */
.tc-eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .tc-eco-grid { grid-template-columns: 1fr; } }
.tc-eco-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
html[data-theme="dark"] .tc-eco-card { background: var(--bg-soft); }
.tc-eco-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--line-strong); }
.tc-eco-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tc-eco-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.tc-eco-accent { color: var(--red); }
.tc-eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 99px;
  white-space: nowrap;
}
.tc-eco-badge.live { color: #1B7A50; background: rgba(34, 160, 107, 0.10); border: 1px solid rgba(34, 160, 107, 0.28); }
html[data-theme="dark"] .tc-eco-badge.live { color: #6FD3A4; }
.tc-eco-badge.soon { color: var(--blue); background: var(--blue-tint); border: 1px solid transparent; }
.tc-eco-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22A06B;
  animation: pulse 2.2s var(--ease-io) infinite;
}
.tc-eco-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.tc-eco-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 600;
  font-size: 13.5px;
}
.tc-eco-link .arrow { transition: transform 0.2s var(--ease); }
.tc-eco-link:hover .arrow { transform: translateX(3px); }
html[data-theme="dark"] .tc-eco-link { color: var(--blue-mid); }

/* ════════════════════════════════════════════
   Reveals (3D) — nur aktiv mit html.js-motion.
   Ohne JS bleibt ALLES sichtbar (SEO / no-JS).
   ════════════════════════════════════════════ */
html.js-motion .tc-reveal,
html.js-motion .tc-reveal-soft {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js-motion .tc-reveal {
  opacity: 0;
  transform: perspective(1000px) rotateX(14deg) translateY(48px);
  transform-origin: 50% 0;
}
html.js-motion .tc-reveal-soft {
  opacity: 0;
  transform: translateY(26px);
}
html.js-motion .tc-reveal.tc-in,
html.js-motion .tc-reveal-soft.tc-in {
  opacity: 1;
  transform: none;
}

/* Stagger in Grids */
html.js-motion .tc-benefits .tc-reveal:nth-child(2) { transition-delay: 0.08s; }
html.js-motion .tc-benefits .tc-reveal:nth-child(3) { transition-delay: 0.16s; }
html.js-motion .tc-benefits .tc-reveal:nth-child(4) { transition-delay: 0.10s; }
html.js-motion .tc-benefits .tc-reveal:nth-child(5) { transition-delay: 0.18s; }
html.js-motion .tc-benefits .tc-reveal:nth-child(6) { transition-delay: 0.26s; }

/* Mobile: Reveals einfacher (kein 3D-Kipp) */
@media (max-width: 719px) {
  html.js-motion .tc-reveal { transform: translateY(28px); }
}

/* Test-Hook ?all=1: Schwebe-Animationen einfrieren (deterministische Screenshots) */
html.tc-all .tc-layer,
html.tc-all .tc-notif-dot,
html.tc-all .tc-eco-dot { animation: none !important; }
html.tc-all .cookie-banner { display: none !important; }

/* Reduced Motion: statisch (js-motion wird per JS gar nicht gesetzt,
   dies ist der doppelte Boden auf CSS-Ebene) */
@media (prefers-reduced-motion: reduce) {
  html.js-motion .tc-reveal,
  html.js-motion .tc-reveal-soft { opacity: 1 !important; transform: none !important; }
  .tc-layer, .tc-notif-dot, .tc-eco-dot { animation: none !important; }
  /* Doppelter Boden: neutralisiert Inline-Transforms des Tilt-Handlers
     (interactions.js guardet zusätzlich selbst) */
  [data-tilt] { transform: none !important; }
}
