/* KodierClick Kundenportal (preview). Builds on ../assets/site.css tokens and buttons. */
[hidden] { display: none !important; }
body.portal { background: var(--bg); font-size: 16px; }
.preview-flag { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: 14px; background: #FFE9B3; color: #6B4E00; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 99px; box-shadow: var(--shadow); pointer-events: none; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.block { display: block; }
.r { text-align: right; }
.btn-ghost-d { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn-ghost-d:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn.danger, .link-btn.danger { color: var(--danger); }
.btn.wide { width: 100%; }
.btn small { font-weight: 400; opacity: .8; margin-left: 4px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; position: relative; overflow: hidden; background: radial-gradient(900px 500px at 85% 0%, rgba(79, 200, 203, .18), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(31, 111, 208, .25), transparent 60%), linear-gradient(180deg, var(--navy-deep), var(--navy)); }
.login-card { position: relative; width: min(440px, 100%); background: var(--card); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-lg); }
.brand.dark { color: var(--text); margin-bottom: 28px; }
.login-card h1 { font-size: 28px; margin-bottom: 10px; letter-spacing: -.02em; }
.login-card .muted { margin-bottom: 22px; }
.login-card .btn { margin-top: 6px; }
.login-card .fine { font-size: 13px; color: var(--faint); margin-top: 16px; }
.sent-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin-bottom: 18px; }
.sent-ic svg { width: 28px; height: 28px; }
#loginBack { display: block; margin: 12px auto 0; }

