/* ============================================
   KI-Radar Archiv - Stylesheet
   An das CITECH AI Design-System angelehnt (eigenstaendig, App-seitig)
   ============================================ */

@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter-VariableFont.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0c1018;
    --bg2: #111822;
    --bg3: #161f2b;
    --primary: #00d4ff;
    --primary-dim: #0099bf;
    --accent: #00ffcc;
    --text: #f0f4f8;
    --text2: #b3bdc9;
    --muted: #8a96a3;
    --border: rgba(0, 212, 255, 0.12);
    --border-hover: rgba(0, 212, 255, 0.32);
    --glass: rgba(18, 26, 36, 0.6);
    --red: #ff6b6b;
    --blue: #5bb8ff;
    --orange: #ffb454;
    --green: #4ade80;
    --radius: 12px;
    --container: 1080px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(900px circle at 15% -5%, rgba(0, 212, 255, 0.08), transparent 45%),
        radial-gradient(800px circle at 95% 5%, rgba(0, 255, 204, 0.06), transparent 40%),
        var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }

.ar-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* --- Buttons --- */
.ar-btn {
    display: inline-block;
    padding: .85rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}
.ar-btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.ar-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #06222b;
}
.ar-btn-primary:hover {
    color: #06222b;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.25);
}

/* --- Header --- */
.ar-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(12, 17, 23, 0.8);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.ar-header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.ar-logo img { height: 30px; width: auto; }
.ar-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.ar-nav-link { color: var(--text2); font-size: .92rem; font-weight: 500; }
.ar-nav-link:hover { color: var(--primary); }

.ar-main { min-height: 60vh; }

/* --- Hero (Listenseite) --- */
.ar-hero { padding: 4rem 0 2.5rem; }
.ar-eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
    margin-bottom: 1rem;
}
.ar-hero h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.ar-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ar-lead { margin-top: 1.25rem; max-width: 640px; color: var(--text2); font-size: 1.1rem; line-height: 1.7; }

/* --- Listenraster --- */
.ar-list-section { padding: 1rem 1.5rem 5rem; }
.ar-issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.ar-issue-card {
    display: flex; flex-direction: column;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: var(--text);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.ar-issue-card:hover {
    color: var(--text);
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 212, 255, 0.08);
}
.ar-issue-meta { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: .65rem; }
.ar-issue-title { font-size: 1.2rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.ar-issue-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1.25rem; }
.ar-issue-date { font-size: .82rem; color: var(--muted); }
.ar-issue-readmore { font-size: .85rem; font-weight: 600; color: var(--primary); }
.ar-empty { color: var(--muted); padding: 2rem 0; }

/* --- Artikel (Einzelansicht) --- */
.ar-article { max-width: 760px; padding-top: 2.5rem; padding-bottom: 4rem; }
.ar-back { display: inline-block; font-size: .9rem; color: var(--muted); }
.ar-article-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.ar-article-nav-bottom { margin-top: 2rem; margin-bottom: 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.ar-back:hover { color: var(--primary); }
.ar-article-meta { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: .75rem; }
.ar-article-title { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 2rem; }

.ar-article h2 { font-size: 1.6rem; font-weight: 600; line-height: 1.25; margin: 0 0 1rem; color: var(--text); }
.ar-article h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .6rem; color: var(--text); }
.ar-article p { color: var(--text2); line-height: 1.75; margin: 0 0 1rem; }

.ar-section { margin-bottom: 2.5rem; }

.ar-block-label {
    font-size: .78rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--primary); margin-bottom: 1rem;
}
.ar-accent-red { color: var(--red); }
.ar-accent-blue { color: var(--blue); }
.ar-accent-orange { color: var(--orange); }
.ar-accent-green { color: var(--green); }
.ar-accent-cyan { color: var(--primary); }

