/*
 * Copyright (c) 2026 TNSystem. Alle Rechte vorbehalten.
 * Zweck: Steuert das responsive Erscheinungsbild und die Animationen der TN-Mate-Landingpage.
 * Aufbau: Designvariablen, Hero, Live-Karte, Funktionsbereich, Footer und Barrierefreiheit.
 */

:root {
  --font-geist-sans: Arial, Helvetica, sans-serif;
  --font-geist-mono: "Courier New", Consolas, monospace;
  --ink: #07161f;
  --ink-soft: #102631;
  --paper: #eef3f2;
  --white: #ffffff;
  --mint: #67e8d2;
  --cyan: #48bdd2;
  --line: rgba(255, 255, 255, 0.18);
  --muted: rgba(255, 255, 255, 0.68);
  --radius-xl: 28px;
  --shadow: 0 28px 80px rgba(0, 12, 20, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-shell { min-width: 320px; overflow: hidden; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: #081922 url("/tn-mate-collaboration-poster.webp") center / cover no-repeat;
}

.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { z-index: -4; overflow: hidden; }

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  filter: saturate(0.88) contrast(1.03);
}

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3, 18, 27, 0.96) 0%, rgba(3, 18, 27, 0.87) 35%, rgba(3, 18, 27, 0.42) 68%, rgba(3, 18, 27, 0.58) 100%),
    linear-gradient(180deg, rgba(3, 18, 27, 0.45), transparent 32%, rgba(3, 18, 27, 0.8));
}

.ambient {
  position: absolute;
  z-index: -2;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one { left: -160px; top: 18%; background: var(--mint); }
.ambient-two { right: -180px; bottom: 12%; background: var(--cyan); }

.topbar, .hero-content, .process-strip, .features, .footer {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.brand:focus-visible, .primary-action:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 5px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 7px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--mint), var(--cyan));
  box-shadow: 0 8px 25px rgba(72, 189, 210, 0.26);
}

.brand-mark span { display: block; border-radius: 2px; background: var(--ink); opacity: 0.9; }
.brand-word { font-size: 1.22rem; }

.build-status, .sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: rgba(4, 24, 34, 0.46);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.build-status {
  padding: 10px 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-dot, .sync-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(103, 232, 210, 0.56);
  animation: statusPulse 2.2s ease-out infinite;
}

.hero-content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.64fr);
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
  padding-block: 76px 92px;
}

.hero-copy { max-width: 740px; animation: revealUp 0.9s 0.08s both; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span { width: 28px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: clamp(3.35rem, 7.25vw, 6.75rem);
  line-height: 0.89;
  letter-spacing: -0.073em;
  font-weight: 520;
}

h1 strong { display: block; color: var(--mint); font-weight: 780; }

.hero-lead {
  max-width: 650px;
  margin-bottom: 20px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.48;
  font-weight: 520;
  letter-spacing: -0.025em;
}

.hero-description {
  max-width: 610px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.hero-actions { display: flex; align-items: center; gap: 23px; flex-wrap: wrap; }

.primary-action {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 17px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 720;
  box-shadow: 0 15px 35px rgba(20, 130, 131, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action:hover { transform: translateY(-2px); background: #8bf2df; box-shadow: 0 18px 42px rgba(20, 130, 131, 0.32); }
.primary-action span { font-size: 1.25rem; }
.release-note { color: rgba(255, 255, 255, 0.64); font-size: 0.88rem; font-weight: 620; }

.live-card {
  position: relative;
  align-self: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(5, 24, 34, 0.83), rgba(8, 32, 42, 0.64));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  animation: cardFloat 7s ease-in-out infinite, revealUp 0.9s 0.25s both;
}

.live-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(103, 232, 210, 0.26), transparent 38%, rgba(72, 189, 210, 0.2));
}

.live-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.card-kicker { color: rgba(255, 255, 255, 0.48); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.live-card h2 { margin: 6px 0 0; font-size: 1.35rem; letter-spacing: -0.035em; }
.sync-badge { flex: 0 0 auto; padding: 8px 10px; border-radius: 9px; color: var(--mint); font-size: 0.66rem; font-weight: 680; }
.sync-badge i { width: 6px; height: 6px; }
.customer-row { display: flex; align-items: center; gap: 13px; padding: 20px 0 12px; }

.customer-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: rgba(103, 232, 210, 0.13);
  color: var(--mint);
  font-size: 0.75rem;
  font-weight: 780;
}

.customer-row strong, .customer-row small { display: block; }
.customer-row strong { margin-bottom: 5px; font-size: 0.88rem; }
.customer-row small { color: rgba(255, 255, 255, 0.52); font-size: 0.72rem; }
.timeline { margin: 0; padding: 8px 0 11px; list-style: none; }

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 16px 1fr;
  gap: 9px;
  min-height: 43px;
  align-items: start;
}

.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 60px; top: 17px; bottom: -1px; width: 1px; background: rgba(255, 255, 255, 0.14); }
.timeline-item time { padding-top: 3px; color: rgba(255, 255, 255, 0.44); font-family: var(--font-geist-mono), monospace; font-size: 0.68rem; }

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  margin: 2px auto 0;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: #112e3a;
}

