/*
  assets/style.css
  V. 2026.08.24-03:19

  ⚠️ WICHTIG FÜR CLAUDE: Bei JEDER inhaltlichen Änderung an dieser Datei
  muss die Versionsnummer oben auf das tatsächliche aktuelle Datum/Uhrzeit
  aktualisiert werden (über ein Tool abgleichen, nicht schätzen;
  Zeitzone Europe/Berlin, inkl. Sommer-/Winterzeit - NICHT die
  UTC-Zeit eines Tools ungeprüft übernehmen). NUR diese Datei —
  Version anderer, unberührter Dateien im Projekt NICHT mit anfassen.

  Design-Token-System:
  --bg          #12131C  Grundhintergrund, tiefes Indigo-Schwarz
  --surface     #1B1D2B  Karten/Flächen
  --surface-2   #242739  angehobene Flächen (Hover, Inputs)
  --border      #333650  Trennlinien
  --accent      #7C5CFF  Primärfarbe (Aktionen, "Stimme")
  --accent-2    #FFB25B  Sekundärakzent (Ergebnis-Balken, Highlights)
  --text        #F2F1F8  Haupttext
  --text-muted  #8D90A6  gedämpfter Text
  --success     #4ADE80
  --danger      #FF6B6B

  Typografie:
  Display: 'Space Grotesk' – Überschriften
  Body:    'Inter' – Fließtext, UI
  Mono:    'JetBrains Mono' – Zahlen, Prozente, Codes
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --bg: #12131C;
    --surface: #1B1D2B;
    --surface-2: #242739;
    --border: #333650;
    --accent: #7C5CFF;
    --accent-soft: #7C5CFF33;
    --accent-2: #FFB25B;
    --text: #F2F1F8;
    --text-muted: #8D90A6;
    --success: #4ADE80;
    --danger: #FF6B6B;
    --radius: 14px;
    --radius-sm: 9px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, #7C5CFF22, transparent),
        radial-gradient(ellipse 700px 400px at 100% 0%, #FFB25B18, transparent);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 .5em;
}

.mono { font-family: 'JetBrains Mono', monospace; }

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

.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

.wrap--wide { max-width: 960px; }

/* --- Globale Topbar (identisch auf schawum.de/index.html - siehe
   dortige style.css. Muss auf JEDER Unterseite der gesamten Schawum-
   Präsenz gleich aussehen, auch auf künftig neuen Seiten. Bei einer
   Änderung hier IMMER auch in der Startseiten-style.css nachziehen,
   und umgekehrt. --- */
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

.topbar-brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.2px;
}

.topbar-nav {
    display: flex;
    gap: 1.75rem;
}

.topbar-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.topbar-nav a:hover {
    color: var(--text);
}

.topbar-nav a.active {
    color: var(--text);
    font-weight: 600;
}

/* "Spiele"-Dropdown/Flyout-Menü im Header - WICHTIG FÜR CLAUDE: identisch
   auch in HP-2026/assets/style.css hinterlegt, bei Änderung hier IMMER
   dort nachziehen. Öffnet NUR auf Geräten mit Maus (hover: hover) per CSS
   :hover. "Spiele" selbst ist ein echter Link (spiele/index.php) - ein
   Klick navigiert auf jedem Gerät sofort dorthin, kein JS nötig. */
.topbar-nav-dropdown {
    position: relative;
}

.topbar-nav-dropdown-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.topbar-nav-dropdown-label:hover {
    color: var(--text);
}

.topbar-nav-dropdown-label.active {
    color: var(--text);
    font-weight: 600;
}

/* Für eingeloggten Admin: Punkt ist per Backend (admin/navigation.php)
   für normale Besucher deaktiviert, wird HIER aber trotzdem angezeigt -
   nur der Admin sieht ihn, deutlich rot markiert als Warnung + kleiner
   "(aus)"-Hinweis. WICHTIG FÜR CLAUDE: identisch auch in
   HP-2026/assets/style.css hinterlegt, bei Änderung hier IMMER dort
   nachziehen. */
.topbar-nav a.nav-off-for-users,
.topbar-nav-dropdown-label.nav-off-for-users {
    color: #FF6B6B;
}

.topbar-nav a.nav-off-for-users:hover,
.topbar-nav-dropdown-label.nav-off-for-users:hover {
    color: #FF6B6B;
    opacity: 0.85;
}

