/* PDF Simpler – stylesheet */
:root {
  /* German flag palette: Schwarz – Rot – Gold */
  --de-black: #000000;
  --de-red: #dd0000;
  --de-gold: #ffcc00;
  --brand: #dd0000;
  --brand-dark: #b00000;
  --brand-soft: #fff0f0;
  --gold: #ffcc00;
  --gold-ink: #8a6a00;
  --gold-soft: #fff8db;
  --tricolor: linear-gradient(180deg, var(--de-black) 0 33.4%, var(--de-red) 33.4% 66.7%, var(--de-gold) 66.7% 100%);
  --ink: #111111;
  --muted: #5d6470;
  --line: #e6e8ec;
  --bg: #f7f8fa;
  --card: #ffffff;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
body[data-theme="dark"] {
  --ink: #eef0f4;
  --muted: #a3aab6;
  --line: #2a2f3a;
  --bg: #0f1218;
  --card: #171b23;
  --brand: #ff3b3b;
  --brand-dark: #dd0000;
  --brand-soft: #2a1414;
  --gold-ink: #ffd84d;
  --gold-soft: #2b2510;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
img, canvas { max-width: 100%; }
[hidden] { display: none !important; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); min-height: 64px; }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 1.25rem; letter-spacing: -.01em; }
.logo b { color: var(--brand); font-weight: 800; }
.nav-links { display: flex; gap: 20px; flex: 1; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang-select { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: .9rem; cursor: pointer; }
.icon-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; width: 38px; height: 38px; display: inline-grid; place-items: center; cursor: pointer; font-size: 1rem; }
.icon-btn:hover:not(:disabled) { border-color: var(--brand); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.sm { width: 30px; height: 30px; font-size: .85rem; border-radius: 8px; }
.icon-btn.danger:hover { color: #fff; background: var(--brand); }
.burger { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--card); padding: 16px 24px; border-bottom: 1px solid var(--line); gap: 14px; }
  .site-header.open .nav-links { display: flex; }
  .burger { display: inline-grid; }
}

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .1s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn.sm { padding: 6px 12px; font-size: .85rem; border-radius: 9px; }
.btn.full { width: 100%; }

/* ── Hero ── */
.hero { padding: 56px 0 40px; text-align: center; background: radial-gradient(1200px 400px at 50% -10%, var(--brand-soft), transparent 70%); }
.eyebrow { display: inline-block; font-weight: 600; font-size: .85rem; color: var(--brand); background: var(--brand-soft); padding: 6px 14px; border-radius: 99px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.025em; max-width: 880px; margin-inline: auto; }
.grad { background: linear-gradient(90deg, var(--de-red), #e6a800); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin: 0 auto 28px; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; color: var(--muted); font-size: .92rem; }

/* ── Dropzone ── */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 24px; border: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 20px; background: var(--card); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; box-shadow: var(--shadow); max-width: 760px; margin-inline: auto; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); outline: none; }
.dropzone.over { transform: scale(1.01); }
.dropzone strong { font-size: 1.2rem; }
.drop-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.8rem; margin-bottom: 8px; box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent); }
.privacy-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 14px; }
.suggest { max-width: 760px; margin: 18px auto 0; }
.suggest-title { font-weight: 600; }
.suggest-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { --c: var(--brand); display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 99px; font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--c); color: var(--c); }

