/* ==========================================================================
   alexanderbecker.name – Stylesheet
   Klar & technisch: viel Weißraum, ein Akzentton, Hell-/Dunkelmodus.
   Keine externen Schriften oder Frameworks.
   ========================================================================== */

:root {
    --bg: #ffffff;
    --bg-alt: #f6f7f9;
    --surface: #ffffff;
    --text: #14171c;
    --text-muted: #5b6472;
    --border: #e3e6eb;
    --border-strong: #cfd4dc;
    --accent: #1f5bd8;
    --accent-hover: #1749b3;
    --accent-soft: #e8effc;
    --accent-contrast: #ffffff;
    --success: #12805c;
    --success-soft: #e3f5ee;
    --warning: #9a6200;
    --warning-soft: #fdf3dc;
    --danger: #c62f2f;
    --danger-soft: #fbe9e9;
    --shadow: 0 1px 2px rgb(16 24 40 / .04), 0 4px 16px rgb(16 24 40 / .06);
    --shadow-hover: 0 2px 4px rgb(16 24 40 / .06), 0 12px 32px rgb(16 24 40 / .10);

    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1120px;
    --narrow: 760px;
    --gutter: clamp(16px, 4vw, 32px);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0d1117;
        --bg-alt: #121821;
        --surface: #151b24;
        --text: #e6e9ee;
        --text-muted: #9aa4b2;
        --border: #242c38;
        --border-strong: #334050;
        --accent: #6c9dff;
        --accent-hover: #8fb4ff;
        --accent-soft: #17233b;
        --accent-contrast: #0b1220;
        --success: #4cc79a;
        --success-soft: #11291f;
        --warning: #e6b450;
        --warning-soft: #2b2312;
        --danger: #f07a7a;
        --danger-soft: #2e1515;
        --shadow: 0 1px 2px rgb(0 0 0 / .3);
        --shadow-hover: 0 8px 28px rgb(0 0 0 / .45);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0d1117;
    --bg-alt: #121821;
    --surface: #151b24;
    --text: #e6e9ee;
    --text-muted: #9aa4b2;
    --border: #242c38;
    --border-strong: #334050;
    --accent: #6c9dff;
    --accent-hover: #8fb4ff;
    --accent-soft: #17233b;
    --accent-contrast: #0b1220;
    --success: #4cc79a;
    --success-soft: #11291f;
    --warning: #e6b450;
    --warning-soft: #2b2312;
    --danger: #f07a7a;
    --danger-soft: #2e1515;
    --shadow: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-hover: 0 8px 28px rgb(0 0 0 / .45);
    color-scheme: dark;
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

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

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-alt); border: 1px solid var(--border); padding: .1em .35em; border-radius: 5px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow, .narrow { max-width: var(--narrow); }
.container.narrow { padding: 0 var(--gutter); }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.15em; }

.muted { color: var(--text-muted); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-contrast); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 85%, 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: 24px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark {
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--text); color: var(--bg);
    font-size: .8rem; font-weight: 800; letter-spacing: .02em;
}

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
    display: block; padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: .95rem; font-weight: 500;
}
.site-nav a:hover { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--bg-alt); }

.header-actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: transparent; border: 1px solid transparent; color: var(--text-muted);
    cursor: pointer;
}
.icon-btn:hover { color: var(--text); background: var(--bg-alt); }
.icon-btn .icon { width: 20px; height: 20px; }

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 760px) {
    .header-inner { gap: 8px; }
    .nav-toggle { display: inline-grid; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 64px;
        background: var(--bg); border-bottom: 1px solid var(--border);
        padding: 8px var(--gutter) 16px;
        display: none;
    }
    .nav-open .site-nav { display: block; }
    .site-nav ul { flex-direction: column; }
    .site-nav a { padding: 12px; font-size: 1rem; }
    .header-actions { margin-left: auto; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: var(--radius-sm);
    font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.2;
    border: 1px solid transparent; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-small { padding: 7px 12px; font-size: .875rem; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--text-muted); margin-bottom: 20px; }
.back-link:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 7vw, 88px); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 80% at 85% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 30%, #000 0%, transparent 70%);
    opacity: .6;
}
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.eyebrow {
    font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px; font-weight: 500;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--text-muted); max-width: 40em; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.hero-photo img, .hero-photo-fallback {
    width: clamp(200px, 26vw, 320px); aspect-ratio: 1; object-fit: cover;
    object-position: 50% 25%;
    border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow);
    background: var(--bg-alt);
}
.hero-photo-fallback { display: grid; place-items: center; font-size: 4rem; font-weight: 800; color: var(--text-muted); letter-spacing: -0.04em; }

@media (max-width: 760px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-photo { order: -1; }
    .hero-photo img, .hero-photo-fallback { width: 120px; border-radius: 18px; }
    .hero-photo-fallback { font-size: 2rem; }
}

/* ---------- Abschnitte ---------- */

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding-top: clamp(24px, 4vw, 40px); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-intro { color: var(--text-muted); max-width: 46em; margin-bottom: 32px; }
.section-head + .card-grid, .section-head + .post-list { margin-top: 24px; }

.page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(16px, 3vw, 24px); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.page-head .tags { margin-top: 16px; }

/* ---------- Kompetenzen ---------- */

