/* assets/css/theme.css */
/* ===========================================
   CAMILLAS BOLIG IDEER - TEMA STYLESHEET
   Revideret og struktureret version
=========================================== */

/* ========== CSS VARIABLES ========== */
:root {
    /* Farvepalette - Primær tema */
    --primary: #660033;
    --primary-light: #8a0045;
    --primary-dark: #4d0026;
    --primary-rgb: 102, 0, 51;
    
    /* Sekundære farver */
    --secondary: #f8f9fa;
    --accent: #ffd166;
    --accent-light: #ffe8a3;
    
    /* Tekst farver */
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #ffffff;
    
    /* Baggrund farver */
    --bg-light: #ffffff;
    --bg-dark: #1a1a1a;
    --bg-gray: #f5f5f5;
    --bg-primary-custom: #660033;
    
    /* Effekter */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 20px rgba(var(--primary-rgb), 0.2);
    
    /* Overgange */
    --transition-fast: 0.1s ease;
    --transition-normal: 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Typografi */
    --font-heading: 'Cormorant', serif;
    --font-body: 'Cormorant', serif;
    --font-accent: 'Cormorant', sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --header-height-mobile: 70px;
}

/* ========== RESET & BASE STYLES ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

/* ========== LAYOUT COMPONENTS ========== */

/* Header */
.floating-header {
    background: var(--primary);
    transition: var(--transition-normal);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--header-height-mobile);
    box-shadow: var(--shadow-md);
}

@media (min-width: 992px) {
    .floating-header {
        background: transparent;
        position: absolute;
        box-shadow: none;
        height: var(--header-height);
    }
    
    .floating-header.scrolled {
        background: var(--bg-light);
        position: fixed;
        box-shadow: var(--shadow-md);
        animation: slideDown 0.4s ease-out;
    }
}

@keyframes slideDown {
    from { 
        transform: translateY(-100%);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Logo */
.logo-text {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--primary);
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
}

@media (min-width: 992px) {
    .logo-text {
        color: var(--text-light);
        font-size: 1.6rem;
    }
    
    .floating-header.scrolled .logo-text {
        color: var(--primary);
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-light);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: var(--shadow-lg);
        max-height: none;
        display: none;  /* Start skjult */
    }
    
    .navbar-collapse.show {
        display: block;  /* Vis med det samme */
    }
}

.nav-link-custom {
    color: var(--primary) !important;
    font-family: var(--font-accent);
    font-weight: 300;
    padding: 1rem 1.5rem;
    margin: 0;
    transition: var(--transition-normal);
    position: relative;
    /* text-align: center; <-- FJERNET */
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

@media (max-width: 991px) {
    .nav-link-custom {
        display: flex;           /* NY */
        align-items: center;     /* NY */
        gap: 12px;              /* NY */
        text-align: left;       /* NY */
        padding: 1rem 1.5rem;
    }
    
    .nav-link-custom i {
        width: 24px;            /* NY - fast bredde */
        text-align: center;     /* NY */
        line-height: 1;
    }
}

.nav-link-custom:last-child {
    border-bottom: none;
}

@media (min-width: 992px) {
    .nav-link-custom {
        color: var(--text-light) !important;
        padding: 0.5rem 1rem;
        margin: 0 var(--space-sm);
        border-bottom: none;
        text-align: left;
        /* display: flex; <-- IKKE på desktop! */
    }
}

@media (min-width: 992px) {
    .nav-link-custom {
        color: var(--text-light) !important;
        padding: 0.5rem 1rem;
        margin: 0 var(--space-sm);
        border-bottom: none;
        text-align: left;
    }
    
    .floating-header.scrolled .nav-link-custom {
        color: var(--primary) !important;
    }
    
    .nav-link-custom::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: var(--transition-normal);
    }
    
    .nav-link-custom:hover::after,
    .nav-link-custom.active::after {
        width: 80%;
    }
    
    .nav-link-custom.active {
        color: var(--text-light) !important;
    }
    
    .floating-header.scrolled .nav-link-custom.active {
        color: var(--primary) !important;
    }
}

/* Navigation Toggler */
.navbar-toggler {
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    transition: var(--transition-normal);
       background-color: #f2f2f2;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
}

@media (min-width: 992px) {
    .navbar-toggler {
        border-color: var(--text-light);
        background-color: #f2f2f2;
    }
    
    .floating-header.scrolled .navbar-toggler {
        border-color: var(--primary);
           background-color: #f2f2f2;
    }
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23660033' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
    transition: var(--transition-normal);
}