/* ── Tools grid ── */
.tools { padding: 40px 0 24px; }
.tools-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tools h2, .features h2, .how h2, .faq h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.features h2, .how h2, .faq h2 { text-align: center; margin-bottom: 28px; }
.search { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 10px 14px; font: inherit; min-width: min(320px, 100%); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 18px; scrollbar-width: thin; }
.tab { white-space: nowrap; border: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 8px 16px; border-radius: 99px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.tab.active, .tab:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
body[data-theme="dark"] .tab.active, body[data-theme="dark"] .tab:hover { color: var(--bg); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tool-card { --c: var(--brand); position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.tool-icon { --c: var(--brand); flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, var(--c) 13%, transparent); }
.tool-icon.big { width: 72px; height: 72px; font-size: 2.2rem; border-radius: 18px; margin: 0 auto 14px; }
.tool-text { display: flex; flex-direction: column; gap: 4px; }
.tool-text small { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.pill { position: absolute; top: 10px; inset-inline-end: 10px; font-size: .7rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 8px; border-radius: 99px; }
.empty { color: var(--muted); }

/* ── Features / How / FAQ ── */
.features, .how, .faq { padding: 56px 0; }
.features { background: var(--card); border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--bg); }
.feature > span { font-size: 1.8rem; }
.feature h3 { margin-top: 10px; font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.steps b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-item button { width: 100%; text-align: start; background: none; border: 0; color: var(--ink); font: inherit; font-weight: 600; padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.faq-item button::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq-item.open button::after { content: "–"; }
.faq-item p { display: none; margin: 0; padding: 0 20px 16px; color: var(--muted); }
.faq-item.open p { display: block; }

/* ── Tool page ── */
.tool-hero { text-align: center; padding: 40px 0 24px; }
.tool-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
.tool-hero .lead { margin-bottom: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.work-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }
.work-main { min-width: 0; }
.work-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.opt-files { font-weight: 600; word-break: break-all; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; }
.field output { color: var(--brand); }
.field input[type=text], .field input[type=number], .field input[type=password], .field select, .field textarea, .range-input, #sig-font, #sig-color, .sig-typed {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 10px 12px; font: inherit; width: 100%; }
.field textarea { resize: vertical; }
.field input[type=color] { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 4px; }
.field input[type=range] { accent-color: var(--brand); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand); }
.help, .hint { color: var(--muted); font-size: .85rem; margin: 0; }
.alert { padding: 10px 14px; border-radius: 10px; font-size: .92rem; margin: 0; }
.alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
body[data-theme="dark"] .alert.error { background: #3a1414; color: #fecaca; border-color: #7f1d1d; }
body[data-theme="dark"] .alert.info { background: #14213a; color: #bfdbfe; border-color: #1e3a8a; }

.file-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.file-ico { font-size: 1.5rem; }
.file-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-size { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.file-move { display: flex; gap: 4px; }
.file-list.compact { margin-top: 16px; max-height: 280px; overflow: auto; }
.add-more { width: 100%; border-style: dashed; }
.mini-drop { margin-bottom: 12px; }

.grid-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.grid-bar .hint { flex: 1 1 100%; }
.range-input { width: auto; flex: 1; min-width: 140px; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.page-card { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 8px 8px 30px; cursor: pointer; transition: border-color .15s, transform .15s; }
.page-card:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.page-card.selected { border-color: var(--brand); background: var(--brand-soft); }
.page-card.selected::after { content: "✓"; position: absolute; top: 6px; inset-inline-end: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.page-grid.organize .page-card { cursor: grab; padding-bottom: 72px; }
.page-card.dragging { opacity: .4; }
.page-card.drop-target { border-color: var(--brand); transform: scale(1.03); }
.thumb-holder { min-height: 150px; display: grid; place-items: center; }
.thumb { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.page-no { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: .8rem; color: var(--muted); font-weight: 600; }
.page-grid.organize .page-no { bottom: 44px; }
.page-actions { position: absolute; bottom: 8px; left: 6px; right: 6px; display: flex; justify-content: space-between; gap: 2px; }
.count { margin-top: 10px; font-weight: 600; }

.placer-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; font-weight: 600; }
.placer-stage { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; cursor: crosshair; box-shadow: var(--shadow-lg); border-radius: 4px; overflow: hidden; min-height: 200px; display: grid; place-items: center; background: var(--card); }
.placer-canvas { display: block; width: 100%; max-height: 80vh; object-fit: contain; }
.placer-overlay { position: absolute; inset: 0; pointer-events: none; }
.placed { position: absolute; }
.placed.sig { outline: 2px dashed var(--brand); outline-offset: 2px; }
.placed.txt { white-space: pre; line-height: 1.25; outline: 1px dashed var(--brand); font-family: "DejaVu Sans", Verdana, sans-serif; }
.placed.dot { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); transform: translate(-50%, -50%); }

.progress-card, .result-card { max-width: 680px; margin: 0 auto; text-align: center; padding: 36px 28px; }
.progress { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; margin: 14px 0; }
.progress-bar { height: 100%; width: 3%; background: linear-gradient(90deg, var(--de-black), var(--de-red) 55%, var(--de-gold)); border-radius: 99px; transition: width .25s; }
.spinner { width: 42px; height: 42px; margin: 0 auto 12px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.sm { width: 24px; height: 24px; border-width: 3px; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 12px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 8px; }
.stats { font-size: 1.1rem; }
.stats .save { color: var(--ok); font-weight: 700; }
.text-out { width: 100%; margin: 16px 0 8px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg); color: var(--ink); font: .9rem/1.5 ui-monospace, Consolas, monospace; }
.next-tools { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.next-tools h3 { font-size: 1rem; color: var(--muted); }

.tool-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0 56px; }
@media (max-width: 760px) { .tool-info { grid-template-columns: 1fr; } }
.tool-info h2 { font-size: 1.2rem; }
.tool-info .suggest-row { justify-content: flex-start; }
.howto { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.howto li { display: flex; gap: 12px; align-items: flex-start; }
.howto b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: .9rem; }

/* ── Signature dialog ── */
.sig-dialog { border: 0; border-radius: 18px; padding: 24px; width: min(560px, 100% - 24px); background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); }
.sig-dialog::backdrop { background: rgba(10, 12, 16, .55); }
.sig-dialog > * + * { margin-top: 12px; }
.seg { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 4px; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; padding: 8px 18px; border-radius: 8px; cursor: pointer; }
.seg button.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.sig-pad { display: block; width: 100%; height: 200px; background: #fff; border: 1px dashed var(--line); border-radius: 12px; touch-action: none; cursor: crosshair; margin-bottom: 8px; }
.sig-typed { font-size: 2.2rem !important; padding: 14px !important; background: #fff !important; margin-bottom: 8px; }
label.inline { display: flex; align-items: center; gap: 10px; font-weight: 600; }
label.inline select { width: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ── Footer ── */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 44px 0 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-col.about { grid-column: 1 / -1; } }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { margin: 0 0 4px; font-size: .95rem; }
.footer-col a:not(.logo) { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--brand); }
.footer-col p { color: var(--muted); font-size: .9rem; margin: 0; }
.badge-line { font-weight: 600; color: var(--ok) !important; }
.footer-lang { margin-top: 8px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; color: var(--muted); font-size: .85rem; text-align: center; }

.legal { padding: 40px 0 60px; }
.legal h2 { font-size: 1.15rem; margin-top: 28px; }

/* ── Toasts ── */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 500; transition: opacity .4s, transform .4s; max-width: min(520px, 90vw); }
.toast.error { background: #b91c1c; color: #fff; }
.toast.hide { opacity: 0; transform: translateY(8px); }

/* ── RTL ── */
[dir="rtl"] .work-grid { direction: rtl; }
[dir="rtl"] .file-name { text-align: right; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 1ms !important; } }

/* ── Small screens ── */
@media (max-width: 520px) {
  .nav { gap: 10px; }
  .nav-right { gap: 6px; }
  .lang-select { max-width: 118px; padding: 7px 6px; }
  .logo { font-size: 1.1rem; }
  .logo svg { width: 26px; height: 26px; }
  .hero { padding-top: 36px; }
  .dropzone { padding: 32px 16px; }
  .search { min-width: 100%; }
  .tool-grid { grid-template-columns: 1fr; }
}

/* ── German identity: tricolour stripe ── */
.site-header { border-top: 0; }
.site-header::before { content: ""; display: block; height: 6px; background: var(--tricolor); }
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--de-black) 0 33.4%, var(--de-red) 33.4% 66.7%, var(--de-gold) 66.7%); }
.eyebrow { background: var(--gold-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); }

/* ── Header: account area ── */
.user-slot { display: inline-flex; gap: 8px; align-items: center; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px 3px 3px; background: var(--card); }
.user-chip:hover { border-color: var(--brand); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--de-black); color: var(--de-gold); font-size: .85rem; font-weight: 800; }
.pro-badge, .plan-badge, .plan-pill.pro { background: var(--gold); color: #000; font-weight: 800; font-size: .7rem; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; }
@media (max-width: 720px) { .user-chip-label, .nav-register { display: none; } }

/* ── Forms & auth pages ── */
.page-pad { padding: 40px 0 70px; }
.auth-card { position: relative; max-width: 440px; margin: 0 auto; padding: 36px 32px 32px; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--de-black) 0 33.4%, var(--de-red) 33.4% 66.7%, var(--de-gold) 66.7%); }
.form { display: grid; gap: 14px; margin: 18px 0; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input[type=text], .form input[type=email], .form input[type=password], .form select { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.form input:focus, .form select:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.form label.check, label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
label.check input { margin-top: 3px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.form-msg:empty { display: none; }
.right { text-align: end; margin: -6px 0 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-col { display: grid; gap: 10px; margin-top: 18px; }
.btn.danger { color: var(--brand); }
.btn.danger:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* ── Account ── */
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 10px 0 20px; }
.account-card { margin-bottom: 18px; }
.account-card h2 { font-size: 1.1rem; }
.plan-line { display: flex; align-items: center; gap: 8px; }
.plan-pill { background: var(--bg); border: 1px solid var(--line); padding: 3px 12px; border-radius: 99px; font-weight: 700; font-size: .85rem; }
.history { list-style: none; padding: 0; margin: 0; max-height: 320px; overflow: auto; }
.history li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.alert + .alert, .alert + .account-head { margin-top: 10px; }
#account-root > .alert { margin-bottom: 12px; }

/* ── Quota ── */
.quota { margin: 12px 0; }
.quota-text { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-weight: 600; margin-bottom: 6px; }
.quota-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--de-gold), var(--de-red)); border-radius: 99px; }
.quota-note { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 12px; font-size: .9rem; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); padding: 6px 14px; border-radius: 99px; }
.quota-note.low { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.quota-note a { font-weight: 700; }

/* ── Paywall modal ── */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { max-width: 430px; width: 100%; text-align: center; padding: 30px; border-top: 6px solid var(--brand); }
.paywall-icon { font-size: 2.4rem; }
@keyframes fade { from { opacity: 0; } }

/* ── Pricing ── */
.pricing-head { margin-bottom: 26px; }
.pricing-head .lead { font-size: 1.1rem; }
.interval-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 4px; margin-top: 10px; }
.seg { font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--ink); padding: 8px 18px; border-radius: 99px; cursor: pointer; }
.seg.active { background: var(--de-black); color: #fff; }
body[data-theme="dark"] .seg.active { background: var(--brand); }
.save-badge:not(:empty) { background: var(--gold); color: #000; font-size: .72rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; margin-inline-start: 4px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 820px; margin: 0 auto 40px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan .plan-badge { position: absolute; top: -12px; inset-inline-start: 24px; }
.plan .price { font-size: 1rem; margin: 4px 0; }
.plan .price b { font-size: 2.3rem; }
.ticks { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 8px; flex: 1; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-inline-end: 8px; }
.plan .check { margin: 6px 0; }
.faq-mini { max-width: 820px; margin: 0 auto; }
.faq-mini details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.faq-mini summary { font-weight: 600; cursor: pointer; }

/* ── Admin ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { display: grid; gap: 2px; padding: 16px; border-top: 4px solid var(--de-gold); }
.stat:nth-child(3n+1) { border-top-color: var(--de-black); }
.stat:nth-child(3n+2) { border-top-color: var(--de-red); }
.stat b { font-size: 1.8rem; }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tbl td.num { text-align: end; font-weight: 700; }
.nav-links a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1240px) { .nav-links a.nav-opt { display: none; } }
.ticks { align-content: start; }
@media (max-width: 520px) {
  .lang-select { max-width: 58px; }
  .nav-login { padding: 6px 9px; }
  .logo span { font-size: 1rem; }
}
@media (max-width: 380px) { #theme-toggle { display: none; } }

/* ── UI polish (Dec 2026) ── */
/* "Beliebt" sits on the card border instead of covering the title */
.tool-card .pill { top: -9px; inset-inline-end: 14px; background: var(--gold); color: #000; font-weight: 800; letter-spacing: .02em; box-shadow: 0 2px 6px rgb(0 0 0 / .08); }
/* 6 feature tiles: 3 + 3 instead of 4 + 2 */
.feature-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
/* hint that the category tabs scroll */
.tabs { mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); padding-inline-end: 32px; }
[dir="rtl"] .tabs { mask-image: linear-gradient(270deg, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 40px), transparent); }
.dropzone { text-align: center; }
.quota-note { border-radius: 14px; }
/* theme switch inside the mobile menu */
.nav-theme { display: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 500; color: var(--muted); text-align: start; cursor: pointer; }
@media (max-width: 520px) {
  #theme-toggle { display: none; }
  .nav-theme { display: block; }
  .nav { gap: 8px; }
  .nav-right { gap: 5px; }
  .logo svg { width: 24px; height: 24px; }
  .logo span { font-size: .98rem; }
  .lang-select { max-width: 52px; padding: 6px 4px; }
  .icon-btn { width: 36px; height: 36px; }
  .hero { padding: 26px 0 28px; }
  .eyebrow { font-size: .78rem; padding: 5px 12px; margin-bottom: 14px; }
  .lead { font-size: 1.02rem; margin-bottom: 20px; }
  .tool-hero { padding: 22px 0 16px; }
  .tool-icon.big { width: 56px; height: 56px; font-size: 1.7rem; border-radius: 14px; margin-bottom: 10px; }
  .tool-hero .lead { font-size: 1rem; }
  .quota-note { font-size: .85rem; padding: 6px 12px; }
  .drop-icon { width: 54px; height: 54px; font-size: 1.5rem; }
  .trust { gap: 8px 16px; font-size: .86rem; }
}

/* ── Icons ── */
.ic { display: block; flex: none; }
.ic-wrap { display: inline-grid; place-items: center; }
.tool-icon { color: var(--c); }
.chip .ic-wrap { color: var(--c); }
.feat-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.feature:nth-child(3n+2) .feat-ic { background: var(--gold-soft); color: var(--gold-ink); }
.feature:nth-child(3n) .feat-ic { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust-ic { color: var(--ok); display: inline-grid; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 6px; }
.privacy-note [data-icon] { color: var(--ok); }
.badge-line { display: flex; align-items: center; gap: 6px; }

/* ── Mega menu ── */
.nav-links { align-self: stretch; align-items: center; }
.mega { align-self: stretch; display: flex; align-items: center; }
.mega-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); cursor: pointer; white-space: nowrap; }
.mega-btn .ic-wrap { transition: transform .15s; color: var(--muted); }
.mega.open .mega-btn .ic-wrap { transform: rotate(180deg); }
.mega.open .mega-btn, .mega-btn:hover { color: var(--brand); }
.mega-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 22px 0 26px; }
.mega-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--de-black) 0 33.4%, var(--de-red) 33.4% 66.7%, var(--de-gold) 66.7%); }
.mega.open .mega-panel { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 22px; }
.mega-col h4 { margin: 0 0 8px; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.mega-col a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-inline: -8px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.mega-col a:hover { background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--c); }
.mega-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); flex: none; }
.nav-tools-m { display: none; }
@media (max-width: 900px) {
  .mega { display: none; }
  .nav-tools-m { display: block; }
  .nav-links { align-self: auto; align-items: stretch; }
}

