/*! MS Bewerbungsportal – App-Oberfläche · Copyright © 2026 Marc-André Straßen */
:root {
  --bg: #f4f6fa; --card: #fff; --ink: #172033; --muted: #667085; --line: #e3e7ee;
  --pri: #2453d6; --pri-d: #1b3fa8; --pri-l: #e8eefc; --ok: #12805c; --err: #c0392b; --warn: #b7791f;
  --navy: #14213d; --r: 12px; --sh: 0 1px 2px rgba(16,24,40,.05), 0 4px 16px rgba(16,24,40,.06);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--pri); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.7rem; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.show-xs { display: none; }
@media (max-width: 440px) { .hide-xs { display: none; } .show-xs { display: inline; } }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1.25rem; padding-top: calc(.7rem + env(safe-area-inset-top, 0px)); background: var(--navy); color: #fff; }
/* Logo */
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none !important; min-width: 0; }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; position: relative;
  box-shadow: 0 6px 18px rgba(91,140,255,.35), inset 0 0 0 1px rgba(255,255,255,.12); transition: transform .25s ease, box-shadow .25s ease; }
.brand-svg { display: block; border-radius: 11px; }
.brand-logo-img { max-width: 40px; max-height: 40px; border-radius: 9px; object-fit: contain; display: block; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); box-shadow: 0 10px 26px rgba(124,58,237,.45), inset 0 0 0 1px rgba(255,255,255,.18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-title { font-size: 1.16rem; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; }
.brand-hl { background: linear-gradient(90deg, #8fb0ff, #c4a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8a97b5; margin-top: .28rem; white-space: nowrap; }
.auth-brand { color: var(--ink); margin-bottom: 1.6rem; }
/* Logo-Stil „Elegant“ */
.brand-elegant { gap: .85rem; }
.be-mono { display: flex; align-items: center; filter: drop-shadow(0 2px 6px rgba(216,189,138,.25)); transition: transform .3s ease; }
.be-svg { display: block; width: auto; height: 44px; overflow: visible; }
.brand-elegant:hover .be-mono { transform: translateY(-1px) rotate(-3deg); }
.be-div { width: 1px; align-self: stretch; margin: .2rem 0; background: linear-gradient(180deg, transparent, #d8bd8a 25%, #d8bd8a 75%, transparent); flex: none; }
.be-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.be-l1 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.32rem; font-weight: 400; letter-spacing: .01em; color: #f7f1e3; white-space: nowrap; }
.be-l2 { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: .78rem; letter-spacing: .2em; color: #d8bd8a; margin-top: .22rem; white-space: nowrap; }
.be-line { width: 56px; height: 1px; flex: none; margin-left: .3rem; background: linear-gradient(90deg, #d8bd8a, transparent); }
.auth-brand.brand-elegant .be-l1 { color: #1c2333; }
.auth-brand.brand-elegant .be-l2 { color: #a07f45; }
.auth-brand.brand-elegant .be-div { background: linear-gradient(180deg, transparent, #b8955a 25%, #b8955a 75%, transparent); }
.auth-brand.brand-elegant .be-line { background: linear-gradient(90deg, #b8955a, transparent); }
.auth-brand .be-svg { filter: brightness(.82) saturate(1.2); }
.auth-brand .brand-hl { background-image: linear-gradient(90deg, #2453d6, #7c3aed); }
.auth-brand .brand-sub { color: var(--muted); }
.nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.nav a { color: #c9d3ea; padding: .45rem .7rem; border-radius: 8px; font-size: .92rem; }
.nav a:hover, .nav a.on { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.nav a.btn { color: #fff; background: var(--pri); }
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 2rem 1rem calc(1.5rem + var(--safe-b)); }

/* Buttons & Formulare */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  background: var(--pri); color: #fff; padding: .68rem 1.1rem; border-radius: 10px; transition: background .15s, transform .05s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--pri-d); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: .42rem .75rem; font-size: .86rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; border-color: #cfd6e2; }
.btn-light { background: var(--pri-l); color: var(--pri-d); }
.btn-light:hover { background: #d8e3fb; }
.btn-danger { background: #fdecea; color: var(--err); }
.btn-danger:hover { background: #f9d6d2; }
.btn-ai { background: linear-gradient(135deg, #7c3aed, #2453d6); }
.btn-ai:hover { background: linear-gradient(135deg, #6d28d9, #1b3fa8); }
.form { display: grid; gap: .9rem; }
label { display: grid; gap: .3rem; font-size: .86rem; font-weight: 600; color: #344054; }
input, select, textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); width: 100%; padding: .62rem .75rem; border: 1px solid #d0d5dd; border-radius: 9px; background: #fff; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(36,83,214,.15); }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
input[type=checkbox], input[type=radio] { width: auto; }
input[type=color] { padding: 2px; height: 38px; }
label.check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; }
label.check input { margin-top: .25rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.span2 { grid-column: span 2; }
.hp { position: absolute; left: -9999px; }
.seg { display: flex; gap: .5rem; flex-wrap: wrap; }
.seg label { display: flex; align-items: center; gap: .4rem; border: 1px solid var(--line); padding: .55rem .8rem; border-radius: 9px; background: #fff; font-weight: 500; cursor: pointer; }
.form:has(input[name=driver][value=sqlite]:checked) .mysql-only { display: none; }
.captcha { display: block; border-radius: 8px; margin: .2rem 0; }
.alert { padding: .75rem 1rem; border-radius: 10px; font-size: .92rem; margin-bottom: .8rem; }
.alert-success { background: #e7f6ef; color: #0c5c42; }
.alert-error { background: #fdecea; color: #8e2a20; }
.alert-info { background: var(--pri-l); color: #1b3d97; }
.alert-warn { background: #fdf3e1; color: #7a4d0c; }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; font-size: .88rem; }
.checklist .ok { color: var(--ok); } .checklist .bad { color: var(--err); }

/* Auth */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(circle at 20% 0%, #dfe8ff 0, transparent 45%), radial-gradient(circle at 100% 100%, #efe6ff 0, transparent 40%), var(--bg); }
.auth-card { width: 100%; max-width: 430px; background: #fff; border-radius: 18px; box-shadow: var(--sh); padding: 2rem 1.8rem; }
.auth-card.wide { max-width: 640px; }
.copyright { text-align: center; font-size: .75rem; color: var(--muted); margin: 1.5rem 0 0; }

/* Container & Karten */
.wrap { max-width: 1160px; margin: 0 auto; padding: 1.6rem 1.25rem; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 1.25rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.page-head h1 { margin: 0; }

/* Dashboard */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.doc-card { background: #fff; border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; display: flex; flex-direction: column; }
.doc-thumb { height: 250px; background: #e9edf4; overflow: hidden; position: relative; display: block; }
.doc-thumb .thumb-stage { transform-origin: top left; position: absolute; left: 50%; top: 14px; }
.doc-thumb .page { box-shadow: 0 4px 18px rgba(0,0,0,.15); margin: 0; }
.doc-info { padding: .85rem 1rem 1rem; display: grid; gap: .25rem; }
.doc-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-meta { font-size: .8rem; color: var(--muted); }
.doc-actions { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .45rem; }
.doc-actions form { display: inline; }
.doc-new { border: 2px dashed #c7d0df; background: transparent; box-shadow: none; display: grid; place-items: center; min-height: 340px; color: var(--muted); text-align: center; padding: 1rem; }
.doc-new .plus { font-size: 2.6rem; line-height: 1; color: var(--pri); }
.empty { text-align: center; padding: 3rem 1rem; }

/* Landing */
.hero { background: linear-gradient(160deg, #14213d 0%, #1c3170 60%, #2453d6 120%); color: #fff; padding: 4.5rem 1.25rem 5rem; }
.hero-in { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.03em; }
.hero p { color: #c9d3ea; font-size: 1.1rem; max-width: 34rem; }
.hero .btn { padding: .9rem 1.4rem; font-size: 1rem; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-preview { position: relative; height: 430px; }
.hero-preview .hp-page { position: absolute; transform-origin: top left; border-radius: 4px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: -2.5rem; }
.feature { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 1.3rem; }
.feature .ic { font-size: 1.6rem; }
.feature h3 { margin: .5rem 0 .3rem; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }
.section-title { text-align: center; margin: 3.5rem 0 1.5rem; }
.section-title p { color: var(--muted); }

/* Design-Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.tpl-card { background: #fff; border: 2px solid transparent; border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; }
.tpl-card:hover { border-color: #b9c7ea; }
.tpl-card.on { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(36,83,214,.2); }
.tpl-thumb { height: 230px; overflow: hidden; background: #e9edf4; position: relative; }
.tpl-thumb .thumb-stage { position: absolute; left: 50%; top: 10px; transform-origin: top left; }
.tpl-thumb .page { margin: 0; box-shadow: 0 3px 12px rgba(0,0,0,.15); }
.tpl-name { padding: .6rem .8rem .7rem; font-weight: 700; font-size: .93rem; }
.tpl-name small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }

fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .8rem; display: grid; gap: .7rem; margin: 0; }
legend { font-weight: 700; font-size: .88rem; padding: 0 .3rem; }
.form:has(input[name=mail_method][value=smtp]:not(:checked)) .mail-smtp { display: none; }
.form:has(input[name=mail_method][value=brevo]:not(:checked)) .mail-brevo { display: none; }
.kv-simple { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.legal-body h2 { font-size: 1.05rem; margin: 1.3rem 0 .4rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 .6rem; line-height: 1.6; }
.copyright a, .footer a { color: inherit; text-decoration: underline; }

.import-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.import-steps li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--muted); }
.import-steps li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d0d5dd; flex: none; box-sizing: border-box; }
.import-steps li.run { color: var(--ink); font-weight: 600; }
.import-steps li.run::before { border-color: #d0d5dd; border-top-color: var(--pri); animation: spin .7s linear infinite; }
.import-steps li.done { color: var(--ok); }
.import-steps li.done::before { content: '✓'; border: 0; background: var(--ok); color: #fff; font-size: 11px; display: grid; place-items: center; }
.import-steps li.fail { color: var(--warn); }
.import-steps li.fail::before { content: '!'; border: 0; background: var(--warn); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.ed-flash { position: relative; padding: .7rem .9rem 0; }
.ed-flash .alert { margin: 0 0 .2rem; padding-right: 2.6rem; font-size: .86rem; }
.ed-flash [data-dismiss] { position: absolute; right: 1.3rem; top: 1.05rem; width: 24px; height: 24px; font-size: .75rem; }

.brand-preview { background: var(--navy); border-radius: 12px; padding: .9rem 1rem; }
.form:has(input[name=brand_style][value=elegant]:checked) .brand-mod-fields label:nth-child(-n+2) { display: none; }
.form:has(input[name=brand_style][value=modern]:checked) .brand-el-fields { display: none; }
/* Kategorie-Filter */
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.center-chips { justify-content: center; margin-bottom: 1.2rem; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; padding: .38rem .75rem; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: #b9c7ea; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ed-group .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }

/* Editor */
.editor-body { background: #e7ebf2; }
.editor { display: grid; grid-template-columns: minmax(380px, 470px) 1fr; height: calc(100vh - 56px); height: calc(100dvh - 56px); }
.editor > * { min-width: 0; }
.ed-side { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ed-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ed-bar .doc-name { flex: 1; min-width: 140px; font-weight: 700; border-color: transparent; padding: .45rem .55rem; }
.ed-bar .doc-name:hover { border-color: var(--line); }
.save-state { font-size: .78rem; color: var(--muted); min-width: 80px; text-align: right; }
.save-state.err { color: var(--err); }
.ed-tabs { display: flex; gap: .2rem; padding: .5rem .7rem 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ed-tabs button { border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); padding: .55rem .75rem; border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.ed-tabs button.on { color: var(--pri); border-bottom-color: var(--pri); }
.ed-scroll { flex: 1; overflow: auto; padding: 1rem .95rem 6rem; -webkit-overflow-scrolling: touch; }
.ed-pane { display: none; gap: 1rem; }
.ed-pane.on { display: grid; }
.ed-group { border: 1px solid var(--line); border-radius: 11px; padding: .95rem; display: grid; gap: .75rem; background: #fcfcfd; }
.ed-group > h3 { font-size: .95rem; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ed-hint { font-size: .8rem; color: var(--muted); margin: -.3rem 0 0; }
.ai-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.list-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: .75rem; display: grid; gap: .6rem; }
.list-item-head { display: flex; align-items: center; gap: .35rem; }
.list-item-head .li-title { flex: 1; font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 7px; width: 30px; height: 30px; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); font-size: .9rem; }
.icon-btn:hover { color: var(--ink); border-color: #c5cdd9; }
.icon-btn.del:hover { color: var(--err); }
.row-inline { display: grid; grid-template-columns: 1fr 120px 34px; gap: .45rem; align-items: center; }
.photo-box { display: flex; gap: .9rem; align-items: center; }
.photo-prev { width: 76px; height: 96px; border-radius: 8px; background: #eef1f6 center/cover no-repeat; border: 1px solid var(--line); flex: none; display: grid; place-items: center; color: #9aa4b5; font-size: .75rem; text-align: center; }
.parts { display: flex; gap: .5rem; flex-wrap: wrap; }
.parts label { display: flex; align-items: center; gap: .4rem; font-weight: 500; border: 1px solid var(--line); border-radius: 9px; padding: .5rem .75rem; background: #fff; cursor: pointer; }
.swatches { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--pri); }
.ed-preview { overflow: auto; min-height: 0; position: relative; -webkit-overflow-scrolling: touch; }
.prev-toolbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .5rem; justify-content: center; padding: .6rem; background: rgba(231,235,242,.92); backdrop-filter: blur(6px); flex-wrap: wrap; }
.prev-toolbar .pages-info { font-size: .82rem; color: var(--muted); }
.prev-scale { padding: 1rem 0 3rem; }
.prev-scale .stage { transform-origin: top center; margin: 0 auto; width: 210mm; }
.mobile-switch { display: none; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.55); display: grid; place-items: center; padding: 1rem; }
.modal.hidden { display: none; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 1020px; max-height: calc(100dvh - 2rem); display: flex; flex-direction: column; overflow: hidden; }
.modal-box.sm { max-width: 640px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; }
.modal-body { padding: 1.2rem; overflow: auto; }
.modal-foot { padding: .9rem 1.2rem; border-top: 1px solid var(--line); display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.ai-out { white-space: pre-wrap; background: #f7f8fb; border: 1px solid var(--line); border-radius: 10px; padding: .9rem; font-size: .93rem; min-height: 120px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.spinner.dark { border-color: #d0d5dd; border-top-color: var(--pri); }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: calc(1.2rem + var(--safe-b)); transform: translateX(-50%); background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; z-index: 200; font-size: .9rem; box-shadow: var(--sh); }

/* Upload */
.dropzone { border: 2px dashed #b9c4d6; border-radius: 14px; padding: 2.5rem 1rem; text-align: center; background: #fff; cursor: pointer; transition: border .15s, background .15s; }
.dropzone.drag { border-color: var(--pri); background: var(--pri-l); }
.dropzone .big { font-size: 2.4rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: .15rem .5rem; border-radius: 99px; font-size: .74rem; font-weight: 600; background: #eef1f6; color: #475467; }
.badge.ok { background: #e7f6ef; color: var(--ok); } .badge.off { background: #fdecea; color: var(--err); } .badge.adm { background: #efe6ff; color: #6d28d9; }

/* Admin */
.admin-tabs { display: flex; gap: .4rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.admin-tabs a { padding: .5rem .9rem; border-radius: 9px; background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; box-shadow: var(--sh); }
.admin-tabs a.on { background: var(--navy); color: #fff; }
.admin-tabs a:hover { text-decoration: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.kpi { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 1rem 1.1rem; }
.kpi .k-l { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kpi .k-v { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.kpi .k-s { font-size: .78rem; color: var(--muted); }
.kpi.accent { background: linear-gradient(135deg, #14213d, #2453d6); color: #fff; }
.kpi.accent .k-l, .kpi.accent .k-s { color: #c9d3ea; }
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: #2453d6; }
.chart .bar2 { fill: #9db4f3; }
.chart text { font-size: 10px; fill: #667085; font-family: inherit; }
.chart .grid { stroke: #eef1f6; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.legend { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.legal { max-width: 820px; }
.legal-text { white-space: pre-wrap; }

/* Responsiv / iPhone */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-preview { display: none; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .editor { grid-template-columns: 1fr; height: auto; min-height: calc(100dvh - 56px); }
  .ed-side { border-right: 0; }
  .ed-scroll { overflow: visible; padding-bottom: 7rem; }
  .ed-preview { overflow: visible; }
  .editor[data-view=edit] .ed-preview { position: absolute; left: -10000px; top: 0; width: 100vw; }
  .editor[data-view=preview] .ed-side .ed-tabs, .editor[data-view=preview] .ed-scroll { display: none; }
  .mobile-switch { display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(1rem + var(--safe-b)); z-index: 60; background: var(--navy); border-radius: 99px; padding: .3rem; gap: .2rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .mobile-switch button { border: 0; background: none; color: #c9d3ea; font: inherit; font-weight: 600; padding: .55rem 1.1rem; border-radius: 99px; }
  .mobile-switch button.on { background: #fff; color: var(--navy); }
}
@media (max-width: 560px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .wrap { padding: 1.1rem .9rem; }
  .topbar { padding-left: .9rem; padding-right: .9rem; }
  .brand-sub { display: none; }
  .topbar.logged .brand-text { display: none; }
  .be-line { display: none; }
  .be-l1 { font-size: 1.08rem; }
  .be-l2 { font-size: .64rem; letter-spacing: .14em; }
  .be-svg { height: 36px; }
  .topbar.logged .be-text, .topbar.logged .be-div { display: none; }
  .brand-title { font-size: 1rem; }
  .brand-mark, .brand-svg { width: 34px; height: 34px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav a { padding: .4rem .5rem; font-size: .85rem; white-space: nowrap; }
  .docs { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .doc-thumb { height: 190px; }
  .doc-new { min-height: 250px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .tpl-thumb { height: 190px; }
  .checklist { grid-template-columns: 1fr; }
}

/* Druck: nur die Bewerbungsseiten */
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body * { visibility: hidden; }
  .print-root, .print-root * { visibility: visible; }
  .topbar, .footer, .ed-side, .prev-toolbar, .mobile-switch, .modal, .toast { display: none !important; }
  .editor { display: block !important; height: auto !important; }
  .ed-preview { position: static !important; overflow: visible !important; left: auto !important; width: auto !important; }
  .prev-scale { padding: 0 !important; height: auto !important; }
  .print-root { position: absolute; left: 0; top: 0; transform: none !important; width: 210mm !important; margin: 0 !important; }
}

/* =====================================================================
   STARTSEITE (Landingpage)
   ===================================================================== */
.landing { background: #fff; }
.lp-in { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.lp-kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: #c7d6ff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: .35rem .8rem; border-radius: 99px; margin-bottom: 1.1rem; }
.lp-kicker.dark { color: var(--pri); background: var(--pri-l); border-color: transparent; text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
.lp-btn { padding: .95rem 1.5rem; font-size: 1.02rem; border-radius: 12px; box-shadow: 0 8px 24px rgba(36,83,214,.28); }
.lp-btn.btn-ghost { box-shadow: none; }
.lp-btn-white { background: #fff; color: var(--navy); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.lp-btn-white:hover { background: #eef2ff; }
.lp-grad { background: linear-gradient(90deg, #8fb0ff, #c4a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.025em; margin: 0 0 .8rem; line-height: 1.15; }
.lp-sub { color: var(--muted); font-size: 1.05rem; max-width: 46rem; margin: 0 auto 1.6rem; }
.lp-sub.left { margin-left: 0; }
.lp-center { text-align: center; }

/* Hero */
.lp-hero { position: relative; overflow: hidden; color: #fff; padding: 4.5rem 0 5.5rem;
  background: radial-gradient(circle at 85% 10%, rgba(124,58,237,.35), transparent 40%), radial-gradient(circle at 10% 90%, rgba(36,83,214,.45), transparent 45%), linear-gradient(160deg, #0f1a33, #14213d 55%, #1c2f66); }
.lp-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 3.5rem; align-items: center; }
.lp-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 1.1rem; }
.lp-lead { color: #c9d3ea; font-size: 1.12rem; line-height: 1.6; max-width: 36rem; margin: 0; }
.lp-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.9rem; }
.lp-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.lp-hero .btn-ghost:hover { background: rgba(255,255,255,.08); }
.lp-checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; color: #c9d3ea; font-size: .92rem; }
.lp-checks li::before { content: '✓'; color: #6ee7b7; font-weight: 800; margin-right: .4rem; }
.lp-hero-visual { position: relative; }
.lp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-photo-hero { display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3.3; box-shadow: 0 30px 70px rgba(0,0,0,.45); transform: rotate(1.2deg); }
.lp-float { position: absolute; z-index: 2; }
.lp-float-cv { left: -2.2rem; bottom: -2.6rem; width: 168px; height: 236px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 22px 50px rgba(0,0,0,.4); transform: rotate(-5deg); animation: lp-float 6s ease-in-out infinite; }
.lp-float-thumb { position: absolute; inset: 0; }
.lp-float-thumb .thumb-stage { position: absolute; top: 8px; transform-origin: top left; }
.lp-float-thumb .page { box-shadow: none !important; }
.lp-badge { display: flex; align-items: center; gap: .7rem; background: rgba(255,255,255,.97); color: var(--ink); padding: .7rem 1rem .7rem .75rem; border-radius: 14px; box-shadow: 0 16px 40px rgba(15,23,42,.28); font-size: .9rem; line-height: 1.25; }
.lp-badge small { display: block; color: var(--muted); font-size: .76rem; }
.lp-badge-1 { right: -1.2rem; top: 1.6rem; animation: lp-float 7s ease-in-out infinite .6s; }
.lp-badge-2 { right: 1.5rem; bottom: -1.6rem; animation: lp-float 6.5s ease-in-out infinite 1.2s; }
.lp-badge-3 { left: -1rem; bottom: 2rem; }
.lp-dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; flex: none; }
.lp-dot.ok { background: #dcfce7; color: #15803d; }
.lp-dot.ai { background: linear-gradient(135deg, #ede9fe, #dbeafe); }
@keyframes lp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .lp-float { animation: none !important; } }

/* Vertrauensleiste */
.lp-trust { background: #fff; border-bottom: 1px solid var(--line); }
.lp-trust-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem 2rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.lp-trust-grid > div { display: flex; align-items: center; gap: .6rem; }
.lp-trust-grid b { white-space: nowrap; font-size: 1.45rem; letter-spacing: -.02em; color: var(--navy); }
.lp-trust-grid span { color: var(--muted); font-size: .9rem; }

/* Sektionen */
.lp-sec { padding: 5rem 0; }
.lp-alt { background: var(--bg); }
.lp-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.lp-split-rev { grid-template-columns: 1.1fr .9fr; }
.lp-split-img { position: relative; }
.lp-photo-tall { display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: 0 24px 60px rgba(15,23,42,.18); }
.lp-steps { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 1.3rem; }
.lp-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.lp-steps li > span { width: 42px; height: 42px; flex: none; border-radius: 12px; background: linear-gradient(135deg, #4f7cff, #2453d6); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 8px 18px rgba(36,83,214,.3); }
.lp-steps h3 { margin: .2rem 0 .25rem; font-size: 1.08rem; }
.lp-steps p { margin: 0; color: var(--muted); }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.2rem; }
.lp-feat { background: #fff; border-radius: 18px; padding: 1.5rem; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.lp-feat:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,23,42,.08); }
.lp-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--pri-l); display: grid; place-items: center; font-size: 1.4rem; }
.lp-feat h3 { margin: 1rem 0 .4rem; font-size: 1.08rem; }
.lp-feat p { margin: 0; color: var(--muted); font-size: .95rem; }
.lp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.lp-list li { display: flex; gap: .7rem; align-items: flex-start; }
.lp-list li::before { content: '✓'; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #dcfce7; color: #15803d; font-weight: 800; font-size: .8rem; display: grid; place-items: center; margin-top: .05rem; }
.landing .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* FAQ */
.lp-faq-wrap { max-width: 860px; }
.lp-faq { display: grid; gap: .7rem; margin-top: 1.8rem; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 1.2rem; transition: box-shadow .2s; }
.lp-faq details[open] { box-shadow: 0 10px 28px rgba(15,23,42,.07); }
.lp-faq summary { cursor: pointer; list-style: none; padding: 1.05rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; font-size: 1.3rem; color: var(--pri); line-height: 1; transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq p { margin: 0 0 1.1rem; color: var(--muted); }

/* Abschluss */
.lp-final { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 6rem 0; }
.lp-final-bg, .lp-final-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-final::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,26,51,.93), rgba(36,83,214,.82)); }
.lp-final-in { position: relative; z-index: 1; }
.lp-final h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); letter-spacing: -.03em; margin: 0 0 .7rem; }
.lp-final p { color: #dbe4ff; font-size: 1.1rem; margin: 0 auto 1.8rem; max-width: 36rem; }
.landing .footer { background: #0f1a33; color: #8a97b5; padding-top: 1.6rem; }

@media (max-width: 980px) {
  .lp-hero-grid, .lp-split, .lp-split-rev { grid-template-columns: 1fr; gap: 2.8rem; }
  .lp-split-rev .lp-split-img { order: -1; }
  .lp-features { grid-template-columns: 1fr 1fr; }
  .lp-hero { padding: 3rem 0 4.5rem; }
  .lp-hero-visual { margin: 0 1rem; }
  .lp-photo-tall { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 560px) {
  .lp-features { grid-template-columns: 1fr; }
  .lp-sec { padding: 3.5rem 0; }
  .lp-float-cv { width: 116px; height: 164px; left: -.6rem; bottom: -2rem; }
  .lp-badge-1 { right: -.4rem; top: .8rem; font-size: .8rem; }
  .lp-badge-2 { right: .4rem; bottom: -1.4rem; font-size: .8rem; }
  .lp-badge-3 { left: .4rem; bottom: 1rem; font-size: .8rem; }
  .lp-trust-grid { justify-content: flex-start; }
  .lp-trust-grid > div { width: calc(50% - 1rem); }
  .lp-btn { width: 100%; }
  .landing .gallery { grid-template-columns: 1fr 1fr; }
}
