/* Lohnportal landing page. Values follow the Verkaufsseite design mockup. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #1467c2;
  --accent-dark: #0e3685;
  --ink: #1e242e;
  --ink-2: #3d4652;
  --muted: #626a75;
  --line: #dadee3;
  --input-line: #c5ccd4;
  --soft: #f5f7f9;
  --tint: #e9f3ff;
  --ok: #1f7a45;
  --ok-bg: #e7f5ec;
  --err-line: #c2410c;
  --err: #9a3412;
  --radius-pill: 999px;
  --gutter: 16px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231467C2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid #f5b400;
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

img,
video,
svg {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Layout ---------- */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 760px;
}

.section {
  background: #fff;
  padding: 96px 0;
}

.section--soft {
  background: var(--soft);
}

.section--tint {
  background: var(--tint);
}

.section--steps {
  padding-top: 0;
}

/* ---------- Type ---------- */

.h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 760px;
  text-wrap: balance;
}

.h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 40px;
}

.lead--dark {
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.strong {
  font-weight: 600;
}

.small {
  font-size: 15px;
}

.ok {
  color: var(--ok);
  font-weight: 600;
}

.dim {
  color: rgba(255, 255, 255, 0.68);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--tint);
  color: var(--ink);
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: progress;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
}

.hero__rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.14;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  padding-top: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 20px;
  backdrop-filter: blur(6px);
}

.topbar__brand {
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.topbar__brand:hover {
  color: #fff;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar__link {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
}

.topbar__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.topbar__link,
.topbar .btn {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .topbar__link--wide {
    display: none;
  }
}

@media (max-width: 600px) {
  .topbar__link {
    display: none;
  }
}

.hero__copy {
  text-align: center;
  padding: 72px 0 56px;
  max-width: 760px;
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
}

.hero__title {
  margin: 28px 0 20px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__title:focus {
  outline: none;
}

.hero__lead {
  margin: 0 auto 32px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
}

.hero__lead .dim {
  color: rgba(255, 255, 255, 0.64);
}

.hero__note {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.64);
}

.hero__media {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 14px 14px 0;
  box-shadow: 0 -10px 40px rgba(8, 24, 64, 0.25);
}

.hero__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px 12px 0 0;
  background: var(--accent-dark);
}