@media (min-width: 992px) {
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .floating-header.scrolled .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23660033' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* ========== BUTTONS ========== */
.btn-theme-primary,
.btn-custom-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    border: none;
    padding: 0.875rem 2.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-accent);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-primary);
}

.btn-theme-primary::before,
.btn-custom-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn-theme-primary:hover::before,
.btn-custom-primary:hover::before {
    left: 0;
}

.btn-theme-primary:hover,
.btn-custom-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
}

.btn-theme-primary:active,
.btn-custom-primary:active {
    transform: translateY(-1px);
}

.btn-theme-outline,
.btn-custom-outline,
.btn-outline-primary-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-accent);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
}

.btn-theme-outline:hover,
.btn-custom-outline:hover,
.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}


@media (max-width: 992px) {
    .btn-custom-outline {
        color: var(--text-light);
        border-color: var(--text-light);
    }
}
/* Outline button variations */
@media (min-width: 992px) {
    .btn-custom-outline {
        color: var(--text-light);
        border-color: var(--text-light);
    }

    
    
    .btn-custom-outline:hover {
        background: var(--text-light);
        color: var(--primary);
    }
    
    .floating-header.scrolled .btn-custom-outline {
        color: var(--primary);
        border-color: var(--primary);
    }
    
    .floating-header.scrolled .btn-custom-outline:hover {
        background: var(--primary);
        color: var(--text-light);
    }
}

/* Small outline button */
.btn-outline-primary-custom.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 400;
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    color: var(--text-light);
    display: flex;
    align-items: center;
    margin-top: var(--header-height-mobile);
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

@media (min-width: 992px) {
    .hero-section {
        margin-top: 0;
        min-height: 60vh;
    }
}

.hero-homepage {
    min-height: calc(100vh - var(--header-height-mobile));
}

@media (min-width: 992px) {
    .hero-homepage {
        min-height: 100vh;
    }
}

.hero-bg {
  position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}
/* KUN DESKTOP - fixed + effekter */
@media (min-width: 992px) {
    .hero-bg {
        background-attachment: fixed;
        transform: scale(1.1);
        transition: transform 0.3s ease-out;
        will-change: transform;
    }
}

/* MOBIL - ingen fixed, ingen transform, ingen transition */
@media (max-width: 991px) {
    .hero-bg {
        background-attachment: scroll !important;  /* VIGTIGST! */
        transform: none !important;               /* Sluk scale */
        transition: none !important;              /* Sluk animation */
        will-change: auto !important;            /* Fjern will-change */
    }
}

/* ========== CARDS ========== */
.card-theme {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    background: var(--bg-light);
    box-shadow: var(--shadow-sm);
}

.card-theme:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-theme-primary {
    border-top: 4px solid var(--primary);
}

/* Project Cards */
.project-card {
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    z-index: 1;
}

.object-cover {
    object-fit: cover;
}

/* ========== BADGES ========== */
/* Custom badge styling */
.badge.bg-light.text-primary.border {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary) !important;
    border-color: rgba(var(--primary-rgb), 0.2) !important;
}

#detailRoom.badge.bg-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

#detailStyle.badge.bg-light.text-primary.border {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary) !important;
    border-color: rgba(var(--primary-rgb), 0.3) !important;
}

