/* =====================
   VARIABLES & RESET
   ===================== */
:root {
    --bg: #f5f4f0;
    --surface: #ffffff;
    --border: #e2ddd6;
    --text: #1a1814;
    --text-muted: #f5f4f0;
    --accent: #c0392b;
    --accent-hover: #96281b;
    --header-bg: #2596be;
    --header-text: #f5f4f0;
    /* Derived tokens — used on white/light surfaces where --text-muted is unreadable */
    --text-subtle: #5a6e7a;   /* blue-grey for labels, dates, meta on white */
    --hover-bg: #e8f4f8;      /* light blue tint for hover states */
    --tag-bg: #e8f4f8;        /* category tag background */
    --table-head-bg: #d6edf5; /* admin table header */
    --admin-row-hover: #f0f8fc;
    --post-admin-bar: #f0f8fc;
    --mobile-border: #1e7da0; /* slightly darker blue for mobile nav border */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-ui: 'DM Sans', system-ui, sans-serif;
    --radius: 4px;
    --shadow: 0 2px 12px rgba(37,150,190,0.1);
    --max-width: 1200px;
}

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

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =====================
   HEADER
   ===================== */
.site-header {
    background: var(--header-bg);
    color: var(--header-text);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--accent);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 64px;
}

.site-logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--header-text);
    letter-spacing: 0.05em;
}

.logo-sub {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    color: #a8d4e6;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 500;
    color: #cce9f5;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.15s, background 0.15s;
}

.nav-link:hover, .nav-link.active {
    color: var(--header-text);
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    color: var(--accent);
    background: transparent;
}

.admin-link { color: var(--accent) !important; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--header-text);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0.25rem;
}

/* =====================
   FLASH MESSAGES
   ===================== */
.flash {
    max-width: var(--max-width);
    margin: 1rem auto 0;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.9rem;
}
.flash-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.flash-error   { background: #f8d7da; color: #721c24; border-left: 4px solid var(--accent); }

/* =====================
   LAYOUT
   ===================== */
.site-main { flex: 1; }

.page-wrap {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 160px 1fr 280px;
    grid-template-areas: "left-ad content right-sidebar";
    gap: 2.5rem;
    align-items: start;
}

.content-area { grid-area: content; }
.sidebar { grid-area: right-sidebar; }
.left-ad-col { grid-area: left-ad; position: sticky; top: 80px; }

/* =====================
   POST CARDS
   ===================== */
.post-card--hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.post-card--hero .card-image-link {
    display: block;
    height: 340px;
    overflow: hidden;
}

.post-card--hero .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card--hero:hover .card-image {
    transform: scale(1.03);
}

.post-card--hero .card-body {
    padding: 2rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card--hero .card-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0.5rem 0 0.75rem;
}

.post-card--hero .card-excerpt {
    color: var(--text-subtle);
    font-size: 1rem;
    line-height: 1.65;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.post-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-image-link {
    display: block;
    overflow: hidden;
    height: 190px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .card-image { transform: scale(1.04); }

.card-image-placeholder {
    background: #d6edf5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.card-body {
    padding: 1rem 1.1rem 1.25rem;
}

.card-category {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--tag-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.card-title a:hover { color: var(--accent); }

.card-excerpt {
    font-size: 0.88rem;
    color: var(--text-subtle);
    line-height: 1.55;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-date {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-subtle);
    display: block;
}

/* =====================
   SIDEBAR
   ===================== */
.sidebar { position: sticky; top: 80px; }

.sidebar-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.widget-title {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-subtle);
    border-bottom: 2px solid var(--header-bg);
    padding-bottom: 0.5rem;
    margin-bottom: 0.9rem;
}

.category-list li { margin-bottom: 0.1rem; }

.category-list a {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: var(--text-subtle);
    padding: 0.35rem 0.5rem;
    display: block;
    border-radius: 2px;
    transition: background 0.15s, color 0.15s;
}

.category-list a:hover, .category-list a.active {
    background: var(--hover-bg);
    color: var(--header-bg);
}

.recent-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}
.recent-list li:last-child { border-bottom: none; }
.recent-list a {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 400;
    display: block;
    margin-bottom: 0.15rem;
    line-height: 1.35;
    transition: color 0.15s;
}
.recent-list a:hover { color: var(--accent); }
.recent-list time {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--text-subtle);
}

/* =====================
   SINGLE POST
   ===================== */
.single-post { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }

.post-header {
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.post-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.25;
    margin: 0.5rem 0 0.75rem;
}

.post-meta {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-subtle);
}

