/* TM_MARKETING_PAGES_V1 – Branchenseiten & Transparenzseite. Eigenständig: lokale Schriften, keine externen Ressourcen. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter/Inter-Bold.woff2') format('woff2'); }

:root {
  --bg: #070b1a; --panel: #0d1532; --panel-2: #111931; --ink: #f8f9ff; --muted: #b5c2dc; --soft: #8f9bbd;
  --line: rgba(151, 165, 255, .18); --line-strong: rgba(139, 155, 225, .36);
  --purple: #8c7cff; --purple-ink: #9d92ff; --cyan: #6eeafa; --mint: #70e8ce; --sim: #ffd27a;
  --radius-lg: 28px; --radius: 22px; --wrap: 1200px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6;
  background: radial-gradient(ellipse 60% 40% at 82% 4%, rgba(104, 95, 245, .30), transparent 70%),
              radial-gradient(ellipse 45% 30% at 0% 32%, rgba(23, 104, 123, .20), transparent 70%), var(--bg);
  background-repeat: no-repeat;
}
a { color: #cdd6ff; text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
.tm-wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.tm-skip { position: absolute; left: -9999px; top: 12px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: #edf2ff; color: #101632; font-weight: 700; }
.tm-skip:focus { left: 16px; }

/* Vorschau-Hinweis */
.tm-preview-bar { position: sticky; top: 0; z-index: 20; background: var(--sim); color: #1b1030; font-size: 13px; font-weight: 700; text-align: center; padding: 8px 16px; }

/* Kopf */
.tm-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0; }
.tm-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.tm-brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-weight: 700; font-size: 24px; letter-spacing: -.07em; color: #fff;
  background: linear-gradient(140deg, #aca0ff, #685ff5 45%, #4646ad); border: 1px solid rgba(196, 182, 255, .57); box-shadow: 0 5px 24px rgba(101, 92, 247, .33); }
.tm-brand-type { display: grid; gap: 2px; line-height: 1.1; }
.tm-brand-type strong { font-size: 17px; font-weight: 700; letter-spacing: -.045em; }
.tm-brand-type small { font-size: 9px; color: #aebce2; letter-spacing: .22em; font-weight: 700; }
.tm-nav { display: flex; gap: 26px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.tm-pill { padding: 12px 18px; border-radius: 999px; background: #edf2ff; color: #101632; font-size: 12px; font-weight: 700; }
.tm-pill:hover { color: #101632; background: #fff; }

/* Bausteine */
.tm-section { padding: 72px 0; }
.tm-eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--cyan); text-transform: uppercase; }
.tm-eyebrow.is-mint { color: var(--mint); }
.tm-h2 { margin: 14px 0 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.045em; line-height: 1.1; max-width: 820px; font-weight: 700; }
.tm-text { color: var(--muted); }
.tm-note { color: var(--soft); font-size: 13px; }
.tm-note a, .tm-doc-body a { color: #cdd6ff; text-decoration: underline; text-underline-offset: 3px; }
.tm-gradient { background: linear-gradient(115deg, var(--purple), #a99bff 45%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tm-btn { display: inline-block; padding: 15px 24px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.tm-btn-primary { color: #fff; background: linear-gradient(115deg, #7c77f9, #6b64ee 57%, #8c82fc); border: 1px solid rgba(181, 170, 255, .48); box-shadow: 0 10px 30px rgba(103, 91, 239, .45); }
.tm-btn-primary:hover { color: #fff; transform: translateY(-2px); }
.tm-btn-ghost { color: #e6eaff; border: 1px solid rgba(139, 147, 204, .35); background: #0b1127; }
.tm-btn-ghost:hover { transform: translateY(-2px); }
.tm-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Hero */
.tm-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 40px 0 64px; }
.tm-hero-copy { flex: 1 1 480px; min-width: 0; }
.tm-badge { margin: 0 0 22px; display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(140, 124, 255, .4);
  background: rgba(17, 25, 49, .7); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #b9b0ff; text-transform: uppercase; }
.tm-h1 { margin: 0; font-size: clamp(36px, 5.6vw, 58px); line-height: 1.04; letter-spacing: -.05em; font-weight: 700; }
.tm-lead { margin: 26px 0 0; font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 600px; }
.tm-hero-note { margin: 24px 0 0; font-size: 12px; color: var(--soft); }

/* Simulation */
.tm-sim { flex: 1 1 420px; min-width: 0; margin: 0; border-radius: var(--radius-lg); border: 1px solid rgba(130, 149, 239, .42);
  background: linear-gradient(160deg, rgba(20, 31, 70, .92), rgba(11, 21, 49, .92)); box-shadow: 0 30px 90px rgba(2, 6, 24, .6); padding: 24px; }
.tm-sim-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; font-weight: 700; }
.tm-sim-flag { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: #1b1030; background: var(--sim); padding: 5px 9px; border-radius: 6px; }
.tm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.tm-kpi { margin: 0; padding: 14px; border-radius: 14px; background: rgba(7, 11, 26, .6); border: 1px solid rgba(151, 165, 255, .16); }
.tm-kpi dt { color: var(--soft); font-size: 11px; }
.tm-kpi dd { margin: 6px 0 0; font-size: 24px; font-weight: 700; }
.tm-kpi:nth-child(2) dd { color: var(--purple-ink); }
.tm-kpi:nth-child(3) dd { color: var(--cyan); }
.tm-bars-title { margin: 20px 0 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.tm-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tm-bar { display: grid; grid-template-columns: minmax(0, 170px) 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.tm-bar-track { height: 9px; border-radius: 9px; background: rgba(151, 165, 255, .10); overflow: hidden; }
.tm-bar-fill { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.tm-bar b { text-align: right; }
.tm-sim-foot { margin: 18px 0 0; font-size: 11px; color: var(--soft); }

/* Karten */
.tm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 40px; }
.tm-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: linear-gradient(160deg, #161f42, #0d1730); }
.tm-card-tag { margin: 0; font-size: 11px; color: var(--purple-ink); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tm-card h3 { margin: 12px 0 10px; font-size: 19px; letter-spacing: -.02em; line-height: 1.3; }
.tm-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Szenario */
.tm-story { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.tm-story > div { flex: 1 1 360px; min-width: 0; }
.tm-story p.tm-story-text { margin: 0; font-size: 17px; line-height: 1.75; color: #d3dbf0; }

/* Datenschutz */
.tm-privacy { display: flex; flex-wrap: wrap; gap: 40px; padding: clamp(28px, 5vw, 48px); border-radius: 32px; border: 1px solid rgba(112, 232, 206, .3);
  background: radial-gradient(ellipse at 0% 0%, rgba(112, 232, 206, .12), transparent 60%), #0b1531; }
.tm-privacy > div { flex: 1 1 380px; min-width: 0; }
.tm-privacy p { margin: 0; color: #c3cee6; font-size: 15px; line-height: 1.7; }
.tm-privacy p + p { margin-top: 14px; }

/* Einrichtung */
.tm-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tm-step { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.tm-step b { font-size: 13px; color: var(--purple-ink); }
.tm-step p { margin: 8px 0 6px; font-weight: 700; }
.tm-step code { font-size: 12px; color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* FAQ */
.tm-faq-wrap { max-width: 900px; }
.tm-faq { border-bottom: 1px solid var(--line); padding: 20px 0; }
.tm-faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.tm-faq summary::-webkit-details-marker { display: none; }
.tm-faq summary::after { content: '+'; color: var(--purple-ink); font-weight: 700; }
.tm-faq[open] summary::after { content: '–'; }
.tm-faq p { margin: 12px 0 0; color: var(--muted); line-height: 1.65; }

/* Hinweisbox */
.tm-aside { margin-top: 40px; padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--panel-2); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.tm-aside p { margin: 0; color: var(--muted); flex: 1 1 420px; }
.tm-aside strong { color: var(--ink); }

/* CTA */
.tm-cta { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding: clamp(28px, 5vw, 44px); border-radius: var(--radius-lg);
  border: 1px solid rgba(120, 139, 231, .53); background: radial-gradient(ellipse at 0% 50%, rgba(104, 107, 242, .27), transparent 65%), linear-gradient(112deg, #141f46, #0d1a3d); }
.tm-cta > div:first-child { flex: 1 1 420px; min-width: 0; }
.tm-cta h2 { margin: 0; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.04em; line-height: 1.15; }
.tm-cta p { margin: 12px 0 0; color: var(--muted); }
.tm-cta .tm-actions { margin-top: 0; }

/* Weitere Branchen & Übersicht */
.tm-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 24px; }
.tm-related a, .tm-tile { display: block; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); transition: border-color .2s ease, transform .2s ease; }
.tm-related a:hover, .tm-tile:hover { border-color: rgba(140, 124, 255, .6); transform: translateY(-2px); color: var(--ink); }
.tm-related small, .tm-tile small { display: block; font-size: 11px; letter-spacing: .12em; color: var(--purple-ink); font-weight: 700; text-transform: uppercase; }
.tm-related strong, .tm-tile strong { display: block; margin-top: 6px; font-size: 17px; }
.tm-tile span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 40px; }

/* Transparenzseite */
.tm-doc { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 48px; }
.tm-toc { position: sticky; top: 24px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; }
.tm-toc p { margin: 0 0 10px; font-size: 11px; letter-spacing: .14em; color: var(--soft); font-weight: 700; text-transform: uppercase; }
.tm-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--soft); }
.tm-doc-body section { padding: 8px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; scroll-margin-top: 24px; }
.tm-doc-body section:last-child { border-bottom: 0; }
.tm-doc-body h2 { margin: 0 0 14px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em; line-height: 1.2; }
.tm-doc-body p, .tm-doc-body li { color: #c9d2ea; font-size: 16px; line-height: 1.75; }
.tm-doc-body p { margin: 0 0 14px; }
.tm-doc-body ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.tm-doc-body li::marker { color: var(--mint); }

/* Fuß */
.tm-footer { padding: 28px 0 40px; border-top: 1px solid rgba(151, 165, 255, .14); display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; font-size: 12px; color: var(--soft); }
.tm-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .tm-doc { grid-template-columns: 1fr; }
  .tm-toc { position: static; }
  .tm-nav { display: none; }
}
@media (max-width: 560px) {
  .tm-wrap { width: calc(100% - 32px); }
  .tm-pill { padding: 10px 14px; font-size: 11px; }
  .tm-kpis { grid-template-columns: 1fr; }
  .tm-bar { grid-template-columns: minmax(0, 1fr) 1fr 34px; }
  .tm-section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tm-btn, .tm-related a, .tm-tile { transition: none; }
  .tm-btn:hover, .tm-related a:hover, .tm-tile:hover { transform: none; }
}
