/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 102, 204, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    text-decoration: none;
}

.logo a:hover {
    text-decoration: none;
}

.logo h1 {
    background: linear-gradient(135deg, #0066CC 0%, #4DABF7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-list a:hover {
    color: #0066CC;
    background: rgba(0, 102, 204, 0.05);
    transform: translateY(-1px);
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0066CC;
    background: rgba(0, 102, 204, 0.05);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="300" r="200" fill="url(%23a)"/><circle cx="400" cy="700" r="180" fill="url(%23a)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.cta-button {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.4);
}

.cta-button:hover::before {
    left: 100%;
}



/* Section Styles */
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Calculator Section */
.calculator {
    padding: 4rem 0;
    background: #f8fafc;
    position: relative;
}

.calculator-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: none;
    border: none;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0066CC;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.calculate-button {
    width: 100%;
    background: #0066CC;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 1.5rem;
}

.calculate-button:hover {
    background: #0052a3;
}

.calculate-button:active {
    transform: translateY(1px);
}

.result-box {
    background: #f0f9ff;
    border: 2px solid #0066CC;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
    text-align: center;
}

.result-box h3 {
    color: #374151;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066CC;
}

.price-currency {
    font-size: 1.5rem;
    color: #6b7280;
    font-weight: 600;
}

/* Prices Table Section */
.prices {
    padding: 4rem 0;
    background: white;
}

.prices-section {
    padding: 4rem 0 6rem 0;
    background: white;
}

.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
}

.prices-table th,
.prices-table td {
    padding: 1.5rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.prices-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prices-table tr:hover {
    background: #f9fafb;
}

.prices-table td {
    font-weight: 500;
    color: #4b5563;
}

.detail-link {
    color: #0066CC;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #f0f9ff;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.detail-link:hover {
    background: #e0f2fe;
}

.municipality-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
}

.municipality-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #4c51bf;
    transform: translateY(-1px);
}

/* Municipality Pills Section */
.municipality-pills {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.municipality-pills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="1.5" fill="%23667eea" opacity="0.05"/><circle cx="70" cy="20" r="1" fill="%23764ba2" opacity="0.05"/><circle cx="20" cy="70" r="2" fill="%23667eea" opacity="0.05"/><circle cx="80" cy="80" r="1.5" fill="%23764ba2" opacity="0.05"/></svg>');
    z-index: 0;
}

.municipality-pills .section-title {
    color: #1a202c;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.pills-subtitle {
    text-align: center;
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.pills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.municipality-pill {
    display: block;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.municipality-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.municipality-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.municipality-pill:hover::before {
    transform: scaleX(1);
}

.pill-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.pill-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.pill-price {
    font-size: 0.95rem;
    color: #667eea;
    font-weight: 500;
    margin: 0;
}

.pill-arrow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.municipality-pill:hover .pill-arrow {
    transform: translateY(-50%) translateX(4px);
    color: #4c51bf;
}


.map-placeholder {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 24px;
    padding: 5rem 3rem;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.1);
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    animation: rotate 15s linear infinite;
}

.map-content {
    position: relative;
    z-index: 2;
}

.map-content h3 {
    color: #374151;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.map-content p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.2));
}





/* SEO Content Sections */
.intro-section,
.tilskud-section,
.guide-section {
    padding: 4rem 0;
    background: white;
    position: relative;
}

.intro-section h2,
.tilskud-section h2,
.guide-section h2 {
    color: #1a202c;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.intro-section p,
.tilskud-section p,
.guide-section p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.intro-section p:last-child,
.tilskud-section p:last-child,
.guide-section p:last-child {
    margin-bottom: 0;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Municipality-specific page styles */
.loading-section {
    padding: 4rem 0;
    background: #f8fafc;
    text-align: center;
}

.loading-section .loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-section p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.error-section {
    padding: 4rem 0;
    background: #fef2f2;
    text-align: center;
}

.error-section h2 {
    color: #dc2626;
    margin-bottom: 1rem;
}

.error-section p {
    color: #991b1b;
    margin-bottom: 1.5rem;
}

.error-section a {
    color: #dc2626;
    text-decoration: underline;
}

.source-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
}

.source-info p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
}

.source-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.source-info a:hover {
    text-decoration: underline;
}

.source-link {
    color: #0066CC;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #f0f9ff;
    border: 1px solid #0066CC;
    transition: all 0.2s ease;
    display: inline-block;
    margin-left: 0.5rem;
}

.source-link:hover {
    background: #0066CC;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.cta-button.secondary:hover {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.3);
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.02) 0%, rgba(102, 126, 234, 0.02) 100%);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

