/* IQ-DISA – öffentliche Produktseite. Marke: design/marke/README.md und tokens.json */

/* Sora Bold liegt neben der Seite; keine fremden Schriftquellen. */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('schrift/sora-700-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('schrift/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('schrift/ibm-plex-sans-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('schrift/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('schrift/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
}

:root {
  --paper: #f2f0ea;
  --ink: #151515;
  --ink-soft: #3f3e3a;
  --muted: #6d6b66;
  --line: #cbc8bf;
  --accent: #f26332;
  --accent-ink: #c2410c;
  --dark: #1a1b1a;
  --dark-text: #f1f0eb;
  --dark-muted: #aaa9a2;
  --dark-line: #454643;
  --lime: #d9f35e;
  --surface: #e9e6de;
  --surface-alt: #e6e3da;
  --shadow: #d2cfc6;
  --ok-ink: #3d5a22;
  --ok-surface: #dce8c9;
  --accent-tint: #fddccb;
  --surface-card: #ffffff;
  --night: #1a1b1a;
  --danger: #b42318;
  --iq-blue-on-dark: #9db6ff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  /* IBM Plex Sans laut Markenbuch, selbst ausgeliefert aus schrift/ (OFL). */
  --font-sans: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --max: 1240px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.section-dark :focus-visible {
  outline-color: var(--dark-text);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Kopfzeile ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: block;
  width: 196px;
}

.brand img {
  width: 196px;
  height: 48px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a,
.menu-panel a {
  text-decoration: none;
  transition: opacity 0.2s;
}

.main-nav a:hover {
  opacity: 0.55;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.popover {
  position: relative;
}

.popover > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  user-select: none;
}

.popover > summary::-webkit-details-marker {
  display: none;
}

.popover > summary:hover {
  border-color: var(--ink);
}

.login > summary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.login > summary:hover {
  filter: brightness(1.25);
}

.menu {
  display: none;
}

.menu > summary span {
  display: inline-block;
  transition: transform 0.2s;
}

.menu[open] > summary span {
  transform: rotate(45deg);
}

.popover:not([open]) .popover-panel {
  display: none;
}

.popover-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 380px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 12px 14px 0 var(--shadow);
  padding: 24px;
  font-size: 15px;
}

.popover-panel p + p,
.popover-panel p + form {
  margin-top: 12px;
}

.popover-title {
  font-weight: 700;
  font-size: 17px;
}

.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 18px;
}

.login-field {
  display: flex;
  align-items: baseline;
  padding: 0 12px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-top: 6px;
}

.login-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.login-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font: inherit;
  color: var(--ink);
  border-radius: 0;
}

.login-field input:focus {
  outline: none;
}

.login-field span {
  color: var(--muted);
  font-size: 15px;
}

.login-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px !important;
}

.login-hint.error {
  color: var(--danger);
  font-weight: 600;
}

.login-form .button {
  margin-top: 16px;
  width: 100%;
}

.menu-panel {
  display: grid;
  width: 280px;
  padding: 8px 0;
  overflow: hidden;
}

