/* ==========================================================================
   1. GLOBALE STRUKTUR-REGLER (Nedarves til hele hjemmesiden)
   ========================================================================== */
:root { --tema-moerk: #4a3e21; --tema-lys: #a3956b; }
html {
    scroll-behavior: smooth;
}

body {
    font-family: verdana, sans-serif; 
    font-size: 14px;                  
    font-weight: normal; 
    line-height: 1.4;                 
    margin: 0;
    padding: 0;
} 

.hoved-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 20px 40px 40px 40px; 
    box-shadow: 0 0 30px rgba(0,0,0,0.2); 
    min-height: 100vh; 
}

p {
    margin: 10px 0 15px 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Links inde i selve brødteksten og tids-links (stiplet før hover, massiv ved hover) */
.hovedindhold-felt p a,
.hovedindhold-felt > ul > li a,
a.tids-link {
    text-decoration: none !important;    
    border-bottom-width: 1px;
    border-bottom-style: dashed;
    color: inherit;                      
    display: inline;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.fakta-boks a:not(.tids-link) {
    border-bottom: none !important;
}

a.tids-link {
    cursor: help !important;
}

.hovedindhold-felt p a:hover,
.hovedindhold-felt > ul > li a:hover,
a.tids-link:hover {
    border-bottom-style: solid;
}

sup {
    line-height: 0;
    font-size: 11px;
    vertical-align: super;
}

a.fodnote-link {
    text-decoration: none !important;
    border-bottom: none !important;
    padding: 0 2px;
    font-weight: bold;
    cursor: help;
}

h2 {
    font-weight: bold; 
    font-size: 16px; 
} 

hr {
    border: 0;
    margin: 15px 0;
} 

.hovedindhold-felt {
    text-align: left;
    padding-top: 10px;
    padding-bottom: 20px;
}

.hovedindhold-felt::after {
    content: "";
    display: table;
    clear: both; 
}

/* ==========================================================================
   2. BILLEDER (Billed-rammer og floats)
   ========================================================================== */
img {
    border-radius: 10px;
    margin: 2px;
    max-width: 100%; 
    height: auto;    
}

#logo-felt {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0 !important;
    box-sizing: border-box;
}

.top-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto !important;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
}

.img-right {
    float: right;
    border-radius: 10px 20px 10px 10px;
    margin: 10px 0 10px 15px;
    max-width: 212px; 
    width: 100%;      
    height: auto;     
    object-fit: cover;
}

