/* Look & Feel übernommen aus der trakklab.hello-Startseite (Apple-Style) */
:root {
  --orange: #F54106;
  --orange-hover: #FF5A1F;
  --blue: #357FEB;
  --ink: #0B0C0E;
  --ink-2: #141518;
  --text: #181B1F;
  --text-light: #F5F8FE;
  --muted: #5E6A73;
  --muted-2: #6B767D;
  --muted-dark: #8B929A;
  --lead: #A1A7AE;
  --paper: #F5F8FE;
  --line: #DCE3EE;
  --line-2: #E3E6EB;
  --dark-line: #1F2226;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--ink); color: var(--text-light); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: #FF6A36; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; width: 100%; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--orange); letter-spacing: .01em; }
.mega { font-size: 96px; line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.h3 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.lead { font-size: 21px; line-height: 1.45; color: var(--lead); font-weight: 500; }
.grad { background: linear-gradient(100deg, var(--orange) 45%, var(--blue) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange); color: #fff; font-size: 17px; font-weight: 500; padding: 14px 26px; border-radius: 980px; }
.pill:hover { background: var(--orange-hover); color: #fff; }
.more { font-size: 17px; font-weight: 500; color: var(--orange); }
.chip { display: inline-flex; align-self: flex-start; border: 1px solid rgba(245, 65, 6, .6); color: var(--orange); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 980px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 30; height: 56px; background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav-in { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.navlogo { display: flex; align-items: center; }
.navlogo img { height: 26px; width: auto; display: block; }
.links { display: flex; align-items: center; gap: 32px; font-size: 13px; }
.links .nl { color: #D2D6DB; }
.links .nl:hover { color: #fff; }

/* Hero */
.hero { padding: 120px 0 130px; text-align: center; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; left: 15%; right: 15%; bottom: -30%; height: 70%; background: radial-gradient(50% 50% at 50% 50%, rgba(245, 65, 6, .35), rgba(53, 127, 235, .14) 55%, transparent 75%); filter: blur(60px); pointer-events: none; }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero .lead { max-width: 680px; }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--muted-dark); margin-top: 4px; }
.badges .dot { color: #3A3D42; }

@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.load1 { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.load2 { animation: rise 1s .15s cubic-bezier(.2, .7, .2, 1) both; }
.load3 { animation: rise 1s .3s cubic-bezier(.2, .7, .2, 1) both; }

/* Formular-Bereich */
.sec { padding: 150px 0; }
.form-sec { background: var(--paper); color: var(--text); padding: 110px 0 150px; }
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 80px; align-items: start; }

.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.side-head { display: flex; flex-direction: column; gap: 6px; }
.side-count { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 4px; width: 0; background: var(--orange); border-radius: 4px; transition: width .4s cubic-bezier(.2, .7, .2, 1); }
.toc { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toc a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; color: var(--muted-2); font-size: 16px; font-weight: 600; transition: background .2s, color .2s; }
.toc a span { font-size: 13px; font-weight: 700; color: #9AA3A9; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--text); background: #EAEFF7; }
.toc a.is-active { background: #fff; color: var(--text); box-shadow: 0 8px 24px rgba(127, 138, 164, .18); }
.toc a.is-active span { color: var(--orange); }
.toc a.is-done span { color: var(--orange); }

.form { display: flex; flex-direction: column; gap: 90px; min-width: 0; }
.group { display: flex; flex-direction: column; gap: 20px; }
.group-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }

.card { margin: 0; border: 1px solid var(--line); border-radius: 28px; background: #fff; padding: 36px 40px 40px; min-width: 0; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(127, 138, 164, .12); }
.card legend { float: left; padding: 0; }
.q-num { font-size: 13px; font-weight: 700; color: var(--orange); letter-spacing: .04em; text-transform: uppercase; }
.q-num + * { clear: both; }
.q-t { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.q-hint { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 680px; }

/* Hinweis bei vorausgefüllten Stammdaten (persönlicher Link) */
.prefill-note { display: flex; align-items: center; gap: 10px; background: #FEF1EC; border: 1px solid rgba(245, 65, 6, .25); color: #7A2A0A; font-size: 15px; font-weight: 500; line-height: 1.45; padding: 12px 16px; border-radius: 14px; }
.prefill-note::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* Felder */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 6px; }
.span2 { grid-column: span 2; }
.f { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: #3B454D; }
.req { color: var(--orange); font-weight: 700; margin-left: 3px; }
.f-note { font-size: 13px; font-weight: 500; color: var(--muted-2); }
.field { font: inherit; font-size: 17px; font-weight: 500; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; width: 100%; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field::placeholder { color: #A5ADB4; font-weight: 400; }
.field:hover { border-color: #C3CCD9; }
.field:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245, 65, 6, .14); }
textarea.field { resize: vertical; min-height: 104px; line-height: 1.5; }
.field.other { max-width: 420px; margin-top: 4px; animation: pop .35s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.f.is-invalid .field, .field.is-invalid { border-color: #D93A0B; box-shadow: 0 0 0 4px rgba(217, 58, 11, .1); }

/* Dropdown (PMS) */
.select-wrap { max-width: 420px; margin-top: 6px; }
.select { cursor: pointer; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F54106' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.select:has(option[value=""]:checked) { color: #A5ADB4; font-weight: 400; }
.select option { color: var(--text); font-weight: 500; }

/* Pflichtfelder */
.req-note { font-size: 14px; color: var(--muted-2); font-weight: 500; }
.q-t .req { font-size: .8em; vertical-align: top; }
.opts.is-invalid .opt span { border-color: #D93A0B; box-shadow: 0 0 0 4px rgba(217, 58, 11, .1); }

/* Auswahl als Pills */
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; padding: 12px 22px; border-radius: 980px; border: 1px solid var(--line); background: var(--paper); font-size: 16px; font-weight: 600; color: var(--text); transition: background .2s, border-color .2s, color .2s, transform .2s; }
.opt:hover span { border-color: rgba(245, 65, 6, .5); }
.opt input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(245, 65, 6, .25); }
.opt input:focus-visible + span { outline: 3px solid rgba(245, 65, 6, .45); outline-offset: 3px; }
.opt input:active + span { transform: scale(.97); }

/* Häkchen „identisch mit Betreuer Telefonanlage“ */
.check { position: relative; display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; cursor: pointer; font-size: 16px; font-weight: 600; padding: 10px 18px 10px 12px; border-radius: 980px; background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.check:hover { border-color: rgba(245, 65, 6, .5); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #B7C1CE; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s, border-color .2s; }
.check-box svg { opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.check:has(input:checked) { background: #FEF1EC; border-color: rgba(245, 65, 6, .5); }
.check input:checked + .check-box { background: var(--orange); border-color: var(--orange); }
.check input:checked + .check-box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check-box { outline: 3px solid rgba(245, 65, 6, .45); outline-offset: 3px; }

[data-mode="intern"] .ext-only { display: none; }

/* Zwischenüberschrift (Dienstleister) */
.subhead { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line-2); }

/* Absenden */
.cta-card { border-radius: 28px; background: linear-gradient(120deg, var(--orange), #C73300); padding: 44px 52px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; }
.cta-text { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.cta-card .t { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.cta-sub { font-size: 16px; line-height: 1.5; color: #FFE3D8; }
.cta-sub a { color: #fff; text-decoration: underline; }
.cta-btn { all: unset; box-sizing: border-box; cursor: pointer; flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--orange); font-size: 17px; font-weight: 600; padding: 14px 30px; border-radius: 980px; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(110, 25, 0, .3); }
.cta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cta-btn[disabled] { cursor: progress; opacity: .85; transform: none; }
.cta-btn.is-busy span::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border-radius: 50%; border: 2px solid rgba(245, 65, 6, .3); border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { background: #fff; color: #B22D05; font-size: 15px; font-weight: 600; line-height: 1.45; padding: 12px 16px; border-radius: 14px; margin-top: 8px; }

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

/* Danke-Seite */
.end-sec { background: var(--ink); padding: 110px 0 0; overflow: hidden; min-height: calc(100vh - 56px - 82px); display: flex; align-items: flex-end; }
.end-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.end-text { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; max-width: 660px; padding-bottom: 130px; animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.end-h { font-size: 76px; outline: none; }
.end-fig { position: relative; flex: 0 0 400px; height: 520px; display: flex; justify-content: center; align-items: flex-end; animation: endIn 1.1s .2s cubic-bezier(.2, .7, .2, 1) both; }
.end-glow { position: absolute; left: 8%; right: 8%; bottom: -10%; height: 75%; background: radial-gradient(50% 50% at 50% 60%, rgba(245, 65, 6, .55), rgba(53, 127, 235, .12) 60%, transparent 75%); filter: blur(40px); }
.end-fig img { position: relative; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; display: block; }
@keyframes endIn { from { opacity: 0; transform: translateX(160px); } to { opacity: 1; transform: none; } }

.footer { background: var(--ink); border-top: 1px solid var(--dark-line); padding: 28px 0 32px; font-size: 13px; color: var(--muted-dark); }
.fbottom { display: flex; justify-content: space-between; gap: 12px; }
.flinks { display: flex; gap: 20px; }
.flinks a { color: var(--muted-dark); }
.flinks a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .load1, .load2, .load3, .end-text, .end-fig, .field.other { animation: none !important; }
}

@media (max-width: 1024px) {
  .wrap { padding: 0 32px; }
  .mega { font-size: 72px; }
  .h3 { font-size: 34px; }
  .lead { font-size: 19px; }
  .hero { padding: 96px 0; }
  .form-sec { padding: 80px 0 110px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .side { position: sticky; top: 56px; z-index: 10; margin: 0 -32px; padding: 14px 32px; gap: 10px; background: rgba(245, 248, 254, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .side-head { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .side-head .eyebrow { font-size: 14px; }
  .side-count { font-size: 15px; }
  .toc { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -6px; gap: 2px; }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; padding: 8px 12px; font-size: 14px; gap: 8px; }
  .form { gap: 70px; }
  .end-h { font-size: 60px; }
  .end-fig { flex-basis: 320px; height: 440px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .navlogo img { height: 22px; }
  .links .nl { display: none; }
  .eyebrow { font-size: 15px; }
  .mega { font-size: 44px; letter-spacing: -.03em; }
  .h3 { font-size: 27px; }
  .lead { font-size: 17px; }
  .pill { font-size: 16px; padding: 13px 22px; }
  .hero { padding: 64px 0; }
  .badges { flex-direction: column; gap: 6px; font-size: 13px; }
  .badges .dot { display: none; }
  .form-sec { padding: 56px 0 80px; }
  .side { margin: 0 -20px; padding: 12px 20px; }
  .side-head .eyebrow { display: none; }
  .card { padding: 26px 22px 28px; border-radius: 24px; }
  .q-t { font-size: 20px; }
  .q-hint { font-size: 15px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .opt span { padding: 11px 18px; font-size: 15px; min-width: 56px; }
  .cta-card { flex-direction: column; align-items: stretch; padding: 30px 24px; gap: 22px; border-radius: 24px; }
  .cta-card .t { font-size: 26px; }
  .cta-btn { justify-content: center; }
  .end-sec { padding-top: 64px; }
  .end-row { flex-direction: column; align-items: center; gap: 0; }
  .end-text { padding-bottom: 20px; }
  .end-h { font-size: 44px; }
  .end-fig { flex: none; height: 340px; width: 100%; }
  .fbottom { flex-direction: column; }
}
