/* officina one, DATEV-Connector Landingpage.
   Tokens, Schriften und Wortmarke 1:1 aus web/styles.css (Designer-Final 27.08.2026,
   design/final-2026-08/). IBM Plex Sans als Variable-Font mit echten Schnitten
   (400 Regular, 600 SemiBold). NCND nur für Wortmarke und kurze Tippzeilen;
   der Interimsfont kennt nur Kleinbuchstaben ohne j k q y z, Ziffern ohne 8, kein ö. */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url('/fonts/ibm-plex-sans-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url('/fonts/ibm-plex-sans-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'NCND'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/ncnd-interim.woff2') format('woff2'); }

:root {
  --paper: #F9F8F3;
  --paper-warm: #F4F3EC;
  --paper-deep: #E0DED4;
  --sheet: #FFFFFF;
  --ink: #000000;
  --ink-70: rgba(0,0,0,.70);
  --ink-45: rgba(0,0,0,.45);
  --ink-22: rgba(0,0,0,.22);
  --ink-12: rgba(0,0,0,.12);
  --ribbon-red: #CD1619;
  --wordmark-red: #D00827;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-brand: "NCND", "Courier New", monospace;
  --track-label: .22em;
  --gutter: clamp(20px, 5.5vw, 96px);
  --spalte-label: 13rem;
  --mass: 41rem;
  --ease-key: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, p, dl, dd, ul, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
em, i { font-style: normal; font-weight: 600; }
a { color: inherit; text-decoration-color: var(--ribbon-red); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--ribbon-red); }
:focus-visible { outline: 2px solid var(--ribbon-red); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: var(--gutter); top: -4rem; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; text-decoration: none; }
.sprung:focus { top: 12px; color: var(--paper); }

/* Tippzeilen (NCND) */
.tipp { font-family: var(--font-brand); font-weight: 400; letter-spacing: .02em; }
.caret { color: var(--wordmark-red); animation: caret 900ms steps(1) infinite; }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.over { position: relative; display: inline-block; color: var(--ink-45); }
.over::after { content: attr(data-x); position: absolute; left: 0; top: 0; color: var(--ink); }

/* Label: gesperrte Versalien, SemiBold, Farbband-Rot (CI) */
.label {
  font-weight: 600; font-size: 11.5px; line-height: 1.5;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ribbon-red);
}

/* Kopf: getippte Meta links, Wortmarke rechts (wie Angebotsbogen) */
.kopf {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(20px, 3.2vw, 40px) var(--gutter) 0;
}
.kopf-meta { font-size: 14px; color: var(--ink-70); }
.marke { display: block; padding: 8px 0 8px 8px; }
.marke img { display: block; height: clamp(17px, 2vw, 24px); width: auto; }

/* Auftakt */
.auftakt { padding: clamp(56px, 10vw, 136px) var(--gutter) clamp(56px, 8vw, 112px); }
.auftakt h1 { font-weight: 400; }
.auftakt h1.these { font-weight: 600; }
.titel-tipp {
  display: block; white-space: nowrap;
  font-size: clamp(27px, 7.4vw, 104px); line-height: 1.05; letter-spacing: 0;
  margin-left: -.03em;
}
.titel-text { display: inline-block; vertical-align: bottom; clip-path: inset(-10% 0 -10% 0); animation: tippen 1150ms steps(19, end) 250ms both; }
@keyframes tippen { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% 0 -10% 0); } }
.titel-tipp.klein { font-size: clamp(27px, 5vw, 64px); margin-bottom: clamp(20px, 3vw, 36px); }
.tippzeile { font-size: clamp(15px, 1.7vw, 21px); color: var(--ink-70); margin-top: clamp(12px, 1.6vw, 22px); }
.these {
  font-weight: 600; font-size: clamp(24px, 3.1vw, 40px); line-height: 1.18; letter-spacing: -.012em;
  max-width: 21em; margin-top: clamp(40px, 6vw, 80px); text-wrap: balance;
}
.auftakt-danke .these { margin-top: 0; }
.lauf { max-width: var(--mass); margin-top: 1.1em; text-wrap: pretty; }
.auftakt .lauf { font-size: clamp(17px, 1.45vw, 19px); }
.auftakt .these + .lauf { margin-top: 1.5em; }
.weiter { margin-top: clamp(28px, 3.4vw, 44px); }

