/* Miniräknare Pages CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700&display=swap');

:root {
    --primary: #b02f00;
    --on-primary: #ffffff;
    --surface: #ffffff;
    --on-surface: #1a1c1e;
    --on-surface-variant: #44474e;
    --surface-container-low: #f7f9f9;
    --outline-variant: #c4c6cf;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--surface);
    color: var(--on-surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background-color: #f9f9f9;
    border-bottom: 1px solid #f2f4f4;
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .logo svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex-shrink: 0;
}

.site-header .nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    align-items: center;
}

.site-header .nav-links a {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}

.site-header .nav-links a:hover {
    color: #0f172a;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #0f172a;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f9f9f9;
    border-bottom: 1px solid #f2f4f4;
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 0;
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: #475569;
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    display: block;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: #0f172a;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .site-header .nav-links {
        display: none !important;
    }

    .site-header nav {
        padding: 1rem;
    }
}

/* Main Content */
.site-main {
    flex-grow: 1;
    padding: 3rem 1rem;
    max-width: 48rem;
    margin: 0 auto;
    width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}

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

.breadcrumbs span {
    color: #94a3b8;
}

/* Related Articles Box */
.related-articles {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.related-articles h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--on-surface);
}

.related-articles ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-articles li a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s;
}

.related-articles li a:hover {
    text-decoration: underline;
}

.related-articles li a::before {
    content: "→";
    color: #94a3b8;
}

/* CTA Box */
.cta-box {
    background: var(--primary);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.cta-box h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-box p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.cta-box a {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.cta-box a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Article */
.article-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.article-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(68, 71, 78, 0.7);
}

.article-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.article-intro {
    font-size: 1.125rem;
    color: var(--on-surface-variant);
}

/* Sections */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.content-section p {
    color: var(--on-surface-variant);
    line-height: 1.625;
}

.content-section ul,
.content-section ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    color: var(--on-surface-variant);
    line-height: 1.625;
}

.content-section ul li,
.content-section ol li {
    margin-bottom: 0.25rem;
}

.content-section h3 {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.content-section a {
    color: var(--primary);
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

.content-section .result {
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Contact Form */
.contact-form-container {
    background-color: var(--surface-container-low);
    border: 1px solid rgba(196, 198, 207, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(196, 198, 207, 0.4);
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(176, 47, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: var(--primary);
    padding: 0.75rem 1.25rem;
    color: white;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: opacity 0.15s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background-color: #f9f9f9;
    width: 100%;
    padding: 2rem 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(173, 179, 180, 0.15);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    text-decoration: none;
    transition: color 0.1s;
}

.footer-links a:hover {
    color: #0f172a;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .site-main {
        padding: 2rem 1rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-intro {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.25rem;
    }

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

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }

    .contact-form-container {
        padding: 1rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1c1e;
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #f0a090;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #ffffff;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
}

.cookie-btn-accept {
    background: var(--primary);
    color: white;
}

.cookie-btn-accept:hover {
    opacity: 0.9;
}

.cookie-btn-decline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
}