.post-figure { margin: 0; }

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-body {
    padding: 2rem 2.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.post-body br { content: ''; display: block; margin-bottom: 0.4em; }

.post-admin-bar {
    padding: 1rem 2.5rem;
    border-top: 1px solid var(--border);
    background: var(--post-admin-bar);
}

.back-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-subtle);
    transition: color 0.15s;
}
.back-link:hover { color: var(--header-bg); }

/* =====================
   BUTTONS
   ===================== */
.btn {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.55rem 1.1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
    letter-spacing: 0.02em;
    text-decoration: none;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-full { width: 100%; display: block; }
.btn-large { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
.btn-sm { font-size: 0.75rem; padding: 0.3rem 0.7rem; }
.btn-danger { background: #6c1b1b; }
.btn-danger:hover { background: #4a1111; }

/* =====================
   AUTH PAGES
   ===================== */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.auth-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* =====================
   FORMS (SHARED)
   ===================== */
label, .form-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input, input[type=text], input[type=password], input[type=file], select, textarea {
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.15s;
    width: 100%;
}

.form-input:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--header-bg);
    background: #fff;
}

.form-input-title { font-size: 1.1rem; font-weight: 600; }
.form-body { resize: vertical; font-size: 1rem; line-height: 1.7; }

.checkbox-label {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem !important;
    text-transform: none;
    font-size: 0.88rem;
    cursor: pointer;
}
.checkbox-label input { width: auto; }

/* =====================
   ADMIN PAGES
   ===================== */
.admin-page {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.admin-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.admin-actions { display: flex; gap: 0.5rem; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    font-family: var(--font-ui);
    font-size: 0.88rem;
}

.admin-table thead {
    background: var(--table-head-bg);
}

.admin-table th {
    padding: 0.8rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    font-weight: 500;
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tr:hover td { background: var(--admin-row-hover); }

.table-actions { display: flex; gap: 0.4rem; }

.status {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
}
.status-live { background: #d4edda; color: #155724; }
.status-draft { background: #fff3cd; color: #856404; }

/* =====================
   EDITOR
   ===================== */
.editor-form {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

.editor-main { display: flex; flex-direction: column; gap: 1rem; }

.editor-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.editor-panel h4 {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-subtle);
    border-bottom: 2px solid var(--header-bg);
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}

.current-image img {
    width: 100%;
    border-radius: 2px;
    margin-bottom: 0.4rem;
}

.current-image p {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-subtle);
}

/* =====================
   EMPTY STATE
   ===================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text-subtle);
    font-family: var(--font-ui);
}
.empty-state .btn { margin-top: 1rem; }

/* =====================
   FOOTER
   ===================== */
.site-footer {
    background: var(--header-bg);
    color: #cce9f5;
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--header-text);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.footer-tagline {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: #a8d4e6;
}

.footer-col-title {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--header-text);
    margin-bottom: 0.6rem;
}

.footer-col p {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.footer-link {
    color: #cce9f5;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-link:hover { color: #fff; }

.footer-col--copy {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 1.25rem;
}

.footer-copy {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: #a8d4e6;
}

.footer-pressenaevn {
    margin-top: 0.25rem;
    font-size: 0.78rem !important;
    color: #a8d4e6;
}

/* =====================
   OM OS PAGE
   ===================== */
.om-page {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.om-page .section-header {
    padding: 1.5rem 2rem 0;
}

.om-body {
    padding: 1.25rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.om-lead {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
    border-left: 3px solid var(--header-bg);
    padding-left: 1rem;
    font-style: italic;
}

.om-body p {
    font-family: var(--font-body);
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--text);
}

.om-body a {
    color: var(--header-bg);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.om-body a:hover { color: var(--accent); }

.om-heading {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--header-bg);
    display: inline-block;
}

.om-contact, .om-pressenavn {
    background: #f0f8fc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-list li {
    font-family: var(--font-ui);
    font-size: 0.88rem;
}

.contact-list a {
    color: var(--header-bg);
    text-decoration: none;
    transition: color 0.15s;
}
.contact-list a:hover { color: var(--accent); }

/* =====================
   SECTION HEADERS
   ===================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-header--older {
    margin-top: 2.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    white-space: nowrap;
    color: var(--text);
    letter-spacing: 0.02em;
}

.section-rule {
    flex: 1;
    height: 2px;
    background: var(--header-bg);
    opacity: 0.25;
    border-radius: 1px;
}

.section-link {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--header-bg);
    white-space: nowrap;
    transition: opacity 0.15s;
}
.section-link:hover { opacity: 0.7; }

.load-more {
    text-align: center;
    margin-top: 1.5rem;
}

.empty-state--inline {
    padding: 2rem;
    margin-bottom: 1rem;
}

.sidebar-note {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-subtle);
    margin-top: 0.5rem;
    text-align: center;
}

/* =====================
   LEKSIKON PAGE
   ===================== */
.leksikon-intro {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-subtle);
    margin-bottom: 1.25rem;
}

.leksikon-filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.filter-search {
    flex: 1;
    min-width: 160px;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.88rem;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s;
}
.filter-search:focus { outline: none; border-color: var(--header-bg); }

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.88rem;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s;
}
.filter-select:focus { outline: none; border-color: var(--header-bg); }

.leksikon-count {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-subtle);
    margin-bottom: 1.5rem;
}

.leksikon-year-header {
    margin: 1.75rem 0 0.5rem;
}

.leksikon-year {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--header-bg);
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--header-bg);
    display: inline-block;
}

.leksikon-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.leksikon-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto auto;
    gap: 0.15rem 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.leksikon-item:last-child { border-bottom: none; }

.leksikon-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 0.15rem;
}

.leksikon-date {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-subtle);
    font-variant-numeric: tabular-nums;
}

