/* myWerkzeug.de – Anmeldung und geschützter Bereich. Tokens aus dem Design System „myWerkzeug.de“. */
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root {
  --surface: #f5f7fc; --raised: #ffffff; --line: #d8deec; --line-strong: #717c9a;
  --ink: #0a1540; --muted: #4a5579; --blue: #1f3fe0; --blue-soft: #e3e9ff; --navy: #0a1540;
  --volt: #c4ff1a; --navy-ink: #eef2ff; --navy-muted: #a4aed0; --blue-d: #7d93ff;
  --err: #c3262f; --err-soft: #ffe4e5; --ok: #3b6a00; --ok-soft: #effdc2;
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --r-sm: 3px; --r-md: 6px;
  --focus: 0 0 0 2px #ffffff, 0 0 0 4px #1f3fe0;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: none; box-shadow: var(--focus); }

.split { position: relative; min-height: 100%; display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; }
.stage { background: var(--navy); color: var(--navy-ink); padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; position: relative; overflow: hidden; }
.stage::after { /* Horizontlinien des Signets als ruhige Form im Hintergrund */
  content: ""; position: absolute; left: 48px; right: -40px; top: 38%; height: 72px; pointer-events: none;
  background:
    linear-gradient(var(--blue-d), var(--blue-d)) 0 0 / 100% 10px no-repeat,
    linear-gradient(var(--blue-d), var(--blue-d)) 0 26px / 72% 10px no-repeat,
    linear-gradient(var(--blue-d), var(--blue-d)) 0 52px / 44% 10px no-repeat;
  opacity: .14; border-radius: 5px;
}
.lock { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; position: relative; z-index: 1; }
.lock svg { width: 44px; height: 44px; flex-shrink: 0; }
.lock > span { display: flex; flex-direction: column; gap: 4px; }
.ey { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--navy-muted); font-stretch: 118%; }
.pn { font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: -.02em; font-stretch: 118%; }
.claim { position: relative; z-index: 1; display: grid; gap: 28px; }
.claim-h { margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; font-stretch: 118%; text-wrap: balance; max-width: 16ch; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--navy-muted); font-size: 14px; }
.facts .k { display: block; font-size: 22px; font-weight: 700; color: var(--volt); font-stretch: 118%; font-variant-numeric: tabular-nums; }

.panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; gap: 20px; }
.card { width: 100%; max-width: 400px; display: grid; gap: 18px; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); font-stretch: 118%; }
h1 { margin: -10px 0 0; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; font-stretch: 118%; }
.lead { margin: -6px 0 6px; color: var(--muted); }
.field { display: grid; gap: 6px; }
label { font-size: 14px; font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=tel], select, textarea {
  width: 100%; height: 46px; padding: 0 14px; font: inherit; color: var(--ink); background: var(--raised);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
input:hover { border-color: var(--ink); }
.pw { position: relative; }
.pw input { padding-right: 104px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; height: 38px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--blue); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pw-toggle:hover { background: var(--blue-soft); }
.btn { height: 48px; margin-top: 4px; border: 0; border-radius: var(--r-md); background: var(--blue); color: var(--auf-blau, #fff); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.btn:hover { background: var(--blue-hover, #1832b8); }
.btn:active { transform: translateY(1px); }
.msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; }
.msg svg { width: 20px; height: 20px; flex-shrink: 0; }
.msg-error { background: var(--err-soft); color: var(--err); }
.msg-info { background: var(--ok-soft); color: var(--ok); }
.hint { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.foot { margin: 0; font-size: 14px; }
.foot a { text-decoration: none; font-weight: 500; }

/* Umschalter Hell/Dunkel oben rechts */
button.thema-knopf.thema-ecke { position: absolute; top: 22px; right: 24px; z-index: 2; }

/* Registrierung */
.card.weit { max-width: 520px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.grid2 .voll { grid-column: 1 / -1; }
.wahl { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; }
.wahl input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }
.wahl .hint { display: block; margin: 2px 0 0; }
.trenner { margin: 6px 0 -6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.links a { text-decoration: none; font-weight: 500; }
.demo-note { font-size: 13px; background: var(--ok-soft); color: var(--ok); padding: 10px 12px; border-radius: var(--r-sm); }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }

/* Geschützter Bereich (Platzhalter bis zum Tool) */
.appbar { background: var(--navy); color: var(--navy-ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; }
.appbar .lock svg { width: 36px; height: 36px; }
.appbar .pn { font-size: 20px; }
.btn-ghost { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--blue-d); border-radius: var(--r-md); color: var(--navy-ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.btn-ghost:hover { background: rgba(125,147,255,.16); }
.app-main { max-width: 880px; margin: 0 auto; padding: 64px 24px; display: grid; gap: 20px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 6px 12px; border-radius: var(--r-sm); justify-self: start; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  button.thema-knopf.thema-ecke { top: 18px; right: 16px; }
  button.thema-knopf.thema-ecke { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: #e6eaff; }
  button.thema-knopf.thema-ecke:hover, button.thema-knopf.thema-ecke[aria-expanded="true"] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); color: #fff; }
  button.thema-knopf.thema-ecke:focus-visible { outline-color: #c4ff1a; }
  .stage { padding: 24px; gap: 24px; }
  .stage::after, .facts { display: none; }
  .claim-h { font-size: 22px; }
  .panel { justify-content: flex-start; padding: 32px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }
/* Registrierung: Gutscheincode aufklappbar, Rechtliches unter dem Knopf */
details.gutschein > summary { cursor: pointer; color: var(--blue); font-size: 14px; font-weight: 600; list-style: none; width: max-content; }
details.gutschein > summary::-webkit-details-marker { display: none; }
details.gutschein > summary::before { content: "+ "; }
details.gutschein[open] > summary::before { content: "− "; }
details.gutschein[open] > summary { margin-bottom: 10px; }
.hint.rechtlich { margin: 2px 0 0; line-height: 1.5; }
/* Anmelden auf drei Wegen: Code per E-Mail, Passkey, Passwort (Thomas 2026-10-09) */
label .frei { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.wege { border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: var(--r-md); padding: 12px 14px; font-size: 13px; color: var(--muted); }
.wege-h { margin: 0 0 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.wege ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.wege li { line-height: 1.45; }
.wege b { display: block; color: var(--ink); font-size: 14px; }
.code-feld { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; padding-left: .4em !important; }
.link-knopf { border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.link-knopf:hover { text-decoration: underline; }
.btn.zweit { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn.zweit:hover { background: var(--blue-soft); }
.btn.zweit svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; }
.oder { display: flex; align-items: center; gap: 12px; margin: -4px 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.oder::before, .oder::after { content: ""; flex: 1; height: 1px; background: var(--line, rgba(127,127,127,.25)); }

/* Kontaktformular (/kontakt/): Themen als Chips, Textfeld, Bestätigung */
textarea { height: auto; min-height: 150px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
textarea:hover { border-color: var(--ink); }
textarea:focus-visible, .chip input:focus-visible + span { outline: none; box-shadow: var(--focus); }
fieldset.chips { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.chips legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.chip-reihe { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--raised); color: var(--ink); font-size: 14px; font-weight: 500; transition: background .15s, border-color .15s, color .15s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--auf-blau, #fff); font-weight: 600; }
.kontakt-fertig { text-align: left; }
.kontakt-haken { width: 56px; height: 56px; color: var(--ok); }
.kontakt-haken svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .kontakt-haken path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: kontakt-haken .5s .15s ease-out forwards; }
  @keyframes kontakt-haken { to { stroke-dashoffset: 0; } }
}
