/* ==========================================================
   DK News – Main Stylesheet  (v2 – eb.dk-inspireret)
   ========================================================== */

/* ----------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
    --primary:      #1a1a2e;
    --accent:       #e63946;
    --header-bg:    #1a1a2e;
    --header-text:  #ffffff;
    --nav-bg:       #121220;
    --nav-text:     #ffffff;

    --text:         #111111;
    --text-muted:   #555555;
    --text-light:   #999999;
    --border:       #e8e8e8;
    --bg:           #ffffff;        /* Hvid – som eb.dk */
    --bg-soft:      #f5f5f5;
    --card-bg:      #ffffff;

    --radius:       4px;
    --radius-lg:    6px;
    --shadow:       0 1px 4px rgba(0,0,0,.08);
    --shadow-md:    0 3px 10px rgba(0,0,0,.1);
    --shadow-lg:    0 8px 24px rgba(0,0,0,.12);

    --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono:    ui-monospace, SFMono-Regular, Menlo, monospace;

    --container:    1280px;
    --gap:          20px;
}

/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg-soft);
}

img, svg, video { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .4em; line-height: 1.18; font-weight: 800; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
figure { margin: 0; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ----------------------------------------------------------
   3. LAYOUT
   ---------------------------------------------------------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* ----------------------------------------------------------
   4. BREAKING BAR
   ---------------------------------------------------------- */
.breaking-bar {
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.breaking-bar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px var(--gap);
}

.breaking-bar__label {
    background: #fff;
    color: var(--accent);
    padding: 1px 7px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ----------------------------------------------------------
   5. HEADER
   ---------------------------------------------------------- */
.site-header {
    background: var(--header-bg);
    color: var(--header-text);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: 68px;
}

.site-header__brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-header__name {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--header-text);
    text-decoration: none;
    line-height: 1;
}

.site-header__name:hover { text-decoration: none; opacity: .88; }

.site-header__tagline {
    font-size: 11px;
    color: rgba(255,255,255,.5);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.site-header__brand .custom-logo-link img {
    max-height: 48px;
    width: auto;
}

/* Search */
.site-header__right { flex-shrink: 0; }

.header-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 3px;
    overflow: hidden;
}

.header-search:focus-within {
    background: rgba(255,255,255,.18);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.header-search__input {
    background: none;
    border: 0;
    padding: 7px 12px;
    color: #fff;
    width: 180px;
    outline: none;
    font-size: 13px;
}

.header-search__input::placeholder { color: rgba(255,255,255,.45); }

.header-search__btn {
    background: none;
    border: 0;
    color: rgba(255,255,255,.7);
    padding: 7px 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255,255,255,.15);
}

.header-search__btn:hover { color: #fff; background: rgba(255,255,255,.1); }

/* ----------------------------------------------------------
   6. NAVIGATION
   ---------------------------------------------------------- */
.site-nav {
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--accent);
}

.site-nav__inner {
    display: flex;
    align-items: stretch;
    min-height: 44px;
}

.site-nav__list {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.site-nav__list li { position: relative; }

.site-nav__list a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color .12s, background .12s;
    border-right: 1px solid rgba(255,255,255,.06);
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a {
    color: #fff;
    background: var(--accent);
}

/* Dropdown */
.site-nav__list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #1e1e2e;
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 4px 0;
    margin: 0;
    z-index: 101;
    border-top: 2px solid var(--accent);
}

.site-nav__list li:hover > .sub-menu { display: block; }

.site-nav__list .sub-menu a {
    padding: 10px 16px;
    font-size: 12px;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

/* Burger */
.site-nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 10px 14px;
    margin-left: auto;
}

.site-nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,.85);
    border-radius: 2px;
}

/* ----------------------------------------------------------
   7. FEATURED / HERO ARTIKEL  (fuld bredde + overlay)
   ---------------------------------------------------------- */
.featured-section {
    margin: var(--gap) 0 0;
}

.featured-article {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    background: #111;
}

/* Billede bag teksten */
.featured-article__img-wrap {
    position: absolute;
    inset: 0;
    display: block;
}

.featured-article__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .5s ease;
}

.featured-article:hover .featured-article__img {
    transform: scale(1.02);
}

/* Mørkt gradient-overlay forneden */
.featured-article__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 20%,
        rgba(0,0,0,.3) 55%,
        rgba(0,0,0,.88) 100%
    );
}

/* Tekst over billedet */
.featured-article__body {
    position: relative;
    z-index: 1;
    padding: 32px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 820px;
}

.featured-article__cat {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 2px;
    text-decoration: none;
    width: fit-content;
}

.featured-article__cat:hover { opacity: .88; text-decoration: none; }

.featured-article__title {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
    letter-spacing: -.02em;
}