.competences { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.competences li { background: var(--surface); padding: 24px; }
.competences h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.competences p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.competence-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.competence-icon .icon { width: 20px; height: 20px; }

/* ---------- Karten ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--border-strong); }
.card-media { display: block; aspect-ratio: 16 / 9; background: var(--bg-alt); border-bottom: 1px solid var(--border); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-fallback { display: grid; place-items: center; height: 100%; color: var(--border-strong); background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 16px 16px; }
.card-media-fallback .icon { width: 44px; height: 44px; color: var(--text-muted); opacity: .5; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--text-muted); margin-bottom: 10px; }
.card-title { margin: 0 0 8px; font-size: 1.15rem; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-text { color: var(--text-muted); font-size: .95rem; margin-bottom: 16px; }
.card .tags { margin-top: auto; }

.status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
    background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-laufend { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.status-abgeschlossen { background: var(--success-soft); color: var(--success); border-color: transparent; }
.status-pausiert { background: var(--warning-soft); color: var(--warning); border-color: transparent; }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li, .tags a {
    font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted);
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px;
}
.tags a { display: inline-block; padding: 0; border: 0; background: none; }
.tags li:has(a) { padding: 2px 8px; }
.tags a:hover { color: var(--accent); text-decoration: none; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter a {
    font-size: .875rem; padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--border-strong); color: var(--text-muted);
}
.filter a:hover { color: var(--text); border-color: var(--text-muted); text-decoration: none; }
.filter a[aria-current="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ---------- News ---------- */

.post-list { display: flex; flex-direction: column; }
.post-item { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--border); }
.post-item:last-child { border-bottom: 1px solid var(--border); }
.post-item-meta { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; color: var(--text-muted); padding-top: 3px; }
.post-item-meta time { font-family: var(--font-mono); font-size: .8rem; white-space: nowrap; }
.post-project { font-size: .8rem; font-weight: 600; }
.post-item-title { margin: 0 0 8px; font-size: 1.15rem; }
.post-item-title a { color: var(--text); }
.post-item-title a:hover { color: var(--accent); text-decoration: none; }
.post-item-body > p { color: var(--text-muted); margin: 0; }
.post-item--compact .post-item-title { font-size: 1.05rem; margin-bottom: 4px; }
.post-item .prose { color: var(--text-muted); }
.post-item .prose p:last-child { margin-bottom: 0; }
.post-item-image { display: block; margin: 12px 0 16px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); max-width: 560px; }
.post-item .link-arrow { margin-top: 10px; }

@media (max-width: 640px) {
    .post-item { grid-template-columns: 1fr; gap: 6px; }
    .post-item-meta { flex-direction: row; gap: 12px; align-items: baseline; }
}

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-nav a { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--text); }
.post-nav a:hover { color: var(--accent); text-decoration: none; }
.post-nav .muted { font-size: .8rem; font-weight: 500; }
.post-nav .next { text-align: right; grid-column: 2; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.pagination .prev, .pagination .next { list-style: none; }
.pagination a { font-weight: 600; }
.pagination .disabled { visibility: hidden; }

.inline-icon-link { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; white-space: nowrap; margin-left: 6px; }

/* ---------- Fließtext ---------- */

.prose { line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.4rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--text-muted); }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--accent); color: var(--text-muted); }
.prose pre { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; font-size: .9rem; line-height: 1.55; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--border); margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg-alt); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

.feature-image { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

.related { margin-top: 56px; }
.related h2 { font-size: 1.2rem; margin-bottom: 16px; }

/* ---------- Profil ---------- */

.profile-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) {
    .profile-grid, .two-col { grid-template-columns: 1fr; }
}

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 16px; }
.panel-title .icon { color: var(--accent); width: 20px; height: 20px; }

.check-list, .timeline { list-style: none; margin: 0 0 1em; padding: 0; }
.check-list li { position: relative; padding: 8px 0 8px 28px; border-top: 1px solid var(--border); font-size: .97rem; }
.check-list li:first-child { border-top: 0; }
.check-list li::before {
    content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px;
    border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.timeline li { position: relative; padding: 6px 0 14px 24px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 26px; bottom: -6px; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }

/* ---------- CTA ---------- */

.cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: clamp(24px, 4vw, 40px); border-radius: var(--radius);
    background: var(--text); color: var(--bg);
}
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; opacity: .75; max-width: 38em; }
.cta .btn-primary { background: var(--bg); color: var(--text); }
.cta .btn-primary:hover { background: var(--bg-alt); color: var(--text); }

/* ---------- Formulare ---------- */

.form .input { margin-bottom: 18px; }
.form label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="url"], .form input[type="password"],
.form input[type="number"], .form input[type="datetime-local"], .form input[type="file"], .form select, .form textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text);
    background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .input.checkbox label, .form label.checkbox { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.form .error input, .form .error textarea, .form .error select { border-color: var(--danger); }
.form .error-message { color: var(--danger); font-size: .85rem; margin-top: 6px; }
.form .required > label::after { content: " *"; color: var(--text-muted); font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: .85rem; color: var(--text-muted); }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside h2 { font-size: 1.1rem; }
.contact-link { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.contact-link:hover { border-color: var(--accent); text-decoration: none; color: var(--text); }
.contact-link .icon { width: 24px; height: 24px; color: var(--accent); }
.contact-link span { display: flex; flex-direction: column; }
.contact-link .muted { font-size: .875rem; }

/* ---------- Meldungen ---------- */

.flash-wrap { padding-top: 20px; }
.message {
    padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 12px;
    background: var(--accent-soft); color: var(--text); border: 1px solid var(--border); font-size: .95rem;
    cursor: pointer;
}
.message.success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.message.error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.message.warning { background: var(--warning-soft); }
.message.hidden { display: none; }

.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--warning-soft); border: 1px dashed var(--warning); font-size: .9rem; }
.empty { color: var(--text-muted); padding: 32px 0; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: .9rem; color: var(--text-muted); margin-top: 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--text); text-decoration: none; }

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