.faq-question {
    color: #374151;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #667eea;
}

.faq-answer {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1.05rem;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23667eea" opacity="0.1"/><circle cx="80" cy="30" r="0.5" fill="%23764ba2" opacity="0.1"/><circle cx="40" cy="70" r="1.5" fill="%23667eea" opacity="0.1"/></svg>');
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.disclaimer {
    color: #a0a0a0;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.copyright {
    color: #ccc;
    font-size: 1rem;
}

.copyright a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Legal Pages Styles */
.legal-page {
    padding: 4rem 0;
    background: #f9fafb;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066CC;
    margin-bottom: 1rem;
    text-align: center;
}

.legal-date {
    color: #6b7280;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-text {
    line-height: 1.7;
    color: #374151;
}

.legal-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0066CC;
    margin: 2rem 0 1rem 0;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

.legal-text h2:first-child {
    border-top: none;
    margin-top: 0;
}

.legal-text p {
    margin-bottom: 1rem;
}

.legal-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
}

.legal-text a {
    color: #0066CC;
    text-decoration: none;
    font-weight: 500;
}

.legal-text a:hover {
    text-decoration: underline;
}

.footer .legal-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.footer .legal-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer .legal-links a:hover {
    color: #0066CC;
    background: rgba(0, 102, 204, 0.05);
}