/* ── Bold upload area (red, tricolour edge) ── */
.dropzone { position: relative; overflow: hidden; border: 0; color: #fff; background: linear-gradient(160deg, #e60000 0%, var(--de-red) 45%, #b30000 100%); padding: 54px 24px 52px; box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--de-red) 75%, transparent); }
.dropzone::before { content: ""; position: absolute; inset: 12px 12px 18px; border: 2px dashed rgb(255 255 255 / .5); border-radius: 14px; pointer-events: none; transition: border-color .15s; }
.dropzone::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--de-black) 0 33.4%, var(--de-red) 33.4% 66.7%, var(--de-gold) 66.7%); }
.dropzone:hover, .dropzone:focus-visible { background: linear-gradient(160deg, #d40000 0%, #c40000 45%, #9e0000 100%); border-color: transparent; }
.dropzone.over { background: linear-gradient(160deg, #ef1a1a, #c80000); }
.dropzone.over::before, .dropzone:focus-visible::before { border-color: #fff; border-style: solid; }
.dropzone strong { color: #fff; font-size: 1.3rem; position: relative; }
.dropzone .muted { color: rgb(255 255 255 / .86); position: relative; }
.drop-icon { width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--de-red); box-shadow: 0 10px 24px rgb(0 0 0 / .18), inset 0 -4px 0 var(--gold); position: relative; transition: transform .2s; }
.dropzone:hover .drop-icon { transform: translateY(-3px); }
body[data-theme="dark"] .drop-icon { background: #fff; }

/* ── Buttons on dark bands ── */
.btn-gold { background: var(--gold); color: #000; box-shadow: 0 8px 20px rgb(255 204 0 / .25); }
.btn-gold:hover { background: #ffd633; }
.btn-gold [data-icon] { display: inline-grid; }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / .35); background: transparent; }
.btn-outline-light:hover { border-color: #fff; }

/* ── Stats band ── */
.stats-band { padding: 8px 0 40px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats-row > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; text-align: center; border-top: 4px solid var(--de-black); }
.stats-row > div:nth-child(2) { border-top-color: var(--de-red); }
.stats-row > div:nth-child(3) { border-top-color: var(--de-gold); }
.stats-row > div:nth-child(4) { border-top-color: var(--de-red); }
.stats-row b { display: block; font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -.03em; line-height: 1.1; }
.stats-row span { color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* ── Closing call-to-action ── */
.cta-band { background: #0b0b0b; color: #fff; padding: 52px 0; position: relative; }
.cta-band::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--de-black) 0 33.4%, var(--de-red) 33.4% 66.7%, var(--de-gold) 66.7%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; margin: 0 0 6px; }
.cta-band p { color: rgb(255 255 255 / .75); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Tool page extras ── */
.tool-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.tool-why .feature { background: var(--card); border: 1px solid var(--line); }
.tool-faq { max-width: 820px; margin-inline: auto; padding: 44px 0 56px; }
@media (max-width: 760px) { .tool-why { grid-template-columns: 1fr; } }

@media (max-width: 520px) {
  .dropzone { padding: 40px 16px 40px; }
  .drop-icon { width: 62px; height: 62px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
}
.mega-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 32px; }
.mega-col a span:last-child { min-width: 0; }
.dropzone { padding-inline: 36px; }
@media (max-width: 520px) { .dropzone { padding-inline: 30px; } .dropzone .muted { font-size: .92rem; } }

/* ── Sign-up modal on tool pages ── */
.signup-modal { position: relative; text-align: start; max-width: 440px; }
.signup-modal h2 { margin: 0 0 6px; }
.signup-modal .form { margin: 14px 0 0; }
.signup-modal .form a.small { justify-self: center; }
.modal-x { position: absolute; top: 10px; inset-inline-end: 12px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.signup-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; margin-top: 14px; }
.signup-tabs button { border: 0; background: none; font: inherit; font-weight: 600; padding: 9px; border-radius: 9px; color: var(--muted); cursor: pointer; }
.signup-tabs button.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* ── Kündigungsbutton page ── */
.radio-row { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.radio-row legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form textarea, .date-in { font: inherit; font-weight: 400; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.cancel-done h2 { margin-top: 0; }
.cancel-done ul { padding-inline-start: 20px; }
.footer-cancel { font-weight: 700; color: var(--brand) !important; }
label.check input.date-in { width: auto; height: auto; margin-top: -4px; flex: 0 1 auto; }
.signup-modal { max-height: calc(100dvh - 32px); overflow-y: auto; }
.signup-modal h2 { padding-inline-end: 28px; }
