/* temporis B – KI & Automatisierung */

:root {
  /* Palette wie temporis-b.de (Logo-Farben) */
  --navy-950: #0f2742;
  --navy-900: #16345c;
  --navy-800: #1b4170;
  --navy-700: #1f6fb2;
  --blue: #1f6fb2;
  --blue-dark: #175a92;
  --sky: #29abe2;
  --sky-ink: #1f6fb2;
  --sky-50: #eaf4fb;
  --lime: #bfe6f7;
  --lime-600: #29abe2;
  --lime-ink: #175a92;
  --kicker: #7fd4f5;
  --ink: #22303f;
  --muted: #5b6b7b;
  --line: #e2e8f0;
  --mist: #f4f7fb;
  --paper: #ffffff;
  --on-navy: #ffffff;
  --on-navy-muted: #c3d3e6;
  --error: #b42318;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 14px rgb(22 52 92 / .08);
  --shadow: 0 10px 30px rgb(22 52 92 / .10);
  --shadow-lg: 0 18px 48px rgb(15 39 66 / .22);
  --hero-gradient: linear-gradient(120deg, #0f2742 0%, #16345c 45%, #1f6fb2 100%);

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 24px);
  --section: clamp(56px, 7vw, 76px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr, 76px) - 1px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--lime); color: var(--navy-950); }