.topbar-nav a.nav-off-for-users::after,
.topbar-nav-dropdown-label.nav-off-for-users::after {
    content: " (aus)";
    font-size: 0.75em;
    opacity: 0.85;
}

.topbar-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    /* Kein margin-top: die Lücke zum Wort "Spiele" MUSS Teil der
       hoverbaren Fläche sein (padding-top statt margin-top), sonst
       verliert :hover beim Rüberfahren die Maus mitten in der Lücke
       und das Menü klappt sofort wieder zu, bevor man es erreicht. */
    padding-top: 0.6rem;
    min-width: 180px;
    z-index: 110;
}

.topbar-nav-dropdown-menu-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    padding: 0.4rem;
}

.topbar-nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 0.7rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.topbar-nav-dropdown-menu a:hover {
    background: var(--surface-2);
    color: var(--text);
}

@media (hover: hover) {
    .topbar-nav-dropdown:hover .topbar-nav-dropdown-menu {
        display: block;
    }
}


/* Admin-Login/Dashboard/Abmelden: bewusst unauffällig, in einer dem
   Header-Hintergrund sehr ähnlichen Farbe gehalten, damit es kaum ins
   Auge fällt. Erst bei Hover etwas deutlicher. Liegt im Markup bewusst
   AUSSERHALB von .topbar-inner (siehe header.php) und ist damit NICHT
   an die 800px-Inhaltsspalte gebunden.
   Ab 960px Fensterbreite: klebt komplett abgesetzt am rechten Rand des
   Browserfensters (vertikal mittig in der Topbar), unabhaengig davon
   wie breit der Bildschirm ist – siehe Media Query weiter unten.
   Unterhalb von 960px (zu wenig Platz neben der 800px-Spalte, sonst
   Ueberlappung mit „Umfragen“): rutscht stattdessen als eigene, ruhige
   Zeile unter die Topbar. */
.topbar-admin {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0 1.5rem 0.5rem;
}

.topbar-admin a {
    color: var(--border);
    text-decoration: none;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.topbar-admin a:hover {
    color: var(--text-muted);
}

@media (min-width: 960px) {
    .topbar {
        position: relative;
    }
    .topbar-admin {
        position: absolute;
        top: 50%;
        right: 1.5rem;
        transform: translateY(-50%);
        padding: 0;
    }
}

@media (max-width: 480px) {
    .topbar-inner {
        min-height: 52px;
    }
    .topbar-nav {
        gap: 1.1rem;
    }
    .topbar-nav a {
        font-size: 0.8rem;
    }
}

/* --- Karten --- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 10px;
    display: block;
}

.subtitle { color: var(--text-muted); margin-bottom: 24px; }

/* --- Formulare --- */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--text); }
.field { margin-bottom: 20px; }
.hint { color: var(--text-muted); font-size: .82rem; margin-top: 6px; }

/* KI-Korrektur-/Stil-Baustein (render_ai_assist_widget() in
   includes/functions.php + assets/ai-assist.js) - zentral hier statt
   seiten-spezifisch, weil er projektweit unter JEDEM Beschreibungs-/
   Freitextfeld erscheinen kann (News-Textblöcke, Umfrage-Beschreibung,
   Spiele-Beschreibung, ...). */
.ai-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ai-tools .btn { padding: 6px 12px; font-size: .82rem; }
.ai-status { font-size: .82rem; color: var(--text-muted); }
.ai-preview {
    margin-top: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius-sm);
}
.ai-preview-text { white-space: pre-wrap; font-size: .92rem; }

input[type=text], input[type=password], textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: .96rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 220px; }