.img-left {
    float: left;
    border-radius: 20px 10px 10px 10px;
    margin: 10px 15px 10px 0;
    max-width: 212px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.img-heart {
    display: block;
    margin: 10px auto;
    border: 0;
    max-width: 212px;
    width: 100%;
    height: auto;
    object-fit: cover;
}
/* ==========================================================================
   3. NAVIGATION (Topmenu & Undermenu)
   ========================================================================== */
.topmenu-container {
    font-size: 15px;          
    padding: 12px 0 0 0;    
    text-align: center;       
}

.topmenu-link {
    font-weight: bold;
    padding: 0 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.topmenu-link:hover {
	text-decoration: underline;
}

.undermenu-container {
    font-size: 14px;
    padding: 4px 0;     
    text-align: center; 
    margin-bottom: 5px;    
}

.undermenu-link {
    font-weight: bold;
    padding: 0 10px;
    text-decoration: none;
    transition: color 0.2s;
}

.undermenu-link:hover {
	text-decoration: underline;
}

/* ==========================================================================
   4. BRØDKRUMMER & FOOTER
   ========================================================================== */
.broedkrumme-container {
    font-size: 14px;
    padding: 10px 0;
    text-align: left;
}

.broedkrumme-aktiv {
    font-weight: bold;
}

.broedkrumme-skiller {
    margin-bottom: 5px;
}

.side-footer {
    position: relative;
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 20px 0 10px 0;
    margin-top: 40px;                 
}

.side-footer hr {
    display: none; 
}

.footer-center {
    text-align: center;
    width: 100%;
}

.footer-hoejre {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-venstre {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-tidslinje-ikon {
    height: 32px;                 
    width: auto;
    vertical-align: middle;
    opacity: 0.4;                 
    transition: opacity 0.2s;     
    border: 0 !important;         
    border-radius: 0 !important;  
}

.footer-tidslinje-ikon:hover {
    opacity: 1.0;
}

.fest-ikon {
    height: 32px;                 
    width: auto;
    margin: 0 6px;                
    border: 0 !important;         
    border-radius: 0 !important;  
    vertical-align: middle;
}

/* ==========================================================================
   5. REJSE-LAYOUT & STØVET TIDSLINJE
   ========================================================================== */
.rejse-container {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.rejse-indhold {
    flex: 1;
}

.rejse-sektion {
    display: flex;
    gap: 20px; 
    margin-bottom: 60px; 
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.rejse-billede-boks {
    flex: 0 0 200px; 
}

.rejse-billede {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: block;
}

.rejse-tekst-boks {
    flex: 1;
}

.rejse-overskrift-link {
    display: inline-block;
}

.rejse-tekst-boks h3 {
    margin: 0 0 5px 0;
    font-size: 22px;
}

.rejse-sektion .aarstal-label {
    font-size: 13px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.rejse-sektion p {
    margin: 10px 0 0 0; 
}

.tidslinje-spalte {
    flex: 0 0 100px;
    border-left: 1px solid #e0e0e0;
    position: relative;
    padding-left: 20px;
}

.tidslinje-fast {
    position: sticky;
    top: 20px;
}

.person-tekst {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: 40px;               
    padding-top: 15px;              
    text-align: right;
}

.person-tekst a {
    font-weight: bold;
}

.kapitel-vaelger-boks {
    font-size: 14px;                 
    padding: 0;
    margin-top: 15px;               
    border-top: 0 !important;       
    text-align: right;
}

.kapitel-vaelger-titel {
    margin-right: 5px;
}

.kapitel-vaelger-boks a {
    font-weight: bold;
}

.scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px; 
    z-index: 9999; 
}

.scroll-bar {
    height: 100%;
    width: 0%; 
    transition: width 0.1s ease-out; 
}
/* ==========================================================================
   6. 4-SPORET PARALLEL TIDSLINJE
   ========================================================================== */
.samlet-tidslinje-container {
    position: relative;
    max-width: 850px; 
    margin: 40px auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
    padding-top: 70px !important;
    padding-bottom: 60px !important;
}

.samlet-tidslinje-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dc3545; 
    box-shadow: 16px 0 0 0 #28a745, 32px 0 0 0 #0066cc, 48px 0 0 0 #a3956b;   
    transform: translateX(-25px); 
}

.tidslinje-punkt {
    position: relative;
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding-bottom: 45px !important; 
    margin: 0 !important;
    box-sizing: border-box;
}

.tidslinje-punkt.tidslinje-underkapitel {
    padding-bottom: 12px !important; 
}

.tidslinje-punkt.tidslinje-underkapitel + .tidslinje-punkt:not(.tidslinje-underkapitel) {
    margin-top: 30px !important;
}

.tidslinje-venstre {
    width: 50%;
    padding-right: 45px; 
    text-align: right;
    box-sizing: border-box;
}

.tidslinje-hoejre {
    width: 50%;
    padding-left: 45px; 
    text-align: left;
    box-sizing: border-box;
}

.tidslinje-center-akse {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; 
    height: auto; 
    top: 4px;
}

.tidslinje-mini-prik {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 5;
}

.tidslinje-mini-prik.prik-roed   { background-color: #dc3545; left: 1px; }  
.tidslinje-mini-prik.prik-groen  { background-color: #28a745; left: 17px; } 
.tidslinje-mini-prik.prik-blaa   { background-color: #0066cc; left: 33px; } 
.tidslinje-mini-prik.prik-guld   { background-color: #a3956b; left: 49px; } 

.tidslinje-mini-prik.nyhed {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.08); 
}

.tidslinje-aarstal-venstre { font-size: 14px; font-weight: bold; margin-bottom: 4px; }
.tidslinje-aarstal-hoejre { font-size: 14px; font-weight: bold; margin-bottom: 4px; }

.tidslinje-punkt + .tidslinje-underkapitel {
    margin-top: -12px !important; 
}

.tidslinje-underkapitel {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

.tidslinje-underkapitel .tidslinje-venstre,
.tidslinje-underkapitel .tidslinje-hoejre {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    line-height: 1.4 !important;
}

.tidslinje-streg-container {
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 80px), transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 80px), transparent 100%);
    padding-bottom: 80px; 
}

/* ==========================================================================
   7. BOKSE, NIDARØS & GITTERE
   ========================================================================== */
.fakta-boks {
    border-radius: 6px;
    margin: 20px 0;
    padding: 15px 20px !important; 
    box-sizing: border-box;
}

.fakta-boks h2, .fakta-boks h3 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
}

.fakta-boks p {
    margin: 0 !important;
    padding: 0 !important;
}

.fakta-boks p.statistik-fodnote {
    margin: 20px 0 0 0 !important;
    padding: 10px 0 0 0 !important;
    font-size: 13px;
    line-height: 1.6;
    border-top-width: 1px;
    border-top-style: dashed;
}

.rom-hylde {
    border-radius: 6px;
    margin: 12px 0;
    padding: 0 !important; 
    overflow: hidden; 
    cursor: pointer;
    text-align: left;
}

.rom-hylde summary {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    outline: none;
    user-select: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease;
}

.rom-gitter-indhold {
    padding: 15px;
    cursor: default;
}

.rom-gitter-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.fakta-boks summary:hover {
    opacity: 0.80 !important;
}

.panel-label-enhed {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 140px;
    flex-shrink: 0;
}

.panel-navn {
    font-size: 13px;
    font-weight: bold;
}

.barskab-panel-ramme .panel-instrument-ramme {
    flex: 1;
    min-width: 200px;
    display: flex !important;
    flex-direction: row !important; 
    gap: 4px; 
    padding: 3px;
    border-radius: 4px;
    box-sizing: border-box;
}

.barskab-panel-ramme .panel-felt {
    flex: 1;
    height: 16px;
    box-sizing: border-box;
    display: block !important;
}

.panel-status {
    font-size: 12px;
    font-weight: bold;
    width: 100px;
    text-align: right;
    flex-shrink: 0;
}

.farve-firkant {
    width: 12px;
    height: 12px;
    display: inline-block;
    flex-shrink: 0;
}

details.fakta-boks summary {
    list-style: none; 
    transition: background-color 0.2s ease;
}

details.fakta-boks summary::-webkit-details-marker {
    display: none; 
}
/* ==========================================================================
   8. SITEMAP, SPECIELLE FORSKRIFTER & CVMATERIALE
   ========================================================================== */
.arkiv-intro-ramme {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 25px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.75;
}

.arkiv-intro-ramme h2 {
    font-family: Georgia, serif;
    font-size: 1.8rem;
    padding-bottom: 8px;
    margin-bottom: 25px;
}

.arkiv-intro-ramme p:first-of-type::first-letter {
    font-family: Georgia, serif;
    font-size: 3.5rem;
    float: left;
    margin-top: 4px;
    margin-right: 10px;
    line-height: 1;
    font-weight: bold;
}

.arkiv-sitemap-sektion {
    margin-top: 40px;
    padding-top: 15px;
    clear: both; 
    width: 100%;
    box-sizing: border-box;
}

.arkiv-sitemap-sektion h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.sitemap-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.sitemap-klods {
    flex: 1 1 200px; 
    max-width: 100%;
    box-sizing: border-box;
}

.sitemap-klods h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    padding-bottom: 5px;
}

.sitemap-klods ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.sitemap-klods li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    font-size: 14px;
    text-align: left; 
}

.sitemap-klods li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.cv-section {
    margin-bottom: 25px;
}

.cv-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.cv-list li {
    margin-bottom: 5px;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.title-area {
    flex-grow: 1;
}
.image-area {
    margin-left: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.personal-info .info-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important; 
    width: 100% !important;
    margin-bottom: 5px !important;
}

.personal-info .cv-titel {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.personal-info .info-header .img-right {
    float: none !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 110px !important; 
    height: auto !important;
}

.cv-header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important; 
    width: 100% !important;
    margin-bottom: 5px !important;
    box-sizing: border-box !important;
}

.cv-hovedtitel {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: bold !important;
}

.cv-billede-ramme {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
}

#cv-profilbillede {
    display: block !important;
    float: none !important;
    position: static !important;
    width: 110px !important;
    height: 110px !important;
    min-width: 110px !important;
    min-height: 110px !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   9. NATIVE INSTRUMENTER (Barskab & Gauges)
   ========================================================================== */
.gauge-enhed {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.gauge-titel {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gauge-ramme {
    display: flex;
    gap: 3px; 
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px;
}

.gauge-felt {
    flex: 1;
    height: 14px;
    background-color: transparent; 
    box-sizing: border-box;
}

.rom-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
}

.barskab-panel-ramme {
    display: flex;
    flex-direction: column;
    gap: 22px; 
    margin-top: 20px;
    padding: 25px; 
    border-radius: 4px;
}

.panel-raekke {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    opacity: 1.0 !important;
    background: transparent !important;
}

.rom-pie-chart {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rom-legend {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.etiket-kasse {
    width: 100px;
    height: 100px;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    cursor: grab;
    flex-shrink: 0;
    align-self: center;
    user-select: none;
    touch-action: none;
}

.etiket-kasse:active {
    cursor: grabbing;
}

.etiket-kasse img {
    position: absolute !important;
    width: 240px !important;
    max-width: none !important;
    height: auto !important;
    left: -70px;
    top: -40px;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    pointer-events: none;
}

/* ==========================================================================
   10. STATISTIKKER & INSTRUMENTER
   ========================================================================== */
.statistik-rejse-boks {
    text-align: center;
    margin-bottom: 30px;
}

.statistik-hovedtal {
    font-size: 16px; 
    margin: 5px 0;
}

.statistik-fremhaevet-tal {
    font-size: 20px; 
}

.statistik-bizar-tekst {
    font-size: 13px; 
    font-style: italic;
}

.statistik-bjaelke-liste {
    margin-top: 15px; 
    display: flex; 
    flex-direction: column; 
    gap: 12px;
}

.statistik-bjaelke-titel {
    font-size: 12px; 
    font-weight: bold; 
    margin-bottom: 3px;
}

.statistik-instrument-ramme {
    display: flex;
    gap: 3px; 
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px;
    width: 100%;
    box-sizing: border-box;
}

.statistik-gauge-felt {
    flex: 1;
    height: 14px;
    background-color: transparent; 
    box-sizing: border-box;
}

/* ==========================================================================
   11. CITATER & RENSET SPROGMATERIALE
   ========================================================================== */
.tale-streg {
    margin: 20px 0 25px 30px !important; 
    padding-left: 15px !important;       
    font-style: italic;                  
    text-align: left !important;         
}

.tale-boks {
    margin: 20px 0 25px 0 !important;
    padding: 12px 18px !important;
    border-radius: 8px !important;       
    font-style: italic;
    text-align: left !important;
}
.hint, [id^="fodnote-"] {
    font-size: 12px;
    font-style: italic;
    line-height: 1.5;
    opacity: 0.85;
}

p.hint, p[id^="fodnote-"] {
    border-top: 1px dashed rgba(74, 62, 33, 0.3);
    padding-top: 10px;
    margin-top: 25px;
}

.certifikat-liste {
    list-style-type: none; 
    padding: 0;
    margin: 0;
}

.certifikat-liste li {
    font-size: 13px;
    line-height: 1.8;       
    margin-bottom: 15px;    
    padding-bottom: 10px;
}

.certifikat-liste li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.nytaarsmenu-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 4px;
}

.menu-overskrift {
    text-align: center;
    font-weight: bold;
    text-decoration: underline;
    margin-bottom: 20px;
    font-size: 15px;
}

.menu-raekke {
    display: flex; 
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.5;
}

.menu-raekke:last-of-type {
    border-bottom: 0; 
}

.menu-ret {
    width: 130px;
    font-weight: bold;
    flex-shrink: 0; 
}

.menu-velbekomme {
    text-align: center;
    font-style: italic;
    margin-top: 25px;
    font-size: 13px;
}

/* ==========================================================================
   12. SPROG- & MAGASINKOLONNER (Fremtidssikret version)
   ========================================================================== */
.magasin-kolonner {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    grid-auto-flow: row;                   
    gap: 15px;                             
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    list-style-type: none;
}

.magasin-post {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 5px;
    padding-bottom: 5px;
}

.magasin-post strong {
    font-size: 11px;
    display: block;      
    margin-bottom: 2px;  
    font-weight: bold;
}

/* RESPONSIVE FILTER-REGLER FOR MOBIL ENHEDER */
@media (max-width: 700px) {
    .magasin-kolonner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    .info-header {
        flex-direction: column-reverse;
    }
    .image-area {
        margin-left: 0;
        margin-bottom: 15px;
    }
}
@media (max-width: 450px) {
    .magasin-kolonner { grid-template-columns: 1fr; }
}

/* Årstids-ikonknapper på Bagsiden */
.tema-knap-raekke {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.tema-ikon-knap {
    cursor: pointer;
    flex: 1;
    min-width: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px dashed rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: inherit;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tema-ikon-knap img {
    width: 32px;
    height: 32px;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tema-ikon-knap:hover,
.tema-ikon-knap.aktiv-tema {
    transform: translateY(-3px);
    border-style: solid;
    border-width: 2px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.tema-ikon-knap:hover img,
.tema-ikon-knap.aktiv-tema img {
    opacity: 1;
}

/* Farver pr. årstid ved hover og aktiv tilstand */
.tema-spring:hover, .tema-spring.aktiv-tema { background-color: #B8C9B0; border-color: #2E472B; color: #2E472B; }
.tema-sand:hover,   .tema-sand.aktiv-tema   { background-color: #CBBD93; border-color: #4a3e21; color: #4a3e21; }
.tema-autumn:hover, .tema-autumn.aktiv-tema { background-color: #C4A484; border-color: #5A2D18; color: #5A2D18; }
.tema-winter:hover, .tema-winter.aktiv-tema { background-color: #AAB6C2; border-color: #223344; color: #223344; }

/* Analoge bogmærke-faner langs højre kant af papiret */
.side-faner {
    position: fixed;
    top: 145px;
    left: calc(50% + 400px); /* Lægger sig lige op ad højre kant af din 980px hoved-container */
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 90;
}

.fane-knap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 66px;
    padding: 9px 6px;
    background: var(--tema-papir, #f7f4eb);
    color: var(--tema-moerk, #4a3e21);
    border: 1px dashed var(--tema-moerk, #4a3e21);
    border-left: none;
    border-radius: 0 8px 8px 0;
    text-decoration: none !important;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.fane-knap img {
    width: 26px;
    height: 26px;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.fane-knap:hover,
.fane-knap.aktiv-fane {
    transform: none;
    background: var(--tema-papir, #f7f4eb);
    border-style: solid;
    border-color: var(--tema-moerk, #4a3e21);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.16);
}

.fane-knap:hover img,
.fane-knap.aktiv-fane img {
    opacity: 1;
    transform: none;
}

/* Skjul side-fanerne på smallere skærme (hvor footeren tager over) */
@media (max-width: 1140px) {
    .side-faner {
        display: none;
    }
}
/* ==========================================================================
   13. BAGSIDENS INTERAKTIVE KONTROLPANEL
   ========================================================================== */
.bagside-ikon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.bagside-ikon-knap {
    flex: 0 1 calc(25% - 12px); /* Giver maks 5 knapper pr. række */
    min-width: 105px;           /* Sikrer pæn bredde på mobil/tablet */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 8px;
    border-width: 1px;
    border-style: dashed;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
    text-align: center;
}

.bagside-ikon-knap:hover {
    transform: translateY(-2px);
}

.bagside-ikon-knap.aktiv-bagside-knap {
    border-style: solid;
    border-width: 2px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.bagside-ikon-knap img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.bagside-info-panel {
    display: none;
    animation: fadeInPanel 0.25s ease;
}

.bagside-info-panel.synlig-panel {
    display: block;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bagside-panel-flex {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.bagside-panel-ikon {
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 1 !important;
}

.bagside-genvej-raekke {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bagside-genvej-knap {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    text-decoration: none !important;
    border-bottom: none !important;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    transition: opacity 0.2s ease;
}

.bagside-genvej-knap:hover {
    opacity: 0.85;
}