input, textarea { caret-color: var(--sky); }
:root { accent-color: var(--navy-900); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; text-wrap: balance; color: var(--navy-900); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--sky-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:not(.btn, .skip):hover { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #b9c8d8 var(--mist); }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus, .skip:hover { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 14px 30px; border-radius: 40px; border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgb(31 111 178 / .55); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-sm { font-size: .95rem; padding: 10px 22px; }
.hero .btn-primary { box-shadow: 0 8px 22px -8px rgb(0 0 0 / .5); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .96);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(12 42 82 / .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none; }
.main-nav ul a:hover { background: var(--mist); color: var(--navy-900); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: clamp(56px, 8vw, 104px) 0; overflow: hidden; background: var(--hero-gradient); color: #fff; }
.hero::before {
  content: ""; position: absolute; right: -12%; top: -25%; width: 65%; height: 150%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgb(41 171 226 / .28), transparent);
}
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .95rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--kicker); }
.hero-kicker::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--sky), var(--blue)); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; color: #fff; }
.mark { color: var(--kicker); background: linear-gradient(transparent 86%, var(--sky) 86%, var(--sky) 96%, transparent 96%); padding-inline: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { margin-top: 24px; font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 34em; }
.hero .lead { color: #d4e2f1; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.phone-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--navy-900); text-decoration: none; font-variant-numeric: tabular-nums; }
.phone-link:hover { color: var(--sky-ink); }
.phone-link .i { color: var(--sky-ink); }
.hero .phone-link, .hero .phone-link:hover { color: #fff; }
.hero .phone-link .i { color: var(--kicker); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / .18); font-size: .95rem; font-weight: 600; color: #fff; }
.trust li { display: inline-flex; align-items: center; gap: .45em; }
.trust .i { width: 1.1em; height: 1.1em; color: var(--navy-950); background: var(--kicker); border-radius: 50%; padding: 2px; stroke-width: 2.5; }

/* Workflow demo panel */
.flow {
  margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px; display: grid; gap: 18px;
}
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.file-chip { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; font-size: .95rem; color: var(--navy-900); background: var(--mist); border: 1px solid var(--line); padding: 8px 12px; border-radius: 10px; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .i { color: var(--sky-ink); }
.tag { flex: none; font-size: .8rem; font-weight: 700; color: var(--muted); border: 1px dashed #b8c6d6; border-radius: 999px; padding: 4px 10px; }

.flow-steps { display: grid; gap: 2px; position: relative; }
.flow-steps li { position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; transition: background-color .35s var(--ease); }
.flow-steps li:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 38px; bottom: -12px; width: 2px; background: var(--line); }
.flow-steps .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 2px var(--lime-600); display: grid; place-items: center; }
.flow-steps .dot::after { content: ""; width: 10px; height: 6px; border: solid var(--navy-900); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.step-text { display: grid; line-height: 1.3; }
.step-text strong { font-size: .98rem; color: var(--navy-900); }
.step-text small { font-size: .85rem; color: var(--muted); }
.flow-steps .state { font-size: .8rem; font-weight: 700; color: var(--lime-ink); }

.fields { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fields div { background: var(--paper); padding: 10px 14px; min-width: 0; }
.fields div:last-child { grid-column: 1 / -1; }
.fields dt { font-size: .78rem; font-weight: 600; color: var(--muted); }
.fields dd { margin: 2px 0 0; font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; min-height: 1.6em; overflow-wrap: anywhere; }
.flow-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--muted); }
.flow-foot > span { display: inline-flex; align-items: center; gap: 8px; }
.flow-foot .i { color: var(--sky-ink); }
.replay { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; font-size: .85rem; color: var(--sky-ink); background: none; border: 0; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.replay:hover { background: var(--sky-50); }

/* Animated states (only when JS runs the demo) */
.flow.is-running .flow-steps li { opacity: .5; }
.flow.is-running .flow-steps li .dot { background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.flow.is-running .flow-steps li .dot::after { opacity: 0; }
.flow.is-running .flow-steps li .state { opacity: 0; }
.flow .flow-steps li.active { opacity: 1; background: var(--sky-50); }
.flow .flow-steps li.active .dot { background: var(--paper); box-shadow: inset 0 0 0 2px var(--sky); }
.flow .flow-steps li.active .dot::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--sky); animation: pulse 1s var(--ease) infinite; }
.flow .flow-steps li.active .state { opacity: 1; color: var(--sky-ink); }
.flow.is-running .flow-steps li.done { opacity: 1; }
.flow.is-running .flow-steps li.done .dot { background: var(--lime); box-shadow: inset 0 0 0 2px var(--lime-600); }
.flow.is-running .flow-steps li.done .dot::after { opacity: 1; }
.flow.is-running .flow-steps li.done .state { opacity: 1; color: var(--lime-ink); }
.fields dd.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--sky); animation: blink .8s steps(1) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.25); opacity: .25; } }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.section { padding-block: var(--section); }
.section-mist { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2, .split-copy h2, .faq-intro h2, .contact-copy h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
.section-head h2::before, .split-copy h2::before, .faq-intro h2::before, .contact-copy h2::before { content: ""; display: block; width: 48px; height: 4px; margin-bottom: 18px; border-radius: 2px; background: linear-gradient(90deg, var(--sky), var(--blue)); }
.section-head p, .split-copy p, .faq-intro p, .contact-copy > p { margin-top: 18px; font-size: 1.15rem; color: var(--muted); max-width: 40em; }

/* Tabs */
.tabs { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.tab-list { display: grid; gap: 6px; position: sticky; top: 100px; }
.tab-list [role="tab"] {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--navy-900);
  background: transparent; border: 1px solid transparent; border-radius: var(--radius); padding: 16px 18px; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tab-list [role="tab"] .i { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--mist); color: var(--navy-800); transition: background-color .2s, color .2s; }
.tab-list [role="tab"]:hover { background: var(--mist); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); }
.tab-list [role="tab"][aria-selected="true"] .i { background: var(--hero-gradient); color: #fff; }
.tab-panel { background: var(--mist); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); display: grid; gap: 32px; min-height: 100%; }
.tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline-offset: 4px; }
.tab-panel h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; }
.panel-copy p { margin-top: 14px; font-size: 1.1rem; color: var(--muted); max-width: 38em; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.checks li { position: relative; padding-left: 34px; font-weight: 600; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(.1em + 7px); width: 8px; height: 5px; border: solid var(--navy-900); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.tab-panel.entering { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Praxis band */
.band { background: var(--hero-gradient); color: var(--on-navy); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgb(26 163 227 / .22), transparent); pointer-events: none; }
.band .wrap { position: relative; }
.on-dark h2 { color: #fff; }
.on-dark p { color: var(--on-navy-muted); }
.cases { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.case { background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); display: grid; align-content: start; gap: 16px; }
.case h3 { color: #fff; font-size: 1.5rem; font-weight: 700; }
.case p { color: var(--on-navy-muted); }
.route { display: grid; gap: 10px; margin-top: 8px; counter-reset: r; }
.route li { position: relative; counter-increment: r; display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 600; color: #fff; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12); border-radius: 12px; padding: 10px 14px 10px 10px; }
.route li::before { content: counter(r); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--sky); color: var(--navy-950); font-size: .82rem; font-weight: 700; }
.route li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 100%; width: 2px; height: 10px; background: rgb(26 163 227 / .6); }
.band-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid rgb(255 255 255 / .14); }
.band-cta p { font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.btn-lime { background: #fff; color: var(--navy-900); box-shadow: 0 6px 16px -6px rgb(0 0 0 / .45); }
.btn-lime:hover { background: var(--sky-50); color: var(--navy-900); }

/* Datenschutz split */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.split-copy { position: sticky; top: 120px; }
.text-link { display: inline-flex; align-items: center; gap: .5em; margin-top: 28px; font-weight: 700; text-decoration: none; }
.text-link:hover .i { transform: translateX(3px); }
.text-link .i { transition: transform .25s var(--ease); }
.facts { display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.fact-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sky-50); color: var(--sky-ink); display: grid; place-items: center; }
.fact-icon .i { width: 26px; height: 26px; }
.facts h3 { font-size: 1.2rem; font-weight: 700; }
.facts p { margin-top: 6px; color: var(--muted); }

/* Schwerpunkte */
.focus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.focus { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(26px, 3.5vw, 40px); display: grid; align-content: start; gap: 14px; overflow: hidden; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.focus::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--sky), var(--blue)); }
.focus:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.focus-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--hero-gradient); color: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.focus-icon .i { width: 28px; height: 28px; }
.focus h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); }
.focus > p:not(.plan-kicker) { color: var(--muted); }
.focus .checks { margin-top: 4px; }
.focus .text-link { margin-top: 8px; }
.focus-head { display: grid; align-content: start; gap: 20px; }

