/**
 * LenAir Global Styles
 * 
 * En konsekvent typografisk og visuel identitet på tværs af sitet
 * Fokuserer på læsbarhed, hierarki og elegante interaktioner
 */

/* ========== TYPOGRAFI & FARVER ========== */

/* Base font for hele sitet */
body, button, input, select, textarea {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Overskriftshierarki med konsekvent styling */
h1, .entry-content h1, .main_color h1, .alternate_color h1, .responsive-heading {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 42px;
    letter-spacing: 0.15em;
    font-weight: 900 !important;
    margin-bottom: 25px;
    line-height: 1.3;
    text-transform: uppercase;
    color: #222;
}

h2, .entry-content h2, .main_color h2, .alternate_color h2 {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 32px;
    letter-spacing: 0.1em;
    font-weight: 800 !important;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #222;
}

h3, .entry-content h3, .main_color h3, .alternate_color h3 {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 26px;
    font-weight: 700 !important;
    margin: 30px 0 15px;
    line-height: 1.4;
    color: #333;
}

h4, .entry-content h4, .main_color h4, .alternate_color h4 {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 22px;
    font-weight: 700 !important;
    margin: 25px 0 12px;
    line-height: 1.4;
    color: #444;
}

/* Tilføj din nye klasse her */
.section-subtitle {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    color: #E73546 !important; /* Gør overskriften rød for øget visuel effekt */
}

h5, .entry-content h5, .main_color h5, .alternate_color h5 {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 18px;
    font-weight: 800 !important;
    margin: 20px 0 10px;
    line-height: 1.5;
    color: #555;
}
h6, .entry-content h6, .main_color h6, .alternate_color h6 {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 16px;
    font-weight: 800 !important;
    margin: 15px 0 8px;
    line-height: 1.5;
    color: #666;
}

/* Brødtekst styling - OPDATERET til mindre størrelse */
p, .entry-content p, .main_color p, .alternate_color p, .responsive-description {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px; /* Reduceret fra 18px */
    line-height: 1.6; /* Reduceret fra 1.8 */
    margin-bottom: 18px; /* Reduceret fra 20px */
    color: #333;
    font-weight: 400;
}

/* Links i brødtekst */
.entry-content a:not(.avia-button):not(.cta-button):not(.book-now),
.content a:not(.avia-button):not(.cta-button):not(.book-now),
.main_color a:not(.avia-button):not(.cta-button):not(.book-now) {
    color: #E73546;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

.entry-content a:not(.avia-button):not(.cta-button):not(.book-now):hover,
.content a:not(.avia-button):not(.cta-button):not(.book-now):hover,
.main_color a:not(.avia-button):not(.cta-button):not(.book-now):hover {
    border-bottom: 1px solid #E73546;
    color: #c62d3e;
}

/* Fremhævede tekstelementer */
.highlight, .text-highlight {
    color: #E73546 !important;
    font-weight: 600 !important;
}

.subtle-highlight {
    color: #666;
    font-weight: 600;
    font-style: italic;
}

/* Listelayout - OPDATERET til mindre størrelse */
.entry-content ul, .main_color ul, .alternate_color ul {
    margin: 0 0 18px 25px; /* Reduceret fra 20px */
    list-style: none;
}

.entry-content li, .main_color li, .alternate_color li {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px; /* Reduceret fra 18px */
    line-height: 1.6; /* Reduceret fra 1.7 */
    margin-bottom: 8px; /* Reduceret fra 10px */
    position: relative;
}

.entry-content ul li::before, 
.main_color ul li::before, 
.alternate_color ul li::before {
    content: "•";
    color: #E73546;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Blockquote styling - OPDATERET til mindre størrelse */
blockquote, .main_color blockquote, .alternate_color blockquote {
    border-left: 4px solid #E73546;
    margin: 25px 0; /* Reduceret fra 30px */
    padding: 15px 25px;
    background-color: rgba(231, 53, 70, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

blockquote p, .main_color blockquote p, .alternate_color blockquote p {
    font-size: 17px; /* Reduceret fra 19px */
    line-height: 1.6; /* Reduceret fra 1.7 */
    color: #444;
}

blockquote::before {
    content: """;
    font-family: Georgia, serif;
    font-size: 60px;
    position: absolute;
    left: 10px;
    top: -15px;
    color: rgba(231, 53, 70, 0.2);
}

/* Sektionsbaseret farvestyring */
.dark-section h1, .dark-section h2, .dark-section h3, 
.dark-section h4, .dark-section h5, .dark-section h6,
.dark-section p, .dark-section li, .dark-section a {
    color: #fff !important;
}

.light-section h1, .light-section h2, .light-section h3, 
.light-section h4, .light-section h5, .light-section h6,
.light-section p, .light-section li {
    color: #222 !important;
}

/* Individuelle heading farver */
.heading-white {
    color: #fff !important;
}

.heading-black {
    color: #222 !important;
}

.heading-theme {
    color: #E73546 !important;
}

/* ========== KNAPPER & INTERAKTIONSELEMENTER ========== */

/* Primære knapper */
.avia-button, 
.avia-button.avia-color-theme-color-highlight,
.cta-button, 
.book-now,
.main_color .avia-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    text-decoration: none !important;
    color: #fff !important;
    background-color: #E73546 !important;
    border: none !important;
    border-radius: 35px !important;
    box-shadow: 0 4px 15px rgba(231, 53, 70, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    position: relative;
    overflow: hidden;
}

/* Hover effekt for knapper - tilføjer en elegant skyggeffekt og skala */
.avia-button:hover, 
.avia-button.avia-color-theme-color-highlight:hover,
.cta-button:hover, 
.book-now:hover,
.main_color .avia-button:hover {
    background-color: #d82c3d !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
    box-shadow: 0 7px 20px rgba(231, 53, 70, 0.4) !important;
    text-decoration: none !important;
}

/* Active effekt for knapper */
.avia-button:active, 
.avia-button.avia-color-theme-color-highlight:active,
.cta-button:active, 
.book-now:active,
.main_color .avia-button:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 8px rgba(231, 53, 70, 0.4) !important;
}

/* Sekundær knap styling */
.avia-button.avia-color-theme-color,
.secondary-button,
.main_color .avia-button.avia-color-theme-color {
    background-color: transparent !important;
    border: 2px solid #E73546 !important;
    color: #E73546 !important;
    box-shadow: none !important;
}

.avia-button.avia-color-theme-color:hover,
.secondary-button:hover,
.main_color .avia-button.avia-color-theme-color:hover {
    background-color: rgba(231, 53, 70, 0.1) !important;
    color: #E73546 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(231, 53, 70, 0.15) !important;
}

/* ========== FORMULARER ========== */

/* Input felter */
input[type="text"], 
input[type="email"], 
input[type="tel"],
textarea,
select {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 16px !important;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #E73546 !important;
    box-shadow: 0 0 0 3px rgba(231, 53, 70, 0.15) !important;
    outline: none !important;
}

/* ========== BOKSEFFEKTER ========== */

/* Elegant boks med skyggeeffekt */
.elegant-box, .content-box {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin: 30px 0;
    transition: all 0.3s ease;
}

.elegant-box:hover, .content-box:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

/* Fremhævet boks */
.highlight-box {
    background-color: rgba(231, 53, 70, 0.05);
    border-left: 4px solid #E73546;
    border-radius: 0 8px 8px 0;
    padding: 25px;
    margin: 30px 0;
}

/* Info boks */
.info-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.info-box h4 {
    margin-top: 0;
    color: #555;
}

/* ========== RESPONSIVE STYLING ========== */

/* Laptop og mindre desktop screens */
@media only screen and (max-width: 1200px) {
    h1, .entry-content h1, .responsive-heading {
        font-size: 36px;
        letter-spacing: 0.12em;
        font-weight: 900 !important;
    }
    
    h2, .entry-content h2 {
        font-size: 28px;
        letter-spacing: 0.08em;
        font-weight: 800 !important;
    }
    
    h3, .entry-content h3 {
        font-size: 24px;
        font-weight: 700 !important;
    }
    
    p, .entry-content p {
        font-size: 15px; /* Reduceret fra 17px */
        line-height: 1.5; /* Reduceret fra 1.7 */
    }
}

/* Tablet layout */
@media only screen and (max-width: 989px) {
    h1, .entry-content h1, .responsive-heading {
        font-size: 32px;
        letter-spacing: 0.1em;
        font-weight: 900 !important;
    }
    
    h2, .entry-content h2 {
        font-size: 26px;
        letter-spacing: 0.05em;
        font-weight: 800 !important;
    }
    
    h3, .entry-content h3 {
        font-size: 22px;
        font-weight: 700 !important;
    }
    
    h4, .entry-content h4 {
        font-size: 20px;
        font-weight: 700 !important;
    }
    
    p, .entry-content p {
        font-size: 15px; /* Reduceret fra 16px */
        line-height: 1.5; /* Reduceret fra 1.6 */
    }
    
    blockquote p {
        font-size: 16px; /* Reduceret fra 17px */
    }
    
    .elegant-box, .content-box, .highlight-box, .info-box {
        padding: 25px;
        margin: 25px 0;
    }
}

/* Mobile layout */
@media only screen and (max-width: 767px) {
    h1, .entry-content h1, .responsive-heading {
        font-size: 28px;
        letter-spacing: 0.08em;
        margin-bottom: 20px;
        font-weight: 900 !important;
    }
    
    h2, .entry-content h2 {
        font-size: 24px;
        letter-spacing: 0.04em;
        margin-bottom: 15px;
        font-weight: 800 !important;
    }
    
    h3, .entry-content h3 {
        font-size: 20px;
        margin: 25px 0 12px;
        line-height: 1.3;
        font-weight: 700 !important;
    }
    
    h4, .entry-content h4 {
        font-size: 18px;
        margin: 20px 0 10px;
        font-weight: 700 !important;
    }
    
    h5, .entry-content h5, h6, .entry-content h6 {
        font-size: 16px;
        margin: 15px 0 8px;
        font-weight: 800 !important;
    }
    
    p, .entry-content p, .main_color p, .alternate_color p {
        font-size: 15px; /* Reduceret fra 16px */
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    blockquote {
        padding: 15px 20px;
        margin: 20px 0;
    }
    
    blockquote p {
        font-size: 15px; /* Reduceret fra 16px */
    }
    
    .entry-content ul, .entry-content ol {
        margin-bottom: 15px;
    }
    
    .entry-content li {
        font-size: 15px; /* Reduceret fra 16px */
        margin-bottom: 8px;
        line-height: 1.5;
    }
    
    .avia-button, 
    .avia-button.avia-color-theme-color-highlight,
    .cta-button, 
    .book-now {
        padding: 10px 20px !important;
        font-size: 13px !important;
        letter-spacing: 1px !important;
    }
    
    .elegant-box, .content-box, .highlight-box, .info-box {
        padding: 20px;
        margin: 20px 0;
    }
}

/* Small smartphone layout */
@media only screen and (max-width: 480px) {
    h1, .entry-content h1, .responsive-heading {
        font-size: 24px;
        letter-spacing: 0.05em;
        font-weight: 900 !important;
    }
    
    h2, .entry-content h2 {
        font-size: 22px;
        letter-spacing: 0.03em;
        font-weight: 800 !important;
    }
    
    h3, .entry-content h3 {
        font-size: 18px;
        font-weight: 700 !important;
    }
    
    p, .entry-content p {
        font-size: 14px; /* Reduceret fra 15px */
    }
    
    blockquote p {
        font-size: 14px; /* Reduceret fra 15px */
    }
    
    .entry-content li {
        font-size: 14px; /* Reduceret fra 15px */
        margin-bottom: 6px;
    }
    
    .avia-button, 
    .avia-button.avia-color-theme-color-highlight,
    .cta-button, 
    .book-now {
        padding: 8px 18px !important;
        font-size: 12px !important;
        width: 100%; /* Full width buttons on very small screens */
    }
    
    input[type="text"], 
    input[type="email"], 
    input[type="tel"],
    textarea,
    select {
        padding: 10px !important;
    }
    
    .elegant-box, .content-box, .highlight-box, .info-box {
        padding: 15px;
        margin: 15px 0;
    }
}

/* ========== DIVERSE FORBEDRINGER ========== */

/* Forbedret tilgængelighed for fokus-tilstande */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(231, 53, 70, 0.5) !important;
    outline-offset: 2px !important;
}

/* Forbedret tekstvalg styling */
::selection {
    background-color: rgba(231, 53, 70, 0.2);
    color: #222;
}

/* Pæne tabeller */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 25px 0;
    font-family: 'Source Sans Pro', sans-serif;
}

th {
    background-color: #f5f5f5;
    font-weight: 700;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #ddd;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Pæn horisontal inddeling */
hr, .hr-styled {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0), rgba(231, 53, 70, 0.3), rgba(0,0,0,0));
    margin: 30px 0;
}

.hr-fancy {
    text-align: center;
    border: 0;
    height: auto;
    margin: 30px 0;
    position: relative;
}

.hr-fancy::before {
    content: "";
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0), rgba(231, 53, 70, 0.3), rgba(0,0,0,0));
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
}

.hr-fancy::after {
    content: "•";
    color: #E73546;
    background: #fff;
    display: inline-block;
    position: relative;
    padding: 0 10px;
}

/* Alternativ separator uden rød gradient */
.hr-simple {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 30px 0;
}

.hr-invisible {
    border: 0;
    height: 40px;
    margin: 0;
    background: transparent;
}

/* Subtile hover-overgange */
a, button, .transition {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Code og pre styling */
code {
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    background-color: #f8f8f8;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #d82c3d;
}

pre {
    background-color: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
}

/* Whitespace helpers */
.margin-top-0 { margin-top: 0 !important; }
.margin-top-10 { margin-top: 10px !important; }
.margin-top-20 { margin-top: 20px !important; }
.margin-top-30 { margin-top: 30px !important; }
.margin-top-40 { margin-top: 40px !important; }
.margin-top-50 { margin-top: 50px !important; }

.margin-bottom-0 { margin-bottom: 0 !important; }
.margin-bottom-10 { margin-bottom: 10px !important; }
.margin-bottom-20 { margin-bottom: 20px !important; }
.margin-bottom-30 { margin-bottom: 30px !important; }
.margin-bottom-40 { margin-bottom: 40px !important; }
.margin-bottom-50 { margin-bottom: 50px !important; }

.padding-0 { padding: 0 !important; }
.padding-10 { padding: 10px !important; }
.padding-20 { padding: 20px !important; }
.padding-30 { padding: 30px !important; }
.padding-40 { padding: 40px !important; }
.padding-50 { padding: 50px !important; }

/* Tekstjusteringshjælpere */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Responsiv billedjustering */
img.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Print styling */
@media print {
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
    
    .no-print, 
    nav, 
    .avia-button, 
    .sidebar, 
    .footer, 
    #socket, 
    #header {
        display: none !important;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        page-break-inside: avoid;
        max-width: 100% !important;
    }
    
    blockquote, table, pre {
        page-break-inside: avoid;
    }
    
    ul, ol, dl {
        page-break-before: avoid;
    }
}

/* Forbedret afstand mellem overskrift og paragraf */
.section-subtitle + p {
    margin-top: 0 !important;
}

/* Ensartet spacer mellem sektioner */
.section-spacer {
    margin: 35px 0;
}

/* Ekstra støtte til tættere spacing for lister under overskrifter */
h1 + ul, h2 + ul, h3 + ul, h4 + ul, h5 + ul, h6 + ul {
    margin-top: 15px !important;
}

/* Optimeret læsbarhed for større tekstblokke */
.text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Understøttelse af text columns på desktop */
@media only screen and (min-width: 768px) {
    .text-columns-2 {
        column-count: 2;
        column-gap: 30px;
    }
    
    .text-columns-3 {
        column-count: 3;
        column-gap: 30px;
    }
    
    /* Undgå column break inde i disse elementer */
    .text-columns-2 h1, .text-columns-2 h2, .text-columns-2 h3,
    .text-columns-3 h1, .text-columns-3 h2, .text-columns-3 h3,
    .text-columns-2 .content-box, .text-columns-3 .content-box {
        break-inside: avoid;
    }
}
