/* ==========================================================
   Krendi / KomTrack – Stylesheet
   Farben und Abstände zentral hier anpassen.
   Schriften: Systemschriften (keine externen Server -> DSGVO-freundlich)
   ========================================================== */

:root {
  --bg: #151615;
  --bg-2: #1b1c1b;
  --surface: #202120;
  --surface-2: #272827;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f3f1;
  --muted: #b3b4b0;
  --faint: #8a8b87;
  --accent: #e5392d;         /* Rot aus dem One-Pager */
  --accent-hover: #f04b3f;
  --silver: linear-gradient(135deg, #4b5054 0%, #d9dadb 38%, #ffffff 50%, #aeb2b4 62%, #50565a 100%);

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Typografie ---------- */

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.eyebrow, .caps {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.red-rule { display: block; width: 88px; height: 3px; background: var(--accent); border: 0; margin: 22px 0 24px; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: #e2e2df; max-width: 34em; }
.muted { color: var(--muted); }

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 22, 21, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span { font-size: 0.95rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--muted); transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); }
.nav .btn { padding: 9px 18px; color: var(--text); }

/* ---------- Dekor: silberne Diagonalen wie im One-Pager ---------- */

.stripes { position: absolute; pointer-events: none; overflow: hidden; inset: 0; z-index: 0; }
.stripes i {
  position: absolute; display: block; width: 34px; height: 160%;
  background: var(--silver); opacity: .5; transform: rotate(38deg); border-radius: 2px;
}
.stripes--tl i:nth-child(1) { left: -40px; top: -70%; }
.stripes--tl i:nth-child(2) { left: 50px; top: -80%; width: 18px; opacity: .35; }
.stripes--br i:nth-child(1) { right: 40px; bottom: -80%; }
.stripes--br i:nth-child(2) { right: 130px; bottom: -90%; width: 14px; opacity: .3; }

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

.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 100px); overflow: hidden;
  background: radial-gradient(1100px 600px at 75% 30%, #262826 0%, var(--bg) 65%); }
.hero .container { position: relative; z-index: 1; }

.hero-logo { width: min(460px, 82%); margin: 0 auto clamp(36px, 6vw, 64px); }
.hero-tagline-hand {
  position: absolute; right: var(--gutter); top: 4px; transform: rotate(-8deg);
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  color: #d9d9d6; font-size: 1.25rem; line-height: 1.3; text-align: left;
}
.hero-tagline-hand::after { content: ""; display: block; width: 150px; height: 2px; background: #d9d9d6; margin-top: 8px; border-radius: 2px; transform: rotate(-4deg); opacity: .8; }
@media (max-width: 900px) { .hero-tagline-hand { display: none; } }

.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.verbs { list-style: none; padding: 0; margin: 28px 0 34px; }
.verbs li { text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.88rem; color: #dcdcd9; padding: 3px 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual img {
  width: 100%; border-radius: var(--radius);
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 70%, transparent 100%);
}

/* ---------- Sektionen ---------- */

section { position: relative; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }

/* Drei Funktionsspalten */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.feature { padding: 4px clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.feature:first-child { border-left: 0; padding-left: 0; }
.feature-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.feature-head h3 { text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.05rem; margin: 0; line-height: 1.35; }
.feature .sub { font-size: 1.12rem; color: #e6e6e3; margin-bottom: 18px; }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; gap: 40px; }
  .feature { border-left: 0; padding: 0; }
  .feature + .feature { border-top: 1px solid var(--line); padding-top: 40px; }
}

.icon-badge {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #3a3c3b, #232423);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
.icon-badge svg { width: 28px; height: 28px; stroke: #fff; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 32px; margin: 0 0 12px; color: #dddedb; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 8px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}

/* Vier Vorteile */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value h3 { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.95rem; margin: 6px 0 6px; }
.value p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.value .icon-badge { width: 56px; height: 56px; }
.value .icon-badge svg { width: 24px; height: 24px; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* Hinweis-Box (Mensch entscheidet) */
.principle {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex; gap: 20px; align-items: center;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 22px 26px; background: var(--surface);
}
.principle p { margin: 0; color: #e4e4e1; }
.principle strong { color: #fff; }

/* Demo / Kontakt */
.demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; padding: 0; list-style: none; }
.pills li { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; color: #e2e2df;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; }

.slogan { margin-top: 40px; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.95rem; line-height: 1.7; color: #d7d7d4; }
.slogan strong { color: #fff; }

/* Formular */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #fff; }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select { padding-right: 40px; text-overflow: ellipsis; }
@media (max-width: 380px) { select { font-size: .92rem; } }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.consent label { margin: 0; font-size: 0.9rem; }
.consent a { color: #fff; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 14px; font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: #7fd48a; }
.form-status.err { color: #e6e6e3; }
.field-error { margin: 6px 0 0; font-size: .88rem; color: #ffb4ae; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #e2645c; }
.form-hinweis { margin: 0; padding: 12px 16px; border: 1px dashed rgba(255,255,255,.35); border-radius: var(--radius-sm); background: rgba(255,255,255,.05); color: #e6e6e3; font-size: .92rem; }
.form-hinweis a { color: #fff; }

/* Krendi Startseite */
.product-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.product-card .pc-text { padding: clamp(26px, 4vw, 48px); }
.product-card .pc-media { background: #111; display: grid; place-items: center; padding: 20px; }
@media (max-width: 860px) { .product-card { grid-template-columns: 1fr; } }

/* Rechtstexte */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: #dcdcd9; }
.placeholder { border-radius: 6px; padding: 1px 6px; }
.notice { border: 1px dashed rgba(255,255,255,.35); background: rgba(255,255,255,.05); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 32px; color: #e6e6e3; }

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

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--faint); font-size: 0.92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 26px; width: auto; opacity: .9; }

/* Scroll-Einblendung (dezent, respektiert reduzierte Bewegung) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   Produktseite v2: Abschnitte laut Briefing
   ========================================================== */

.hero--product { padding-top: clamp(40px, 6vw, 80px); }
.hero--product h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 12em; }
.byline { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.byline img { height: 22px; width: auto; }
.byline strong { color: var(--text); letter-spacing: .18em; font-weight: 600; font-size: .85rem; }
.hero-mark { width: 150px; margin-bottom: 26px; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 8px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Problem */
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.problem-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.problem-card svg { width: 26px; height: 26px; stroke: #cfd0cc; margin-bottom: 16px; }
.problem-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.problem-card p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 1000px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-note { margin-top: 28px; color: var(--muted); max-width: 44em; }

/* Lösung: weniger / mehr */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.compare-col { border-radius: var(--radius); padding: 28px 30px; border: 1px solid var(--line); }
.compare-col.less { background: var(--bg); }
.compare-col.more { background: linear-gradient(160deg, #2a2b2a, #1f201f); border-color: var(--line-strong); }
.compare-col h3 { text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 1.08rem; }
.compare-col li:first-child { border-top: 0; }
.compare-col.less li { color: #a7a8a4; }
.compare-col.less li::before { content: "–"; color: var(--accent); margin-right: 12px; font-weight: 700; }
.compare-col.more li::before { content: "+"; color: #fff; margin-right: 12px; font-weight: 700; }
.compare-arrow { display: grid; place-items: center; }
.compare-arrow span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); }
.compare-arrow svg { width: 26px; height: 26px; stroke: #fff; }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } .compare-arrow svg { transform: rotate(90deg); } }

/* Kernbereiche */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; }
.module:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.module .icon-badge { width: 52px; height: 52px; margin-bottom: 18px; }
.module .icon-badge svg { width: 24px; height: 24px; }
.module h3 { font-size: 1.15rem; margin-bottom: 6px; }
.module p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }

/* Split-Abschnitte (Text + Mockup) */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse { grid-template-columns: 1.25fr 1fr; }
.split.reverse > :first-child { order: 2; }
.split.narrow-visual { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 900px) {
  .split, .split.reverse, .split.narrow-visual { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
.mock-caption { margin-top: 12px; font-size: .8rem; color: var(--faint); text-align: center; }

/* ---------- UI-Mockups (HTML/CSS, skaliert über font-size) ---------- */
.mock { font-size: clamp(6.2px, 0.92vw, 10.5px); font-family: var(--font); color: #1c1d1f; line-height: 1.35; }
.mock * { box-sizing: border-box; }

.laptop { position: relative; }
.laptop-screen { background: #0b0b0b; border: 0.9em solid #0b0b0b; border-radius: 1.6em 1.6em 0 0; box-shadow: 0 0 0 1px #3a3a3a, 0 40px 80px rgba(0,0,0,.55); }
.laptop-base { height: 1.6em; margin: 0 -6%; background: linear-gradient(#cfd1d3, #8d9093); border-radius: 0 0 1.6em 1.6em; position: relative; }
.laptop-base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: .6em; background: #6f7275; border-radius: 0 0 .6em .6em; }

.app { display: grid; grid-template-columns: 17em 1fr; background: #f5f6f7; border-radius: .6em; overflow: hidden; min-height: 44em; }
.app-side { background: #161718; color: #e8e8e8; padding: 1.6em 1.2em; }
.app-logo { text-align: center; margin-bottom: 1.6em; }
.app-logo img { width: 3.4em; margin: 0 auto .3em; }
.app-logo span { font-size: 1.7em; font-weight: 500; }
.app-beta { background: var(--accent); color: #fff; border-radius: .5em; padding: .7em 1em; font-weight: 600; margin-bottom: 1.4em; display: flex; gap: .6em; align-items: center; }
.app-nav { list-style: none; margin: 0; padding: 0; }
.app-nav li { padding: .72em .6em; display: flex; align-items: center; gap: .8em; color: #cfcfcf; border-radius: .4em; }
.app-nav li.on { background: #26282a; color: #fff; }
.app-nav i { width: 1.1em; height: 1.1em; border: .13em solid currentColor; border-radius: .3em; opacity: .8; flex: none; }

.app-main { padding: 0 0 1.6em; }
.app-top { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 1.2em 2em; border-bottom: 1px solid #e6e7e9; }
.app-top b { font-size: 1.05em; }
.app-user { display: flex; align-items: center; gap: 1.2em; text-align: right; }
.app-user small { display: block; color: #7a7d82; font-size: .85em; }
.app-btn { border: 1px solid #d5d7da; border-radius: .5em; padding: .6em 1.1em; font-weight: 600; background: #fff; }
.app-body { padding: 1.8em 2em 0; }
.app-body h4 { font-size: 1.9em; margin: 0 0 .2em; }
.app-sub { color: #7a7d82; margin: 0 0 1.8em; }
.app-label { text-transform: uppercase; letter-spacing: .12em; font-size: .85em; color: #6c6f74; font-weight: 600; margin: 0 0 .8em; }
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid #e6e7e9; border-radius: .7em; margin-bottom: 2em; }
.app-kpis div { padding: 1.3em 1.4em; border-left: 1px solid #e6e7e9; }
.app-kpis div:first-child { border-left: 0; }
.app-kpis strong { display: block; font-size: 2.2em; line-height: 1.1; }
.app-kpis span { text-transform: uppercase; letter-spacing: .08em; font-size: .78em; color: #6c6f74; }
.app-events { display: grid; gap: .7em; }
.app-events div { background: #fff; border: 1px solid #e6e7e9; border-radius: .7em; padding: 1em 1.3em; display: flex; align-items: center; gap: 1.1em; font-weight: 600; }
.app-events i { width: 2.4em; height: 2.4em; border-radius: 50%; border: .13em solid #3a3d41; flex: none; }

.phone { width: 25em; background: #0d0d0e; border-radius: 3.6em; padding: 1em; box-shadow: 0 0 0 .25em #6d7074, 0 30px 70px rgba(0,0,0,.6); }
.phone-screen { background: #f5f6f7; border-radius: 2.8em; overflow: hidden; padding: 1.4em 1.6em 2em; min-height: 50em; position: relative; }
.phone-status { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05em; margin-bottom: 1.6em; }
.phone-avatar { width: 5.6em; height: 5.6em; border-radius: 50%; background: #e7e8ea; display: grid; place-items: center; font-size: 1.5em; margin: 1.4em auto .6em; color: #3b3e42; }
.phone h5 { text-align: center; font-size: 1.55em; margin: 0; }
.phone .p-sub { text-align: center; color: #7a7d82; margin: .3em 0 1.6em; }
.phone-beta { background: var(--accent); color: #fff; border-radius: .8em; padding: 1em 1.2em; margin-bottom: 1.2em; }
.phone-beta b { display: block; }
.phone-card { background: #fff; border: 1px solid #e6e7e9; border-radius: 1em; padding: 1.6em 1.3em; text-align: center; }
.phone-card .qr { width: 3.8em; height: 3.8em; border: .15em solid #222; border-radius: 50%; margin: 0 auto 1em; display: grid; place-items: center; }
.phone-card .qr::before { content: ""; width: 1.5em; height: 1.5em; border: .15em dashed #222; }
.phone-card b { display: block; font-size: 1.2em; margin-bottom: .5em; }
.phone-card p { color: #6c6f74; margin: 0 0 1.3em; }
.phone-cta { background: #16171a; color: #fff; border-radius: .7em; padding: 1em; font-weight: 600; }

.hero-mockup { position: relative; padding-right: 8%; }
.hero-mockup .phone { position: absolute; right: 0; bottom: -2em; }
@media (max-width: 900px) { .hero-mockup { margin-top: 12px; } }

/* Zielgruppen & Rollen */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; font-size: .95rem; color: #e4e4e1; background: var(--surface); }
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.role { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 16px; text-align: center; background: var(--bg); }
.role svg { width: 26px; height: 26px; stroke: #d6d7d3; margin: 0 auto 10px; display: block; }
.role span { font-size: .95rem; }
@media (max-width: 900px) { .roles { grid-template-columns: repeat(2, 1fr); } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.sub-h { text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; color: var(--muted); margin: 0 0 16px; font-weight: 600; }

/* Organisation (mehrere ...) */
.org-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.org-list div { border-left: 2px solid var(--accent); padding: 6px 0 6px 14px; color: #e4e4e1; }
@media (max-width: 700px) { .org-list { grid-template-columns: repeat(2, 1fr); } }

/* Zukunft */
.future { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.future-item { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 20px 18px; }
.future-item .tag { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: #ffd2cd; border: 1px solid rgba(229,57,45,.55); border-radius: 999px; padding: 3px 9px; margin-bottom: 12px; }
.future-item h3 { font-size: 1.02rem; margin: 0; }
@media (max-width: 1000px) { .future { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .future { grid-template-columns: 1fr; } }

/* Über KRENDI */
.about { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about img { width: 100%; max-width: 220px; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; } .about img { max-width: 140px; } }

/* CTA-Band */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(64px, 9vw, 110px) 0;
  background: radial-gradient(900px 400px at 50% 0%, #2a2c2a, var(--bg) 70%); border-top: 1px solid var(--line); }
.cta-band h2 { text-transform: uppercase; letter-spacing: .06em; }
.cta-band .red-rule, .cta-band .lead { margin-left: auto; margin-right: auto; }
.cta-band .pills { justify-content: center; }
.cta-band .hero-actions { justify-content: center; }

/* Telefon-Kontaktzeile unter den Kontakt-Schaltflächen: rote Akzentlinie (wie .red-rule, verkleinert),
   Einleitung in Grau, Nummer in Weiß mit schmaler roter Unterstreichung. */
.contact-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 22px 0 0; color: var(--muted); font-size: .98rem; }
.contact-direct::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
/* Nummer (PO-Variante 3): weiß, gleiche Größe wie die Einleitung, etwas kräftiger, schmale rote Unterstreichung
   bereits im Normalzustand; ohne Rahmen. Hover: Unterstreichung im helleren Akzentrot. Tastaturfokus: die
   globale KRENDI-Fokusmarkierung (:focus-visible) bleibt. */
.contact-direct__tel { color: #fff; font-size: inherit; font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-direct__tel:hover { text-decoration-color: var(--accent-hover); }
@media (max-width: 560px) {
  .contact-direct { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; }
  .contact-direct::before { grid-row: 1; grid-column: 1; }
  .contact-direct__label { grid-row: 1; grid-column: 2; }
  .contact-direct__tel { grid-row: 2; grid-column: 2; justify-self: start; }
}

/* Feinschliff Hero-Mockup */
.hero--product h1 { font-size: clamp(2.2rem, 4.3vw, 3.5rem); }
.hero-mockup { padding-right: 12%; }
.hero-mockup .phone { font-size: .6em; right: 0; bottom: -3.5em; }
.laptop-base { margin: 0 -4%; }
.mock { max-width: 100%; }
@media (max-width: 560px) {
  .laptop-base { margin: 0 -2%; }
  .app { grid-template-columns: 14em 1fr; }
}
.split.app-split { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 900px) { .split.app-split { grid-template-columns: 1fr; } }

/* ==========================================================
   UI-Mockups (HTML/CSS, skaliert über font-size)
   ========================================================== */
.mock { font-size: clamp(6px, 0.8vw, 10px); color: #111827; line-height: 1.35; }
.laptop-screen { background: #0b0b0b; border: .9em solid #0b0b0b; border-radius: 1.6em 1.6em 0 0; box-shadow: 0 30px 60px rgba(17,24,39,.25); }
.laptop-base { height: 1.5em; margin: 0 -4%; background: linear-gradient(#e2e3e5, #9a9da1); border-radius: 0 0 1.6em 1.6em; position: relative; }
.laptop-base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: .6em; background: #7c7f83; border-radius: 0 0 .6em .6em; }

.m-app { display: grid; grid-template-columns: 17em 1fr; background: #f5f6f8; border-radius: .5em; overflow: hidden; min-height: 44em; }
.m-side { background: #1f1f1f; color: #e5e7eb; padding: 1.6em 1em; }
.m-logo { text-align: center; margin-bottom: 1.4em; }
.m-logo img { width: 3.2em; margin: 0 auto .2em; }
.m-logo span { font-size: 2em; font-weight: 600; color: #b5b5b5; }
.m-beta { background: #dd524c; color: #fff; border-radius: .5em; padding: .8em 1em; font-weight: 600; margin-bottom: 1.2em; }
.m-nav { list-style: none; margin: 0; padding: 0; }
.m-nav li { display: flex; align-items: center; gap: .9em; padding: .62em .5em; white-space: nowrap; }
.m-nav svg { width: 1.3em; height: 1.3em; stroke: #e5e7eb; }
.m-main { min-width: 0; }
.m-top { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 1.1em 1.8em; border-bottom: 1px solid #e5e7eb; }
.m-user { display: flex; gap: 1em; align-items: center; text-align: right; }
.m-user small { display: block; color: #6b7280; }
.m-btn { border: 1px solid #e5e7eb; border-radius: .5em; padding: .5em 1em; font-weight: 600; background: #fff; }
.m-body { padding: 1.8em; }
.m-body h4 { font-size: 2em; margin: 0 0 .15em; }
.m-sub { color: #6b7280; margin: 0 0 1.6em; }
.m-label { display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .12em; font-size: .85em; color: #6b7280; font-weight: 600; margin: 0 0 .8em; }
.m-label i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid #e5e7eb; border-radius: .7em; margin-bottom: 1.8em; }
.m-kpis div { padding: 1.2em 1.3em; border-left: 1px solid #e5e7eb; }
.m-kpis div:first-child { border-left: 0; }
.m-kpis strong { display: block; font-size: 2.3em; line-height: 1.1; }
.m-kpis span { text-transform: uppercase; letter-spacing: .08em; font-size: .78em; color: #6b7280; }
.m-events { background: #fff; border: 1px solid #e5e7eb; border-radius: .7em; padding: 0 1.3em; }
.m-events div { display: flex; align-items: center; gap: 1em; padding: .9em 0; border-top: 1px solid #e5e7eb; font-weight: 600; }
.m-events div:first-child { border-top: 0; }
.m-events .c { width: 2.6em; height: 2.6em; border-radius: 50%; border: .14em solid #111827; display: grid; place-items: center; flex: none; }
.m-events .c svg { width: 1.2em; height: 1.2em; stroke: #111827; }
.m-events em { margin-left: auto; font-style: normal; color: #6b7280; font-weight: 500; }

.m-phone { width: 25em; background: #0d0d0e; border-radius: 3.6em; padding: 1em; box-shadow: 0 0 0 .25em #9a9da1, 0 30px 60px rgba(17,24,39,.3); }
.m-phone-screen { background: #f5f6f8; border-radius: 2.8em; overflow: hidden; padding: 1.4em 1.6em 2em; min-height: 50em; }
.m-status { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05em; margin-bottom: 1.4em; }
.m-avatar { width: 5.6em; height: 5.6em; border-radius: 50%; background: #e5e7eb; display: grid; place-items: center; font-size: 1.5em; margin: 1.4em auto .6em; color: #374151; }
.m-phone h5 { text-align: center; font-size: 1.55em; margin: 0; }
.m-psub { text-align: center; color: #6b7280; margin: .3em 0 1.6em; }
.m-pbeta { background: #dd524c; color: #fff; border-radius: .8em; padding: 1em 1.2em; margin-bottom: 1.2em; }
.m-pbeta b { display: block; }
.m-pcard { background: #fff; border: 1px solid #e5e7eb; border-radius: 1em; padding: 1.6em 1.3em; text-align: center; }
.m-pcard .c { width: 3.8em; height: 3.8em; border: .15em solid #111827; border-radius: 50%; margin: 0 auto 1em; display: grid; place-items: center; }
.m-pcard .c svg { width: 1.7em; height: 1.7em; stroke: #111827; }
.m-pcard b { display: block; font-size: 1.2em; margin-bottom: .5em; }
.m-pcard p { color: #6b7280; margin: 0 0 1.3em; }
.m-pcta { background: #1f1f1f; color: #fff; border-radius: .7em; padding: 1em; font-weight: 600; }
/* Smartphone-Illustration: zwei getrennte Bereiche (Praxisanleitung / Einsatzbeobachtung) */
.m-avatar--icon svg { width: 1.5em; height: 1.5em; stroke: #374151; }
.m-pcards { display: grid; gap: .9em; margin-bottom: 1.2em; }
.m-pcard--kompakt { display: grid; grid-template-columns: 3.2em 1fr; column-gap: 1em; align-items: start; text-align: left; padding: 1.2em 1.1em; }
.m-pcard--kompakt .c { width: 3.2em; height: 3.2em; margin: 0; grid-row: 1 / span 3; }
.m-pcard--kompakt .c svg { width: 1.45em; height: 1.45em; }
.m-pcard--kompakt b { font-size: 1.15em; margin-bottom: .25em; }
.m-pcard--kompakt p { margin: 0 0 .6em; font-size: .95em; line-height: 1.35; }
.m-prole { justify-self: start; font-size: .78em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #374151; border: 1px solid #d1d5db; border-radius: 999px; padding: .2em .8em; }
.m-pcta { text-align: center; }

.hero-mock { position: relative; padding-right: 11%; padding-bottom: 2em; }
.hero-mock .m-phone { position: absolute; right: 0; bottom: 0; font-size: .62em; }


/* Mockups auf dunklem Hintergrund */
.laptop-screen { box-shadow: 0 0 0 1px #3a3a3a, 0 40px 80px rgba(0,0,0,.55); overflow: hidden; }
.laptop { max-width: 760px; margin: 0 auto; }
.laptop-screen .m-app { aspect-ratio: 16 / 10; min-height: 0; overflow: hidden; font-size: .72em; }
.m-side { overflow: hidden; }
.laptop-base { margin: 0 -3%; height: 1.2em; }
.m-phone { box-shadow: 0 0 0 .25em #6d7074, 0 30px 70px rgba(0,0,0,.6); }
.hero-mock { position: relative; padding-right: 11%; padding-bottom: 2em; }
.hero-mock .m-phone { position: absolute; right: 0; bottom: 0; font-size: .62em; }
.hero-mock.mock { font-size: clamp(5.5px, 0.7vw, 9px); }
@media (max-width: 900px) { .hero-mock.mock { font-size: clamp(5.5px, 1.3vw, 10px); } }
.split .mock { max-width: 620px; margin: 0 auto; }


/* Rechtstexte: Entwurfshinweise in Grau */
.placeholder { background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.35); color: #e6e6e3; font-style: italic; }
.draft-note { border: 1px dashed rgba(255,255,255,.35); background: rgba(255,255,255,.05); color: #e6e6e3; border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 32px; }

/* Kleinigkeiten */
.feature-card { padding: 0; }
.org-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 28px 0 40px; }
.org-tiles div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 16px; background: var(--surface); }
.org-tiles svg { width: 24px; height: 24px; stroke: #e6e6e3; margin-bottom: 10px; }
.org-tiles span { display: block; font-size: .95rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 1100px) { .org-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .org-tiles { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .icon-badge { width: 44px; height: 44px; }
.contact-list .icon-badge svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); }
.contact-list a { color: #fff; }
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.features > *, .values > *, .split > *, .demo-grid > *, .hero-grid > * { min-width: 0; }
.compare-arrow span { background: var(--accent); }
.compare-arrow svg { stroke: #fff; }
.nav-toggle svg { stroke: currentColor; }
.byline img { height: 22px; }

.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }

/* Dashboard + App gemeinsam (Laptop mit Handy) */
.duo { position: relative; padding-right: 11%; padding-bottom: 2em; }
.duo .m-phone { position: absolute; right: 0; bottom: 0; font-size: .62em; }
.split .mock.duo { max-width: 680px; }
.pc-media .mock.duo { font-size: clamp(5.5px, 0.7vw, 9px); width: 100%; }
.nav .btn-primary { min-width: 150px; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.form-note a { color: #fff; }
.legal .ds-list { margin: 0 0 1em; padding-left: 1.3em; color: #dcdcd9; }
.legal .ds-list li { margin-bottom: 6px; }
.ds-toc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 18px 22px; margin: 24px 0 8px; }
.ds-toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.ds-toc li { margin: 4px 0; break-inside: avoid; font-size: .95rem; }
.ds-toc a { color: #dcdcd9; text-decoration: none; }
.ds-toc a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 700px) { .ds-toc ol { columns: 1; } }
.legal h2 { scroll-margin-top: 90px; }
.ds-toc li:first-child { margin-top: 0; }

/* ===== Rechtliche Seiten im Seitenlayout ===== */
.legal-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); }
.legal-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.legal-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.legal-toc { position: sticky; top: 88px; }
.legal-toc .ds-toc { margin: 0; }
.legal-toc .ds-toc ol { columns: 1; }
.legal-body { display: grid; gap: 16px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.legal-card { min-width: 0; overflow-wrap: break-word; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); scroll-margin-top: 90px; }
.legal-card .eyebrow { margin-bottom: 6px; color: var(--accent); }
.legal-card h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-bottom: 16px; }
.legal-card p { color: #dcdcd9; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card .pn { color: #fff; }
.legal-card .ds-list { margin: 0 0 1em; }
.legal-card .ds-list li { margin-bottom: 8px; }
.legal-card .addr { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.legal-card a { color: #fff; }
.legal-card.legal h2 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.legal-card.legal h2:first-of-type { margin-top: .4em; }
@media (max-width: 960px) { .legal-grid { grid-template-columns: 1fr; } .legal-toc { position: static; } .legal-toc .ds-toc ol { columns: 2; } }
@media (max-width: 600px) { .legal-toc .ds-toc ol { columns: 1; } }
.legal-toc .ds-toc { max-height: calc(100vh - 110px); overflow-y: auto; } .legal-toc .ds-toc li { font-size: .9rem; }

/* ===== Tabellen, Downloads ===== */
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: #dcdcd9; }
.legal-table th { color: #fff; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.04); }
.legal-card .ds-ol { margin: 0 0 1em; padding-left: 1.4em; color: #dcdcd9; }
.legal-card .ds-ol li { margin-bottom: 6px; }
.toc-dl { width: 100%; margin-top: 16px; }
.dl-list { display: grid; gap: 12px; }
.dl-item { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, transform .2s; }
.dl-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.dl-item > span:nth-child(2) { flex: 1; min-width: 0; }
.dl-item strong { display: block; font-size: 1.08rem; }
.dl-item small { display: block; color: var(--muted); }
.dl-arrow { width: 22px; height: 22px; stroke: var(--accent); transform: rotate(90deg); flex: none; }
.principle a { color: #fff; }
.site-footer nav { row-gap: 10px; }
.values h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.values > * { min-width: 0; }
.dl-item { min-width: 0; }
.dl-item small { overflow-wrap: anywhere; }

/* Nach-oben-Button */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .15s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-hover); }
.to-top svg { width: 22px; height: 22px; stroke: #fff; transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ===== Schrift: Inter (selbst gehostet, falls Dateien vorhanden) ===== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Inter-Bold.woff2") format("woff2"); }
:root { --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif; }

/* ===== Kontrast: Buttons mit dunklerem Rot (WCAG AA, 4,7:1) ===== */
:root { --btn-red: #d93428; --btn-red-hover: #c42d22; }
.btn-primary, .to-top { background: var(--btn-red); }
.btn-primary:hover, .to-top:hover { background: var(--btn-red-hover); }
.legal-card .eyebrow, .future-item .tag { color: #f26d63; }
.skip-link { background: var(--btn-red); }

/* Funktionen 2x2 und App-Kacheln */
.features.four { grid-template-columns: 1fr 1fr; row-gap: 44px; }
.features.four .feature:nth-child(odd) { border-left: 0; padding-left: 0; }
.features.four .feature:nth-child(even) { padding-left: clamp(24px, 4vw, 56px); }
@media (max-width: 900px) {
  .features.four { grid-template-columns: 1fr; }
  .features.four .feature:nth-child(even) { padding-left: 0; }
  .features.four .feature + .feature { border-top: 1px solid var(--line); padding-top: 40px; }
}
.values.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .values.three { grid-template-columns: 1fr; } }

/* ===== Über uns ===== */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }
.person { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } }
.person-photo { width: 160px; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 25%, #3a3c3b, #1e1f1e 70%); border: 1px solid var(--line-strong); position: relative; }
.person-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); }
.person-photo span { font-size: 2.6rem; font-weight: 600; letter-spacing: .08em;
  background: linear-gradient(135deg, #8e9396, #f0f0f0 50%, #8e9396); -webkit-background-clip: text; background-clip: text; color: transparent; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.4rem; margin: 0 0 4px; }
.person-role { color: var(--accent); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin: 0 0 14px; }
.person-tags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.person-tags li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font-size: .82rem; color: #e2e2df; }
.person-body p { color: #dcdcd9; }
.person-body p:last-child { margin-bottom: 0; }
.team { grid-template-columns: 1fr; gap: 16px; }
.person { grid-template-columns: 200px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.person-photo { width: 200px; }
.person-body { max-width: 720px; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; } .person-photo { width: 150px; } }

/* ===== FAQ ===== */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 20px; height: 20px; stroke: var(--accent); transform: rotate(90deg); transition: transform .2s; flex: none; }
.faq-item[open] summary svg { transform: rotate(-90deg); }
.faq-item summary:hover span { color: #fff; }
.faq-a { padding: 0 22px 18px; }
.faq-a p { margin: 0; color: #dcdcd9; }
.faq-a a { color: #fff; }
section[id] { scroll-margin-top: 68px; }
h1, .no-hyphen { hyphens: manual; -webkit-hyphens: manual; }

/* ---------- Kundenbereich ---------- */
.portal-main { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.portal-hero-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: relative; overflow: hidden; }
.portal-hero-tile::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--btn-red, var(--accent)); }
.portal-hero-tile .feature-head { margin: 0; }
.portal-hero-tile .feature-head h3 { text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.05rem; margin: 0; line-height: 1.35; }
.portal-hero-tile p { margin: 0; color: #e6e6e3; font-size: 1.05rem; }
.portal-hero-tile small { color: var(--muted); }
.portal-hero-tile .btn { margin-top: 4px; }
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.portal-tile { display: flex; align-items: flex-start; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; min-width: 0; }
.portal-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.portal-tile > span:nth-child(2) { flex: 1; min-width: 0; }
.portal-tile strong { display: block; font-size: 1.05rem; margin: 4px 0 6px; hyphens: auto; -webkit-hyphens: auto; }
.portal-tile small { display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.tile-arrow { width: 20px; height: 20px; stroke: var(--accent); flex: none; margin-top: 6px; }
.portal-service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.status-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.status-card .sub-h { margin: 0 0 14px; }
.status-line { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 1.15rem; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--faint); flex: none; box-shadow: 0 0 0 5px rgba(255,255,255,.06); }
.status-card[data-state="ok"] .status-dot { background: #3fa36b; box-shadow: 0 0 0 5px rgba(63,163,107,.18); }
.status-card[data-state="wartung"] .status-dot { background: #e0a526; box-shadow: 0 0 0 5px rgba(224,165,38,.18); }
.status-card[data-state="stoerung"] .status-dot { background: var(--accent); box-shadow: 0 0 0 5px rgba(229,57,45,.2); }
.status-text { color: var(--muted); margin: 0 0 10px; }
.status-text a { color: var(--text); }
.status-stand { color: var(--faint); }
@media (max-width: 980px) { .portal-grid { grid-template-columns: 1fr 1fr; } .portal-service { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .portal-main, .portal-grid { grid-template-columns: 1fr; } }
.nav a { white-space: nowrap; }
@media (min-width: 821px) { .nav .btn + .btn { margin-left: -12px; } }
@media (min-width: 821px) and (max-width: 1060px) { .nav { gap: 18px; } .nav .btn { padding-left: 18px; padding-right: 18px; } .nav .btn + .btn { margin-left: -8px; } }
/* Kundenbereich: bei mittlerer Breite "Start" ausblenden (Logo führt ebenfalls zur Startseite) */
@media (min-width: 821px) and (max-width: 980px) { .nav:has(.btn + .btn) > a:first-child { display: none; } }

/* ---------- Pilotprojekt 2027 ---------- */
.pilot-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 6px 14px 6px 6px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); text-decoration: none; font-size: .92rem; background: rgba(255,255,255,.03); }
.pilot-badge span { background: var(--btn-red, var(--accent)); color: #fff; border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: .82rem; letter-spacing: .02em; }
.pilot-badge:hover { border-color: rgba(255,255,255,.4); }
.pilot-badge span { white-space: nowrap; }
@media (max-width: 380px) { .pilot-badge { font-size: .85rem; gap: 8px; } .pilot-badge span { font-size: .76rem; padding: 3px 8px; } }
.pilot-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.pilot-facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; border-top: 3px solid var(--btn-red, var(--accent)); }
.pilot-facts strong { display: block; font-size: 1.5rem; margin-bottom: 4px; }
.pilot-facts span { color: var(--muted); }
.pilot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pilot-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); min-width: 0; }
.pilot-card h3 { text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; margin: 0 0 16px; }
.pilot-cost { margin: 0 0 28px; padding: 16px 22px; border: 1px solid var(--line-strong); border-left: 3px solid var(--btn-red, var(--accent)); border-radius: var(--radius-sm); background: var(--surface); color: #e4e4e1; }
.pilot-cost strong { color: #fff; }
.role small { display: block; margin-top: 6px; font-size: .82rem; line-height: 1.35; color: var(--muted); }
.pilot-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: none; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; min-width: 0; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 2px; background: var(--line-strong); }
.steps b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--btn-red, var(--accent)); font-weight: 700; }
.steps span { font-weight: 600; font-size: .98rem; }
.steps small { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; margin-top: 2px; }
@media (max-width: 900px) {
  .pilot-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps li { flex-direction: row; text-align: left; }
  .steps li::after { display: none; }
}
@media (max-width: 640px) { .pilot-facts { grid-template-columns: 1fr; } }

/* ---------- News-Ticker (Startseite) ---------- */
.ticker { background: #101110; border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: center; gap: 14px; height: 44px; }
.ticker-label { flex: none; background: var(--btn-red, var(--accent)); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; white-space: nowrap; }
.ticker-track li { padding: 0 28px; position: relative; font-size: .95rem; color: #e6e6e3; }
.ticker-track li::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.ticker-track a { color: inherit; text-decoration: none; }
.ticker-track a:hover, .ticker-track a:focus { text-decoration: underline; color: #fff; }
.ticker.is-running .ticker-track { animation: ticker-scroll var(--ticker-duration, 40s) linear infinite; }
.ticker.is-paused .ticker-track, .ticker.is-running:hover .ticker-track, .ticker.is-running:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-pause { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; display: grid; place-items: center; }
.ticker-pause span { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.ticker.is-paused .ticker-pause span { width: 0; height: 0; border: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.ticker-pause:hover, .ticker-pause:focus-visible { border-color: rgba(255,255,255,.5); }
@media (prefers-reduced-motion: reduce) {
  .ticker.is-running .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
  .ticker-pause { display: none; }
}

/* ---------- Produkt-Schaufenster: aktuelles Dashboard der Ausbildungsabteilung und zwei App-Startbildschirme ---------- */
/* Laptop: Seitenleiste mit zugeklappten Tätigkeitsgruppen, nächste fällige Aufgabe, vier Arbeitskacheln (Beispieldaten) */
.m-nav li.aktiv { background: #2f3032; color: #fff; font-weight: 600; border-radius: .5em; }
.m-nav li em { margin-left: auto; font-style: normal; font-size: .8em; background: rgba(255,255,255,.18); border-radius: 999px; padding: .05em .6em; }
.m-sep { height: 1px; background: rgba(255,255,255,.1); margin: .8em .3em; }
.m-grp { list-style: none; margin: 0; padding: 0; }
.m-grp li { display: flex; justify-content: space-between; align-items: center; padding: .62em .5em; color: #d1d5db; white-space: nowrap; }
.m-grp li::after { content: ""; width: .45em; height: .45em; border-right: .13em solid #9ca3af; border-bottom: .13em solid #9ca3af; transform: rotate(45deg); margin: 0 .3em .25em; }
.m-nfa { display: flex; justify-content: space-between; align-items: center; gap: 1em; background: #fff; border: 1px solid #e5e7eb; border-radius: .7em; padding: 1.1em 1.3em; margin-bottom: 1.3em; }
.m-nfa b, .m-nfa small { display: block; }
.m-nfa small, .m-frist { color: #6b7280; }
.m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .9em; }
.m-tiles > div { background: #fff; border: 1px solid #e5e7eb; border-radius: .7em; padding: 1.1em 1.3em; display: flex; flex-direction: column; gap: .25em; min-height: 7.4em; }
.m-tiles .t { text-transform: uppercase; letter-spacing: .06em; font-size: .78em; font-weight: 700; color: #6b7280; margin-bottom: .5em; }
.m-tiles strong { font-size: 2.1em; line-height: 1; }
.m-fakten { display: flex; gap: 2.4em; }
.m-fakten > span { display: flex; flex-direction: column; gap: .25em; }
.m-fakten i { display: block; width: 1.8em; height: .28em; border-radius: .2em; }
.m-fakten i.gelb { background: #F9A825; }
.m-fakten i.rot { background: #D32F2F; }

/* Smartphones: Startbildschirm Praxisanleitende (Auswahl, Nachrichten, offene Praxisanleitungen) */
.m-ptext { text-align: left; margin: 0 0 1em; }
.m-ptext b { display: block; font-size: 1.15em; margin-bottom: .3em; }
.m-ptext p { color: #6b7280; margin: 0; }
.m-ptile { display: flex; align-items: center; gap: .8em; background: #fff; border: 1px solid #e5e7eb; border-radius: 1em; padding: 1em 1.1em; margin-top: .8em; text-align: left; font-weight: 600; }
.m-ptile .c { width: 2.6em; height: 2.6em; border-radius: 50%; border: .14em solid #111827; display: grid; place-items: center; flex: none; }
.m-ptile .c svg { width: 1.2em; height: 1.2em; stroke: #111827; }
.m-ptile em { margin-left: auto; font-style: normal; font-size: .85em; background: #1f1f1f; color: #fff; border-radius: 999px; padding: .2em .7em; }

/* Inszenierung: Lichtakzent hinter dem Laptop, Kontaktschatten, eng gruppierte Smartphones mit Rollenbeschriftung */
.mock.duo, .hero-mock { isolation: isolate; padding-bottom: calc(2em + 38px); }
.mock.duo::before, .hero-mock::before { content: ""; position: absolute; z-index: -1; left: -6%; right: -2%; top: -8%; bottom: 18%; pointer-events: none;
  background: radial-gradient(ellipse 58% 60% at 46% 48%, rgba(255,255,255,.075), rgba(255,255,255,0) 70%); }
.mock.duo::after, .hero-mock::after { content: ""; position: absolute; z-index: -1; left: 0; right: 12%; bottom: calc(2em + 38px - 1.5em); height: 3em; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.6), rgba(0,0,0,0) 70%); filter: blur(3px); }
.mock .m-phones { position: absolute; right: 0; bottom: 38px; display: flex; align-items: flex-end; z-index: 2; }
.mock .m-phones .m-phone { position: relative; right: auto; bottom: auto; }
.mock .m-phones .m-phone--nfs { font-size: .54em; margin-right: -3.2em; margin-bottom: 1.8em; z-index: 1; }
.mock .m-phones .m-phone--pal { font-size: .62em; z-index: 2; }
.m-rolle { position: absolute; top: calc(100% + 10px); z-index: 3; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 600 12px/1.2 var(--font); letter-spacing: .01em; color: #fff; background: rgba(22,23,22,.92); border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 4px 10px; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.m-rolle::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
/* Breitenverhältnis der Gruppe: Smartphone Praxisanleitende ≈ 57 %. Beschriftung Praxisanleitende mittig unter dem eigenen Gerät
   (bei schmalen Geräten bündig rechts); Beschriftung Notfallsanitäter links daneben unter dem eigenen Gerät. */
.m-rolle--pal { right: max(0px, calc(28.4% - 62px)); }
.m-rolle--nfs { right: calc(max(56.8%, 126px) + 10px); }

/* Schmale Bildschirme: Smartphones als Gruppe unter dem Laptop, deutlich größer */
@media (max-width: 600px) {
  .mock.duo, .hero-mock { padding-right: 0; padding-bottom: 48px; }
  .mock.duo::after, .hero-mock::after { display: none; }
  .mock .m-phones { position: relative; right: auto; bottom: auto; width: max-content; margin: -3em auto 0; }
  .mock .m-phones .m-phone--nfs { font-size: .9em; }
  .mock .m-phones .m-phone--pal { font-size: 1.04em; }
  .m-rolle--nfs { left: 0; right: auto; }
  .m-rolle--pal { right: 0; }
}
/* Tablet: Illustrationen in einspaltiger Darstellung nicht zu klein werden lassen */
@media (min-width: 601px) and (max-width: 900px) {
  .pc-media .mock.duo, .split .mock.duo { font-size: clamp(7px, 1.2vw, 10px); }
}