.menu-panel a {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.menu-panel a:last-child {
  border-bottom: 0;
}

.menu-panel a:hover {
  background: var(--surface);
}

/* Schaltflächen ------------------------------------------------------------ */

.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

/* Primär in Markenorange; Schrift in ink, weil weiße Schrift erst ab 18px fett trägt. */
.button-primary {
  background: var(--accent);
  color: var(--ink);
}

.button-primary:hover {
  filter: brightness(1.08);
}

.button:hover {
  filter: brightness(1.25);
}

.text-link {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
  transition: opacity 0.2s;
}

.text-link:hover {
  opacity: 0.55;
}

/* Einstieg ----------------------------------------------------------------- */

.hero {
  padding: 88px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: end;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.eyebrow > span {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.eyebrow-ink > span {
  background: var(--ink);
}

.hero h1 {
  font-size: clamp(38px, 4.9vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 32px;
}

.hero-lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 32px;
}

.shot {
  margin: 0;
  position: relative;
}

.shot img {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 20px 24px 0 var(--shadow);
}

.shot figcaption {
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
  max-width: 70ch;
}

.shot-hero {
  margin-top: 72px;
}

.facts {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.facts li {
  padding: 22px 24px 26px 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.facts li + li {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.facts strong {
  font-size: 18px;
}

.facts span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* Abschnitte --------------------------------------------------------------- */

.section {
  padding: 120px 0;
}

.section-tight {
  padding-top: 40px;
}

.section-surface {
  background: var(--surface);
}

.section-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

.section-label > span {
  color: var(--accent-ink);
  font-weight: 700;
}

.section-label.light {
  color: var(--dark-muted);
}

.section-label.light > span {
  color: var(--accent);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10%;
  align-items: end;
  margin: 40px 0 64px;
}

.section h2,
.cta h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.section-heading > p,
.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
}

.lead {
  margin-top: 28px;
}

/* Ablauf */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}

.steps li {
  padding: 30px 24px 8px 0;
}

.steps li + li {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.step-no {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 56px;
}

.steps li:last-child .step-no {
  background: var(--accent);
  border-color: var(--accent);
}

.steps h3 {
  font-size: 19px;
  line-height: 1.2;
}

.steps p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
}

/* Funktionen */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  position: relative;
  display: block;
  min-height: 250px;
  padding: 28px 26px 64px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s;
}

a.feature:hover {
  background: var(--surface);
}

.feature-no {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
}

.feature-no em,
.tag-new {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  background: var(--lime);
  color: var(--ink);
  padding: 3px 8px;
  margin-left: 8px;
  border-radius: var(--radius-sm);
}

.feature h3 {
  font-size: 22px;
  line-height: 1.15;
  margin-top: 48px;
}

.feature p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
}

.feature-more {
  position: absolute;
  left: 26px;
  bottom: 22px;
  font-size: 20px;
  transition: transform 0.2s;
}

a.feature:hover .feature-more {
  transform: translateX(6px);
}

.feature-new {
  background: var(--ink);
  color: var(--dark-text);
}

a.feature-new:hover {
  background: #2a2b29;
}

.feature-new .feature-no {
  color: var(--accent);
}

.feature-new p {
  color: var(--dark-muted);
}

.feature-new:focus-visible {
  outline-offset: -4px;
  outline-color: var(--lime);
}

.feature-note {
  display: flex;
  align-items: flex-end;
  background: var(--surface-alt);
  padding-bottom: 28px;
}

.feature-note p {
  color: var(--ink-soft);
  margin: 0;
}

/* Bild und Text */

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.split .section-label + h2 {
  margin-top: 40px;
}

.split-reverse {
  grid-template-columns: 1fr 1fr;
}

.split-reverse .split-copy {
  order: 2;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}

.ticks li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 19px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.phones {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
}

.phone {
  margin: 0;
  width: min(270px, 44%);
  border: 10px solid var(--ink);
  border-top-width: 26px;
  border-bottom-width: 26px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 16px 20px 0 var(--shadow);
}

.phone img {
  width: 100%;
}

.phone-offset {
  margin-top: 80px;
}

/* Gutachten */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.two-col > *,
.split > *,
.hero-grid > *,
.tutorials > *,
.cta-grid > * {
  min-width: 0;
}

.numbered {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.numbered li {
  display: grid;
  grid-template-columns: 52px 1fr;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.numbered li > span {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
  padding-top: 3px;
}

.numbered h3 {
  font-size: 19px;
}

.numbered p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
}

.calc {
  margin: 0;
  background: #f8f7f3;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 20px 24px 0 var(--shadow);
  padding: 28px;
}

.calc figcaption {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.calc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
}

.calc figcaption strong {
  font-size: 19px;
}

.calc-scroll {
  overflow-x: auto;
}

.calc table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 14px;
}

.calc th,
.calc td {
  text-align: left;
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 400;
}

.calc thead th {
  font-weight: 600;
  font-size: 13px;
}

.calc tbody th small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.calc .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.calc tfoot th,
.calc tfoot td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.calc tr.total th,
.calc tr.total td {
  font-weight: 700;
  font-size: 16px;
  border-top: 2px solid var(--ink);
  border-bottom: 0;
  padding-top: 12px;
}

.calc-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* Belegprüfung (dunkel) */

.section-dark {
  background: var(--dark);
  color: var(--dark-text);
}

.section-dark .section-heading > p {
  color: var(--dark-muted);
}

.shot-dark img {
  border-color: var(--dark-line);
  box-shadow: 20px 24px 0 #000;
}

.verdicts {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--dark-line);
}

.verdicts li {
  padding: 26px 24px 26px 0;
}

.verdicts li + li {
  border-left: 1px solid var(--dark-line);
  padding-left: 24px;
}

.v {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #666763;
  border-radius: 50%;
  font-size: 19px;
  margin-bottom: 20px;
}

.v-ok {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.v-no {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.verdicts strong {
  font-size: 19px;
}

.verdicts p,
.dark-grid p {
  font-size: 15px;
  color: var(--dark-muted);
  margin-top: 6px;
}

.dark-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.dark-grid > div {
  padding: 26px 24px 30px 0;
}

.dark-grid > div + div {
  border-left: 1px solid var(--dark-line);
  padding-left: 24px;
}

.dark-grid h3 {
  font-size: 19px;
}

.dark-note {
  margin-top: 32px;
  font-size: 15px;
  color: var(--dark-muted);
  max-width: 70ch;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}

/* KI und Portal */

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}

.pair article {
  padding: 32px 48px 8px 0;
}

.pair article + article {
  border-left: 1px solid var(--line);
  padding: 32px 0 8px 48px;
}

.pair-kicker {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
}

.pair h3 {
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
  max-width: 22ch;
}

.pair article > p:not(.pair-kicker) {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Sicherheit */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.trust-grid > div {
  padding: 28px 28px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-no {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 36px;
}

.trust-grid h3 {
  font-size: 19px;
  line-height: 1.2;
}

.trust-grid p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
}

.trust-grid p strong {
  color: var(--ink);
}

/* Tutorials */

.tutorials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.tutorials h2 {
  margin-top: 40px;
  font-size: clamp(30px, 3.3vw, 48px);
}

.nobr {
  white-space: nowrap;
}

.video-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.video-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--night);
  border-bottom: 1px solid var(--line);
}

.video-card video:focus-visible {
  outline-offset: -4px;
}

.video-card h3 {
  margin: 0;
  padding: 16px 20px 20px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.video-card h3 > span:not(.nobr) {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--accent-ink);
  font-weight: 700;
}

/* Kontakt */

.cta {
  background: var(--accent-tint);
  padding: 110px 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10%;
  align-items: end;
}

.cta h2 {
  margin-top: 36px;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.cta-side > p:first-child {
  font-size: 18px;
  max-width: 520px;
}

.cta-side .button {
  margin-top: 28px;
}

.cta-mail {
  margin-top: 14px;
  font-size: 15px;
}

.cta-small {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(21, 21, 21, 0.35);
  font-size: 14px;
}

/* Fußzeile */

.site-footer {
  padding: 56px 0 48px;
  background: var(--night);
  color: var(--dark-text);
}

.site-footer :focus-visible {
  outline-color: var(--dark-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 40px;
  align-items: center;
}

.footer-grid img {
  width: 220px;
  height: 54px;
}

.footer-grid > p {
  font-size: 14px;
  color: var(--dark-muted);
}

/* Absender-Hinweis: einzige Stelle mit dem Blau der Hausmarke IQ networking. */
.footer-grid .absender {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--dark-text);
}

.absender strong {
  color: var(--iq-blue-on-dark);
  font-weight: 700;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
  font-weight: 600;
}

.footer-grid nav a {
  text-decoration: none;
  border-bottom: 1px solid var(--dark-text);
  padding: 4px 0;
}

.footer-grid nav a:hover {
  opacity: 0.55;
}

.footer-grid .ext {
  font-weight: 400;
  color: var(--dark-muted);
}

.footer-small {
  grid-column: 1 / -1;
  border-top: 1px solid var(--dark-line);
  padding-top: 18px;
  font-size: 13px !important;
}

/* Erscheinungstermin und Testphase */

.release {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 48px;
  padding: 18px 22px;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
}

.release-badge {
  flex: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--accent);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.release p {
  flex: 1 1 320px;
  font-size: 16px;
  color: var(--ink);
}

.release a {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-ink);
  padding: 2px 0;
  white-space: nowrap;
}

.release a:hover {
  opacity: 0.7;
}

.testen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.testen-grid > * {
  min-width: 0;
}

.testen-grid .section-label + h2 {
  margin-top: 40px;
}

.testen-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testen-card h3 {
  font-size: 20px;
  line-height: 1.25;
}

.testen-card .ticks {
  margin-top: 20px;
}

.testen-card .button {
  margin-top: 28px;
}

.testen-mail {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-soft);
}