.timeline-item.done .timeline-marker, .timeline-item.active .timeline-marker, .timeline-item.sync .timeline-marker { border-color: var(--mint); background: var(--mint); }
.timeline-item.active .timeline-marker { box-shadow: 0 0 0 5px rgba(103, 232, 210, 0.12); }
.timeline-item.sync .timeline-marker { animation: statusPulse 2.2s ease-out infinite; }
.timeline-label { color: rgba(255, 255, 255, 0.76); font-size: 0.79rem; }
.timeline-item.sync .timeline-label { color: var(--mint); font-weight: 680; }
.live-card-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 15px; border-top: 1px solid var(--line); }
.live-card-foot span { color: rgba(255, 255, 255, 0.43); font-size: 0.62rem; }
.live-card-foot b { display: block; margin-bottom: 3px; color: rgba(255, 255, 255, 0.85); font-size: 0.76rem; }

.process-strip {
  display: grid;
  grid-template-columns: auto minmax(26px, 1fr) auto minmax(26px, 1fr) auto minmax(26px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  padding: 15px 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(4, 20, 28, 0.44);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 640;
  letter-spacing: 0.04em;
}

.process-strip i { position: relative; height: 1px; overflow: hidden; background: rgba(255, 255, 255, 0.13); }
.process-strip i b { position: absolute; top: -1px; left: -12px; width: 12px; height: 3px; border-radius: 4px; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: dataFlow 3.3s linear infinite; }
.process-strip i:nth-of-type(2) b { animation-delay: 0.7s; }
.process-strip i:nth-of-type(3) b { animation-delay: 1.4s; }

.features {
  position: relative;
  z-index: 0;
  padding-block: clamp(90px, 11vw, 150px);
  color: var(--ink);
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  z-index: -1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 85% 10%, rgba(72, 189, 210, 0.13), transparent 26%), var(--paper);
}

