/* TickIT Website und Portal: Flächen statt Schatten, Kobalt als Markenfarbe, Gelb für "frei geworden" */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Instrument Sans Variable';
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans Variable';
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}

:root {
  --bg: #ece4d0;
  --surface: #fbf7ea;
  --text: #1b1914;
  --text-2: #5a5446;
  --line: #1b1914;
  --line-soft: #cdc2a5;
  --brand: #ffd21f;
  --on-brand: #1b1914;
  --action: #1b1914;
  --on-action: #fbf7ea;
  --signal: #ffd21f;
  --on-signal: #1b1914;
  --danger: #b3261e;
  --ok: #0a7a3d;
  --font-display: 'Bricolage Grotesque Variable', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Instrument Sans Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 0;
  --gutter: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17150f;
    --surface: #24211a;
    --text: #f4eddb;
    --text-2: #b3ab96;
    --line: #f4eddb;
    --line-soft: #3d382b;
    --action: #ffd21f;
    --on-action: #1b1914;
    --danger: #ff8a7d;
    --ok: #5fd68e;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }
a { color: var(--action); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 680px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.hidden { display: none !important; }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 20px; }
.mt-l { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
.site-head { border-bottom: 2px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--text); text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-weight: 600; font-size: 16px; border: 2px solid transparent; }
.nav a:hover { border-color: var(--line-soft); }
.nav a[aria-current='page'] { border-color: var(--line); background: var(--signal); color: var(--on-signal); }

/* Schaltflächen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 17px; line-height: 1.2;
  padding: 11px 18px; min-height: 46px;
  border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--line-soft); }
.btn.primary { background: var(--action); color: var(--on-action); border-color: var(--action); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.signal { background: var(--signal); color: var(--on-signal); border-color: var(--line); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.small { min-height: 34px; padding: 5px 10px; font-size: 15px; }
.btn.link { border-color: transparent; background: none; padding-left: 4px; padding-right: 4px; color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Flächen */
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.flat { border-color: var(--line-soft); }
.card h3:first-child, .card h4:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-2); font-size: 14px; margin-top: 6px; }

/* Formulare */
.field { display: block; margin-bottom: 14px; }
.field > span, .field > .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.field .hint { display: block; font-weight: 400; color: var(--text-2); font-size: 14px; margin-top: 4px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--text); background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 46px;
}
textarea { min-height: 90px; resize: vertical; }
input[type='checkbox'], input[type='radio'] { width: 22px; height: 22px; min-height: 0; accent-color: var(--action); flex: none; margin: 2px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.check label { font-weight: 400; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.error { color: var(--danger); font-weight: 600; margin: 8px 0; }
.notice { border: 2px solid var(--line); background: var(--signal); color: var(--on-signal); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.notice.info { background: var(--surface); color: var(--text); border-color: var(--line-soft); font-weight: 400; }
.notice a { color: inherit; }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); border-bottom: 2px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.right, th.right { text-align: right; }

.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border: 2px solid var(--line); border-radius: 3px; white-space: nowrap; background: var(--surface); }
.tag.signal { background: var(--signal); color: var(--on-signal); }
.tag.ok { border-color: var(--ok); color: var(--ok); }
.tag.bad { border-color: var(--danger); color: var(--danger); }
.tag.mute { border-color: var(--line-soft); color: var(--text-2); }

/* Portal */
.portal-main { padding: 28px 0 80px; min-height: 70vh; }
.portal-main h1 { font-size: clamp(28px, 4.5vw, 40px); }
.sub-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.sub-nav a { text-decoration: none; color: var(--text); padding: 6px 12px; border: 2px solid var(--line-soft); border-radius: var(--radius); font-weight: 600; font-size: 15px; }
.sub-nav a[aria-current='page'] { border-color: var(--line); background: var(--signal); color: var(--on-signal); }
.login-box { max-width: 460px; margin: 48px auto; }
dialog { border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(11, 16, 51, .6); }
dialog .dlg { padding: 20px; }
dialog .dlg-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.toasts { position: fixed; left: 0; right: 0; bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 50; pointer-events: none; padding: 0 var(--gutter); }
.toast { pointer-events: auto; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; max-width: 520px; }
.toast.bad { background: var(--danger); color: #fff; }
.qr { width: 180px; height: 180px; image-rendering: pixelated; border: 2px solid var(--line); background: #fff; display: block; }
.spinner { padding: 40px; text-align: center; color: var(--text-2); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
details.card summary { cursor: pointer; font-weight: 700; }

/* Marketing */
.hero { background: var(--brand); color: var(--on-brand); border-bottom: 2px solid var(--line); padding: 64px 0 72px; }
.hero h1 { max-width: 14ch; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); max-width: 38em; opacity: .95; }
.hero .btn.signal { font-size: 18px; min-height: 52px; background: #1b1914; color: #fbf7ea; border-color: #1b1914; }
.hero .btn.ghost { background: #fbf7ea; color: #1b1914; border-color: #1b1914; }
.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--signal); color: var(--on-signal); border: 2px solid var(--line); border-radius: var(--radius); font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: 12px; }
.price-table td.fee { font-family: var(--font-display); font-weight: 800; font-size: 24px; white-space: nowrap; }
.faq details { border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; }
.site-foot { border-top: 2px solid var(--line); background: var(--surface); padding: 28px 0; font-size: 15px; }
.site-foot .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.legal h2 { font-size: 24px; margin-top: 1.6em; }
.legal h3 { font-size: 18px; margin-top: 1.2em; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 44px 0; }
  .nav a { padding: 6px 8px; }
  .card { padding: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .12s, filter .12s; }
}

fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset legend { padding: 0; }
.check label .hint { display: block; }
.row > select, .row > input[type='search'] { width: auto; min-width: 200px; }