/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .calculator-form {
        max-width: 600px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 4rem 0;
        min-height: 70vh;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-text {
        max-width: 600px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 1.1rem 2.2rem;
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 2.3rem;
        margin-bottom: 2.5rem;
    }
    
    .calculator {
        padding: 3rem 0;
    }
    
    .calculator-form {
        margin: 0 1rem;
        padding: 2rem;
        max-width: 100%;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .calculate-button {
        padding: 1rem;
        font-size: 1rem;
        margin-top: 1.5rem;
    }
    
    .result-box {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .prices {
        padding: 4rem 0;
    }
    
    .prices-table {
        font-size: 0.9rem;
    }
    
    .prices-table th,
    .prices-table td {
        padding: 1rem 0.75rem;
    }
    
    .price-amount {
        font-size: 2.8rem;
    }
    
    
    .map-placeholder {
        padding: 3rem 2rem;
    }
    
    
    .faq {
        padding: 4rem 0;
    }
    
    .faq-item {
        padding: 2rem;
    }
    
    /* SEO sections for tablets */
    .intro-section,
    .tilskud-section,
    .guide-section {
        padding: 3rem 0;
    }
    
    .intro-section h2,
    .tilskud-section h2,
    .guide-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }
    
    .intro-section p,
    .tilskud-section p,
    .guide-section p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .hero {
        padding: 2.5rem 0;
        min-height: 60vh;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 1rem 1.8rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .calculator,
    .prices,
    .faq {
        padding: 2rem 0;
    }
    
    .prices-section {
        padding: 2rem 0 3rem 0;
    }
    
    .calculator-form {
        margin: 0 0.5rem;
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .checkbox-group {
        padding: 0;
        gap: 0.5rem;
        align-items: center;
    }
    
    .checkbox-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        vertical-align: middle;
        flex-shrink: 0;
    }
    
    .checkbox-group label {
        font-size: 0.9rem;
        line-height: 1.2;
        display: flex;
        align-items: center;
    }
    
    .calculate-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .result-box {
        padding: 1.25rem;
    }
    
    .result-box h3 {
        font-size: 1rem;
    }
    
    .price-amount {
        font-size: 1.8rem;
    }
    
    .price-currency {
        font-size: 1.2rem;
    }
    
    .intro-section,
    .tilskud-section,
    .guide-section {
        padding: 2.5rem 0;
    }
    
    .intro-section h2,
    .tilskud-section h2,
    .guide-section h2 {
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        letter-spacing: -0.02em;
        padding: 0 1rem;
    }
    
    .intro-section p,
    .tilskud-section p,
    .guide-section p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.3rem;
        padding: 0 1rem;
    }
    
    .municipality-pills {
        padding: 2.5rem 0;
    }
    
    .pills-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .municipality-pill {
        padding: 1rem;
    }
    
    .pill-name {
        font-size: 1rem;
    }
    
    .pill-price {
        font-size: 0.85rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .intro-section h2,
    .tilskud-section h2,
    .guide-section h2 {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .intro-section p,
    .tilskud-section p,
    .guide-section p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
        margin-bottom: 1.2rem;
    }
    
    
    .calculator-form {
        padding: 1.5rem;
        margin: 0 0.5rem;
        border-radius: 16px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .checkbox-group {
        padding: 0.75rem;
    }
    
    .calculate-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .result-box {
        padding: 2rem 1.5rem;
        margin-top: 1.5rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .price-currency {
        font-size: 1.5rem;
    }
    
    .prices-table {
        font-size: 0.85rem;
    }
    
    .prices-table th,
    .prices-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .detail-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .map-placeholder {
        padding: 2.5rem 1.5rem;
    }
    
    
    .map-content h3 {
        font-size: 1.3rem;
    }
    
    .map-content p {
        font-size: 1rem;
    }
    
    .faq-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .faq-answer {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .disclaimer {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .copyright {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .calculator-form {
        padding: 1.25rem;
        margin: 0 0.25rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .prices-table {
        font-size: 0.8rem;
    }
    
    .prices-table th,
    .prices-table td {
        padding: 0.6rem 0.4rem;
    }
    
    .price-amount {
        font-size: 2.2rem;
    }
    
    .faq-item {
        padding: 1.25rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
}

/* Improve table responsiveness */
@media (max-width: 640px) {
    .table-container {
        overflow-x: auto;
        border-radius: 16px;
        /* Smooth scrolling on mobile */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .prices-table {
        min-width: 500px;
    }
    
    .prices-table th:nth-child(2),
    .prices-table th:nth-child(3),
    .prices-table th:nth-child(4) {
        text-align: center;
    }
    
    .prices-table td:nth-child(2),
    .prices-table td:nth-child(3),
    .prices-table td:nth-child(4) {
        text-align: center;
        font-weight: 600;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .calculator,
    .prices,
    .faq {
        padding: 2rem 0;
    }
    
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid #0066CC;
    outline-offset: 2px;
}

/* Hidden class for result box */
.hidden {
    display: none;
}

/* Loading indicator */
.loading-indicator {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.1);
    margin-bottom: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: white;
    }
    
    .calculator-form {
        background: white;
        border: 2px solid #333;
    }
    
    .map-placeholder {
        background: white;
        border: 2px solid #333;
    }
}

/* Enhanced Mobile Table Responsiveness */
@media (max-width: 768px) {
    .prices-section {
        padding: 3rem 0 4rem 0;
    }
    
    .table-container {
        margin: 0 -1rem;
        border-radius: 8px;
    }
    
    .prices-table {
        min-width: 600px;
        font-size: 0.9rem;
    }
    
    .prices-table th {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .prices-table td {
        padding: 0.875rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .prices-table th:nth-child(2),
    .prices-table th:nth-child(3),
    .prices-table th:nth-child(4),
    .prices-table th:nth-child(5) {
        text-align: center;
    }
    
    .prices-table td:nth-child(2),
    .prices-table td:nth-child(3),
    .prices-table td:nth-child(4) {
        text-align: center;
        font-weight: 600;
        color: #667eea;
    }
    
    .prices-table td:nth-child(5) {
        text-align: center;
    }
    
    .detail-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
}

/* Small Mobile Table Improvements */
@media (max-width: 480px) {
    .table-container {
        margin: 0 -0.5rem;
        border-radius: 6px;
    }
    
    .prices-table {
        min-width: 500px;
        font-size: 0.8rem;
    }
    
    .prices-table th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .prices-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .detail-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    /* Make municipality names more prominent */
    .prices-table td:first-child {
        font-weight: 600;
        color: #1a202c;
    }
    
    /* Compact price display */
    .prices-table td:nth-child(2),
    .prices-table td:nth-child(3),
    .prices-table td:nth-child(4) {
        font-size: 0.7rem;
        padding: 0.5rem 0.3rem;
    }
}

/* Extra Small Mobile Table */
@media (max-width: 360px) {
    .prices-table {
        min-width: 450px;
        font-size: 0.75rem;
    }
    
    .prices-table th {
        padding: 0.6rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .prices-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .detail-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .prices-table td:nth-child(2),
    .prices-table td:nth-child(3),
    .prices-table td:nth-child(4) {
        font-size: 0.65rem;
        padding: 0.4rem 0.25rem;
    }
}


