/* =============================================================
   Udrykning.nu - Stylesheet v3.0
   Originalt design bevaret. Tilføjet: artikel- og listesider,
   brødkrummer, paginering, formular, tilgængelighed og
   forbedret mobil/tablet-håndtering.
   ============================================================= */

/* CSS Variabler */
:root {
    --primary-dark: #07101d;
    --primary-red: #e31818;
    --primary-blue: #007bff;
    --bg-light: #f0f2f5;
    --text-dark: #333;
    --text-light: #fff;
    --transition-speed: 0.3s;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    margin: 0;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* News Fonts */
h1, h2, h3, h4, .site-title, .sub-heading, .nav-inner a, .nav-drop-toggle,
.category-tag, .breaking-label {
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.5px;
}

/* Tilgængelighed */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--primary-dark); color: #fff; padding: 10px 20px;
    font-weight: 700; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Header & Logo styling */
.main-header { background: #fff; border-bottom: 2px solid #eaeaea; }
.header-inner { padding: 20px; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }

.logo-container { display: flex; align-items: center; gap: 20px; }
.logo-graphic {
    position: relative;
    width: 78px;
    height: 78px;
    background: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 18px rgba(0, 123, 255, 0.5);
    border: 2px solid var(--primary-blue);
    flex-shrink: 0;
}
.logo-graphic i { position: absolute; font-size: 1.9rem; }
.logo-graphic .blue-glow { color: #5bc0de; text-shadow: 0 0 10px #5bc0de; top: 15px; left: 15px; }
.logo-graphic .red-glow { color: #ff4d4d; text-shadow: 0 0 10px #ff4d4d; bottom: 15px; right: 15px; }
.cross-lines { position: absolute; width: 80%; height: 2px; background: #fff; transform: rotate(45deg); }
.cross-lines::after { content: ''; position: absolute; width: 100%; height: 2px; background: #fff; transform: rotate(90deg); }

.logo-text { display: flex; flex-direction: column; }
.sub-heading { font-size: 1rem; color: #555; margin-bottom: 2px; }
.main-title-box .site-title { font-size: 3.6rem; color: var(--primary-dark); line-height: 1; margin: 0; text-transform: uppercase; }
.nu-box { color: var(--text-light); background-color: var(--primary-blue); padding: 0 8px; border-radius: 4px; margin-left: 5px; box-shadow: 0 0 10px rgba(0, 123, 255, 0.8); }

/* Navigation */
nav { background-color: var(--primary-dark); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: flex-start; }
.nav-inner > ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; width: 100%; }
.nav-inner > ul > li { position: relative; }
.nav-inner > ul > li > a,
.nav-drop-toggle {
    display: block; padding: 15px 25px; color: var(--text-light); font-size: 1.1rem;
    transition: background var(--transition-speed);
    background: none; border: none; cursor: pointer; letter-spacing: 0.5px;
}
.nav-inner > ul > li > a:hover,
.nav-drop-toggle:hover { background-color: #1a365d; }
.nav-inner a.active { box-shadow: inset 0 -4px 0 var(--primary-red); }

.dropdown { display: none; position: absolute; top: 100%; left: 0; background-color: #1a365d; min-width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 500; }
.dropdown li a { display: block; padding: 12px 20px; color: #fff; font-family: 'Roboto', sans-serif; font-size: 1rem; transition: background 0.2s; }
.dropdown li a:hover { background-color: var(--primary-blue); }
.nav-inner > ul > li:hover .dropdown,
.nav-inner > ul > li:focus-within .dropdown,
.nav-inner > ul > li.open .dropdown { display: block; }

/* Breaking News Banner */
.breaking-banner {
    background: #fff;
    border-left: 5px solid var(--primary-red);
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}
.breaking-label {
    background: var(--primary-red);
    color: #fff;
    padding: 12px 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.pulse-anim { animation: pulse 1.5s infinite; }
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; color: #ffeb3b; }
    100% { transform: scale(1); opacity: 1; }
}
.breaking-content {
    padding: 12px 20px;
    font-size: 1rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.breaking-content a:hover { color: var(--primary-red); text-decoration: underline; }

/* Main Content Container & Transitions */
main { flex: 1; max-width: 1200px; width: 100%; margin: 30px auto; padding: 0 20px; }
/* position+z-index her er bevidst: #app-root's opacity-transition får
   browsere til at give den sit eget compositing-lag, også ved opacity:1 -
   uden en eksplicit, lav z-index kan det lag i nogle browsere rendere
   ovenpå navigationens dropdown (z-index 500) på tværs af ALLE sider,
   da #app-root ligger om alt sideindhold. Ved selv at deltage i samme
   nummeriske z-index-system (1 < 500) fjernes al tvetydighed. */
#app-root { position: relative; z-index: 1; transition: opacity var(--transition-speed) ease-in-out; opacity: 1; }
#app-root.loading { opacity: 0; }

/* Global Home Grid Layout (Main vs Sidebar) */
.home-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }

/* DYNAMISK NYHEDS-GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.item-span-6 { grid-column: span 6; }
.item-span-3 { grid-column: span 3; }
.item-span-2 { grid-column: span 2; }

/* Hero Article (Magasin Forside look) */
.hero-article {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 3px solid var(--primary-red);
    height: 500px;
}
.hero-link { display: block; height: 100%; }
.hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }

/* Content boks i bunden (Hero) */
.hero-content-wrapper {
    position: absolute; bottom: -10px; left: -10px; right: -10px;
    /* Gradient i stedet for en solid flade - lader mere af billedet skinne
       igennem foroven, selv der hvor teksten sidder. */
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.82) 32%, #000 68%);
    padding: 55px 40px 40px 40px;
    transform: skewY(-2deg);
}
.hero-category-label {
    position: absolute; top: -35px; left: 40px; background: #fff; color: var(--primary-dark); padding: 5px 15px; font-family: 'Anton', sans-serif; font-size: 1.2rem; transform: skewY(2deg); border-radius: 4px 4px 0 0;
}
.hero-content { transform: skewY(2deg); color: #fff; }
.hero-content h2 {
    font-size: 2.6rem; color: var(--text-light); line-height: 1.15; margin-bottom: 10px;
    /* Maks. 2 linjer - forhindrer at en lang AI-genereret overskrift
       presser tekstboksen til at dække det meste af billedet. */
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-content h2::first-line { color: var(--primary-red); }
.hero-content p {
    font-size: 1.2rem; font-family: 'Roboto', sans-serif;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Cards Styling */
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.card img { width: 100%; height: 210px; object-fit: cover; object-position: center; }
.card-content { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.category-tag { font-size: 0.9rem; color: var(--primary-blue); margin-bottom: 5px; }
.category-tag.brand { color: var(--primary-red); }
.card-content h3 { font-size: 1.3rem; margin-bottom: 10px; line-height: 1.2; color: #111; text-transform: uppercase; }
.card-content .excerpt { font-size: 0.9rem; color: #555; margin-bottom: auto; line-height: 1.4; }
.time { font-size: 0.8rem; color: #888; margin-top: 15px; font-family: 'Roboto', sans-serif; }

/* Horizontal Card Modification */
.horizontal-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 350px;
}
.horizontal-card img {
    width: 50%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
}
.horizontal-card .card-content {
    width: 50%;
    justify-content: center;
    padding: 40px;
}
.horizontal-card .card-content h3 { font-size: 2rem; margin-bottom: 15px; }
.horizontal-card .card-content .excerpt { font-size: 1.1rem; line-height: 1.6; }

/* Liste-sider (arkiv, by, kategori): 3 kort pr. række via item-span-2 */
.list-grid { margin-bottom: 30px; }

/* Brødkrummer */
.breadcrumb {
    margin: 0 0 20px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; }
.breadcrumb li { display: flex; align-items: center; list-style: none; }
.breadcrumb li::marker { content: none; }
.breadcrumb li:not(:last-child)::after { content: '\203A'; margin-left: 6px; color: #bbb; }
.breadcrumb a { color: var(--primary-blue); font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current] { color: #333; }

/* Side-header på liste- og indholdssider */
.page-header { margin-bottom: 25px; }
.page-header h1 {
    font-size: 2.4rem; color: var(--primary-dark); text-transform: uppercase;
    line-height: 1.1; margin-bottom: 8px;
    border-left: 6px solid var(--primary-red); padding-left: 15px;
}
.page-intro { font-size: 1.1rem; color: #555; max-width: 720px; }

/* Filtreringsmenu (arkiv) */
.filter-bar {
    display: flex; flex-wrap: wrap; align-items: end; gap: 16px;
    background: #fff; border-radius: 10px; padding: 20px;
    margin-bottom: 25px; box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    font-family: 'Roboto', sans-serif;
}
.filter-field { display: flex; flex-direction: column; gap: 5px; min-width: 150px; flex: 1 1 150px; }
.filter-field label { font-size: 0.85rem; font-weight: 700; color: #555; }
.filter-field select, .filter-field input[type="date"] {
    padding: 10px 12px; border: 2px solid #ddd; border-radius: 6px;
    font-family: 'Roboto', sans-serif; font-size: 0.95rem; background: #fafafa; color: var(--text-dark);
}
.filter-field select:focus, .filter-field input:focus { border-color: var(--primary-blue); background: #fff; }
.filter-actions { display: flex; align-items: center; gap: 12px; }
.filter-submit {
    background: var(--primary-red); color: #fff; border: none; padding: 11px 22px;
    border-radius: 6px; font-family: 'Anton', sans-serif; font-size: 1rem;
    letter-spacing: 0.5px; cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.filter-submit:hover { background: #b71212; }
.filter-reset { font-size: 0.9rem; color: #777; text-decoration: underline; white-space: nowrap; }
.filter-reset:hover { color: var(--primary-red); }

/* Paginering */
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 10px 0 30px; }
.page-btn {
    background: var(--primary-dark); color: #fff; padding: 10px 22px; border-radius: 6px;
    font-family: 'Anton', sans-serif; letter-spacing: 0.5px; transition: background 0.2s;
}
.page-btn:hover { background: var(--primary-blue); }
.page-status { font-size: 0.95rem; color: #666; }

/* Artikelside */
.article-page {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08); margin-bottom: 40px;
}
.article-header { padding: 30px 30px 0 30px; }
.article-tags-row { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 12px; }
.article-tags-row .category-tag:hover { text-decoration: underline; }
.article-header h1 {
    font-size: 2.6rem; line-height: 1.1; color: var(--primary-dark);
    text-transform: uppercase; margin-bottom: 15px;
}
.article-teaser { font-size: 1.25rem; color: #444; font-weight: 700; margin-bottom: 15px; line-height: 1.5; }
.article-meta { font-size: 0.9rem; color: #777; margin-bottom: 20px; }
.article-author { font-weight: 700; color: #444; }
.article-figure { margin: 0; }
.article-figure img { width: 100%; height: auto; display: block; }
.article-figcaption {
    padding: 6px 30px;
    font-size: 0.8rem;
    color: #888;
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
    font-family: 'Roboto', sans-serif;
}
.article-body { padding: 30px; max-width: 800px; }
.article-body p { margin-bottom: 1.2em; font-size: 1.05rem; line-height: 1.75; }
.article-body p:last-child { margin-bottom: 0; }

/* Del-knapper (sociale medier) */
.share-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 20px 30px 30px; border-top: 1px solid #eee; margin-top: 10px;
    font-family: 'Roboto', sans-serif;
}
.share-label { font-weight: 700; color: #555; font-size: 0.95rem; margin-right: 4px; }
.share-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--primary-dark); color: #fff; font-size: 1rem;
    border: none; cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.share-btn:hover { transform: translateY(-2px); }
.share-fb:hover { background: #1877f2; }
.share-x:hover { background: #000; }
.share-li:hover { background: #0a66c2; }
.share-mail:hover { background: var(--primary-blue); }
.share-copy.copied { background: #2e9e46; }

/* Kort over hændelser (/kort) */
.kort-vaerktoejslinje {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    background: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08); font-family: 'Roboto', sans-serif;
}
.kort-vaerktoejslinje .filter-field { min-width: 220px; }
.kort-vaerktoejslinje #kort-periode {
    padding: 10px 12px; border: 2px solid #ddd; border-radius: 6px; font-family: 'Roboto', sans-serif;
    font-size: 0.95rem; background: #fafafa; color: var(--text-dark); width: 100%;
}
.kort-legende { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #666; flex-wrap: wrap; }
.kort-legende-punkt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; margin-left: 10px; }
.kort-legende-punkt:first-child { margin-left: 0; }
.kort-legende-red { background: var(--primary-red); }
.kort-legende-blue { background: var(--primary-blue); }

.kort-map {
    width: 100%; height: 600px; border-radius: 12px; overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08); background: var(--primary-dark); margin-bottom: 20px;
}
.kort-tomt { text-align: center; color: #888; padding: 20px; font-style: italic; }

/* Indhold i Leaflets popup - selve Leaflet-rammen styles via kort-popup-boks */
.leaflet-popup-content-wrapper.kort-popup-boks { padding: 0; border-radius: 10px; overflow: hidden; }
.leaflet-popup-content-wrapper.kort-popup-boks .leaflet-popup-content { margin: 0; width: 260px !important; }
.kort-popup { display: block; color: inherit; text-decoration: none; }
.kort-popup img { width: 100%; height: 120px; object-fit: cover; display: block; }
.kort-popup-tekst { padding: 12px 14px; }
.kort-popup-kategori { display: block; font-size: 0.75rem; font-weight: 700; color: var(--primary-blue); text-transform: uppercase; margin-bottom: 4px; }
.kort-popup-tekst strong { display: block; font-size: 0.95rem; line-height: 1.3; color: var(--primary-dark); margin-bottom: 4px; }
.kort-popup-tekst p { font-size: 0.82rem; color: #555; line-height: 1.4; margin: 0 0 6px; }
.kort-popup-tekst time { font-size: 0.75rem; color: #999; }

/* Liveblog / opdateringer (AI-artikler med en politi-tråd) */
.liveblog { margin: 10px 30px 20px; padding: 20px; background: #f7f7f7; border-radius: 10px; border-left: 4px solid var(--primary-red); }
.liveblog-titel { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 14px; }
.liveblog-titel i { color: var(--primary-red); }
.liveblog-liste { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.liveblog-punkt { position: relative; padding-left: 20px; border-left: 2px solid #ddd; }
.liveblog-punkt::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary-red); }
.liveblog-tid { display: block; font-size: 0.8rem; font-weight: 700; color: #888; margin-bottom: 3px; }
.liveblog-tekst { font-size: 0.95rem; color: var(--text-dark); line-height: 1.5; }

/* Relaterede historier */
.related-section { margin-bottom: 30px; }
.related-section h2 {
    font-size: 1.8rem; color: var(--primary-dark); text-transform: uppercase;
    border-bottom: 3px solid var(--primary-dark); padding-bottom: 10px; margin-bottom: 20px;
}

/* Indholdskort (kontakt, om, privatliv, 404) */
.content-card {
    background: #fff; border-radius: 12px; padding: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08); max-width: 720px; margin-bottom: 30px;
}
.content-card p { margin-bottom: 1em; }
.content-card a { color: var(--primary-blue); font-weight: 700; }
.content-card a:hover { text-decoration: underline; }
.error-404 h1 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 10px; text-transform: uppercase; }
.empty-state { background: #fff; border-radius: 8px; padding: 30px; color: #555; }
.empty-state a { color: var(--primary-blue); font-weight: 700; }

/* Kontaktformular */
.kontakt-form { display: flex; flex-direction: column; gap: 15px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-weight: 700; font-size: 0.95rem; }
.form-field input, .form-field textarea {
    padding: 12px; border: 2px solid #ddd; border-radius: 6px;
    font-family: 'Roboto', sans-serif; font-size: 1rem; background: #fafafa;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--primary-blue); background: #fff; }
.hp-field { position: absolute; left: -9999px; } /* honeypot - skjult for mennesker */
.form-submit {
    align-self: flex-start; background: var(--primary-red); color: #fff; border: none;
    padding: 12px 30px; border-radius: 6px; font-family: 'Anton', sans-serif;
    font-size: 1.1rem; letter-spacing: 0.5px; cursor: pointer; transition: background 0.2s;
}
.form-submit:hover { background: #b71212; }
.form-success { background: #e6f6e6; border-left: 4px solid #2e9e46; padding: 15px; border-radius: 4px; }
.form-error { background: #fdeaea; border-left: 4px solid var(--primary-red); padding: 15px; border-radius: 4px; margin-bottom: 15px; }
.kontakt-note { margin-top: 20px; font-size: 0.9rem; color: #777; }

/* Sidebar */
.sidebar-section { background: #fff; padding: 25px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.sidebar-heading, .sidebar-section h2 { font-size: 1.5rem; border-bottom: 3px solid var(--primary-dark); padding-bottom: 10px; margin-bottom: 20px; text-transform: uppercase; }

.quick-update { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.quick-update:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
a.quick-update:hover p { color: var(--primary-blue); }
.icon-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; flex-shrink: 0; font-size: 1.1rem; }
.bg-blue { background-color: var(--primary-blue); }
.bg-red { background-color: var(--primary-red); }
.quick-update p { font-size: 0.95rem; font-weight: 700; line-height: 1.4; margin: 0; transition: color 0.2s; }

.map-teaser {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 35px 20px; background: var(--primary-dark); color: #fff; border-radius: 8px;
    text-align: center; font-weight: 700; text-transform: uppercase; font-size: 0.95rem;
    transition: background 0.2s;
}
.map-teaser i { font-size: 2rem; color: var(--primary-red); }
.map-teaser:hover { background: #000; }
.sidebar-tom { color: #888; font-size: 0.9rem; font-style: italic; }

.volunteer-section { padding: 0; background: transparent; box-shadow: none; }
.volunteer-header { background: #fff; padding: 20px 20px 10px 20px; margin: 0; border-radius: 8px 8px 0 0; border: none; font-size: 1.5rem; }
.volunteer-card { display: flex; gap: 15px; background: var(--primary-dark); color: #fff; padding: 20px; border-radius: 0 0 8px 8px; }
.volunteer-card img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-red); }
.volunteer-card h3 { color: var(--primary-red); font-size: 1.2rem; margin-bottom: 5px; text-transform: uppercase; }
.volunteer-card p { font-size: 0.9rem; font-family: 'Roboto', sans-serif; }

/* Notifikationer */
.notify-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.notify-card {
    background: #fff; border-radius: 10px; padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08); display: flex; flex-direction: column; gap: 12px;
}
.notify-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.notify-card-head i { font-size: 1.3rem; color: var(--primary-blue); }
.notify-card-head h2 { font-size: 1.3rem; text-transform: uppercase; color: var(--primary-dark); flex: 1; }
.notify-price {
    font-family: 'Anton', sans-serif; font-size: 0.85rem; letter-spacing: 0.5px;
    background: var(--primary-dark); color: #fff; padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.notify-price-free { background: #2e9e46; }
.notify-card p { font-size: 0.95rem; color: #555; line-height: 1.5; }
.notify-card a { color: var(--primary-blue); font-weight: 700; }
.notify-actions { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.notify-card-pushover { border: 2px solid var(--primary-red); }
.notify-note { font-size: 0.8rem; color: #888; border-top: 1px solid #eee; padding-top: 12px; margin-top: auto; }

/* Footer */
footer { background: var(--primary-dark); color: #aaa; text-align: center; padding: 40px 20px; margin: 0; width: 100%; }
.footer-links { margin-bottom: 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; }
.footer-links a { color: #fff; font-size: 1rem; font-family: 'Anton', sans-serif; letter-spacing: 1px; }
.footer-links a:hover { color: var(--primary-red); }
footer p { font-size: 0.9rem; }

/* =============================================================
   Responsivt: tablet og mobil
   ============================================================= */

/* Tablet */
@media (max-width: 1024px) {
    .home-grid { grid-template-columns: 1.6fr 1fr; gap: 20px; }
    .hero-content h2 { font-size: 2.2rem; }
    .article-header h1 { font-size: 2.2rem; }
    .item-span-2 { grid-column: span 3; } /* 2 kort pr. række på tablet */
    .notify-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobil */
@media (max-width: 900px) {
    .header-inner { padding: 15px; }
    .main-title-box .site-title { font-size: 2.6rem; }
    .logo-graphic { width: 62px; height: 62px; }
    .logo-graphic i { font-size: 1.5rem; }
    .logo-container { gap: 12px; }

    .home-grid { grid-template-columns: 1fr; }
    .item-span-3, .item-span-2 { grid-column: span 6; } /* Stack alt på mobil */

    .horizontal-card { flex-direction: column; min-height: auto; }
    .horizontal-card img { width: 100%; height: 250px; min-height: 0; }
    .horizontal-card .card-content { width: 100%; padding: 25px; }

    .hero-article { height: 400px; }
    .hero-content h2 { font-size: 1.7rem; }
    .hero-content-wrapper { padding: 20px 25px 30px 25px; }
    .hero-category-label { left: 25px; }

    /* Navigation: ren, stablet liste (i stedet for ujævnt flex-wrap),
       venstrestillet med ikon/caret ude til højre. Dropdowns er stadig et
       overlay (position: absolute), men nu med en maks-højde og egen
       scroll, så en lang liste (fx 10 byer) aldrig tvinger HELE siden til
       at scrolle - kun selve dropdown-panelet scroller internt. */
    .nav-inner > ul { flex-direction: column; }
    .nav-inner > ul > li { flex: none; width: 100%; text-align: left; border-top: 1px solid rgba(255,255,255,0.08); }
    .nav-inner > ul > li:first-child { border-top: none; }
    .nav-inner > ul > li > a,
    .nav-drop-toggle {
        padding: 14px 20px; font-size: 1rem; width: 100%;
        display: flex; align-items: center; justify-content: space-between;
    }
    .dropdown {
        position: absolute; top: 100%; left: 0; right: 0; width: auto;
        max-height: 60vh; overflow-y: auto;
    }

    .breaking-banner { flex-direction: column; align-items: stretch; margin-bottom: 20px; }
    .breaking-label { width: 100%; font-size: 1rem; padding: 10px 15px; }
    .breaking-content { white-space: normal; font-size: 0.95rem; padding: 12px 15px; overflow: visible; text-overflow: clip; }

    .page-header h1 { font-size: 1.8rem; }
    .article-header { padding: 20px 20px 0 20px; }
    .article-header h1 { font-size: 1.8rem; }
    .article-teaser { font-size: 1.1rem; }
    .article-body { padding: 20px; }
    .content-card { padding: 20px; }

    .filter-bar { flex-direction: column; align-items: stretch; padding: 16px; }
    .filter-field { min-width: 0; }
    .filter-actions { justify-content: space-between; }

    .kort-vaerktoejslinje { flex-direction: column; align-items: stretch; }
    .kort-map { height: 420px; }

    .share-bar { padding: 15px 20px 25px; }

    .notify-grid { grid-template-columns: 1fr; }
}

/* Reduceret bevægelse: respekter brugerens systemindstilling */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}