.hero__toggle {
  position: absolute;
  right: 26px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  border: 0;
  background: rgba(14, 54, 133, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.hero__toggle:hover,
.hero__toggle:focus-visible {
  opacity: 1;
}

.hero__toggle .icon-play,
.hero__toggle[data-paused] .icon-pause {
  display: none;
}

.hero__toggle[data-paused] .icon-play {
  display: block;
}

/* ---------- Intro + steps ---------- */

.section:has(+ .section--steps) {
  padding-bottom: 32px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.step:last-child {
  padding-bottom: 0;
}

.step__text {
  flex: 1 1 380px;
  min-width: 0;
}

.step__text > .muted {
  margin-bottom: 20px;
}

.step__num {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 11px;
  background: var(--tint) var(--check) center / 12px no-repeat;
}

.checklist--on-tint li::before {
  background-color: #fff;
}

/* Product mockups (decorative) */

.mock {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--soft);
  border-radius: 20px;
  padding: 32px;
}

@media (max-width: 480px) {
  .mock {
    padding: 16px;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(30, 36, 46, 0.06);
}

.card--tight {
  gap: 10px;
}

.card__title {
  font-weight: 600;
  font-size: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field__label {
  color: var(--muted);
  font-weight: 500;
}

.input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
}

.input--error {
  border-color: var(--err-line);
}

.input--row,
.row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.row--plain {
  border: 0;
  padding: 0;
  align-items: center;
}

.field__error {
  color: var(--err);
  font-size: 13px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  background: var(--tint);
  color: var(--accent-dark);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-weight: 500;
}

.fake-btn {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
}

.dropzone {
  border: 1px dashed #b9c2cc;
  border-radius: 10px;
  padding: 14px;
  color: var(--muted);
  text-align: center;
}

.badge {
  display: inline-block;
  background: var(--tint);
  color: var(--accent-dark);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 600;
}

.badge--ok {
  background: var(--ok-bg);
  color: var(--ok);
  padding: 3px 10px;
  font-size: 13px;
}

/* ---------- Demo video ---------- */

.demo-intro {
  margin-bottom: 40px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(14, 54, 133, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 480px) {
  .panel {
    padding: 14px;
  }
}

.video-frame {
  position: relative;
}

.video-lock {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(14, 54, 133, 0.86);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  text-align: center;
}

.video-lock .strong {
  font-size: clamp(17px, 2.4vw, 24px);
}

.video-note,
.video-hint {
  margin-top: -6px;
}

.gate {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  scroll-margin-top: 24px;
}

.demo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}

.form {
  gap: 16px;
}

.form__title {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 600;
}

.form__title:focus {
  outline: none;
}

.form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.form__row > .field {
  flex: 1 1 200px;
}

.form .field {
  gap: 6px;
}

.form label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.form input,
.form textarea {
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  min-height: 48px;
  width: 100%;
  background: #fff;
}

.form textarea {
  resize: vertical;
  min-height: 96px;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 103, 194, 0.2);
}

.form input[aria-invalid="true"] {
  border-color: var(--err-line);
}

.form .field__error,
.form__error {
  font-size: 14px;
  color: var(--err);
}

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

.fineprint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
}

.result {
  background: var(--tint);
  color: var(--accent-dark);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
}

/* ---------- Security ---------- */

.narrow {
  max-width: 760px;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.feature__icon {
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.feature .strong {
  margin-bottom: 6px;
}

.deadline {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.deadline > p {
  flex: 1 1 420px;
  min-width: 0;
}

.deadline__days {
  display: inline-block;
  margin-left: 4px;
  background: #fff4e5;
  color: var(--err);
  border-radius: var(--radius-pill);
  padding: 1px 10px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Offer ---------- */

.offer {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(30, 36, 46, 0.06);
}

@media (max-width: 480px) {
  .offer {
    padding: 24px;
  }
}

.offer__title {
  margin: 20px 0 8px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.offer > .muted {
  margin-bottom: 24px;
}

.offer__sub {
  margin: 28px 0 12px;
}

.offer .checklist {
  font-size: 16px;
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 18px 40px 18px 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq details p {
  color: var(--muted);
  padding: 0 0 20px;
}

.faq__more {
  margin-top: 24px;
  color: var(--muted);
}

/* ---------- Closing CTA ---------- */

.cta {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}

.cta__title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.cta__lead {
  margin: 0 auto 32px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
}

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

.footer {
  border-top: 1px solid var(--line);
}

.footer__inner {
  padding-top: 48px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer__about {
  flex: 1 1 260px;
  min-width: 0;
}

.footer__about .small {
  max-width: 300px;
}

.footer__brand {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 19px;
}

.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  font-size: 15px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col .strong {
  margin-bottom: 4px;
}

.footer__col a {
  color: var(--muted);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer__legal {
  padding-bottom: 32px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Legal pages ---------- */

.legal-top {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 20px 0;
}

.legal {
  padding: 64px 0 96px;
}

.legal h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  margin: 40px 0 12px;
}

.legal p,
.legal ul {
  margin: 0 0 12px;
  color: var(--ink-2);
}

/* ---------- Content pages (Ratgeber, Vorlage, Tools) ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "›";
  margin-right: 6px;
}

.crumbs a {
  color: var(--muted);
}

.article {
  padding: 56px 0 96px;
}

.article h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 20px;
  text-wrap: balance;
}

.article h2 {
  font-size: clamp(23px, 2.6vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 56px 0 14px;
  scroll-margin-top: 24px;
}

.article h3 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  margin: 32px 0 8px;
}

.article p,
.article ul,
.article ol {
  margin: 0 0 16px;
  color: var(--ink-2);
}

.article ul,
.article ol {
  padding-left: 22px;
}

.article li + li {
  margin-top: 6px;
}

.article .lead {
  margin-bottom: 24px;
}

.article__meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px !important;
}

.toc {
  background: var(--soft);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 0 8px;
}

.toc .strong {
  margin-bottom: 8px;
  color: var(--ink);
}

.toc ol {
  margin: 0;
}

.callout {
  background: var(--tint);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.callout--warn {
  background: #fff4e5;
}

.callout .strong {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.article th,
.article td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.article th {
  font-weight: 600;
  color: var(--ink);
  background: var(--soft);
}

.article-cta {
  margin: 48px 0 0;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.88);
}

.article-cta .article-cta__title {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.article-cta .actions {
  justify-content: flex-start;
  margin-top: 20px;
}

.related {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.cards {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cards li + li {
  margin-top: 0;
}

.cards a {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink-2);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cards a:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(14, 54, 133, 0.08);
  color: var(--ink-2);
}

.cards .strong {
  display: block;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ID checker */

.tool {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin: 0 0 20px;
  background: #fff;
}

.tool .form {
  gap: 12px;
}

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

.tool__row input {
  flex: 1 1 240px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.id-result {
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article .id-result p {
  margin: 0;
}

.id-result--ok {
  background: var(--ok-bg);
}

.article .id-result--ok .strong {
  color: var(--ok);
}

.id-result--err {
  background: #fff4e5;
}

.article .id-result--err .strong {
  color: var(--err);
}

/* Printable / fillable template */

.tpl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.tpl {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin: 24px 0;
}

.tpl__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 8px;
}

.article .tpl__head h2 {
  margin: 0;
  font-size: 24px;
}

.tpl fieldset {
  border: 0;
  margin: 0;
  padding: 18px 0 6px;
  min-width: 0;
}

.tpl legend {
  font-weight: 600;
  font-size: 16px;
  color: var(--accent-dark);
  padding: 0;
  margin-bottom: 10px;
}

.tpl__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 16px;
}

.tpl__grid--wide {
  grid-template-columns: 1fr;
}

.tpl label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.tpl input[type="text"],
.tpl input[type="date"],
.tpl textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--input-line);
  border-radius: 0;
  padding: 6px 2px;
  min-height: 36px;
  width: 100%;
  background: transparent;
}

.tpl input:focus,
.tpl textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 2px 0 0 var(--accent);
}

.tpl__choice {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
  color: var(--ink-2);
  margin: 2px 0 6px;
}

.tpl__choice > span:first-child {
  flex-basis: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.tpl .tpl__choice label {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-2);
}

.tpl__note {
  font-size: 13px !important;
  color: var(--muted) !important;
  margin: 6px 0 0 !important;
}

.tpl__sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 40px 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.tpl__sign span {
  border-top: 1px solid var(--ink);
  padding-top: 4px;
}

@media print {
  @page {
    size: A4;
    margin: 14mm 14mm 16mm;
  }

  body {
    font-size: 10pt;
  }

  .no-print,
  .legal-top,
  .footer,
  .skip-link {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .article {
    padding: 0;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .tpl {
    border: 0;
    padding: 0;
    margin: 0;
  }

  .article .container > :not(.tpl) {
    display: none !important;
  }

  .tpl fieldset {
    padding-top: 8px;
  }

  .tpl legend {
    margin-bottom: 4px;
    break-after: avoid;
  }

  .tpl__choice,
  .tpl label {
    break-inside: avoid;
  }

  .tpl textarea {
    resize: none;
  }

  .tpl__sign {
    margin-top: 44px;
  }

  .tpl__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px 14px;
  }

  .tpl__grid--wide {
    grid-template-columns: 1fr;
  }

  .tpl input[type="text"],
  .tpl input[type="date"],
  .tpl textarea {
    min-height: 22px;
    padding: 2px 0;
    font-size: 10pt;
  }

  .tpl input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
  }

  .tpl__sign {
    break-inside: avoid;
  }
}

.print-only {
  display: none;
}

.tpl__full {
  grid-column: 1 / -1;
}

.btn--outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--input-line);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.article .disclaimer {
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}

/* Free tools teaser on the landing page */

.free {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.free a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.free a:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(14, 54, 133, 0.08);
  color: var(--ink);
}

.free .strong {
  color: var(--accent);
}

#preis + .section {
  padding-top: 0;
}

/* ---------- Savings calculator (/rechner) ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.calc-page .container {
  max-width: 1120px;
}

.calc-page .lead {
  max-width: 700px;
}

.calc {
  display: grid;
  gap: 24px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .calc {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 32px;
  }

  .calc__result {
    position: sticky;
    top: 24px;
  }
}

.calc__inputs {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: #fff;
}

.article .calc__title {
  margin: 0;
  font-size: 20px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calc-field__head label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.calc-field__box {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.calc-field__box input {
  width: 104px;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--input-line);
  border-radius: 10px;
}

.calc-field__box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 103, 194, 0.2);
}

.calc-field__box input[aria-invalid="true"] {
  border-color: var(--err-line);
}

.calc-field__unit {
  min-width: 34px;
  font-size: 15px;
  color: var(--muted);
}

.calc-field input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.article .calc-field__help {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.calc-field .field__error {
  margin: 0;
  font-size: 14px;
  color: var(--err);
}

.calc__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.article .calc__share p {
  margin: 0;
}

.calc-hero {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
}

.article .calc-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.86);
}

.article .calc-hero p {
  margin: 0;
  color: #fff;
}

.calc-hero__value {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}

.calc-hero__num {
  font-size: clamp(56px, 9vw, 88px);
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.article .calc-hero__sub {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.35;
  text-wrap: balance;
}

.article .calc-hero__detail {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.article .calc-hero__hint {
  font-size: 18px;
  line-height: 1.45;
}

.calc-hero [data-out],
.calc-card dd,
.calc-card__detail {
  font-variant-numeric: tabular-nums;
}

.calc-ways {
  margin-top: 56px;
}

.calc-cards {
  list-style: none;
  margin: 0;
  padding: 0 !important;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .calc-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.calc-cards li + li {
  margin-top: 0;
}

.calc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: #fff;
}

.calc-card--empfohlen {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 30px rgba(14, 54, 133, 0.1);
}

.article .calc-card p,
.article .calc-card h3 {
  margin: 0;
}

.article .calc-card h3 {
  font-size: 20px;
}

.article .calc-card__tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.calc-card dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-card dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.calc-card dt {
  color: var(--ink-2);
}

.calc-card dd {
  margin: 0;
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink);
}

.calc-card__sum {
  font-size: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.calc-card__result {
  margin-top: auto !important;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--soft);
}

.calc-card__result > div:first-child dd {
  font-size: 22px;
}

.calc-card__note {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.calc-card .calc-num--pos {
  color: var(--ok);
}

.calc-card .calc-num--neg {
  color: var(--err);
}

.article .calc-card__payback {
  font-size: 15px;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-bg);
  border-radius: 12px;
  padding: 10px 14px;
}

.calc-offer {
  margin-top: 20px;
  background: var(--tint);
  border-radius: 16px;
  padding: 20px 24px;
}

.article .calc-offer p {
  margin: 0;
}

.article .calc-offer .strong {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 4px;
}

.article .calc-ways__fine {
  margin-top: 16px;
}

.calc-why {
  margin-top: 8px;
}

.calc-why .checklist {
  max-width: 760px;
}

@media (max-width: 480px) {
  .calc__inputs,
  .calc-card {
    padding: 20px;
  }

  .calc-hero {
    padding: 24px;
  }

  .calc-field__box input {
    width: 92px;
  }
}

.offer__calc {
  margin-top: 14px;
  text-align: center;
  font-weight: 600;
}