/* Knöpfe */
.knopf {
  display: inline-block; appearance: none; cursor: pointer;
  font: 600 16px/1.2 var(--font-body); letter-spacing: .01em; text-decoration: none;
  color: var(--paper); background: var(--ink); border: 1.5px solid var(--ink);
  padding: 17px 30px; min-height: 54px;
  transition: background-color 160ms var(--ease-key), border-color 160ms var(--ease-key), color 160ms var(--ease-key);
}
.knopf:hover { background: var(--ribbon-red); border-color: var(--ribbon-red); color: var(--paper); }
.knopf:disabled { background: var(--ink-45); border-color: transparent; cursor: progress; }
.knopf-linie { background: transparent; color: var(--ink); }
.knopf-linie:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Abschnitte: Label links, Inhalt rechts */
.abschnitt {
  display: grid; grid-template-columns: var(--spalte-label) minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 72px);
  padding: clamp(44px, 6vw, 84px) var(--gutter);
  border-top: 1px solid var(--ink-12);
}
.abschnitt > .label { padding-top: .75em; }
.abschnitt h2 {
  font-weight: 600; font-size: clamp(21px, 2.2vw, 29px); line-height: 1.22; letter-spacing: -.008em;
  max-width: 24em; text-wrap: balance;
}
.punkte { margin-top: clamp(24px, 3vw, 40px); max-width: 52rem; display: grid; gap: 20px 56px; }
.punkte dt { font-weight: 600; }
.punkte dd { color: var(--ink-70); max-width: 36rem; }
.punkte.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
.punkte:not(.zwei) > div { display: grid; grid-template-columns: 15rem minmax(0, 1fr); column-gap: 32px; padding-top: 16px; border-top: 1px dashed var(--ink-22); }
.punkte:not(.zwei) { gap: 16px; }
.grenzen { list-style: none; margin-top: clamp(20px, 2.6vw, 32px); max-width: var(--mass); }
.grenzen li { position: relative; padding: 0 0 0 2.1em; margin-top: 12px; }
.grenzen li::before { content: "x"; position: absolute; left: 0; top: -.08em; font-family: var(--font-brand); font-size: 1.2em; color: var(--ribbon-red); }

/* Fragebogen */
.abschnitt-fragen { background: var(--paper-warm); scroll-margin-top: 0; }
.bogen {
  margin-top: clamp(28px, 3.4vw, 44px); max-width: 50rem;
  background: var(--sheet); border: 1px solid var(--ink-12);
  padding: clamp(8px, 1.4vw, 16px) clamp(20px, 3.6vw, 52px) clamp(28px, 3.6vw, 52px);
}
.bogen-zu { padding-top: clamp(28px, 3.6vw, 52px); }
.zusatz { position: absolute; left: -200vw; top: auto; width: 1px; height: 1px; overflow: hidden; }
.meldung { margin-top: 28px; padding: 14px 18px; border-left: 3px solid var(--ribbon-red); background: var(--paper); font-weight: 600; }
.meldung.leer { display: none; }
/* Achtung: padding-top eines fieldset liegt UNTER der legend, deshalb sitzt der obere Abstand an der legend. */
.frage { --pad: clamp(26px, 3.2vw, 40px); --einzug: 40px; padding: 0 0 var(--pad); border-bottom: 1px dashed var(--ink-22); }
.frage legend {
  display: block; width: 100%; position: relative; padding: var(--pad) 0 0 var(--einzug);
  font-weight: 600; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.35;
}
.frage .nr { position: absolute; left: 0; top: calc(var(--pad) + .02em); line-height: 1; font-family: var(--font-brand); font-weight: 400; font-size: 1.3em; color: var(--ribbon-red); }
.frage > .hinweis { padding-left: var(--einzug); }
.hinweis, .optional { color: var(--ink-70); font-size: 14.5px; font-weight: 400; }
.optional { margin-left: .35em; }
.hinweis { margin-top: 4px; }

.auswahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; margin-top: 16px; }
.haken { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 6px 0; cursor: pointer; }
.haken input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; cursor: pointer;
  width: 26px; height: 26px; background: var(--paper); border: 1.5px solid var(--ink);
  display: grid; place-items: center;
}
.haken input::after {
  content: "x"; font-family: var(--font-brand); font-size: 27px; line-height: 1; color: var(--ribbon-red);
  transform: translate(.02em, -.05em) scale(.4); opacity: 0;
  transition: transform 120ms var(--ease-key), opacity 80ms linear;
}
.haken input:checked::after { transform: translate(.02em, -.05em) scale(1); opacity: 1; }
.haken:hover input { background: var(--sheet); }
.haken-mit-text { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.haken-mit-text input[type="text"] { flex: 1 1 14rem; max-width: 24rem; }

.raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin-top: 20px; }
.feld { min-width: 0; }
.frage > .feld { margin-top: 20px; }
.feld label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  display: block; width: 100%; appearance: none; -webkit-appearance: none;
  font: 400 17px/1.4 var(--font-body); color: var(--ink);
  background: var(--paper); border: 0; border-bottom: 1.5px solid var(--ink);
  padding: 12px 14px; min-height: 50px;
  transition: background-color 120ms linear;
}
textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
input[type="text"]:hover, input[type="email"]:hover, input[type="tel"]:hover, textarea:hover { background: var(--paper-warm); }
input[type="text"]:focus-visible, input[type="email"]:focus-visible, input[type="tel"]:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ribbon-red); outline-offset: 0; border-bottom-color: var(--ribbon-red); background: var(--sheet);
}
[aria-invalid="true"] { border-bottom-color: var(--ribbon-red) !important; }
.fehler { color: var(--ribbon-red); font-size: 14.5px; font-weight: 600; margin-top: 6px; }
.fehler[hidden] { display: none; }

.abschluss { padding-top: clamp(26px, 3.2vw, 40px); }
.datenschutz { margin-top: 22px; font-size: 14.5px; line-height: 1.55; color: var(--ink-70); max-width: 40rem; }
.bogen-zu-text { max-width: 36rem; }

/* Fuß */
.fuss {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--ink-12);
  font-size: 14.5px; color: var(--ink-70);
}
.fuss .tipp { color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.fuss-recht { display: flex; gap: 28px; }
.fuss-recht a, .fuss-adresse a { display: inline-block; padding: 6px 0; }

/* Schmal */
@media (max-width: 900px) {
  .abschnitt { grid-template-columns: minmax(0, 1fr); }
  .abschnitt > .label { padding-top: 0; margin-bottom: 14px; }
  .punkte.zwei { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .punkte:not(.zwei) > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .auswahl, .raster { grid-template-columns: minmax(0, 1fr); }
  .auswahl { gap: 0; }
  .raster { gap: 18px; }
  .knopf { width: 100%; text-align: center; }
  .abschnitt-fragen { padding-left: 0; padding-right: 0; }
  .abschnitt-fragen > .label, .abschnitt-fragen h2, .abschnitt-fragen .inhalt > .lauf { padding-left: var(--gutter); padding-right: var(--gutter); }
  .bogen { border-left: 0; border-right: 0; }
  .fuss { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .titel-text { animation: none; }
  .caret { animation: none; }
  .knopf, .haken input::after, input, textarea { transition: none; }
}

@media print {
  .sprung, .weiter, .knopf { display: none; }
  body { background: #fff; }
}
