/* Tokens aus dem Design-System-Projekt (_ds/.../tokens/*.css), das wiederum das App-Theme
   src/Hub.Client/wwwroot/css/design-system.css spiegelt. Bei Änderungen am App-Theme hier nachziehen. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); }

:root {
  --c-bg: #f2f3f5; --c-surface: #ffffff; --c-surface-2: #fafafa;
  --c-text: #18181b; --c-text-2: #3f3f46; --c-text-3: #5c5c66;
  --c-border: #e3e4e8; --c-border-strong: #c8c9cf;
  --c-primary: #3d6be0; --c-primary-700: #2747a0; --c-primary-50: #eef3ff; --c-focus: #8aa8f3;
  --c-success: #2f8f5d; --c-success-50: #e8f6ee; --c-success-100: #cfeddb; --c-success-700: #25724a;
  --c-warn: #7a4a10; --c-warn-50: #fdf3e4;
  --r-field: 12px; --r-card: 16px; --r-lg: 24px; --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(24, 24, 27, .06); --sh-md: 0 4px 14px rgba(24, 24, 27, .08); --sh-lg: 0 16px 40px rgba(24, 24, 27, .14);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif; --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Landing v4: Abstand zwischen den Abschnitten, einmal zentral. */
  --sec-gap: 144px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  color: var(--c-text); background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-700); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wordmark {
  display: inline-flex; align-items: baseline;
  font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  color: var(--c-text); text-decoration: none;
}
.wordmark svg { height: 0.76em; width: calc(0.76em * 56 / 52); margin-right: 0.035em; overflow: visible; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons – Maße aus components/core/Button.jsx des Design-Systems. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  height: 2.5em; padding: 0 1.1em; border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-sans); font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-700); color: #fff; }
.btn:active { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* ---------- Seitengerüst ---------- */

.shell { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; display: flex; flex-direction: column; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
.topbar .wordmark { font-size: 28px; }
.topbar nav { display: flex; align-items: center; gap: 28px; }
.topbar nav a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--c-text-2); text-decoration: none; }
.topbar .btn { font-size: 15px; }

/* ---------- Hero ---------- */

.hero { padding: clamp(64px, 10vw, 128px) 0 64px; }
.hero h1 {
  margin: 0; max-width: 11em;
  font-size: clamp(48px, 8.2vw, 108px); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98;
  text-wrap: balance;
}
.hero-sub { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; margin-top: 48px; }
.hero-sub p {
  margin: 0; flex: 1 1 420px; max-width: 30em;
  font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--c-text-2); text-wrap: pretty;
}

/* ---------- Abschnitte: Eyebrow links, Inhalt rechts ---------- */

.sec { display: flex; flex-wrap: wrap; gap: 24px 48px; margin-top: var(--sec-gap); padding-top: 28px; border-top: 1px solid var(--c-text); }
.sec-label { flex: 0 0 200px; font-size: 15px; font-weight: 600; }
.sec-body { flex: 1 1 600px; min-width: 0; }

/* Große Aussage mit abgesetzter zweiter Hälfte. */
.claim {
  margin: 0; max-width: 20em;
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15;
  text-wrap: balance;
}
.claim .dim { color: var(--c-text-3); }
.sec-body > .claim + p { margin: 24px 0 0; max-width: 34em; font-size: 17px; line-height: 1.65; color: var(--c-text-2); }

/* ---------- „Das Problem“: derselbe Kunde in fünf Programmen ---------- */

.sources { margin-top: 48px; font-variant-numeric: tabular-nums; }
.src-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.4fr); gap: 16px;
  align-items: baseline; padding: 14px 0; border-top: 1px solid var(--c-border-strong); font-size: 16px;
}
.src-head { padding: 0 0 10px; border-top: 0; font-size: 13px; color: var(--c-text-3); }
.src-row > .tool { color: var(--c-text-2); }
.src-row > .entry { font-weight: 500; }
.src-row > .data { color: var(--c-text-2); }
.src-sum { padding: 18px 0; border-top: 2px solid var(--c-primary); }
.src-sum > .tool { font-weight: 600; color: var(--c-primary-700); }
.src-sum > .entry { font-weight: 600; }
.src-sum > .data { color: inherit; }

/* ---------- „Was sich ändert“ ---------- */