.leksikon-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    transition: color 0.15s;
}
.leksikon-title:hover { color: var(--header-bg); }

.leksikon-excerpt {
    font-family: var(--font-body);
    font-size: 0.84rem;
    color: var(--text-subtle);
    line-height: 1.5;
    grid-column: 2;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
    .page-wrap {
        grid-template-columns: 1fr 280px;
        grid-template-areas: "content right-sidebar";
    }
    .left-ad-col { display: none; }
    .sidebar { position: static; }
    .post-card--hero { grid-template-columns: 1fr; }
    .post-card--hero .card-image-link { height: 240px; }
    .editor-form { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--header-bg);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--mobile-border);
        gap: 0.1rem;
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 0.6rem 1rem; }
    .nav-toggle { display: block; }
    .header-inner { position: relative; }
    .page-wrap {
        grid-template-columns: 1fr;
        grid-template-areas: "content";
    }
    .sidebar { display: none; }
    .posts-grid { grid-template-columns: 1fr; }
    .post-title { font-size: 1.6rem; }
    .post-body { padding: 1.25rem; }
    .post-header { padding: 1.25rem; }
    .admin-header { flex-direction: column; align-items: flex-start; }
    .leksikon-item { grid-template-columns: 1fr; }
    .leksikon-meta { flex-direction: row; align-items: center; }
    .leksikon-excerpt { grid-column: 1; }
    .leksikon-filters { flex-direction: column; }
    .filter-search, .filter-select { width: 100%; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }
    .footer-col--copy { grid-column: 1; }
}

/* =====================
   CUSTOM BANNER
   ===================== */
.custom-banner {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.custom-banner-link { display: block; }

.custom-banner-img {
    width: 100%;
    height: auto;
    max-height: 130px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.custom-banner-link:hover .custom-banner-img { opacity: 0.93; }

.banner-admin-link {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.15s;
}
.banner-admin-link:hover { background: rgba(0,0,0,0.8); color: #fff; }

.custom-banner--empty {
    background: repeating-linear-gradient(
        45deg,
        #f0f0f0,
        #f0f0f0 10px,
        #e8e8e8 10px,
        #e8e8e8 20px
    );
    border: 1px dashed #ccc;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================
   ADS
   ===================== */
.ad-unit {
    margin: 1.5rem 0;
    text-align: center;
    overflow: hidden;
}

/* Dev placeholder — visible only when ADSENSE_ID is not set */
.ad-placeholder {
    margin: 1.5rem 0;
    background: repeating-linear-gradient(
        45deg,
        #f0f0f0,
        #f0f0f0 10px,
        #e8e8e8 10px,
        #e8e8e8 20px
    );
    border: 1px dashed #ccc;
    border-radius: var(--radius);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder span {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: #999;
    background: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 2px;
    border: 1px solid #ddd;
}