/* ========== MOODBOARD CTA ========== */
.bg-primary.text-white.rounded-4 {
    background-color: #f9f7f4 !important;
    background-image: linear-gradient(to bottom right, #f9f7f4, #f5f2ec) !important;
    color: var(--text-medium) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.bg-primary.text-white.rounded-4 h3 {
    color: var(--primary) !important;
    font-weight: 400;
}

.bg-primary.text-white.rounded-4 .lead {
    color: var(--text-medium) !important;
    font-weight: 300 !important;
}

/* Moodboard buttons */
.bg-primary.text-white.rounded-4 .btn-light {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    color: var(--text-light) !important;
    border: none;
    font-weight: 400;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: var(--transition-normal);
}

.bg-primary.text-white.rounded-4 .btn-outline-light {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    font-weight: 400;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: var(--transition-normal);
}

.bg-primary.text-white.rounded-4 .btn-outline-light:hover {
    background: var(--primary) !important;
    color: var(--text-light) !important;
}

/* ========== BUDGET DISPLAY ========== */
.d-flex.align-items-center .text-primary {
    color: var(--primary) !important;
}

.d-flex.align-items-center small {
    color: #444;
    font-weight: 400;
}

.d-flex.align-items-center .fas.fa-wallet {
    color: var(--primary);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.d-flex.align-items-center:hover .fas.fa-wallet {
    transform: scale(1.1);
}

.d-flex.align-items-center:hover small {
    color: var(--primary);
}

/* ========== FORMS ========== */
.form-control-theme {
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.form-control-theme:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation classes */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.fade-in {
    animation: fadeIn 0.6s ease-out both;
}

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }

/* ========== LOADING OVERLAY ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-light);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

/* ========== UTILITY CLASSES ========== */
.text-primary-theme {
    color: var(--primary) !important;
}

.bg-primary-theme {
    background-color: var(--primary) !important;
}

.bg-primary-light {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
}

.border-primary-theme {
    border-color: var(--primary) !important;
}

.shadow-primary {
    box-shadow: var(--shadow-primary) !important;
}

/* Content spacing */
.content-wrapper {
    margin-top: 0;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    :root {
        --space-xl: 2rem;
        --space-lg: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.1rem !important;
        line-height: 1.6;
    }
    
    .btn-theme-primary,
    .btn-theme-outline,
    .btn-custom-primary,
    .btn-custom-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .navbar-collapse {
        padding: 2rem 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    .navbar-nav .nav-item {
        margin: 0.8rem 0;
    }
    
    .nav-link-custom {
        font-size: 1.2rem !important;
        padding: 0.8rem 1rem !important;
        font-weight: 400;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .nav-link-custom:hover,
    .nav-link-custom.active {
        background: rgba(var(--primary-rgb), 0.1);
        transform: translateX(5px);
    }
    
    .navbar .btn-custom-primary,
    .navbar .btn-custom-outline {
        font-size: 1.1rem !important;
        padding: 1rem 1.5rem !important;
        margin: 1rem 0;
        width: 100%;
        border-radius: 15px;
        font-weight: 400;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar-brand .logo-text {
        font-size: 1.1rem;
    }
    
    .nav-link-custom {
        font-size: 0.95rem !important;
        padding: 0.6rem 0.8rem !important;
    }
    
    .btn-custom-outline {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
        font-weight: 400 !important;
        border-width: 2px !important;
    }
    
    .hero-section h1.display-5 {
        font-size: 2.5rem !important;
    }
    
    .d-flex.gap-3 {
        gap: 1rem !important;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .btn-theme-primary,
    .btn-theme-outline,
    .btn-custom-primary,
    .btn-custom-outline,
    .btn-outline-primary-custom {
        border: 1px solid var(--text-dark) !important;
        background: none !important;
        color: var(--text-dark) !important;
        text-shadow: none !important;
        box-shadow: none !important;
        
    }
    
    .floating-header {
        position: static !important;
        background: white !important;
        box-shadow: none !important;
    }
    
    .loading-overlay {
        display: none !important;
    }
}


.text-primary {
    color: var(--primary) !important;
}

/* OVERSKRIV Bootstrap's default skråstreg */
.hero-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    content: "/" !important;           /* <-- SKRÅSTREGEN! */
    color: white !important;           /* <-- Farven */
    padding: 0 15px !important;        /* <-- Afstand */
    opacity: 0.8 !important;           /* <-- Gennemsigtighed */
    font-size: 16px !important;        /* <-- Størrelse */
    font-weight: 300 !important;       /* <-- Tykkelse */
}

/* Alternativ: Mere synlig skråstreg */
.hero-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    content: " / " !important;         /* <-- Med mellemrum */
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400 !important;
    font-size: 18px !important;
}


/* ========== CUSTOM ALERTS ========== */

/* Primary alert - Bruger din primære farve */
.alert.alert-primary {
    background-color: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.2);
    color: var(--primary-dark);
}

.alert.alert-primary .alert-link {
    color: var(--primary-dark);
    font-weight: 600;
}

.alert.alert-primary .btn-close {
    filter: brightness(0) saturate(100%) invert(20%) sepia(35%) saturate(2000%) hue-rotate(310deg);
}

/* Primary alert - Solid version */
.alert.alert-primary-solid {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
}

.alert.alert-primary-solid .alert-link {
    color: var(--text-light);
    font-weight: 600;
}

.alert.alert-primary-solid .btn-close {
    filter: brightness(0) invert(1);
}

/* Secondary alert - Lys grå */
.alert.alert-secondary {
    background-color: var(--bg-gray);
    border-color: #e0e0e0;
    color: var(--text-medium);
}

.alert.alert-secondary .alert-link {
    color: var(--text-dark);
}

/* Success alert - Grønne nuancer */
.alert.alert-success {
    background-color: rgba(40, 167, 70, 0.72);
    border-color: rgba(40, 167, 69, 0.2);
    color: #ffffff;
}

/* Danger alert - Røde nuancer */
.alert.alert-danger {
    background-color: rgba(220, 53, 70, 0.656);
    border-color: rgba(220, 53, 69, 0.2);
    color: #ffffff;
}

/* Warning alert - Brug din accentfarve */
.alert.alert-warning {
    background-color: rgba(255, 214, 102, 0.652);
    border-color: rgba(255, 214, 102, 0.3);
    color: #ffffff;
}

/* Info alert - Blå nuancer */
.alert.alert-info {
    background-color: rgba(23, 163, 184, 0.679);
    border-color: rgba(23, 162, 184, 0.2);
    color: #ffffff;
}

/* Light alert */
.alert.alert-light {
    background-color: var(--bg-light);
    border-color: #e0e0e0;
    color: var(--text-dark);
}

/* Dark alert */
.alert.alert-dark {
    background-color: var(--bg-dark);
    border-color: var(--bg-dark);
    color: var(--text-light);
}

.alert.alert-dark .alert-link {
    color: var(--text-light);
}

.alert.alert-dark .btn-close {
    filter: brightness(0) invert(1);
}

/* ========== CUSTOM ALERT VARIANTS MED DINE FARVER ========== */

/* Vinrød alert - Baseret på din primære farve */
.alert.alert-burgundy {
    background-color: rgba(var(--primary-rgb), 0.08);
    border-left: 5px solid var(--primary);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    border-right: 1px solid rgba(var(--primary-rgb), 0.1);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    color: var(--text-dark);
    border-radius: var(--radius-md);
}

.alert.alert-burgundy .alert-heading {
    color: var(--primary);
    font-family: var(--font-heading);
}

.alert.alert-burgundy i {
    color: var(--primary);
}

/* Accent alert - Brug din accentfarve */
.alert.alert-accent {
    background-color: rgba(255, 214, 102, 0.15);
    border-left: 5px solid var(--accent);
    border-top: 1px solid rgba(255, 214, 102, 0.2);
    border-right: 1px solid rgba(255, 214, 102, 0.2);
    border-bottom: 1px solid rgba(255, 214, 102, 0.2);
    color: #856404;
}

.alert.alert-accent .alert-heading {
    color: #856404;
}

.alert.alert-accent i {
    color: #856404;
}

/* Gradient alert */
.alert.alert-gradient {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-md);
    color: var(--text-dark);
}

/* ========== ALERT MED IKONER ========== */
.alert-with-icon {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.alert-icon {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content p:last-child {
    margin-bottom: 0;
}

/* ========== ALERT OVERSKRIVELSER ========== */
.alert {
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    border-width: 1px;
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
}

.alert .btn-close {
    padding: var(--space-md);
}

.alert .alert-heading {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: var(--space-sm);
}

/* ========== RESPONSIVE ALERTS ========== */
@media (max-width: 768px) {
    .alert {
        padding: var(--space-sm) var(--space-md);
    }
    
    .alert-with-icon {
        gap: var(--space-sm);
    }
    
    .alert-icon {
        font-size: 1.25rem;
    }
}


/* Sikrer at notes altid er hvide */
.text-white.opacity-75 {
    color: white !important;
}

.text-white.opacity-75 small {
    color: white !important;
}




/* ========== GLOBAL FONT SIZE FORBEDRING ========== */
:root {
    /* Basis font størrelse */
    --font-size-base: 18px;      /* Standard på desktop */
    --font-size-lg: 20px;        /* Lidt større tekst */
    --font-size-sm: 16px;         /* Mindre tekst (stadig læsbart) */
}

body {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Alle tekstelementer */
p, li, .text-muted, small, .form-text, .help-text,
.card-text, .project-description, .breadcrumb,
.alert, .badge, .nav-link, .dropdown-item,
.footer-text, .lead, blockquote, figcaption,
label, .form-label, .input-group-text {
    font-size: inherit;
}

/* Overskrifter - proportionelt større */
h1 { font-size: 3rem; }      /* 54px */
h2 { font-size: 2.5rem; }    /* 45px */
h3 { font-size: 2rem; }      /* 36px */
h4 { font-size: 1.5rem; }    /* 27px */
h5 { font-size: 1.25rem; }   /* 22.5px */
h6 { font-size: 1.1rem; }    /* 19.8px */

/* Specielle elementer der skal være lidt større */
.lead {
    font-size: 1.25rem;       /* 22.5px */
}

/* Muted tekst - stadig læsbar */
.text-muted, small, .form-text {
    font-size: 0.95rem;       /* 17px - IKKE for lille! */
    color: #555 !important;   /* Bedre kontrast */
}

/* Knapper */
.btn {
    font-size: 1rem;          /* 18px */
    padding: 0.75rem 1.5rem;
}

/* Badges og mærkater */
.badge {
    font-size: 0.9rem;        /* 16.2px */
    padding: 0.5rem 1rem;
}

/* Formularer */
.form-control, .form-select, .input-group-text {
    font-size: 1rem;          /* 18px */
    padding: 0.75rem 1rem;
}

/* Footer */
footer, footer p, footer small {
    font-size: 0.95rem;       /* 17px */
}

/* Navigation */
.nav-link {
    font-size: 1.3rem;        /* 19.8px */
}

/* ========== RESPONSIV JUSTERING ========== */
@media (max-width: 1200px) {
    :root {
        --font-size-base: 17px;
    }
    
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.3rem; }
    h3 { font-size: 1.9rem; }
}

@media (max-width: 992px) {
    :root {
        --font-size-base: 17px;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 16px;  /* Minimum 16px på mobil */
    }
    
    body {
        -webkit-font-smoothing: antialiased;
    }
    
    h1 { font-size: 2.5rem; }    /* 40px */
    h2 { font-size: 2rem; }      /* 32px */
    h3 { font-size: 1.75rem; }   /* 28px */
    h4 { font-size: 1.5rem; }    /* 24px */
    
    /* Sørg for at muted tekst stadig er læsbar */
    .text-muted, small, .form-text {
        font-size: 0.95rem;      /* 15.2px - stadig OK */
    }
    
    /* Bedre touch targets på mobil */
    .btn, .nav-link, .badge {
        padding: 0.8rem 1.2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 16px;  /* Fasthold 16px på meget små skærme */
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ========== KONKRETE FORBEDRINGER AF EKSISTERENDE ELEMENTER ========== */

/* Dine cards */
.card-title, .project-card h3 {
    font-size: 1.3rem;
}

.card-text {
    font-size: 1rem;
    line-height: 1.6;
}

/* Hero sektioner */
.hero-section .lead {
    font-size: 1.4rem;
}

/* Meta information */
.post-meta, .project-meta, .entry-meta {
    font-size: 0.95rem;
}

/* Breadcrumbs */
.breadcrumb-item {
    font-size: 1rem;
}

/* Ikoner og tekst sammen */
.d-flex.align-items-center small,
.d-flex.align-items-center .text-muted {
    font-size: 1rem;
}

/* Testimonials */
.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.7;
}

.testimonial-author {
    font-size: 1rem;
}

/* Accordion */
.accordion-button {
    font-size: 1.1rem;
}

.accordion-body {
    font-size: 1rem;
}

/* Tabel */
table {
    font-size: 1rem;
}

th, td {
    padding: 1rem;
}

/* Liste items */
li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
    font-size: 1.2rem;
    font-style: italic;
}

/* ========== SÆRLIGT FOR MOOD.PHP OG FORMULARER ========== */
.modal-body,
.modal-body p,
.modal-body label,
.modal-body .form-text {
    font-size: 1rem;
}

.modal-body h2 {
    font-size: 2rem;
}

.modal-body h3 {
    font-size: 1.5rem;
}

.modal-body .badge {
    font-size: 0.95rem;
}

/* Valgmuligheder i formular */
.btn-check + label {
    font-size: 0.95rem;
}

.btn-check + label i {
    font-size: 1.5rem;
}

/* Responsivt for modal */
@media (max-width: 768px) {
    .modal-body h2 {
        font-size: 1.8rem;
    }
    
    .modal-body h3 {
        font-size: 1.4rem;
    }
    
    .btn-check + label {
        font-size: 0.9rem;
    }
    
    .btn-check + label i {
        font-size: 1.3rem;
    }
}