/* TL;DR */
.ar-tldr {
    background: var(--glass); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2.5rem;
}
.ar-tldr ul { list-style: none; }
.ar-tldr li { position: relative; padding-left: 1.4rem; margin-bottom: .6rem; color: var(--text2); line-height: 1.6; }
.ar-tldr li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.ar-tldr li:last-child { margin-bottom: 0; }

/* Callout / Quelle */
.ar-callout {
    background: rgba(255, 107, 107, 0.07); border-left: 3px solid var(--red);
    border-radius: 0 8px 8px 0; padding: .9rem 1.1rem; margin: 1rem 0;
}
.ar-callout p, .ar-callout { color: var(--text2); font-size: .95rem; }
.ar-source { display: inline-block; margin-top: .4rem; font-size: .9rem; font-weight: 600; }

/* Weitere News */
.ar-news-item { padding: 1.5rem 0; border-top: 1px solid var(--border); }
.ar-news-item:first-child { border-top: none; padding-top: 0; }
.ar-news-cat { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: .5rem; }

/* Farbige Boxen */
.ar-box { border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--border); }
.ar-box-blue { background: rgba(91, 184, 255, 0.06); border-left: 3px solid var(--blue); }
.ar-box-orange { background: rgba(255, 180, 84, 0.06); border-left: 3px solid var(--orange); }
.ar-box-green { background: rgba(74, 222, 128, 0.06); border-left: 3px solid var(--green); }
.ar-box-dark { background: rgba(0, 0, 0, 0.25); border-left: 3px solid var(--primary); }
.ar-box-schluss { background: rgba(255, 255, 255, 0.03); border-left: 3px solid var(--primary); }
.ar-signature { margin-top: 1rem; font-weight: 600; color: var(--text); }
.ar-signature span { font-weight: 400; color: var(--muted); font-size: .9rem; }
.ar-recht-item { padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.ar-recht-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }

.ar-howto {
    background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border);
    border-radius: 8px; padding: 1rem; margin-top: .75rem;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: .9rem; color: var(--accent); white-space: pre-wrap; word-break: break-word;
}
.ar-citech { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.ar-muted { color: var(--muted); font-size: .95rem; }
.ar-italic { font-style: italic; }

/* Artikel-CTA */
.ar-article-cta {
    margin-top: 3rem; padding: 2.5rem 1.5rem; text-align: center;
    background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(0,255,204,0.05));
    border: 1px solid var(--border-hover); border-radius: 16px;
}
.ar-article-cta h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.ar-article-cta p { margin-bottom: 1.5rem; }

/* --- Footer --- */
.ar-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 3.5rem 0 2.5rem; background: rgba(0,0,0,0.2); }
.ar-footer-cta { text-align: center; max-width: 560px; margin: 0 auto 2.5rem; }
.ar-footer-cta h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.ar-footer-cta p { color: var(--text2); margin-bottom: 1.5rem; }
.ar-footer-bottom {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    padding-top: 1.75rem; border-top: 1px solid var(--border);
    font-size: .85rem; color: var(--muted);
}
.ar-footer-links a { color: var(--muted); margin-left: 1.25rem; }
.ar-footer-links a:first-child { margin-left: 0; }
.ar-footer-links a:hover { color: var(--primary); }

/* 404 */
.ar-notfound { text-align: center; padding: 5rem 1.5rem; }
.ar-notfound h1 { font-size: 2rem; margin-bottom: 1rem; }
.ar-notfound p { margin-bottom: 2rem; }

/* --- Responsive --- */
@media (max-width: 640px) {
    .ar-header-inner { height: auto; padding: 0.6rem 0; flex-wrap: wrap; gap: 0.6rem; }
    .ar-nav { gap: 0.85rem; }
    .ar-hero { padding: 2.5rem 0 1.5rem; }
    .ar-issue-grid { grid-template-columns: 1fr; }
    .ar-footer-bottom { flex-direction: column; align-items: flex-start; }
    .ar-footer-links a { margin-left: 0; margin-right: 1.25rem; }
}