.points > div { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 28px 0; border-top: 1px solid var(--c-border-strong); }
.points > div:first-child { border-top: 0; }
.points b { flex: 1 1 260px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.points span { flex: 1 1 300px; font-size: 17px; line-height: 1.6; color: var(--c-text-2); }

/* ---------- „Auswertungen“ ---------- */

.sec-body > .intro-text { margin: 0 0 40px; max-width: 30em; font-size: 19px; line-height: 1.6; color: var(--c-text-2); }
.qa { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 48px; padding: 24px 0; border-top: 1px solid var(--c-border-strong); }
.qa > q { flex: 1 1 340px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; text-wrap: pretty; }
.qa-a { flex: 0 1 300px; display: flex; flex-direction: column; gap: 2px; }
.qa-a b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qa-a span { font-size: 14px; color: var(--c-text-3); }

/* ---------- Demos ---------- */

.demo-slot { display: flex; justify-content: center; width: 100%; }
.demo-slot + .demo-slot, .sec + .demo-slot { margin-top: 56px; }

/* ---------- Kontakt / CTA ---------- */

.cta { padding-bottom: 112px; }
.cta h2 {
  margin: 0; max-width: 14em;
  font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04;
  text-wrap: balance;
}
.cta h2 + p { margin: 20px 0 0; max-width: 32em; font-size: 17px; line-height: 1.65; color: var(--c-text-2); }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-top: 48px; }
.contact label { display: flex; flex-direction: column; gap: 8px; }
.contact label > span { font-size: 14px; font-weight: 600; color: var(--c-text-2); }
.contact input, .contact textarea {
  padding: 0 14px; border: 1px solid var(--c-border-strong); border-radius: var(--r-field);
  background: var(--c-surface); font-family: var(--font-sans); font-size: 16px; color: var(--c-text);
}
.contact input { height: 48px; }
.contact textarea { padding: 12px 14px; min-height: 120px; line-height: 1.6; resize: vertical; }
.contact input:focus, .contact textarea:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-50);
}
.contact input::placeholder, .contact textarea::placeholder { color: #8a8a93; }
.contact .wide { grid-column: 1 / -1; }
.contact-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.contact-foot .btn { font-size: 17px; }
.contact-note { font-size: 13px; color: var(--c-text-3); }
/* Honeypot: für Menschen unsichtbar, Bots füllen es aus. Kein display:none – das überspringen manche Bots. */
.contact .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* Bestätigung nach dem Absenden (danke.html) */
.sent { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--c-success); }
.sent b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.sent p { margin: 8px 0 0; font-size: 17px; line-height: 1.6; color: var(--c-text-2); }
.sent a { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--c-text-2); text-underline-offset: 3px; }

/* Fehlermeldung des Formular-Handlers (contact.php) */
.formerr { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--c-warn); }
.formerr b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.formerr p { margin: 8px 0 0; font-size: 17px; line-height: 1.6; color: var(--c-text-2); }

/* ---------- Footer ---------- */

.site-footer { margin-top: auto; border-top: 1px solid var(--c-border-strong); }
.site-footer .wrap {
  max-width: 1180px; margin: 0 auto; padding: 24px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 14px; color: var(--c-text-3);
}
.site-footer ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }

/* ---------- Rechtsseiten ---------- */

.wrap { width: 100%; max-width: 760px; margin: 0 auto; }
.site-header { padding: 32px 24px 8px; }
.site-header .wordmark { font-size: 40px; }
.legal { flex: 1; padding: 24px 24px 64px; }
.legal h1 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 24px 0 28px; }
.legal h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 32px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 20px 0 6px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.75; color: var(--c-text-2); }
.legal li { margin-bottom: 6px; }
.legal p { margin: 0 0 12px; line-height: 1.75; color: var(--c-text-2); }
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 40px; }

@media (max-width: 760px) {
  :root { --sec-gap: 88px; }
  .shell { padding: 0 20px; }
  .site-footer .wrap { padding: 24px 20px; }
  .topbar { padding: 20px 0; }
  .topbar nav { gap: 16px; }
  .sec-label { flex-basis: 100%; color: var(--c-text-3); }
  .src-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .src-row > .data { grid-column: 1 / -1; font-size: 14px; }
  .src-head > .data { display: none; }
  .cta { padding-bottom: 72px; }
}

@media (max-width: 560px) {
  /* Wortmarke + Textlink + Button passen nebeneinander nicht mehr – der Button hat Vorrang. */
  .topbar .wordmark { font-size: 24px; }
  .topbar nav a:not(.btn) { display: none; }
  .topbar .btn { font-size: 14px; }
  .hero { padding: 48px 0 40px; }
  .hero-sub { margin-top: 32px; }
}

@media (max-width: 600px) {
  .site-header { padding: 24px 16px 4px; }
  .site-header .wordmark { font-size: 34px; }
  .legal { padding: 16px 16px 48px; }
  .card { padding: 24px; }
}