.featured-article__title a { color: #fff; text-decoration: none; }
.featured-article__title a:hover { text-decoration: underline; color: #fff; }

.featured-article__excerpt {
    color: rgba(255,255,255,.82);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 600px;
}

.featured-article__meta {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    letter-spacing: .01em;
}

/* ----------------------------------------------------------
   8. SEKTION-TITEL  (eb.dk-stil: fed streg + tekst)
   ---------------------------------------------------------- */
.news-grid-section {
    margin: var(--gap) 0 32px;
}

.section-title {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--text);
    border-bottom: 3px solid var(--accent);
    padding-bottom: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ----------------------------------------------------------
   9. NEWS GRID – 4 kolonner
   ---------------------------------------------------------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

/* ----------------------------------------------------------
   10. NEWS CARD
   ---------------------------------------------------------- */
.news-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid transparent;
    transition: border-color .15s;
}

.news-card:hover {
    border-bottom-color: var(--accent);
}

.news-card__img-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.news-card__img-link:hover .news-card__img {
    transform: scale(1.04);
}

.news-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* Kategori: farvet tekst, ikke filled badge */
.news-card__cat {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
}

.news-card__cat:hover { text-decoration: underline; }

.news-card__title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.22;
    margin: 0;
    letter-spacing: -.01em;
}

.news-card__title a { color: var(--text); text-decoration: none; }
.news-card__title a:hover { color: var(--accent); }

.news-card__excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card__meta {
    font-size: 11px;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ----------------------------------------------------------
   11. PAGINATION
   ---------------------------------------------------------- */
.pagination {
    margin: 36px 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    background: var(--card-bg);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: background .12s, color .12s, border-color .12s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination .page-numbers.dots {
    background: none;
    border-color: transparent;
    color: var(--text-light);
}

/* ----------------------------------------------------------
   12. ENKELTINDLÆG (SINGLE)
   ---------------------------------------------------------- */
.single-wrap {
    max-width: 740px;
    margin: 0 auto;
    padding: var(--gap) 0 60px;
}

.single-wrap--sidebar {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: start;
    gap: 36px;
}

.single-article__header { margin-bottom: 20px; }

.single-article__cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 10px;
}

.single-article__cat:hover { text-decoration: underline; }

.single-article__title {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin: 0 0 14px;
    color: var(--text);
}

.single-article__byline {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.single-article__updated { color: var(--text-light); }

/* Hero image */
.single-article__hero {
    margin: 0 0 24px;
    border-radius: var(--radius);
    overflow: hidden;
}

.single-article__hero img {
    width: 100%;
    height: auto;
    display: block;
}

.single-article__hero figcaption {
    font-size: 12px;
    color: var(--text-light);
    padding: 6px 10px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    font-style: italic;
}

/* Content */
.single-article__content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
}

.single-article__content h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.single-article__content h3 { font-size: 19px; font-weight: 800; margin: 28px 0 10px; }
.single-article__content h4 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.single-article__content p { margin-bottom: 1.35em; }

.single-article__content a { color: var(--accent); text-decoration: underline; }
.single-article__content a:hover { opacity: .8; }

.single-article__content blockquote {
    margin: 24px 0;
    padding: 14px 20px;
    border-left: 4px solid var(--accent);
    background: var(--bg-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 18px;
    color: var(--text-muted);
    font-style: italic;
}

.single-article__content blockquote p:last-child { margin: 0; }

.single-article__content img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
}

.single-article__content code {
    font-family: var(--font-mono);
    font-size: .875em;
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.single-article__content pre {
    background: #1a1a2e;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 24px 0;
}

.single-article__content pre code {
    background: none;
    border: 0;
    padding: 0;
    font-size: 13px;
    color: inherit;
}

.single-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.single-article__content th,
.single-article__content td {
    text-align: left;
    padding: 9px 12px;
    border: 1px solid var(--border);
}

.single-article__content th {
    background: var(--text);
    color: #fff;
    font-weight: 700;
}

.single-article__content tr:nth-child(even) td {
    background: var(--bg-soft);
}

/* Footer */
.single-article__footer {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.single-article__tags {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.single-article__tags a {
    display: inline-block;
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 40px;
    color: var(--text-muted);
    margin: 2px;
    font-size: 11px;
    text-decoration: none;
    transition: border-color .12s, color .12s;
}

.single-article__tags a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Post navigation */
.post-navigation { margin-top: 14px; }

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: border-color .12s, box-shadow .12s;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text);
    text-decoration: none;
    height: 100%;
}

.post-navigation .nav-next { text-align: right; }

.post-navigation .nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--accent);
}

.post-navigation .nav-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ----------------------------------------------------------
   12b. BILLEDE-PLACEHOLDER
   ---------------------------------------------------------- */