select {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: .96rem;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238D90A6'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%238D90A6' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
select option { background: var(--surface-2); color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: transform .1s ease, filter .15s ease, opacity .15s ease;
    text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.btn-primary { background: linear-gradient(135deg, var(--accent), #6647E0); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-danger { background: transparent; color: var(--danger); border-color: #ff6b6b55; }
.btn-danger:hover { background: #ff6b6b18; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled {
    opacity: .45; cursor: not-allowed; filter: none;
    pointer-events: none;
}

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Kleine löschbare Stichwort-Chips, siehe admin/news/edit.php
   ("Vorhandene Stichworte verwalten") */
.kw-manage-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.kw-manage-item {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 20px; padding: 4px 4px 4px 12px; font-size: 13px;
}
.kw-manage-item button {
    background: transparent; border: none; color: var(--danger);
    cursor: pointer; font-size: 13px; line-height: 1;
    padding: 5px 8px; border-radius: 50%;
}
.kw-manage-item button:hover { background: #ff6b6b18; }

/* --- Toggle-Schalter --- */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row .toggle-label { font-weight: 600; font-size: .9rem; }
.toggle-row .toggle-desc { color: var(--text-muted); font-size: .8rem; font-weight: 400; margin-top: 2px; }

.switch { position: relative; display: inline-block; width: 44px; height: 25px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute; cursor: pointer; inset: 0;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 999px; transition: background .15s ease;
}
.switch .slider::before {
    content: ""; position: absolute; height: 19px; width: 19px; left: 2px; top: 2px;
    background: var(--text-muted); border-radius: 50%; transition: transform .15s ease, background .15s ease;
}
.switch input:checked + .slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(19px); background: #fff; }

/* --- Options-Zeilen (Vote-Buttons / Ergebnis-Balken: Signature-Element) --- */
.option-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }

.option-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    overflow: hidden;
    cursor: pointer;
    font-family: inherit;
    font-size: .96rem;
    color: var(--text);
    text-align: left;
    transition: border-color .15s ease;
}
.option-row:hover { border-color: var(--accent); }
.option-row input[type=radio], .option-row input[type=checkbox] {
    width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; position: relative; z-index: 2;
}
.option-row .option-text { position: relative; z-index: 2; flex: 1; }

/* Ergebnis-Füllbalken - läuft im Hintergrund der Options-Zeile */
.option-row .fill {
    position: absolute; inset: 0; width: 0%;
    background: linear-gradient(90deg, var(--accent-soft), #FFB25B22);
    border-right: 2px solid var(--accent);
    transition: width .7s cubic-bezier(.2,.8,.2,1);
    z-index: 1;
}
.option-row .pct {
    position: relative; z-index: 2; font-family: 'JetBrains Mono', monospace;
    font-weight: 700; color: var(--accent-2); flex-shrink: 0;
}
.option-row.is-result { cursor: default; }
.option-row.is-result:hover { border-color: var(--border); }

/* --- Badges / Status --- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'JetBrains Mono', monospace; font-size: .72rem;
    padding: 4px 10px; border-radius: 999px; letter-spacing: .04em;
}
.badge-open { background: #4ADE8022; color: var(--success); }
.badge-closed { background: #ff6b6b22; color: var(--danger); }

/* --- Poll-Liste --- */
.poll-list { display: flex; flex-direction: column; gap: 12px; }
.poll-item {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 22px; transition: border-color .15s ease;
}
.poll-item:hover { border-color: var(--accent); }
.poll-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.poll-item .meta { color: var(--text-muted); font-size: .82rem; }

/* --- Spiele-Kacheln (Backend-Übersicht) --- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.game-tile { padding: 18px 22px; text-align: center; min-width: 0; }
.game-tile h3 { white-space: normal; display: flex; align-items: center; justify-content: center; min-height: 3em; }
.game-tile .btn-row { justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* --- Admin-Hub-Kacheln (zentrales Dashboard, admin/dashboard.php) --- */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.dashboard-tile {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px; margin-bottom: 0; min-width: 0;
}
.dashboard-tile h3 { margin: 0 0 4px; font-size: 1.05rem; }
.dashboard-tile .meta { color: var(--text-muted); font-size: .82rem; }
.dashboard-tile .btn { flex-shrink: 0; }

/* --- Seitenaufrufszähler (admin/pageviews.php) --- */
.pageview-count {
    font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 600;
    color: var(--accent); flex-shrink: 0;
}

/* --- Steam-Cover neben "Auf Steam ansehen" (spiele/<slug>/index.php) --- */
.steam-row { align-items: center; }
.steam-row-buttons { display: flex; flex-direction: column; gap: 10px; }
.steam-capsule-wrap { flex: 1; display: flex; align-items: center; justify-content: center; }
.steam-capsule { display: block; height: 87px; width: auto; border-radius: 6px; }

.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state .eyebrow { display: block; margin-bottom: 12px; }

/* --- Umfragen-Karten auf der Übersichtsseite (index.php) --- */
.poll-card-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.poll-card-head h2 { margin: 0; font-size: 1.2rem; }
.poll-card .btn-row { margin-top: 16px; }
.poll-created { margin-bottom: 4px; }

/* --- Ampelfarben für die Restlaufzeit bis zum automatischen Schließen --- */
.closing-phase-green  { color: var(--success); }
.closing-phase-yellow { color: var(--accent-2); }
.closing-phase-red    { color: var(--danger); }

/* --- Video-Galerie (videos/index.php + Video-Sektion auf den
   Spiele-Seiten, siehe render_video_gallery() in includes/functions.php).
   Bewusst FEST 2 Spalten (nicht auto-fill wie .games-grid) - so bleibt die
   Breite der kleinen Kacheln immer identisch zum großen Video oben,
   genau wie gewünscht. */
.section-heading { margin: 32px 0 16px; font-size: 1.2rem; }

.video-embed-big {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm); overflow: hidden; background: #000;
}
.video-embed-big iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title-big { margin: 10px 0 28px; font-weight: 600; }

.videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.video-tile { cursor: pointer; }
.video-thumb-wrap {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm); overflow: hidden; background: #000;
}
.video-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play-badge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: #000000a8; color: #fff; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    padding-left: 3px; pointer-events: none;
}
.video-title-small { margin-top: 8px; font-size: .88rem; color: var(--text-muted); }

.video-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.video-pagination a, .video-page-current {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm);
    text-decoration: none; font-size: .9rem;
    border: 1px solid var(--border); color: var(--text-muted);
}
.video-pagination a:hover { color: var(--text); border-color: var(--accent); }
.video-page-current { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }

@media (max-width: 480px) {
    .videos-grid { grid-template-columns: 1fr; }
}

/* --- News-Übersicht (news/index.php) - Filter-Buttons, Beitrags-Karten
   (großer Beitrag oben + 2er-Kacheln darunter, IMMER voller Artikeltext,
   siehe render_post_blocks() in includes/news_functions.php) und
   Seiten-Navigation (identisches Aussehen wie .video-pagination, eigene
   Klasse für semantische Klarheit). */
.news-filter-form {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 24px;
}
.news-filter-form select { width: auto; min-width: 180px; }

.news-rss-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.5rem; height: 1.5rem; margin-left: 10px; vertical-align: middle;
    color: #ee802f; /* klassisches RSS-Orange */
}
.news-rss-link:hover { color: var(--accent); }

.news-post { margin-bottom: 16px; }
.news-post-meta { color: var(--text-muted); font-size: .82rem; margin-bottom: 6px; }
.news-post h2, .news-post h3 { margin: 0 0 12px; }
.news-block-text { margin: 0 0 14px; line-height: 1.6; }
.news-block-text:last-child { margin-bottom: 0; }
.news-block-image { display: block; max-width: 100%; border-radius: var(--radius-sm); margin: 0 0 14px; }
.news-block-video { margin: 0 0 14px; }
.news-block-video a { color: var(--accent); text-decoration: none; font-weight: 600; }
.news-block-video a:hover { text-decoration: underline; }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }

.news-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.news-pagination a, .news-page-current {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm);
    text-decoration: none; font-size: .9rem;
    border: 1px solid var(--border); color: var(--text-muted);
}
.news-pagination a:hover { color: var(--text); border-color: var(--accent); }
.news-page-current { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }

@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* --- Alerts --- */
.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; font-size: .9rem; }
.alert-error { background: #ff6b6b18; border: 1px solid #ff6b6b55; color: #ffb3b3; }
.alert-success { background: #4ade8018; border: 1px solid #4ade8055; color: #a7f3c8; }
.alert-info { background: var(--accent-soft); border: 1px solid #7c5cff55; color: #d9d0ff; }

/* --- Login --- */
.login-wrap { max-width: 380px; margin: 10vh auto; padding: 0 20px; }

footer.site-footer {
    text-align: center; color: var(--text-muted); font-size: .8rem; padding: 20px; opacity: .6;
}

@media (max-width: 560px) {
    .card { padding: 20px; }
    .poll-item { flex-direction: column; align-items: flex-start; }
}

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