/* ---------------------------------------------------------------- form fields */
.pf { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.pf input, .pf select, .pf textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--text); border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px 12px; background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
.pf input:focus, .pf select:focus, .pf textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cb { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 16px; }
.cb input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------- shell */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: var(--bar-text); display: flex; flex-direction: column; padding: 22px 0 18px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 0 22px; font-size: 19px; }
.side-sub { padding: 2px 22px 22px 62px; font-size: 13px; margin-top: -4px; }
.side-nav { display: grid; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 22px; color: var(--bar-text); font-size: 15px; font-weight: 500; border-left: 3px solid transparent; transition: background .15s, color .15s; }
.side-nav a:hover { background: var(--navy-hover); color: #fff; text-decoration: none; }
.side-nav a.on { background: var(--navy-hover); color: #fff; font-weight: 700; border-left-color: var(--teal); }
.side-nav svg { width: 19px; height: 19px; flex: none; }
.side-foot { margin-top: auto; padding: 16px 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.who b { display: block; color: #fff; font-size: 14px; }
.who span { font-size: 13px; }
.side-out { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--bar-text); padding: 12px 0 0; cursor: pointer; font-size: 14px; }
.side-out:hover { color: #fff; }
.side-out svg { width: 18px; height: 18px; }
.top { display: none; }

.main { padding: 40px clamp(20px, 4vw, 56px) 80px; min-width: 0; }
.page { max-width: 1040px; animation: pageIn .25s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
.page h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; margin-bottom: 8px; }
.lead2 { font-size: 17px; margin-bottom: 26px; max-width: 680px; }
.page > h1 + .card, .page > h1 + .grid2 { margin-top: 22px; }
.h2s { font-size: 20px; margin: 34px 0 14px; }
.mt { margin-top: 24px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(17, 31, 51, .04); margin-bottom: 18px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 > .card, .grid3 > .card { margin-bottom: 0; }
.grid2 + .card, .grid3 + .card { margin-top: 18px; }
.narrow-card { max-width: 640px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- overview */
.stat { display: grid; gap: 4px; }
.stat-l { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat b { font-family: var(--font-display); font-size: 28px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.stat b small { font-size: 15px; font-weight: 500; color: var(--muted); }
.ok-text { color: var(--ok); }
.dot-ok { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2DB36A; box-shadow: 0 0 0 4px rgba(45, 179, 106, .16); margin-right: 8px; vertical-align: 1px; }
.stat .dot-ok { margin-right: 0; }
.card-link { margin-top: 8px; font-weight: 600; font-size: 14.5px; }
.setup-teaser { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-top: 18px; background: linear-gradient(135deg, var(--accent-soft), #EAF7F5); border-color: #D3E4F4; }
.setup-teaser h3 { margin-bottom: 4px; }
.st-ic { width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--accent); display: grid; place-items: center; }
.st-ic svg { width: 26px; height: 26px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.checklist li > i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); margin-top: 1px; }
.checklist li.done > i { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--ok); }
.checklist li.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.checklist b { display: block; }
.checklist span { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- licence */
.key { font-family: var(--mono); font-size: clamp(14px, 1.7vw, 18px); font-weight: 700; color: var(--accent-dark); margin-top: 6px; word-break: break-all; letter-spacing: .02em; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.meter { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; margin: 14px 0 6px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--teal)); border-radius: 99px; }
.tbl { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 15px; }
.tbl th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl tr.free td { color: var(--muted); font-style: italic; background: var(--bg); }
.seat-change { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 8px 0 12px; }
.seat-change b { font-size: 18px; }

/* ---------------------------------------------------------------- download */
.dl { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.dl-ic { width: 60px; height: 60px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; }
.dl-ic img { width: 38px; }
.dl-ic.pdf { font-weight: 800; font-size: 14px; color: var(--danger); background: #FBEAEA; border-color: #F0C9C9; }
.dl h3 { margin-bottom: 2px; }
.num { padding-left: 20px; margin: 0 0 10px; }
.num li { margin-bottom: 6px; }
.dotlist { padding-left: 18px; margin: 0 0 10px; }
.dotlist li { margin-bottom: 6px; color: var(--text); }

/* ---------------------------------------------------------------- abo */
.plan { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; font-size: 18px; flex-wrap: wrap; }
.kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.kv td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.kv td:first-child { color: var(--muted); width: 45%; }
.yearly { background: linear-gradient(160deg, var(--navy), #20406A); color: #fff; border-color: transparent; }
.yearly .stat-l, .yearly .muted { color: var(--bar-text); }
.yearly h3 { font-size: 26px; margin: 6px 0 10px; }
.yearly b { color: #fff; }
.yearly .btn { margin-top: 16px; }

/* ---------------------------------------------------------------- setup + support */
.price-line { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.price-line b { font-family: var(--font-display); font-size: 36px; letter-spacing: -.03em; }
.price-line span { color: var(--muted); font-size: 14px; }
.setup .checks { margin-top: 6px; }
form.card .btn.wide { margin-top: 4px; }
form.card .muted.small { margin-top: 10px; }

/* ---------------------------------------------------------------- guides */
.video { display: grid; gap: 4px; cursor: pointer; }
.vthumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin-bottom: 8px; background: radial-gradient(300px 160px at 80% 0%, rgba(91, 217, 198, .35), transparent 60%), linear-gradient(135deg, var(--navy), #2A4E80); transition: transform .2s var(--ease); }
.video:hover .vthumb { transform: translateY(-3px); }
.vthumb i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.vthumb i::after { content: ""; position: absolute; left: 21px; top: 16px; border: 10px solid transparent; border-left: 15px solid var(--navy); border-right: 0; }
.vthumb span { position: absolute; right: 10px; bottom: 10px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .45); padding: 2px 7px; border-radius: 5px; }
.guides { display: grid; gap: 8px; margin-bottom: 18px; }
.guides a { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; color: var(--text); transition: border-color .15s, transform .15s var(--ease); }
.guides a:hover { border-color: var(--accent); text-decoration: none; transform: translateX(3px); }
.guides span { font-size: 13.5px; color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 56px; transform: translate(-50%, 20px); opacity: 0; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 15px; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 270px; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .app.menu .side { transform: none; box-shadow: var(--shadow-lg); }
  .top { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 50; height: 58px; padding: 0 12px; background: var(--navy); color: #fff; }
  .top-burger { background: none; border: 0; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
  .top-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 4px 0; }
  .top-title { font-weight: 700; }
  .main { padding-top: 24px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .setup-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dl { grid-template-columns: auto 1fr; }
  .dl .btn { grid-column: 1 / -1; }
  .pf-row { grid-template-columns: 1fr; }
  .tbl { font-size: 14px; }
  .login-card { padding: 26px 22px; }
}

/* ---------------------------------------------------------------- live portal additions */
.notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-size: 15px; }
.notice.warn { background: var(--warn-soft); border: 1px solid var(--warn-line); color: #5A4300; }
.notice.ok { background: var(--ok-soft); border: 1px solid var(--ok-line); color: #145C2E; }
.form-msg { font-size: 14px; margin-top: 10px; color: var(--danger); }
.form-msg.ok { color: var(--ok); }
.sandbox-note { background: #FFE9B3; color: #6B4E00; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 10px; margin-bottom: 18px; max-width: 1040px; }
.loading { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 200; transition: opacity .2s; }
.loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.loading.gone { opacity: 0; pointer-events: none; }
.guide { cursor: pointer; }
.dl-small .btn { margin-top: 12px; }
.req-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: default; }
.stat b.bad { color: var(--danger); }
.seat-confirm { border: 1px solid #C6DBF3; background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; margin: 4px 0 12px; }
.seat-confirm p { margin: 0 0 12px; line-height: 1.55; }
.seat-confirm .small { display: inline-block; margin-top: 4px; }
.sc-btns { display: flex; gap: 10px; flex-wrap: wrap; }