/* Softwareentwicklung */
.sw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: start; }
.sw-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(24px, 3vw, 36px); display: grid; gap: 20px; }
.sw-card h3 { font-size: 1.3rem; }
.sw-pains { display: grid; gap: 12px; }
.sw-pains li { position: relative; padding-left: 26px; font-weight: 600; color: var(--ink); }
.sw-pains li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--sky); transform: rotate(45deg); }
.sw-steps { display: grid; gap: 18px; counter-reset: sw; }
.sw-steps li { position: relative; counter-increment: sw; display: grid; gap: 4px; padding-left: 52px; }
.sw-steps li::before { content: counter(sw); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; }
.sw-steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: -16px; width: 2px; background: var(--line); }
.sw-steps strong { color: var(--navy-900); font-size: 1.05rem; }
.sw-steps span { color: var(--muted); }
.sw-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.sw-benefits li { border-top: 4px solid var(--blue); padding-top: 18px; }
.sw-benefits h3 { font-size: 1.15rem; }
.sw-benefits p { margin-top: 6px; color: var(--muted); }
.sw-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 40px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--hero-gradient); }
.sw-cta p { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); font-weight: 700; color: #fff; }
.sw-cta .btn-primary { background: #fff; color: var(--navy-900); }
.sw-cta .btn-primary:hover { background: var(--sky-50); color: var(--navy-900); }
@media (max-width: 900px) {
  .focus-grid, .sw-grid { grid-template-columns: minmax(0, 1fr); }
  .sw-benefits { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 600px) { .sw-cta .btn { width: 100%; justify-content: center; } }

/* Lokal oder gehostet */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(24px, 3vw, 36px); display: grid; align-content: start; gap: 22px; overflow: hidden; }
.plan::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--sky), var(--blue)); }
.plan-head { display: flex; align-items: center; gap: 16px; }
.plan-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--hero-gradient); color: #fff; display: grid; place-items: center; }
.plan-icon .i { width: 26px; height: 26px; }
.plan-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.plan h3 { margin-top: 2px; font-size: 1.5rem; }
.plan-copy { color: var(--muted); }
.plan-prices { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.plan-prices div { background: var(--mist); padding: 14px 16px; display: grid; gap: 2px; align-content: start; }
.plan-prices dt { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plan-prices dd { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; line-height: 1.25; }
.plan-prices dd span { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan-prices small { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.plan-checks { grid-template-columns: 1fr; gap: 10px; }
.plan-fit { padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink); }
.plan-fit strong { color: var(--navy-900); }
.plans-note { margin-top: 24px; font-size: .92rem; color: var(--muted); max-width: 62em; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .plan-prices { grid-template-columns: minmax(0, 1fr); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 0; border-top: 2px dashed #b9c8d8; }
.steps li { position: relative; }
.step-no { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 700; font-size: 1.15rem; box-shadow: 0 0 0 8px var(--mist); }
.steps li:first-child .step-no { background: var(--blue); color: #fff; }
.steps h3 { margin-top: 22px; font-size: 1.25rem; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 700; font-size: 1.12rem; color: var(--navy-900); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border: solid var(--sky-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--sky-ink); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); max-width: 62ch; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--mist), var(--paper)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.direct { display: grid; gap: 14px; margin-top: 32px; }
.direct li { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--navy-900); }
.direct a { color: var(--navy-900); text-decoration: none; font-variant-numeric: tabular-nums; }
.direct a:hover { color: var(--sky-ink); text-decoration: underline; }
.direct .i { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--paper); color: var(--sky-ink); box-shadow: var(--shadow-sm); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 700; font-size: .95rem; color: var(--navy-900); padding: 0; }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid #c5d2df; border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #5a6c82; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #9fb2c6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgb(26 163 227 / .18); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgb(180 35 24 / .15); }
.err { color: var(--error); font-size: .9rem; font-weight: 600; }
.topics legend { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #c5d2df; font-weight: 600; font-size: .93rem; color: var(--navy-800); transition: background-color .2s, border-color .2s, color .2s; user-select: none; }
.chips label:hover span { border-color: var(--navy-700); }
.chips input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.note { font-size: .88rem; color: var(--muted); flex: 1 1 240px; }
.form-status { font-weight: 600; color: var(--navy-800); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha { display: block; --altcha-border-radius: 10px; --altcha-border-color: var(--line); --altcha-color-base: #fff; --altcha-color-primary: var(--blue); --altcha-max-width: 100%; }
.btn[disabled] { opacity: .65; pointer-events: none; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--on-navy-muted); padding-top: clamp(56px, 7vw, 88px); font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--kicker); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; }
.footer-brand img { height: 52px; width: auto; background: #fff; border-radius: 12px; padding: 8px 12px; }
.footer-brand p { margin-top: 18px; max-width: 30ch; }
.footer-h { font-size: .95rem; font-weight: 700; color: #fff; letter-spacing: 0; margin-bottom: 12px; }
.site-footer p + p { margin-top: 12px; }
.footer-links { display: grid; gap: 8px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-block: 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .88rem; }

/* Entrance: hero only, from visible default */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise .8s var(--ease) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .js .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .js .flow { animation: rise 1s var(--ease) .1s both; }
  @keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { width: 120%; height: 60%; right: -10%; top: auto; bottom: -10%; }
  .flow { max-width: 640px; }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { position: static; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .cases { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1040px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    background: var(--mist); border: 1px solid var(--line); cursor: pointer; color: var(--navy-900);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgb(12 42 82 / .35);
    padding: 12px var(--gutter) 24px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { justify-content: center; }
  .split, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .split-copy { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header-inner { height: 66px; }
  .brand img { height: 38px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .trust { gap: 10px 16px; }
  .flow { padding: 16px; }
  .flow-steps .state { display: none; }
  .flow-steps li { grid-template-columns: 28px 1fr; }
  .fields { grid-template-columns: 1fr; }
  .tab-list { grid-template-columns: 1fr; }
  .tab-list [role="tab"] { padding: 12px 14px; }
  .checks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq details p { padding-right: 0; }
}

/* Grid children may shrink below their content width */
.hero-grid > *, .tabs > *, .split > *, .faq-grid > *, .contact-grid > * { min-width: 0; }
@media (max-width: 1080px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .tab-list { display: flex; overflow-x: auto; gap: 8px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-list [role="tab"] { flex: none; width: auto; scroll-snap-align: start; border-color: var(--line); background: var(--paper); font-size: .95rem; padding: 8px 14px 8px 8px; }
  .tab-list [role="tab"] .i { width: 32px; height: 32px; padding: 7px; }
  .hero h1 { font-size: 2.35rem; }
}
.flow { grid-template-columns: minmax(0, 1fr); }
.flow-head > *, .step-text { min-width: 0; }
.flow-steps li { grid-template-columns: 28px minmax(0, 1fr) auto; }
@media (max-width: 600px) { .flow-steps li { grid-template-columns: 28px minmax(0, 1fr); } }
@media (max-width: 600px) { .flow-foot { flex-wrap: wrap; } .replay { white-space: nowrap; } }
@media (max-width: 600px) { .band-cta .btn { width: 100%; justify-content: center; } }
.cases { align-items: start; }
@media (max-width: 600px) { .flow-head { flex-wrap: wrap; } .file-chip { max-width: 100%; } }

/* Beispiele für Handwerksbetriebe (gleicher Stil wie „Aus der Praxis“) */
.cases-4 { grid-template-columns: repeat(2, 1fr); }
.cases-note { margin-top: 24px; font-size: .95rem; }
.cases-note.on-dark { color: var(--on-navy-muted); }
@media (max-width: 900px) { .cases-4 { grid-template-columns: 1fr; } }

/* Navigation bleibt einzeilig */
.brand { flex: none; }
.main-nav ul a { white-space: nowrap; }
@media (min-width: 1041px) and (max-width: 1180px) {
  .main-nav { gap: 16px; }
  .nav-cta { padding: 10px 16px; }
  .main-nav ul { gap: 0; }
  .main-nav ul a { padding: 8px 8px; font-size: .92rem; }
}
.plan-prices dd { white-space: nowrap; }
.tab-list [role="tab"] { min-width: 0; }
.tab-list [role="tab"] span { min-width: 0; overflow-wrap: anywhere; }

/* Schwerpunkt-Farben: Abstufung der Logo-Palette von Dunkelblau zu Hellblau */
.topic-auto { --accent: #16345c; --accent-ink: #16345c; --accent-light: #a9c8ea; --accent-end: #1d4f86; }
.topic-sw   { --accent: #1f6fb2; --accent-ink: #1f6fb2; --accent-light: #7fd4f5; --accent-end: #1f6fb2; }
.topic-web  { --accent: #29abe2; --accent-ink: #0a7cb3; --accent-light: #a6e6ff; --accent-end: #29abe2; }
.focus.topic-auto::before, .focus.topic-sw::before, .focus.topic-web::before { background: var(--accent); }
.focus[class*="topic-"] .focus-icon, .more-card .focus-icon { background: linear-gradient(135deg, var(--navy-900), var(--accent-end)); }
.focus[class*="topic-"] .plan-kicker, .focus[class*="topic-"] .text-link { color: var(--accent-ink); }
.focus-grid:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .focus-grid:has(> :nth-child(3)) { grid-template-columns: minmax(0, 1fr); } }

/* Unterseiten: Hero und Akzente */
body[class*="topic-"] .hero { background: linear-gradient(120deg, #0f2742 0%, #16345c 45%, var(--accent-end) 100%); }
body[class*="topic-"] .hero-kicker { color: var(--accent-light); }
body[class*="topic-"] .hero-kicker::before { display: none; }
body[class*="topic-"] .mark { color: var(--accent-light); }
body[class*="topic-"] .section-head h2::before, body[class*="topic-"] .split-copy h2::before, body[class*="topic-"] .faq-intro h2::before { background: var(--accent); }
body[class*="topic-"] .steps li:first-child .step-no, body[class*="topic-"] .sw-steps li::before { background: var(--accent-ink); }
body[class*="topic-"] .sw-benefits li { border-top-color: var(--accent); }
body[class*="topic-"] .fact-icon { color: var(--accent-ink); }
body[class*="topic-"] .text-link { color: var(--accent-ink); }
.hero-sub { padding: clamp(56px, 7vw, 96px) 0 clamp(52px, 6vw, 84px); }
.hero-sub .hero-copy { max-width: 780px; }
.hero-kicker-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgb(255 255 255 / .12); color: #fff; }
.hero-kicker-icon .i { width: 20px; height: 20px; }
.main-nav ul a[aria-current="page"] { color: var(--blue); background: var(--sky-50); }

/* Abschluss-Band und weitere Schwerpunkte */
.section-tight { padding-block: clamp(40px, 5vw, 56px); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); background: var(--hero-gradient); }
body[class*="topic-"] .cta-band { background: linear-gradient(120deg, #0f2742 0%, #16345c 50%, var(--accent-end) 100%); }
.cta-band p { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 700; color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--navy-900); }
.cta-band .btn-primary:hover { background: var(--sky-50); color: var(--navy-900); }
.more-h { font-size: 1.3rem; margin-bottom: 20px; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.more-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.more-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.more-card .focus-icon { width: 48px; height: 48px; margin: 0; }
.more-card .focus-icon .i { width: 24px; height: 24px; }
.more-card strong { display: block; color: var(--navy-900); font-size: 1.1rem; }
.more-card small { display: block; margin-top: 2px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.more-card > .i { color: var(--accent-ink); transition: transform .25s var(--ease); }
.more-card:hover > .i { transform: translateX(3px); }

/* Websites */
.web-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.steps-plain li .step-no { box-shadow: none; }

@media (max-width: 900px) {
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .web-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .web-checks { grid-template-columns: minmax(0, 1fr); }
  .cta-band .btn { width: 100%; justify-content: center; }
  .more-card { grid-template-columns: auto minmax(0, 1fr); }
  .more-card > .i { display: none; }
}

/* Schwerpunkt-Karten: Liste und Link auf gleicher Höhe */
@supports (grid-template-rows: subgrid) {
  .focus-grid:has(> :nth-child(3)) .focus { grid-row: span 4; grid-template-rows: subgrid; row-gap: 14px; }
  .focus-grid:has(> :nth-child(3)) .focus .text-link { align-self: end; }
}

/* Fußzeile: Kontakt- und Social-Icons */
.footer-end { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .35); color: #fff; transition: border-color .2s, color .2s; }
.social a:hover { color: var(--kicker); border-color: var(--kicker); text-decoration: none; }
.social .i { width: 18px; height: 18px; }
@media (max-width: 600px) { .footer-base { flex-direction: column; align-items: flex-start; } }

/* Startseite: Alltag und Arbeitsweise */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.pains li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pains p { color: var(--ink); font-weight: 600; }
.pains-note { margin-top: 28px; font-size: 1.15rem; font-weight: 700; color: var(--navy-900); }
.data-box { margin-top: 32px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); background: var(--sky-50); border-left: 4px solid var(--blue); }
.data-box h3 { font-size: 1.15rem; }
.split-copy .data-box p { margin-top: 8px; font-size: 1rem; color: var(--ink); }
.flow-foot { flex-wrap: wrap; }
.replay { white-space: nowrap; }
@media (max-width: 760px) { .pains { grid-template-columns: minmax(0, 1fr); } }
/* Vertrauenszeile: Punkte in zwei sauberen Spalten */
.trust { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 28px; }
@media (max-width: 600px) { .trust { grid-template-columns: minmax(0, 1fr); } }
/* Automatisierung: Vorher/Nachher, Freigabe-Schritt, eigene Praxis, Abschluss */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin-top: clamp(28px, 4vw, 40px); }
.compare-box { display: grid; gap: 12px; align-content: start; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.compare-before { background: #fdf3f2; border-color: #f3d4d0; }
.compare-after { background: var(--sky-50); border-color: #c9e3f5; }
.compare-box p { font-weight: 600; color: var(--ink); }
.chip-before, .chip-after { justify-self: start; display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.chip-before { background: var(--error); color: #fff; }
.chip-after { background: var(--blue); color: #fff; }
.route li.approve { flex-wrap: wrap; background: rgb(41 171 226 / .18); border-color: var(--sky); }
.route li.approve span { flex: 1 1 12em; min-width: 0; }
.approve-chip { font-style: normal; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--sky); color: var(--navy-950); white-space: nowrap; }
.practice { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--mist); border: 1px solid var(--line); }
.practice-h { font-size: 1.15rem; }
.practice-h-small { margin-top: 10px; font-size: 1rem; color: var(--muted); }
.split-copy p + p { margin-top: 14px; }
.route-light li { color: var(--ink); background: var(--paper); border-color: var(--line); }
.route-light li:not(:last-child)::after { background: var(--sky); }
.route-small li { font-size: .9rem; padding-block: 8px; }
.cta-band-full { align-items: center; }
.cta-copy { flex: 1 1 28em; min-width: 0; }
.cta-copy h2 { color: #fff; font-size: clamp(1.3rem, 1rem + .9vw, 1.7rem); }
.cta-band .cta-copy p { margin-top: 10px; font-size: 1.05rem; font-weight: 400; color: var(--on-navy-muted); }
.cta-actions { display: grid; gap: 10px; justify-items: start; }
.cta-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cta-link:hover { color: var(--kicker); }
.cta-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 760px) { .compare { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .cta-actions { width: 100%; justify-items: stretch; } .cta-link { text-align: center; } }

/* Links auf dunklem Grund: in jedem Zustand lesbar (Hellblau #7fd4f5, Kontrast über 7:1) */
:is(.hero, .band, .cta-band, .sw-cta, .site-footer, .on-dark) a:not(.btn):is(:hover, :focus, :active),
:is(.hero, .band, .cta-band, .sw-cta) a.cta-link:is(:hover, :focus, :active) { color: var(--kicker); }
:is(.hero, .band, .cta-band, .sw-cta, .site-footer, .on-dark) a:not(.btn):visited { color: #fff; }
:is(.hero, .band, .cta-band, .sw-cta, .site-footer, .on-dark) a:not(.btn):visited:is(:hover, :focus, :active) { color: var(--kicker); }
:is(.hero, .band, .cta-band, .sw-cta, .site-footer, .on-dark) a:not(.btn):focus-visible { outline-color: #fff; }

/* Software modernisieren: Seitenkopf mit Ablaufgrafik, Hinweis unter dem Abschluss (v19) */
.hero-sw-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-sw .hero-copy { max-width: 720px; }
.sw-flow { display: grid; justify-items: stretch; gap: 10px; margin: 0; }
.sw-flow-step { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .2); }
.sw-flow-step strong { display: block; color: #fff; font-size: 1.05rem; }
.sw-flow-step small { display: block; margin-top: 2px; color: #d4e2f1; font-size: .92rem; }
.sw-flow-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgb(127 212 245 / .16); color: var(--kicker); }
.sw-flow-icon .i { width: 26px; height: 26px; }
.sw-flow-new { background: #fff; border-color: #fff; }
.sw-flow-new strong { color: var(--navy-900); }
.sw-flow-new small { color: var(--muted); }
.sw-flow-new .sw-flow-icon { background: var(--sky-50, #e8f6fd); color: var(--blue); }
.sw-flow-arrow { justify-self: center; color: var(--kicker); line-height: 0; }
.sw-flow-arrow .i { width: 22px; height: 22px; }
.sw-more-note { margin-top: 24px; text-align: center; color: var(--muted); }
@media (max-width: 960px) {
  .hero-sw-grid { grid-template-columns: minmax(0, 1fr); }
  .sw-flow { max-width: 460px; }
}

/* Kurzcheck im Kontaktformular */
.btn-outline { background: var(--paper); color: var(--navy-900); box-shadow: inset 0 0 0 1.5px var(--navy-700); }
.btn-outline:hover { background: var(--sky-50); color: var(--navy-900); }
.btn-outline:hover .i { transform: translateY(2px); }
.kc-box { margin-top: 32px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--sky); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: grid; gap: 10px; justify-items: start; }
.kc-box h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.6rem); line-height: 1.25; }
.kc-box p { color: var(--muted); }
.kc-box .btn { margin-top: 6px; }
.kc-box-note { font-size: .88rem; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6fb2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; cursor: pointer; }
.kc-toggle { background: var(--sky-50); border: 1.5px solid #b9dcf1; border-radius: var(--radius); padding: 14px 16px; }
.kc-switch { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.kc-switch input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; cursor: pointer; }
.kc-switch-text { display: grid; gap: 2px; flex: 1 1 200px; }
.kc-switch-text strong { color: var(--navy-900); }
.kc-switch-text small { font-size: .9rem; color: var(--muted); }
.kc-tip { align-self: center; font-size: .8rem; font-weight: 700; color: var(--navy-900); background: var(--lime); border-radius: 999px; padding: 4px 10px; }
.kurzcheck { display: grid; gap: 20px; padding: 4px 0 4px 16px; border-left: 3px solid var(--sky); }
.kurzcheck[hidden] { display: none; }
.kurzcheck.entering { animation: panelIn .45s var(--ease); }
.kc-h { font-size: 1.05rem; color: var(--sky-ink); text-transform: uppercase; letter-spacing: .08em; }
.kc-h:not(:first-child) { margin-top: 8px; }
.kc-num { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 4px; border-radius: 7px; background: var(--navy-900); color: #fff; font-size: .78rem; vertical-align: 1px; }
.kurzcheck .chips span { font-size: .88rem; padding: 7px 12px; }
.chips input:disabled + span { opacity: .4; cursor: not-allowed; }
.chips label:has(input:disabled) { cursor: not-allowed; }
.kc-other { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.kc-other textarea { flex: 1 1 220px; font: inherit; font-weight: 400; font-size: .95rem; color: var(--ink); border: 1.5px solid #c5d2df; border-radius: var(--radius-sm); padding: 9px 12px; }
.kc-other textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgb(26 163 227 / .18); }
.kc-end { font-size: .9rem; color: var(--muted); }
@media (max-width: 600px) { .kurzcheck { padding-left: 12px; } }
textarea.grow { resize: none; overflow: hidden; min-height: 0; line-height: 1.5; field-sizing: content; }
.field textarea.grow { min-height: 0; }

/* v24: Anfragen-Assistent animiert (Automatisierung) */
.cases-4:has(.case-wide) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.case-copy { display: grid; gap: 16px; }
.flow-mail .flow-steps .state, .flow-web .flow-steps .state { white-space: nowrap; }
.mail-text { margin: 0; padding: 12px 14px; border-left: 3px solid var(--sky); background: var(--mist); border-radius: 0 10px 10px 0; font-size: .95rem; line-height: 1.5; color: var(--ink); }
.fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fields-3 div:last-child { grid-column: auto; }
.fields dd.urgent { color: var(--error); }
.draft { display: grid; gap: 8px; padding: 14px 16px; border: 1.5px dashed #b9c8d8; border-radius: var(--radius); }
.draft-h { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.draft-text { min-height: 3em; color: var(--ink); font-size: .95rem; line-height: 1.5; }
.draft-text.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--sky); animation: blink .8s steps(1) infinite; }
.draft-approve { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .9rem; font-weight: 600; color: var(--navy-900); }
.flow-mail.is-running .draft-approve { opacity: 0; }
.flow-mail .draft-approve { transition: opacity .4s var(--ease); }
@media (max-width: 1040px) { .case-wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .cases-4:has(.case-wide) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .fields-3 { grid-template-columns: minmax(0, 1fr); } }

/* v24: Website-Prüfliste animiert (Websites) */
.flow-web { max-width: 560px; width: 100%; justify-self: end; }
.web-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; }
.phone { display: grid; gap: 8px; }
.phone-label { font-size: .78rem; font-weight: 700; text-align: center; color: var(--muted); }
.pl-new { display: none; color: var(--blue); }
.flow-web.is-new .pl-old { display: none; }
.flow-web.is-new .pl-new { display: inline; }
.phone-screen { position: relative; display: grid; align-content: start; gap: 7px; height: 270px; padding: 10px 10px 14px; border: 6px solid var(--navy-950); border-radius: 22px; background: #eef0f2; overflow: hidden; transition: background-color .5s var(--ease); }
.ps-bar { display: flex; justify-content: space-between; align-items: center; height: 18px; }
.ps-logo { width: 46px; height: 10px; border-radius: 3px; background: #9aa3ad; }
.ps-menu { display: flex; gap: 3px; width: 60px; height: 6px; background: repeating-linear-gradient(90deg, #b6bdc5 0 12px, transparent 12px 16px); }
.ps-hero { display: grid; gap: 5px; padding: 10px 8px; border-radius: 6px; background: #c9ced4; }
.ps-h { height: 7px; width: 85%; border-radius: 3px; background: #8d969f; }
.ps-h2 { width: 60%; }
.ps-line { height: 5px; border-radius: 3px; background: #c3c9cf; }
.ps-short { width: 55%; }
.ps-btn { justify-self: start; font-size: .5rem; font-weight: 700; color: #6b7480; padding: 2px 6px; border-radius: 3px; background: #d5d9de; }
.flow-web.is-new .phone-screen { background: #fff; border-color: var(--navy-900); }
.flow-web.is-new .ps-logo { background: var(--navy-900); }
.flow-web.is-new .ps-menu { width: 16px; height: 12px; background: linear-gradient(var(--navy-900) 0 2px, transparent 2px 5px, var(--navy-900) 5px 7px, transparent 7px 10px, var(--navy-900) 10px 12px); }
.flow-web.is-new .ps-hero { gap: 7px; padding: 16px 10px; background: var(--hero-gradient); }
.flow-web.is-new .ps-h { height: 10px; background: #fff; }
.flow-web.is-new .ps-line { height: 6px; background: #d6dde5; }
.flow-web.is-new .ps-btn { justify-self: stretch; text-align: center; font-size: .72rem; padding: 8px; border-radius: 999px; color: #fff; background: var(--blue); }
.flow-web .flow-steps li { padding: 7px 8px; gap: 10px; grid-template-columns: 28px minmax(0, 1fr) auto; }
.flow-web .flow-steps li:not(:last-child)::after { left: 21px; top: 34px; bottom: -9px; }
.flow-web .step-text strong { font-size: .92rem; }
.flow-steps .state.fix { color: #8a5300; background: #fff1d6; padding: 2px 8px; border-radius: 999px; }
.flow-steps .state.ok { color: var(--lime-ink); }
.flow-web.is-running .flow-steps li.done .state.fix { color: #8a5300; }
.flow-web .flow-steps li:last-child { background: var(--sky-50); }
.flow-web.is-running .flow-steps li:last-child:not(.done):not(.active) { background: none; }
@media (max-width: 960px) { .flow-web { justify-self: start; } }
@media (max-width: 600px) {
  .web-grid { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
  .phone-screen { height: 220px; border-width: 5px; border-radius: 18px; padding: 8px 7px; }
  .flow-web .flow-steps li { grid-template-columns: 24px minmax(0, 1fr); }
  .flow-web .flow-steps .dot { width: 24px; height: 24px; }
  .flow-web .flow-steps .state { grid-column: 2; justify-self: start; }
  .flow-web .flow-steps li:not(:last-child)::after { left: 19px; }
}
@media (max-width: 600px) { .flow-web .flow-steps .state { display: inline-block; } }
.replay[hidden] { display: none; }
.case .flow-mail p { color: var(--ink); }
.case .flow-mail .draft-h { color: var(--muted); }
.case .flow-mail .draft-approve { color: var(--navy-900); }
.hero-sw-grid:has(.flow-web) { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.flow-web { max-width: 600px; }
@media (min-width: 601px) { .web-grid { grid-template-columns: 128px minmax(0, 1fr); } .phone-screen { height: 250px; } }
@media (max-width: 960px) { .hero-sw-grid:has(.flow-web) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .web-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .phone { justify-self: center; width: 150px; }
  .phone-screen { height: 200px; }
  .flow-web .flow-steps li { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .flow-web .flow-steps .state { grid-column: auto; justify-self: end; }
}

/* v25: Video "So läuft Ihr Erstgespräch" beim Kontakt */
.film { margin: 32px 0 0; display: grid; gap: 8px; }
.film video { width: 100%; height: auto; aspect-ratio: 8 / 5; border-radius: var(--radius); background: var(--navy-900); box-shadow: var(--shadow-sm); }
.film figcaption { font-size: .88rem; color: var(--muted); }

/* v26: Software modernisieren, alte Maske wird dokumentiert und neu */
.hero-sw-grid:has(.flow-sw) { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.flow-sw { max-width: 560px; width: 100%; justify-self: end; }
.app { border: 2px solid #8f98a3; border-radius: 4px; background: #d4d0c8; overflow: hidden; transition: border-color .5s var(--ease), border-radius .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease); }
.app-bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; background: linear-gradient(90deg, #0a246a, #a6caf0); color: #fff; font-size: .82rem; font-weight: 700; font-family: Tahoma, Verdana, sans-serif; }
.app-win { display: flex; gap: 3px; }
.app-win i { width: 14px; height: 12px; background: #d4d0c8; border: 1px solid #fff; }
.t-new { display: none; }
.app-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 12px; font-family: Tahoma, Verdana, sans-serif; }
.app-f { display: grid; gap: 2px; font-size: .78rem; color: #222; border-radius: 4px; transition: box-shadow .3s, background-color .3s; }
.app-f b { font-weight: 400; font-size: .88rem; background: #fff; border: 1px solid #7a7a7a; border-right-color: #fff; border-bottom-color: #fff; padding: 3px 6px; color: #111; }
.app-btns { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; }
.app-btns span { font-size: .78rem; padding: 3px 12px; background: #d4d0c8; border: 1px solid #fff; border-right-color: #555; border-bottom-color: #555; color: #111; }
.flow-sw.is-read:not(.is-new) .app-f { box-shadow: 0 0 0 3px var(--sky); background: rgb(41 171 226 / .15); }
.flow-sw.is-new .app { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.flow-sw.is-new .app-bar { padding: 10px 14px; background: var(--hero-gradient); font-family: var(--font); font-size: .95rem; }
.flow-sw.is-new .app-win { display: none; }
.flow-sw.is-new .t-old { display: none; }
.flow-sw.is-new .t-new { display: inline; }
.flow-sw.is-new .app-body { padding: 14px; gap: 10px 14px; font-family: var(--font); }
.flow-sw.is-new .app-f { font-size: .78rem; font-weight: 600; color: var(--muted); }
.flow-sw.is-new .app-f b { font-weight: 600; color: var(--navy-900); border: 1.5px solid #c5d2df; border-radius: 8px; padding: 6px 10px; background: var(--paper); }
.flow-sw.is-new .app-btns span { border: 0; border-radius: 999px; padding: 6px 16px; font-weight: 700; background: var(--mist); color: var(--navy-900); font-family: var(--font); }
.flow-sw.is-new .app-btns span:first-child { background: var(--blue); color: #fff; }
.flow-sw .flow-steps li { padding: 6px 8px; grid-template-columns: 28px minmax(0, 1fr); }
.flow-sw .flow-steps li:not(:last-child)::after { top: 34px; bottom: -8px; }
.flow-sw .step-text strong { font-size: .92rem; }
.doc { grid-template-columns: minmax(0, 1fr); }
.doc div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 14px; }
.doc dd { margin: 0; font-size: .92rem; }
@media (max-width: 960px) { .hero-sw-grid:has(.flow-sw) { grid-template-columns: minmax(0, 1fr); } .flow-sw { justify-self: start; } }
@media (max-width: 600px) { .app-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 10px; } .doc div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.film { margin-bottom: 28px; }

/* v27: Sprachnachricht wird zum Bericht (Automatisierung) */
.cases-4:has(.case-flip) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.case-flip .case-copy { order: 2; }
.voice { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); }
.voice-play { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; }
.voice-play .i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 30px; min-width: 0; overflow: hidden; }
.wave i { flex: 1 0 3px; max-width: 6px; height: calc(var(--h) * 1%); border-radius: 2px; background: var(--sky); }
.voice-time { flex: none; font-size: .85rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.flow-voice:has(.flow-steps > li:first-child.active) .wave i { animation: wave .7s ease-in-out infinite alternate; }
.flow-voice:has(.flow-steps > li:first-child.active) .wave i:nth-child(odd) { animation-delay: -.35s; }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.case .flow-voice p { color: var(--ink); }
.case .flow-voice .draft-h { color: var(--muted); }
.case .flow-voice .draft-approve { color: var(--navy-900); }
.transcript { min-height: 3em; padding: 12px 14px; border-left: 3px solid var(--sky); background: var(--mist); border-radius: 0 10px 10px 0; font-size: .95rem; line-height: 1.5; font-style: italic; }
.transcript.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--sky); animation: blink .8s steps(1) infinite; }
.report { display: grid; gap: 8px; padding: 14px 16px; border: 1.5px dashed #b9c8d8; border-radius: var(--radius); }
.report .doc div { grid-template-columns: 8.5em minmax(0, 1fr); }
.flow-voice .draft-approve { transition: opacity .4s var(--ease); }
.flow-voice.is-running .draft-approve { opacity: 0; }
@media (max-width: 1040px) { .case-flip { grid-template-columns: minmax(0, 1fr); } .case-flip .case-copy { order: 0; } }
@media (max-width: 900px) { .cases-4:has(.case-flip) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .report .doc div { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none !important; } }

/* v28: Animationen im Seitenkopf der Unterseiten auf gleicher Höhe wie auf der Startseite */
.hero-sub:has(.flow) { padding: clamp(56px, 8vw, 104px) 0; }
.hero-sw-grid:has(.flow) { align-items: start; }
.hero-sw-grid:has(.flow) > .flow { margin-top: clamp(0px, 1.75vw, 24px); }