.testen-mail a {
  color: var(--accent-ink);
  font-weight: 600;
}

/* Einblenden beim Scrollen (nur mit Skript, nur ohne reduzierte Bewegung) */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.js .reveal.sichtbar {
  opacity: 1;
  transform: none;
}

/* Responsiv ---------------------------------------------------------------- */

@media (max-width: 1100px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav {
    gap: 22px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps li:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }

  .steps li:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .dark-grid,
  .verdicts {
    grid-template-columns: repeat(2, 1fr);
  }

  .dark-grid > div:nth-child(3),
  .verdicts li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .dark-grid > div:nth-child(n + 3),
  .verdicts li:nth-child(n + 3) {
    border-top: 1px solid var(--dark-line);
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
  }

  .main-nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
    gap: 12px;
    height: 64px;
  }

  .header-actions {
    justify-self: end;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid,
  .section-heading,
  .split,
  .split-reverse,
  .two-col,
  .tutorials,
  .cta-grid,
  .testen-grid,
  .pair {
    grid-template-columns: 1fr;
  }

  .testen-grid {
    gap: 40px;
  }

  .hero-grid {
    gap: 28px;
  }

  .split-reverse .split-copy {
    order: 0;
  }

  .section-heading {
    gap: 24px;
    margin: 32px 0 48px;
  }

  .section {
    padding: 80px 0;
  }

  .section-tight {
    padding-top: 24px;
  }

  .split,
  .two-col,
  .tutorials {
    gap: 56px;
  }

  .shot-hero {
    margin-top: 48px;
  }

  .shot img,
  .calc {
    box-shadow: 10px 12px 0 var(--shadow);
  }

  .shot-dark img {
    box-shadow: 10px 12px 0 #000;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
    margin-top: 56px;
  }

  .facts li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .facts li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pair article,
  .pair article + article {
    padding: 28px 0 8px;
    border-left: 0;
  }

  .pair article + article {
    border-top: 1px solid var(--line);
    margin-top: 28px;
  }

  .cta {
    padding: 80px 0;
  }

  .cta-grid {
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  body {
    font-size: 16px;
  }

  .login > summary,
  .menu > summary {
    padding: 0 10px;
    gap: 6px;
  }

  .header-actions {
    gap: 8px;
  }

  .brand,
  .brand img {
    width: clamp(120px, 37vw, 140px);
    height: auto;
  }

  .release {
    margin-top: 36px;
    padding: 16px;
  }

  .testen-card {
    padding: 24px 18px;
  }

  .testen-card .button {
    width: 100%;
    gap: 16px;
  }

  .popover {
    position: static;
  }

  .popover-panel {
    left: 12px;
    right: 12px;
    top: 64px;
    width: auto;
    box-shadow: 8px 10px 0 var(--shadow);
  }

  .hero h1 {
    font-size: clamp(30px, 8.6vw, 42px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .shot figcaption {
    margin-top: 28px;
  }

  .facts,
  .steps,
  .feature-grid,
  .trust-grid,
  .dark-grid,
  .verdicts {
    grid-template-columns: 1fr;
  }

  .facts li,
  .facts li + li,
  .steps li,
  .steps li + li,
  .dark-grid > div,
  .dark-grid > div + div,
  .verdicts li,
  .verdicts li + li {
    border-left: 0;
    padding-left: 0;
  }

  .facts li + li,
  .steps li + li {
    border-top: 1px solid var(--line);
  }

  .dark-grid > div + div,
  .verdicts li + li {
    border-top: 1px solid var(--dark-line);
  }

  .steps li {
    display: grid;
    grid-template-columns: 56px 1fr;
    padding: 22px 0;
  }

  .step-no {
    grid-row: span 2;
    margin-bottom: 0;
    width: 40px;
    height: 40px;
  }

  .steps p {
    margin-top: 6px;
  }

  .feature {
    min-height: 0;
    padding-bottom: 56px;
  }

  .feature h3 {
    margin-top: 24px;
  }

  .phones {
    gap: 16px;
  }

  .phone {
    border-width: 6px;
    border-top-width: 16px;
    border-bottom-width: 16px;
    box-shadow: 8px 10px 0 var(--shadow);
  }

  .phone-offset {
    margin-top: 48px;
  }

  .calc {
    padding: 20px 16px;
  }

  .calc table {
    min-width: 0;
    font-size: 13px;
  }

  .calc th,
  .calc td {
    padding-right: 6px;
  }

  .calc th:last-child,
  .calc td:last-child {
    padding-right: 0;
  }

  .calc tr.total th,
  .calc tr.total td {
    font-size: 15px;
  }

  .calc th:nth-child(3),
  .calc td:nth-child(3) {
    display: none;
  }

  .cta-side .button {
    width: 100%;
    gap: 16px;
  }
}

/* Hilfsklassen und Beispielbeleg ------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Belegprüfung: Beispielbeleg */

.beleg-demo {
  margin: 72px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 32px;
  align-items: end;
}

.beleg-demo figcaption {
  display: grid;
  gap: 4px;
}

.beleg-demo-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-muted);
}

.beleg-demo figcaption strong {
  font-size: 22px;
  line-height: 1.2;
}

.beleg-blatt {
  position: relative;
  grid-column: 1 / -1;
  background: #fbfaf7;
  color: var(--ink);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  box-shadow: 20px 24px 0 #000;
  padding: 24px 28px 12px;
  overflow-x: auto;
}

.beleg-blatt table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.beleg-blatt th,
.beleg-blatt td {
  text-align: left;
  vertical-align: top;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
}

.beleg-blatt thead th {
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
}

.beleg-blatt tr:last-child td {
  border-bottom: 0;
}

.beleg-blatt .num {
  text-align: right;
  white-space: nowrap;
}

.beleg-blatt td:nth-child(2) {
  white-space: nowrap;
}

.beleg-blatt .pos {
  color: var(--muted);
  width: 3.5em;
}

.wert {
  position: relative;
  display: inline-block;
}

.strich {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 2px;
  background: var(--danger);
  transform-origin: left center;
}

.neu,
.vermerk {
  color: var(--danger);
}

.neu {
  display: inline-block;
  font-weight: 700;
}

.vermerk {
  display: block;
  font-style: normal;
  font-size: 13px;
  margin-top: 2px;
}

.sym {
  position: relative;
  width: 36px;
  padding-right: 0 !important;
  text-align: center;
}

.sym-wert {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.sym-ok .sym-wert {
  background: var(--ok-surface);
  border-color: var(--ok-ink);
  color: var(--ok-ink);
}

.sym-no .sym-wert {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .beleg-demo {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .beleg-blatt {
    padding: 16px 14px 6px;
    box-shadow: 10px 12px 0 #000;
  }

  .beleg-blatt table {
    font-size: 14px;
  }

  .beleg-blatt .pos {
    display: none;
  }

  .beleg-blatt td:nth-child(2),
  .beleg-blatt .num {
    white-space: normal;
  }

  .beleg-blatt .num .neu {
    display: block;
  }

  .wert {
    white-space: nowrap;
  }

  .beleg-blatt th,
  .beleg-blatt td {
    padding-right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Werbefilm als Banner über dem Einstieg: volle Breite, 16:9, dunkler Grund. */
.film {
  position: relative;
  background: var(--night);
  overflow: hidden;
}

.film-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 72px);
  object-fit: cover;
  /* Wird beschnitten, dann oben: Die Untertitel sind unten eingebrannt. */
  object-position: center bottom;
  background: var(--night);
}

.film-leiste {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  /* Bündig mit dem Seitenraster (Logo, Inhalt), auch wenn der Film breiter ist. */
  padding: 20px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  pointer-events: none;
}

.film-claim {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark-text);
  background: var(--night);
  padding: 6px 14px;
  border-radius: var(--radius-md);
}

.film-ton {
  pointer-events: auto;
  gap: 16px;
}

.film.mit-ton .film-leiste {
  display: none;
}

@media (max-width: 700px) {
  .film-leiste {
    padding: 12px var(--gutter, 20px);
  }

  .film-claim {
    display: none;
  }

  .film-ton {
    min-height: 44px;
    margin-left: auto;
  }
}

/* Nach oben: runder Knopf rechts unten, der Ring füllt sich mit dem Lesefortschritt. */
.nach-oben {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--dark-text);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.nach-oben.sichtbar {
  opacity: 1;
  transform: none;
}

.nach-oben:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.nach-oben svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.nach-oben-spur,
.nach-oben-ring {
  fill: none;
  stroke-width: 3;
}

.nach-oben-spur {
  stroke: var(--dark-line);
}

.nach-oben-ring {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.nach-oben-pfeil {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Der Kreis ist um −90° gedreht, damit der Ring oben beginnt; der Pfeil nicht. */
  transform: rotate(90deg);
  transform-origin: 24px 24px;
}

.nach-oben:hover .nach-oben-pfeil {
  stroke: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .nach-oben {
    transition: none;
  }
}
