/* Aktenportal – Designsystem. Keine externen Schriften (DSGVO). */
:root {
  --navy: #10294a;
  --navy-2: #1b3b66;
  --navy-3: #2a5285;
  --teal: #0d7c74;
  --teal-2: #0a655f;
  --teal-soft: #e5f4f2;
  --sand: #f6f1e8;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1c2b3a;
  --muted: #5b6b7c;
  --border: #dde4ec;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn: #9a5b00;
  --warn-soft: #fff4dd;
  --success: #067647;
  --success-soft: #e6f6ee;
  --info-soft: #e8f0fb;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 41, 74, .06), 0 4px 16px rgba(16, 41, 74, .06);
  --shadow-lg: 0 10px 40px rgba(16, 41, 74, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-2); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 2.5vw, 2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.icon-lg { width: 1.6rem; height: 1.6rem; }
:focus-visible { outline: 3px solid #5fb3ab; outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .62rem 1.1rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--navy-3); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: rgba(16, 41, 74, .06); color: var(--navy); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f1c2bd; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: .4rem .7rem; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; width: 1.1em; height: 1.1em; border: 2px solid rgba(255,255,255,.6); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn-secondary.busy::after, .btn-ghost.busy::after { border-color: rgba(16,41,74,.3); border-top-color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; text-decoration: underline; }

/* ---------- Formulare ---------- */
label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; color: var(--navy); }
.input, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: .65rem .8rem; font: inherit; color: var(--text); background: #fff; border: 1px solid #c9d3df; border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 124, 116, .18); }
.help { font-size: .84rem; color: var(--muted); margin-top: .3rem; }
.field { margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; color: var(--text); cursor: pointer; }
.check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--teal); flex: none; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.radio-card { position: relative; display: block; padding: .9rem 1rem .9rem 2.6rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 500; color: var(--text); }
.radio-card input { position: absolute; left: 1rem; top: 1.05rem; accent-color: var(--teal); }
.radio-card strong { display: block; color: var(--navy); }
.radio-card span { font-size: .85rem; color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 1px var(--teal); }
.radio-card:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.form-error { color: var(--danger); font-weight: 600; min-height: 1.2em; margin: .5rem 0; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.row-end { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
meter, progress { width: 100%; height: .6rem; border-radius: 99px; overflow: hidden; border: 0; background: #e6ebf1; -webkit-appearance: none; appearance: none; }
meter::-webkit-meter-bar { background: #e6ebf1; border: 0; border-radius: 99px; height: .6rem; }
meter::-webkit-meter-optimum-value { background: var(--teal); border-radius: 99px; }
meter::-webkit-meter-suboptimum-value { background: #e0a100; border-radius: 99px; }
meter::-webkit-meter-even-less-good-value { background: var(--danger); border-radius: 99px; }
meter::-moz-meter-bar { background: var(--teal); border-radius: 99px; }
meter:-moz-meter-sub-optimum::-moz-meter-bar { background: #e0a100; }
meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: var(--danger); }
progress::-webkit-progress-bar { background: #e6ebf1; }
progress::-webkit-progress-value { background: var(--teal); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--teal); border-radius: 99px; }
.pw-meter-label { font-size: .8rem; color: var(--muted); }

/* ---------- Karten, Raster ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.card + .card { margin-top: 1.25rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: .9rem; }
.stat { display: flex; gap: 1rem; align-items: center; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); flex: none; }
.stat-icon.navy { background: var(--info-soft); color: var(--navy-2); }
.stat-icon.sand { background: var(--sand); color: #8a5a00; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat-label { font-size: .85rem; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f8fafc; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfe; }
td.num, th.num { text-align: right; white-space: nowrap; }
.row-link { color: var(--navy); font-weight: 600; text-decoration: none; }
.row-link:hover { color: var(--teal); text-decoration: underline; }
.cell-actions { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Badges & Hinweise ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #eef2f6; color: var(--navy-2); white-space: nowrap; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-teal { background: var(--teal-soft); color: var(--teal-2); }
.notice { display: flex; gap: .75rem; padding: .9rem 1rem; border-radius: 12px; background: var(--info-soft); color: var(--navy); border: 1px solid #cfdcf0; }
.notice .icon { margin-top: .15rem; }
.notice-warn { background: var(--warn-soft); border-color: #f2d9a3; color: #5f3a00; }
.notice-danger { background: var(--danger-soft); border-color: #f3c4be; color: #7a1a12; }
.notice-success { background: var(--success-soft); border-color: #b9e3cc; color: #054d2f; }
.notice-teal { background: var(--teal-soft); border-color: #bfe3de; color: #06433f; }
.notice p:last-child { margin: 0; }
.flashes { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.flash { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; border: 1px solid; font-weight: 500; }
.flash-success { background: var(--success-soft); border-color: #b9e3cc; color: #054d2f; }
.flash-error { background: var(--danger-soft); border-color: #f3c4be; color: #7a1a12; }
.flash-warning { background: var(--warn-soft); border-color: #f2d9a3; color: #5f3a00; }
.flash-info { background: var(--info-soft); border-color: #cfdcf0; color: var(--navy); }
.flash button { background: none; border: 0; cursor: pointer; color: inherit; font-size: 1.2rem; line-height: 1; padding: 0; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .icon { width: 3rem; height: 3rem; color: #9fb1c4; margin-bottom: .5rem; }

/* ---------- Dialoge & Toasts ---------- */
dialog.modal { border: 0; border-radius: var(--radius-lg); padding: 1.6rem; width: min(640px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; box-shadow: var(--shadow-lg); color: var(--text); }
dialog.modal-wide { width: min(820px, calc(100vw - 2rem)); }
dialog::backdrop { background: rgba(10, 25, 45, .55); backdrop-filter: blur(2px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal-head h2 { margin: 0; }
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 1000; }
.toast { background: var(--navy); color: #fff; padding: .8rem 1.1rem; border-radius: 12px; box-shadow: var(--shadow-lg); max-width: 380px; transition: opacity .3s, transform .3s; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- Portal-Layout ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #d6e2f0; display: flex; flex-direction: column; padding: 1.2rem .9rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.08rem; padding: .3rem .5rem 1.2rem; }
.brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: #9fb6d1; letter-spacing: .02em; }
.nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #7f9abb; margin: 1.1rem .7rem .4rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 10px; color: #d6e2f0; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a.active { background: rgba(95, 179, 171, .18); color: #fff; box-shadow: inset 3px 0 0 #5fb3ab; }
.sidebar-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.me { display: flex; align-items: center; gap: .6rem; padding: .5rem; color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #5fb3ab; color: var(--navy); display: grid; place-items: center; font-weight: 700; flex: none; }
.me small { display: block; color: #9fb6d1; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; }
.me div { min-width: 0; }
.sidebar .btn-ghost { color: #d6e2f0; width: 100%; justify-content: flex-start; }
.sidebar .btn-ghost:hover { background: rgba(255,255,255,.07); color: #fff; }
.main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 3rem; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .3rem 0 0; color: var(--muted); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.breadcrumb a { color: var(--muted); }
.topbar-mobile { display: none; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs a { padding: .7rem 1rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--navy); border-bottom-color: var(--teal); }
.tabs a:hover { color: var(--navy); }
.toolbar { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar .search { flex: 1; min-width: 200px; max-width: 420px; position: relative; }
.toolbar .search .icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar .search input { padding-left: 2.3rem; }

/* Vorgänge */
.folder-title { display: flex; align-items: center; gap: .7rem; }
.folder-title .ficon { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.folder-title .ficon.group { background: var(--info-soft); color: var(--navy-2); }
.locked { color: var(--muted); font-style: italic; }
.dropzone { border: 2px dashed #b8c6d6; border-radius: var(--radius); padding: 2rem 1rem; text-align: center; background: #fafcfe; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--teal); background: var(--teal-soft); }
.dropzone .icon { width: 2.4rem; height: 2.4rem; color: var(--teal); }
.dropzone input[type=file] { display: none; }
.file-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.file-item { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.file-item .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item progress { grid-column: 1 / -1; height: .4rem; }
.timeline { list-style: none; margin: .4rem 0 0; padding: 0; font-size: .85rem; color: var(--muted); }
.timeline li { padding: .15rem 0; }
.timeline li strong { color: var(--text); font-weight: 600; }
.share-result { border: 1px solid var(--border); border-radius: 12px; padding: .9rem; background: #fafcfe; }
.share-result + .share-result { margin-top: .6rem; }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: .08em; background: var(--teal-soft); color: var(--teal-2); padding: .6rem .9rem; border-radius: 10px; display: inline-block; word-break: break-all; }

/* ---------- Auth-/Empfängerseiten ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(1200px 600px at 10% -10%, #dbeaf6 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #d9efeb 0, transparent 60%), var(--bg); }
.auth-card { width: min(480px, 100%); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2.2rem; }
.auth-card.wide { width: min(760px, 100%); }
.auth-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.1rem; margin-bottom: 1.6rem; }
.auth-brand .brand-mark { width: 40px; height: 40px; }
.auth-foot { text-align: center; margin-top: 1.4rem; font-size: .85rem; color: var(--muted); }
.auth-foot a { color: var(--muted); }
.steps-mini { display: flex; gap: .5rem; margin-bottom: 1.4rem; }
.steps-mini span { flex: 1; height: 4px; border-radius: 4px; background: #e2e8f0; }
.steps-mini span.on { background: var(--teal); }
.code-input { font-size: 1.6rem !important; letter-spacing: .3em; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ---------- Öffentliche Seite ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgba(221, 228, 236, .8); }
.container { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.site-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.site-brand .brand-mark { width: 38px; height: 38px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--teal); }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: .4rem; }
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); background: radial-gradient(900px 500px at 85% 10%, rgba(13, 124, 116, .12), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(27, 59, 102, .10), transparent 60%), linear-gradient(180deg, #fbfdff, #f1f6fb); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 99px; background: #fff; border: 1px solid var(--border); color: var(--teal-2); font-weight: 700; font-size: .82rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--teal); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #3d5166; max-width: 36em; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 1.6rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: .4rem; }
.trust .icon { color: var(--teal); }
.hero-art { position: relative; }
.hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(16, 41, 74, .18)); }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, #0d2240 60%, #0b3a4a 100%); color: #d6e2f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #a9bfd8; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--teal); margin-bottom: .6rem; display: block; }
.section-dark .kicker { color: #6fd0c5; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature .ficon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); margin-bottom: 1rem; }
.feature .ficon .icon { width: 1.6rem; height: 1.6rem; }
.feature p { color: var(--muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #5fb3ab; color: var(--navy); font-weight: 800; margin-bottom: 1rem; }
.step p { margin: 0; color: #b8cbe0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; }
.checklist .icon { color: #fff; background: var(--teal); border-radius: 50%; padding: .25rem; width: 1.6rem; height: 1.6rem; flex: none; }
.checklist strong { display: block; color: var(--navy); }
.checklist span { color: var(--muted); }
.panel-art { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.panel-art img { display: block; width: 100%; height: auto; }
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.audience div { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; display: flex; gap: .8rem; align-items: center; font-weight: 600; color: var(--navy); }
.audience .icon { color: var(--teal); width: 1.5rem; height: 1.5rem; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.3rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }
.contact-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.contact-info { background: linear-gradient(160deg, var(--navy), #0b3a4a); color: #d6e2f0; padding: 2.4rem; }
.contact-info h2 { color: #fff; }
.contact-info ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.contact-info li { display: flex; gap: .7rem; align-items: center; }
.contact-info .icon { color: #6fd0c5; }
.contact-form { padding: 2.4rem; }
.hp { position: absolute; left: -9999px; }
.cta-band { text-align: center; }
.cta-band .btn { margin-top: 1rem; }
.site-footer { background: #0b1d35; color: #9fb6d1; padding: 3rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #d6e2f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 { color: #fff; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.legal { max-width: 820px; }
.legal h2 { margin-top: 1.8rem; font-size: 1.2rem; }

/* ---------- Responsiv ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps, .audience { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-box { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .25s; z-index: 200; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .topbar-mobile { display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: #fff; padding: .6rem 1rem; position: sticky; top: 0; z-index: 100; }
  .topbar-mobile .brand { padding: 0; }
  .topbar-mobile button { background: none; border: 0; color: #fff; cursor: pointer; padding: .4rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem 0; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: .8rem; border: 0; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-grid, .grid-4, .features, .steps, .audience { grid-template-columns: 1fr; }
  .auth-card { padding: 1.5rem; }
  .card { padding: 1.1rem; }
  th, td { padding: .6rem; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .site-header, .site-footer, .actions, .btn { display: none !important; }
  .app { display: block; }
}
.flash-wrap { padding-top: 1rem; }
.on-dark { color: #fff; }
.footer-claim { margin-top: 1rem; max-width: 30em; }
.noscript-bar { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; }
.text-right { text-align: right; } .text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.w-auto { width: auto; }
.inline { display: inline; }
.flex { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.maxw-sm { max-width: 220px; }
.grid > .card + .card, .grid > * + .card { margin-top: 0; }
.grid { align-items: start; }
/* Austauschbare Logos: Höhe fix, Breite flexibel */
.brand-mark { width: auto !important; max-width: 170px; object-fit: contain; }
.site-brand .brand-mark { height: 38px; }
.auth-brand .brand-mark { height: 40px; }
.brand .brand-mark { height: 36px; }
.brand-preview { display: flex; align-items: center; justify-content: center; height: 110px; border: 1px dashed var(--border); border-radius: 12px; background: repeating-conic-gradient(#f1f4f8 0% 25%, #fff 0% 50%) 50% / 20px 20px; margin-bottom: 1rem; }
.brand-preview img { max-height: 80px; max-width: 90%; }
.brand-preview.dark { background: var(--navy); }
/* Preise */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; gap: 1.25rem; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem 1.6rem; box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal), var(--shadow-lg); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-size: .78rem; font-weight: 700; padding: .25rem .8rem; border-radius: 99px; letter-spacing: .03em; }
.price-card h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.price { margin: 1rem 0 1.2rem; color: var(--navy); }
.price .amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; }
.price .per { color: var(--muted); font-weight: 600; }
.price-features { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; flex: 1; }
.price-features li { display: flex; gap: .55rem; align-items: flex-start; }
.price-features .icon { color: var(--teal); margin-top: .2rem; }
.enterprise { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; margin-top: 2rem; padding: 1.6rem 1.8rem; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--sand), #fff); border: 1px solid #eadfcb; }
.enterprise h3 { margin-bottom: .3rem; }
.enterprise p { margin: 0; color: #4d5b69; }
.enterprise-icon { width: 56px; height: 56px; border-radius: 16px; background: #fff; color: #8a5a00; display: grid; place-items: center; box-shadow: var(--shadow); }
@media (max-width: 760px) { .enterprise { grid-template-columns: 1fr; text-align: left; } }
/* Hinweis zur Verschlüsselung */
.crypto-hint { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--teal-soft); border: 1px solid #bfe3de; color: #06433f; }
.crypto-hint p { margin: 0; }
.crypto-demo { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .85rem; }
.crypto-demo .plain { background: #fff; border: 1px solid #bfe3de; border-radius: 8px; padding: .25rem .6rem; font-weight: 600; }
.crypto-demo .cipher { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--navy); color: #8fe3d8; border-radius: 8px; padding: .25rem .6rem; letter-spacing: .03em; word-break: break-all; }
.qr-box { display: inline-block; padding: .6rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.qr-box img { display: block; image-rendering: pixelated; }
.grid > .full { grid-column: 1 / -1; }
.cipher-inline { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--teal-2); margin-left: .4rem; }