.news-placeholder {
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: var(--ph-bg, #2a3a5e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-placeholder__letter {
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 900;
    color: var(--ph-fg, rgba(255,255,255,.5));
    letter-spacing: -.02em;
    line-height: 1;
    user-select: none;
}

/* Fylder billedkontaineren korrekt i kort */
.news-card__img--placeholder {
    aspect-ratio: 16/10;
    min-height: unset;
    border-radius: 0;
}

/* Fylder featured-hero korrekt */
.featured-article__img--placeholder {
    position: absolute;
    inset: 0;
    min-height: unset;
    border-radius: 0;
}

/* ----------------------------------------------------------
   13. ANNONCE LABEL  – diskret
   ---------------------------------------------------------- */
.annonce-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-left: 3px solid #aaa;
    border-radius: var(--radius);
    padding: 9px 14px;
    margin-bottom: 24px;
    font-size: 12px;
}

.annonce-label__badge {
    display: inline-block;
    background: #888;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.annonce-label__text {
    color: #888;
    font-weight: 400;
}

/* ----------------------------------------------------------
   14. ARCHIVE HEADER
   ---------------------------------------------------------- */
.archive-header {
    padding: 24px 0 16px;
    border-bottom: 3px solid var(--accent);
    margin-bottom: 24px;
}

.archive-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    margin: 0 0 6px;
    letter-spacing: -.02em;
}

.archive-title span { color: var(--accent); }

.archive-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* ----------------------------------------------------------
   15. PAGE WRAP
   ---------------------------------------------------------- */
.page-wrap {
    max-width: 740px;
    margin: 0 auto;
    padding: var(--gap) 0 60px;
}

.single-article--page .single-article__title {
    font-size: clamp(22px, 3.5vw, 34px);
}

/* ----------------------------------------------------------
   16. SIDEBAR
   ---------------------------------------------------------- */
.sidebar { position: sticky; top: 56px; }

.widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.widget-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

.widget ul { padding-left: 0; list-style: none; margin: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--text); font-weight: 600; }
.widget ul li a:hover { color: var(--accent); }

/* ----------------------------------------------------------
   17. FOOTER
   ---------------------------------------------------------- */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,.75);
    margin-top: 48px;
}

.site-footer__widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    padding: 40px var(--gap);
}

.footer-widget-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

.site-footer__about p {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
}

.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget ul li { padding: 5px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-widget ul li:last-child { border: 0; }
.footer-widget ul li a { color: rgba(255,255,255,.65); }
.footer-widget ul li a:hover { color: #fff; }

.site-footer__bottom {
    background: rgba(0,0,0,.3);
    border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-footer__copy {
    font-size: 12px;
    color: rgba(255,255,255,.4);
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.site-footer__nav li a {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    padding: 4px 9px;
    border-radius: 2px;
    transition: color .12s, background .12s;
}

.site-footer__nav li a:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
    text-decoration: none;
}

/* ----------------------------------------------------------
   18. BUTTON
   ---------------------------------------------------------- */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: opacity .12s;
}

.btn-primary:hover { opacity: .88; text-decoration: none; color: #fff; }

/* ----------------------------------------------------------
   19. RESPONSIVE
   ---------------------------------------------------------- */

/* 1200px – 3 kolonner */
@media (max-width: 1200px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 1024px */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }

    .featured-article { min-height: 380px; }

    .single-wrap--sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar { position: static; }
}

/* 768px */
@media (max-width: 768px) {
    :root { --gap: 14px; }

    .site-header__inner {
        flex-wrap: wrap;
        min-height: auto;
        padding: 12px var(--gap);
    }

    .header-search { display: none; }

    .site-nav__burger { display: flex; }

    .site-nav__list {
        display: none;
        flex-direction: column;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,.1);
    }

    .site-nav__list.is-open { display: flex; }

    .site-nav__list a {
        height: auto;
        padding: 13px 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.06);
        text-transform: none;
        font-size: 15px;
    }

    .site-nav__list .sub-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        display: none;
    }

    .site-nav__list .menu-item-has-children.is-open > .sub-menu { display: block; }

    .featured-article { min-height: 300px; }
    .featured-article__body { padding: 20px 18px 24px; }
    .featured-article__excerpt { display: none; }

    .news-grid { grid-template-columns: 1fr 1fr; }

    .post-navigation .nav-links { grid-template-columns: 1fr; }
    .post-navigation .nav-next { text-align: left; }

    .site-footer__widgets { padding: 28px var(--gap); gap: 20px; }

    .single-wrap { padding: var(--gap) 0 40px; }
    .annonce-label { flex-wrap: wrap; }
}

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

    .site-footer__widgets { grid-template-columns: 1fr; }

    .featured-article__title { font-size: 20px; }
    .single-article__title { font-size: 24px; }
}
