/* FirstURL 2 – Stylesheet. Keine externen Schriften oder Frameworks. */

:root {
    --bg: #f7f7fb;
    --bg-elev: #ffffff;
    --bg-soft: #eef0f8;
    --text: #15162a;
    --text-muted: #5b5f7a;
    --border: #e1e3ee;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-text: #ffffff;
    --primary-soft: #eceafe;
    --accent: #0ea5e9;
    --danger: #dc2626;
    --danger-soft: #fdecec;
    --success: #059669;
    --success-soft: #e6f6f0;
    --focus: #4f46e5;
    --shadow: 0 1px 2px rgba(21, 22, 42, .05), 0 8px 24px -8px rgba(21, 22, 42, .12);
    --shadow-lg: 0 2px 4px rgba(21, 22, 42, .04), 0 24px 48px -16px rgba(79, 70, 229, .28);
    --radius: 14px;
    --radius-sm: 10px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0c0d18;
        --bg-elev: #15172a;
        --bg-soft: #1c1f36;
        --text: #eceefa;
        --text-muted: #a2a6c4;
        --border: #2a2d48;
        --primary: #818cf8;
        --primary-hover: #a5b4fc;
        --primary-text: #0c0d18;
        --primary-soft: #23264a;
        --danger: #f87171;
        --danger-soft: #3a1a20;
        --success: #34d399;
        --success-soft: #13302a;
        --focus: #a5b4fc;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
        --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0c0d18;
    --bg-elev: #15172a;
    --bg-soft: #1c1f36;
    --text: #eceefa;
    --text-muted: #a2a6c4;
    --border: #2a2d48;
    --primary: #818cf8;
    --primary-hover: #a5b4fc;
    --primary-text: #0c0d18;
    --primary-soft: #23264a;
    --danger: #f87171;
    --danger-soft: #3a1a20;
    --success: #34d399;
    --success-soft: #13302a;
    --focus: #a5b4fc;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; outline: none; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

code, pre { font-family: var(--mono); font-size: .9em; }
pre {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    overflow-x: auto;
    line-height: 1.5;
}
:not(pre) > code { background: var(--bg-soft); padding: .1em .35em; border-radius: 5px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.break { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }

.visually-hidden, .hp {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--primary); color: var(--primary-text);
    padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand {
    display: inline-flex; align-items: center; gap: .55rem;
    color: var(--text); text-decoration: none;
    font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em;
}
.brand:hover { color: var(--text); }
.brand b { color: var(--primary); font-weight: 800; }
.brand-mark { width: 32px; height: 32px; color: var(--primary); }
.brand-sm { font-size: 1.1rem; margin-bottom: .5rem; }
.main-nav { display: flex; gap: .25rem; margin-left: auto; }
.main-nav a {
    color: var(--text-muted); text-decoration: none; font-weight: 500;
    padding: .45rem .75rem; border-radius: 8px;
}
.main-nav a:hover { color: var(--text); background: var(--bg-soft); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.header-tools { display: flex; align-items: center; gap: .25rem; }
.lang-switch {
    font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 8px; padding: .3rem .55rem;
}
.lang-switch:hover { color: var(--text); border-color: var(--text-muted); }
.icon-btn {
    display: inline-grid; place-items: center; width: 38px; height: 38px;
    background: none; border: 0; border-radius: 8px; color: var(--text-muted); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

@media (max-width: 640px) {
    .header-inner { gap: .5rem; }
    .main-nav a:not([aria-current]):not(:first-child) { display: none; }
    .main-nav a { padding: .4rem .5rem; font-size: .95rem; }
    .brand span { display: none; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    font: inherit; font-weight: 600; line-height: 1.2;
    padding: .7rem 1.15rem; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer; text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s, transform .1s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-text); }
.btn-ghost { background: var(--bg-elev); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); color: #fff; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .7rem; font-size: .875rem; }
.btn.is-done { background: var(--success); color: #fff; border-color: transparent; }

/* Forms */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], select, textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: var(--bg-elev);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .7rem .85rem;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; font-family: var(--mono); font-size: .9rem; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}
input[aria-invalid="true"] { border-color: var(--danger); }
input[type="range"] { width: 100%; accent-color: var(--primary); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-label { font-weight: 600; font-size: .9rem; }
.hint { margin: 0; font-size: .8rem; color: var(--text-muted); }
.form-stack { display: flex; flex-direction: column; gap: 1.1rem; }
.form-stack .btn { align-self: flex-start; }

.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1rem; font-weight: 500; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--success-soft); color: var(--success); }

/* Hero */
.hero {
    position: relative;
    padding: clamp(2.5rem, 7vw, 5rem) 0 3rem;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: -40% -10% auto;
    height: 640px;
    background:
        radial-gradient(closest-side, color-mix(in srgb, var(--primary) 22%, transparent), transparent) 20% 30% / 60% 70% no-repeat,
        radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent) 85% 20% / 50% 60% no-repeat;
    pointer-events: none;
    z-index: -1;
}
.hero-inner { text-align: center; max-width: 820px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
.grad {
    background: linear-gradient(100deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    padding: .3rem .7rem; border-radius: 99px;
    margin-bottom: 1rem;
}
.lead { font-size: 1.12rem; color: var(--text-muted); max-width: 640px; margin-inline: auto; }
.page-head .lead { margin-inline: 0; }

.shorten-card {
    margin-top: 2rem;
    text-align: left;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
}
.single-row { display: flex; gap: .6rem; }
.single-row.is-disabled { opacity: .45; }
.input-icon { position: relative; flex: 1; }
.input-icon svg {
    position: absolute; left: .95rem; top: 50%; translate: 0 -50%;
    width: 22px; height: 22px; fill: none; stroke: var(--text-muted); stroke-width: 2; stroke-linecap: round;
    pointer-events: none;
}
.input-icon input { padding: 1rem 1rem 1rem 3rem; font-size: 1.08rem; height: 100%; }
@media (max-width: 560px) {
    .single-row { flex-direction: column; }
    .single-row .btn { width: 100%; }
}

details > summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600; font-size: .92rem;
    color: var(--text-muted);
    padding: .6rem .25rem;
    display: flex; align-items: center; gap: .45rem;
    border-radius: 8px;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
    content: "";
    width: .5rem; height: .5rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    rotate: -45deg; transition: rotate .15s;
    flex: none;
}
details[open] > summary::before { rotate: 45deg; }
details > summary:hover { color: var(--text); }

.shorten-card details { border-top: 1px solid var(--border); margin-top: .9rem; padding-top: .3rem; }
.shorten-card .bulk[open] { display: flex; flex-direction: column; gap: .5rem; }
.shorten-card .bulk .btn { align-self: flex-start; }
.options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding: .5rem .25rem 1rem; }
@media (max-width: 760px) { .options-grid { grid-template-columns: 1fr; } }
.prefix-input {
    display: flex; align-items: stretch;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-elev); overflow: hidden;
}
.prefix-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.prefix-input span {
    display: flex; align-items: center; padding: 0 .1rem 0 .75rem;
    color: var(--text-muted); font-size: .9rem; white-space: nowrap;
}
.prefix-input input { border: 0; box-shadow: none !important; padding-left: .1rem; min-width: 0; }
.form-note { font-size: .8rem; color: var(--text-muted); margin: .75rem .25rem 0; text-align: center; }