.section-heading { max-width: 760px; margin-bottom: 60px; }
.eyebrow.dark { color: #087b7a; }
.section-heading h2 { margin-bottom: 22px; font-size: clamp(2.7rem, 5.6vw, 5.3rem); line-height: 0.98; letter-spacing: -0.065em; }
.section-heading > p:last-child { max-width: 650px; color: #52646c; font-size: 1.08rem; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.feature-card {
  position: relative;
  min-height: 310px;
  padding: 29px;
  border: 1px solid rgba(7, 22, 31, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover { transform: translateY(-5px); border-color: rgba(8, 123, 122, 0.25); box-shadow: 0 24px 55px rgba(22, 59, 67, 0.1); }
.feature-number { display: block; margin-bottom: 70px; color: #168e8d; font-family: var(--font-geist-mono), monospace; font-size: 0.72rem; font-weight: 750; }
.feature-card h3 { margin-bottom: 14px; font-size: 1.42rem; letter-spacing: -0.04em; }
.feature-card p { margin-bottom: 0; color: #5d6c72; font-size: 0.94rem; line-height: 1.67; }

.feature-line {
  position: absolute;
  left: 29px;
  right: 29px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #139c98, var(--cyan), transparent);
  transform: scaleX(0.24);
  transform-origin: left;
  transition: transform 260ms ease;
}

.feature-card:hover .feature-line { transform: scaleX(1); }

.promise {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 58px;
  padding-top: 35px;
  border-top: 1px solid rgba(7, 22, 31, 0.12);
}

.promise-mark { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--ink); color: var(--mint); font-weight: 800; }
.promise strong { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.promise p { margin: 0; color: #607078; font-size: 0.88rem; line-height: 1.55; }

.footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand { color: var(--white); }
.footer .brand-mark { width: 30px; height: 30px; }
.footer p { margin: 0; font-size: 0.76rem; }

@keyframes revealUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes statusPulse { 0% { box-shadow: 0 0 0 0 rgba(103, 232, 210, 0.55); } 55%, 100% { box-shadow: 0 0 0 9px rgba(103, 232, 210, 0); } }
@keyframes dataFlow { from { left: -12px; } to { left: calc(100% + 12px); } }

@media (max-width: 980px) {
  .hero-shade { background: linear-gradient(90deg, rgba(3, 18, 27, 0.96), rgba(3, 18, 27, 0.67)), linear-gradient(180deg, rgba(3, 18, 27, 0.28), rgba(3, 18, 27, 0.9)); }
  .hero-content { grid-template-columns: 1fr; gap: 54px; padding-top: 82px; }
  .hero-copy { max-width: 700px; }
  .live-card { width: min(100%, 530px); justify-self: end; }
  .process-strip { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 240px; }
  .feature-number { margin-bottom: 45px; }
}

@media (max-width: 640px) {
  .topbar, .hero-content, .features, .footer { width: min(100% - 32px, 1240px); }
  .topbar { height: 76px; }
  .brand-word { font-size: 1.04rem; }
  .brand-mark { width: 30px; height: 30px; padding: 6px; }
  .build-status { padding: 8px 11px; font-size: 0.62rem; letter-spacing: 0.08em; }
  .hero-content { padding-block: 64px 70px; }
  h1 { font-size: clamp(3.15rem, 17vw, 5rem); }
  .hero-description { font-size: 0.95rem; }
  .release-note { width: 100%; }
  .live-card { justify-self: stretch; padding: 19px; border-radius: 22px; }
  .live-card-head { align-items: center; }
  .sync-badge { max-width: 92px; line-height: 1.25; }
  .live-card-foot { gap: 4px; }
  .features { padding-block: 82px; }
  .section-heading { margin-bottom: 42px; }
  .feature-card { min-height: 250px; padding: 24px; }
  .promise { align-items: flex-start; }
  .footer { min-height: 150px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-video { display: none; }
}

/* Helles Design v0.3: freundliche Oberfläche mit dunkler Schrift und ruhiger Videoeinbindung. */
:root {
  --ink: #10272d;
  --ink-soft: #284149;
  --paper: #f2f7f5;
  --white: #ffffff;
  --mint: #0c8782;
  --cyan: #2b9fb3;
  --line: rgba(20, 63, 68, 0.15);
  --muted: rgba(19, 47, 54, 0.7);
  --shadow: 0 28px 80px rgba(28, 74, 76, 0.18);
}

body { background: #eaf2ef; color: var(--ink); }

.hero {
  background-color: #eef5f2;
  background-image: url("/tn-mate-collaboration-poster.webp");
}

.hero-video { filter: saturate(0.92) contrast(0.98) brightness(1.04); }

.hero-shade {
  background:
    linear-gradient(90deg, rgba(249, 252, 251, 0.98) 0%, rgba(246, 250, 249, 0.95) 31%, rgba(242, 248, 246, 0.72) 54%, rgba(238, 246, 244, 0.2) 78%, rgba(233, 242, 240, 0.27) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 32%, rgba(235, 244, 241, 0.76));
}

.ambient { opacity: 0.12; }
.ambient-one { background: #5cd2c3; }
.ambient-two { background: #75cadd; }

.topbar { border-bottom-color: rgba(20, 63, 68, 0.14); }
.brand-mark { box-shadow: 0 8px 25px rgba(23, 133, 132, 0.18); }
.brand-mark span { background: #f5fffc; }
.brand-word { color: #10272d; }

.build-status,
.sync-badge {
  border-color: rgba(20, 73, 76, 0.14);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(39, 85, 84, 0.08);
}

.build-status { color: rgba(18, 51, 58, 0.75); }
.status-dot,
.sync-badge i { background: #0d948b; }
.eyebrow { color: #087a76; }
h1 strong { color: #087a76; }
.hero-description { color: rgba(23, 54, 61, 0.72); }
.release-note { color: rgba(22, 53, 60, 0.62); }

.primary-action {
  background: #117f7b;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(17, 127, 123, 0.2);
}

.primary-action:hover {
  background: #0a706d;
  box-shadow: 0 18px 42px rgba(17, 127, 123, 0.28);
}

.brand:focus-visible,
.primary-action:focus-visible { outline-color: #087a76; }

.live-card {
  border-color: rgba(17, 79, 81, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.93), rgba(243, 249, 247, 0.83));
  box-shadow: 0 28px 80px rgba(37, 79, 80, 0.2);
}

.live-card::before {
  background: linear-gradient(135deg, rgba(18, 154, 145, 0.22), transparent 38%, rgba(43, 159, 179, 0.15));
}

.live-card-head { border-bottom-color: rgba(20, 63, 68, 0.13); }
.card-kicker { color: rgba(19, 54, 61, 0.5); }
.live-card h2,
.customer-row strong { color: #14333a; }
.sync-badge { color: #087a76; }
.customer-avatar { background: rgba(12, 135, 130, 0.1); color: #087a76; }
.customer-row small { color: rgba(20, 54, 61, 0.58); }
.timeline-item:not(:last-child)::after { background: rgba(21, 69, 74, 0.14); }
.timeline-item time { color: rgba(19, 54, 61, 0.5); }
.timeline-marker { border-color: rgba(18, 77, 80, 0.28); background: #edf6f3; }
.timeline-item.done .timeline-marker,
.timeline-item.active .timeline-marker,
.timeline-item.sync .timeline-marker { border-color: #0c8782; background: #0c8782; }
.timeline-label { color: rgba(19, 51, 58, 0.76); }
.timeline-item.sync .timeline-label { color: #087a76; }
.live-card-foot { border-top-color: rgba(20, 63, 68, 0.13); }
.live-card-foot span { color: rgba(18, 52, 59, 0.5); }
.live-card-foot b { color: rgba(15, 45, 52, 0.88); }

.process-strip {
  border-color: rgba(20, 73, 76, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(20, 54, 61, 0.64);
  box-shadow: 0 14px 35px rgba(36, 81, 81, 0.09);
}

.process-strip i { background: rgba(20, 79, 82, 0.14); }
.process-strip i b { background: #0c8782; box-shadow: 0 0 12px rgba(12, 135, 130, 0.55); }

.features::before {
  background: radial-gradient(circle at 85% 10%, rgba(62, 177, 179, 0.11), transparent 28%), #f7faf9;
}

.feature-card { background: rgba(255, 255, 255, 0.88); }
.promise-mark { background: #117f7b; color: #ffffff; }

.footer {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100% - 1240px) / 2));
  background: #eaf2ef;
  color: rgba(19, 51, 58, 0.58);
}

.footer-brand { color: var(--ink); }

@media (max-width: 980px) {
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(249, 252, 251, 0.98), rgba(244, 249, 247, 0.8)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(234, 243, 240, 0.86));
  }
}
