/* =========================================
   GLOBAL THEME – NEWS STYLE
========================================= */
:root {
    --bg: #f3f4f6;
    --card: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --accent: #2563eb;
    --line: #e5e7eb;

    --shadow-soft: 0 2px 10px rgba(15, 23, 42, 0.06);
    --shadow-strong: 0 8px 30px rgba(15, 23, 42, 0.12);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* =========================================
   TOP BAR
========================================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(8px);
    padding: 12px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: .2em;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a,
.nav button {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: .9;
    background: none;
    border: none;
    cursor: pointer;
}

.nav a:hover,
.nav button:hover {
    opacity: 1;
}

/* =========================================
   PAGE SHELL (ADS LEFT + CENTER + ADS RIGHT)
========================================= */
.page-shell {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 180px;
    gap: 16px;
}

/* =========================================
   CONTAINER (MIDDLE AREA)
========================================= */
.container {
    padding: 25px 18px 40px;
}

.page-title {
    margin: 0 0 20px;
    font-size: 2rem;
    font-weight: 800;
}

/* =========================================
   FILTER CHIPS
========================================= */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.chip {
    padding: 6px 16px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.chip:hover {
    background: #e5f0ff;
    border-color: #bfdbfe;
}

.chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* =========================================
   LAYOUT: FEATURED + SIDEBAR
========================================= */
.layout-container {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 28px;
}

/* =========================================
   FEATURED ARTICLE
========================================= */
.featured-card {
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    transition: 0.25s ease;
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.featured-media {
    height: 520px;
    background: #e5e7eb;
    overflow: hidden;
}

.featured-media img,
.featured-media iframe,
.featured-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-body {
    padding: 24px;
}

.featured-title {
    margin: 0 0 10px;
    font-size: 1.9rem;
    font-weight: 800;
}

.meta {
    display: flex;
    gap: 12px;
    color: var(--muted);
    font-size: .85rem;
    text-transform: uppercase;
}

/* =========================================
   SIDEBAR
========================================= */
.sidebar-title {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 700;
}

.grid {
    display: grid;
    gap: 12px;
}

.card {
    display: grid;
    grid-template-columns: 150px 1fr;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* =========================================
   MEDIA IN CARDS
========================================= */
.media {
    background: #e5e7eb;
    height: 95px;
}

.media img,
.media iframe,
.media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   CONTENT IN SIDEBAR CARDS
========================================= */
.content {
    padding: 10px 12px;
}

.title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--muted);
}

/* =========================================
   ADVERTISING SIDE COLUMNS
========================================= */
.side-ads {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 80px;
}

.ad-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
}

.ad-card:hover {
    background: #f5f7fa;
    box-shadow: var(--shadow-strong);
    transform: translateY(-2px);
}

.ad-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ad-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.ad-text {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Hide Ads on Tablets/Phones */
@media (max-width: 1200px) {
    .page-shell {
        grid-template-columns: 1fr;
    }
    .side-ads {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .layout-container {
        grid-template-columns: 1fr;
    }
    .featured-media {
        height: 320px;
    }
}

/*Login*/

/* ---------- Globaler Header / Navbar ---------- */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .03);
}

.brand {
    font-weight: 700;
    letter-spacing: .2em;
    font-size: 1.1rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav a {
    text-decoration: none;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.nav a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Falls auf der Login-Seite darunter ein Formular zentriert ist */
body.login-page .main-wrapper {
    margin-top: 40px;
}

/* ===== Small Home/Header Add-ons ===== */
.home-header {
    margin-bottom: 6px;
}

.page-subtitle {
    margin: -10px 0 18px;
    color: var(--muted);
    font-size: 1rem;
    max-width: 70ch;
}

/* ===== Nav form/button (Logout) ===== */
.nav-form {
    margin: 0;
}

.nav-btn {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.05s ease;
}

.nav-btn:hover {
    background: #f9fafb;
}

.nav-btn:active {
    transform: translateY(1px);
}

/* Noscript warning */
.noscript-warning {
    padding: 10px 12px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
}