/* Sections */
.section-title { text-align: center; margin-bottom: 1.75rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.features, .how, .faq, .recent { padding-block: 2.5rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.section-head h1, .section-head h2 { margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.feature-icon {
    width: 44px; height: 44px; padding: 10px;
    border-radius: 12px;
    background: var(--primary-soft);
    stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    margin-bottom: .9rem;
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: .3rem; padding: 1.25rem; border-radius: var(--radius); background: var(--bg-soft); }
.steps li::before {
    content: counter(step);
    display: grid; place-items: center;
    width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--primary); color: var(--primary-text); font-weight: 700;
    margin-bottom: .4rem;
}
.steps span { color: var(--text-muted); font-size: .95rem; }

.faq { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item > summary { font-size: 1.02rem; color: var(--text); padding: 1rem .25rem; }
.faq-item p { color: var(--text-muted); padding: 0 .25rem 0 1.25rem; }

/* Recent links */
.recent-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.recent-list li {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: .65rem .9rem;
}
.recent-list .r-text { flex: 1; min-width: 0; }
.recent-list .r-short { font-weight: 700; text-decoration: none; }
.recent-list .r-target { display: block; font-size: .85rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-list .r-actions { display: flex; gap: .35rem; }

/* Cards & pages */
.page-section { padding-block: clamp(2rem, 6vw, 3.5rem); }
.page-head { margin-bottom: 1.75rem; }
.card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.1rem, 3vw, 1.6rem);
    margin-bottom: 1rem;
}
.card-title { font-size: 1.1rem; margin-bottom: .9rem; }

.result-list { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.result { margin: 0; }
.result-main { display: flex; flex-direction: column; gap: 1rem; }
.result-text { min-width: 0; }
.result-short {
    font-size: clamp(1.25rem, 3.5vw, 1.6rem); font-weight: 800; letter-spacing: -.02em;
    text-decoration: none; overflow-wrap: anywhere;
}
.result-target { color: var(--text-muted); font-size: .9rem; margin: .2rem 0 0; overflow-wrap: anywhere; }
.result-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.result-failed .result-target { margin-bottom: .5rem; }
.result > .small { margin: .75rem 0 0; }

.qr-panel { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.qr-box { background: #fff; padding: 10px; border-radius: 12px; line-height: 0; border: 1px solid var(--border); }
.qr-box svg, .qr-box img { width: 180px; height: 180px; }
.qr-downloads { display: flex; gap: .5rem; }

.manage-box {
    display: flex; gap: .8rem; align-items: flex-start;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    padding: .9rem 1rem;
    margin-top: 1rem;
    font-size: .92rem;
}
.manage-box > svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 2; margin-top: .1rem; }
.manage-box p { margin: 0; }
.manage-url { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .4rem !important; }
.manage-url a { overflow-wrap: anywhere; font-family: var(--mono); font-size: .85rem; }

/* Redirect page */
.redirect-section { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.redirect-card { text-align: center; padding: clamp(1.5rem, 5vw, 2.75rem); }
.redirect-card h1 { font-size: clamp(1.5rem, 4vw, 2rem); overflow-wrap: anywhere; }
.redirect-card .lead { margin-inline: auto; }
.countdown { position: relative; width: 112px; height: 112px; margin: 0 auto 1.25rem; }
.countdown svg { width: 100%; height: 100%; rotate: -90deg; }
.countdown circle { fill: none; stroke-width: 8; }
.countdown .track { stroke: var(--bg-soft); }
.countdown .progress {
    stroke: var(--primary); stroke-linecap: round;
    stroke-dasharray: 326.73; stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}
.countdown span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; }
.redirect-status { color: var(--text-muted); min-height: 1.6em; }
.target-box {
    display: flex; flex-direction: column; gap: .15rem; align-items: center;
    background: var(--bg-soft); border-radius: var(--radius-sm);
    padding: 1rem; margin: 1.25rem 0;
}
.target-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.target-host { font-size: 1.25rem; overflow-wrap: anywhere; }
.target-url { font-size: .85rem; color: var(--text-muted); font-family: var(--mono); overflow-wrap: anywhere; }
.redirect-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.redirect-actions .btn-lg { white-space: normal; overflow-wrap: anywhere; }
.redirect-hint { margin: 1.25rem 0 0; }

.meta-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin: 0 0 1.25rem; text-align: left; }
.meta-list div { background: var(--bg-soft); border-radius: var(--radius-sm); padding: .6rem .8rem; }
.meta-list dt { font-size: .75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.meta-list dd { margin: 0; font-weight: 600; }

.message-card { text-align: center; padding: clamp(1.5rem, 5vw, 2.75rem); }
.message-card .lead { margin-inline: auto; }
.message-icon { width: 56px; height: 56px; fill: none; stroke: var(--danger); stroke-width: 2; stroke-linecap: round; margin-bottom: 1rem; }
.message-icon.ok { stroke: var(--success); }
.error-code { font-size: 4rem; font-weight: 800; line-height: 1; margin: 0 0 .5rem; color: var(--primary); letter-spacing: -.04em; }

/* Statistik */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .stat-grid, .stat-grid-4 { grid-template-columns: repeat(2, 1fr); } }
.stat { margin: 0; display: flex; flex-direction: column; gap: .2rem; }
.stat-value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-value.stat-small { font-size: 1.05rem; padding-block: .45rem; }
.stat-label { font-size: .85rem; color: var(--text-muted); }
.chart-card { margin: 0 0 1rem; }
.chart-card figcaption { font-weight: 600; margin-bottom: .75rem; }
.chart { width: 100%; height: 140px; display: block; }
.chart rect { fill: var(--primary); }
.chart rect:hover { fill: var(--accent); }
.chart line { stroke: var(--border); stroke-width: 1; }
.chart-axis { display: flex; justify-content: space-between; margin-top: .35rem; }
.inline-form { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }

/* Tabellen (API, Admin) */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
form.inline { display: inline; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 99px; background: var(--bg-soft); color: var(--text-muted); }
.badge-ok { background: var(--success-soft); color: var(--success); }
.badge-blocked { background: var(--danger-soft); color: var(--danger); }
.search-form { display: flex; gap: .5rem; }
.search-form input { padding: .45rem .7rem; }
.login-card { max-width: 420px; margin: 0 auto; }

/* Fließtext */
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }

/* Toast */
.toast {
    position: fixed; left: 50%; bottom: 24px; translate: -50% 20px;
    background: var(--text); color: var(--bg);
    padding: .7rem 1.1rem; border-radius: 99px; font-weight: 600;
    opacity: 0; transition: opacity .2s, translate .2s; pointer-events: none; z-index: 50;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* Footer */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--border); background: var(--bg-elev); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; padding-block: 2.5rem 1.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.footer-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem; border-top: 1px solid var(--border); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    .site-header, .site-footer, .btn, .shorten-card details { display: none !important; }
    body { background: #fff; color: #000; }
    .card { box-shadow: none; border-color: #ccc; }
}
