﻿/* ========================================
   Vestbjerg Byg - Custom Styles
   Color Scheme: Black (#000000) & Orange (#fe8618)
   ======================================== */

:root {
    --primary-color: #fe8618;
    --secondary-color: #000000;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --text-dark: #000000;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

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

/* Turns off Bootstrap's :root { scroll-behavior: smooth }. Blazor scrolls to the top as soon as a
   link to another page is clicked, before that page arrives, and a smooth scroll would still be
   running when it appears: the new page would start mid-page and slide up. site.js scrolls smoothly
   within a page instead. */
:root {
    scroll-behavior: auto;
}

html {
    /* Anchor links (/#kontakt) land below the fixed header */
    scroll-padding-top: var(--header-height);
}

.nowrap {
    white-space: nowrap;
}

body {
    /* Bootstrap's system stack: system-ui, -apple-system, Segoe UI, Roboto, … */
    font-family: var(--bs-font-sans-serif);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

/* Remove focus outlines from non-interactive elements */
h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus,
p:focus, div:focus, section:focus {
    outline: none;
}

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

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    z-index: 1000;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .site-header.scrolled {
        box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    }

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity var(--transition-speed);
}

    .logo a:hover {
        opacity: 0.8;
    }

.logo-image {
    display: block;
    width: 218px; /* 50px tall at the logo's 720x165 aspect ratio */
    max-width: 60vw;
    height: auto;
}

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

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all var(--transition-speed);
    position: relative;
}

    .main-nav a:hover {
        color: var(--primary-color);
    }

    .main-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: all var(--transition-speed);
        transform: translateX(-50%);
    }

    .main-nav a:hover::after {
        width: 80%;
    }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-light);
        transition: all var(--transition-speed);
    }

/* ========== Hero Section ========== */
.hero-section {
    min-height: 100vh;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
    margin-top: var(--header-height);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(1.6rem, 7vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    outline: none;
}

    .hero-title:focus {
        outline: none;
    }

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    color: var(--text-light);
    z-index: 2;
}

.scroll-arrow {
    font-size: 2rem;
    color: var(--primary-color);
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

    .btn-primary:hover {
        background: #e67610;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(254, 134, 24, 0.3);
    }

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-light);
}

    .btn-secondary:hover {
        background: #333;
        transform: translateY(-2px);
    }

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* ========== Section Heading ========== */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-heading h1,
    .section-heading h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: var(--text-dark);
    }

    .section-heading .subtitle {
        font-size: 1.2rem;
        color: #666;
    }

.heading-divider {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
}

/* ========== About Section ========== */
.about-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 3rem;
    align-items: start;
}

.about-history {
    grid-column: 1;
    grid-row: 1;
}

.about-image {
    grid-column: 2;
    grid-row: 1 / 3;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

    .about-image img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

.about-specialer {
    grid-column: 1;
    grid-row: 2;
}

    .about-specialer h3 {
        font-size: 1.8rem;
        margin: 0 0 1rem;
        color: var(--text-dark);
    }

.about-history h3 {
    font-size: 1.8rem;
    margin: 0 0 1rem;
    color: var(--text-dark);
}

.about-history p {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.8;
}

.about-features-heading {
    font-size: 1.8rem;
    margin: 3rem 0 1rem;
    color: var(--text-dark);
}

.services-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

    .services-list li {
        padding: 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.service-icon {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all var(--transition-speed);
}

    .feature:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* ========== Portfolio Section ========== */
.portfolio-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-grid--home {
    grid-template-columns: repeat(2, 1fr);
}

.portfolio-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all var(--transition-speed);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

    .portfolio-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--transition-speed);
        position: relative;
        z-index: 1;
    }

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(254, 134, 24, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.view-project {
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.2rem;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.card-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.card-title {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.card-description {
    color: #666;
    margin: 0.5rem 0;
}

.card-date {
    color: #999;
    font-size: 0.9rem;
    margin-top: auto;
}

.portfolio-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========== Contact Section ========== */
.contact-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper h3,
.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Form Styles */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-form .form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

    .contact-form .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
    }

    /* Server-side validation (ContactForm.razor); site.js clears it as the visitor edits */
    .contact-form .form-control[aria-invalid="true"] {
        border-color: #d32f2f;
    }

/* "Email or phone": the pair's one error sits right under the phone field */
.contact-form .contact-fields div.form-group:last-of-type {
    margin-bottom: 0;
}

.contact-form .field-error {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    color: #d32f2f;
    font-size: 0.9rem;
    margin: 0.4rem 0 0;
}

.contact-form .form-privacy {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

    .contact-form .form-privacy a {
        color: inherit;
    }

        .contact-form .form-privacy a:hover {
            color: var(--primary-color);
        }

.success-message {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
}

    .success-message h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

/* Contact Info */
.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.info-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-text h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-text p {
    color: #666;
    line-height: 1.6;
}

.info-text a {
    color: inherit;
    text-decoration: none;
}

    .info-text a:hover {
        color: var(--primary-color);
    }

/* ========== Footer ========== */
.site-footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-contact,
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-contact li,
    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: var(--text-light);
        text-decoration: none;
        transition: color var(--transition-speed);
    }

        .footer-links a:hover {
            color: var(--primary-color);
        }

    .footer-contact a {
        color: var(--text-light);
        text-decoration: none;
        transition: color var(--transition-speed);
    }

        .footer-contact a:hover {
            color: var(--primary-color);
        }

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

    .footer-bottom a {
        color: inherit;
        transition: color var(--transition-speed);
    }

        .footer-bottom a:hover {
            color: var(--primary-color);
        }

/* ========== Image Gallery ========== */
.image-gallery {
    margin: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--bg-light);
    aspect-ratio: 4 / 3;
    transition: all var(--transition-speed);
}

    .gallery-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

    .gallery-item:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        pointer-events: none;
        user-select: none;
    }

.gallery-empty {
    text-align: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 10px;
    color: #666;
}

/* Lightbox: a Bootstrap modal-fullscreen with a carousel (see ImageGallery.razor) */
.gallery-modal .modal-content {
    background: #000;
    border: 0;
    border-radius: 0;
}

.gallery-carousel,
.gallery-carousel .carousel-inner,
.gallery-carousel .carousel-item {
    height: 100%;
}

    .gallery-carousel:focus {
        outline: none;
    }

.lightbox-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Stack thumbnail (blurred placeholder) and full image in the same grid cell. The frame clips
   the placeholder's blur, and must not shrink, or it would also clip the bottom of the photo. */
.lightbox-img-frame {
    display: grid;
    max-width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 5px;
}

.lightbox-img-placeholder,
.lightbox-img-full {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 5px;
}

/* Blurred thumbnail shows immediately while the full image loads */
.lightbox-img-placeholder {
    filter: blur(14px);
    transform: scale(1.05); /* hide blur edge artifacts */
}

/* The full image paints over the placeholder as it arrives (until then it paints nothing).
   It needs a z-index: the placeholder's transform would otherwise put it on top. */
.lightbox-img-full {
    position: relative;
    z-index: 1;
}

.lightbox-counter {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background var(--transition-speed), transform var(--transition-speed);
}

    .lightbox-close:hover {
        background: var(--primary-color);
        transform: rotate(90deg);
    }

    .lightbox-close:focus {
        outline: 3px solid var(--primary-color);
    }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(254, 134, 24, 0.8);
    color: var(--text-light);
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    border-radius: 5px;
    z-index: 2001;
}

    .lightbox-nav:hover {
        background: var(--primary-color);
        transform: translateY(-50%) scale(1.1);
    }

    .lightbox-nav:focus {
        outline: 3px solid var(--text-light);
    }

    .lightbox-nav:active {
        transform: translateY(-50%) scale(0.95);
    }

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ========== Project Detail ========== */
.project-detail {
    margin-top: var(--header-height);
}

.project-hero {
    background: var(--bg-light);
    padding: 2rem 0;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: #666;
}

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

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

.project-content {
    padding: 3rem 0;
}

.project-header {
    margin-bottom: 2rem;
}

    .project-header h1 {
        font-size: 3rem;
        margin-bottom: 0.25rem;
        scroll-margin-top: 2rem; /* on top of html's scroll-padding-top for the header */
    }

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-category {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background var(--transition-speed);
    white-space: nowrap;
}

    .project-category:hover {
        background: #e5770f;
        color: var(--text-light);
    }

.project-date {
    color: #666;
    margin-bottom: 0.75rem;
    display: block;
}

.project-description {
    margin: 3rem 0;
}

    .project-description p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #333;
    }

.project-gallery {
    margin: 3rem 0;
}

    .project-gallery h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Scroll-triggered reveal animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .animate-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* No entrance or bouncing animations for visitors who ask for less motion. The loading spinner
   stays, because it shows that something is happening. */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-subtitle,
    .scroll-indicator {
        animation: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 968px) {
    .header-container {
        padding: 0 15px;
    }

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

    .main-nav ul {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 70%;
        height: calc(100vh - var(--header-height));
        background: var(--secondary-color);
        flex-direction: column;
        padding: 2rem;
        transition: right var(--transition-speed);
    }

        .main-nav ul.active {
            right: 0;
        }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-history,
    .about-image,
    .about-specialer {
        grid-column: 1;
        grid-row: auto;
    }

    .about-image {
        position: static;
    }

    .services-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 1rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid--home {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

        .footer-container .footer-section:first-child {
            grid-column: 1 / -1;
        }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .section-heading h1,
    .section-heading h2 {
        font-size: 2rem;
    }

    .project-header h1 {
        font-size: 2rem;
    }

    .project-actions {
        flex-direction: column;
    }

        .project-actions .btn {
            width: 100%;
            text-align: center;
        }
}

/* ========== Loading State ========== */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

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

/* ========== Privatlivspolitik Page ========== */
.privacy-page {
    margin-top: var(--header-height);
    padding: 4rem 0 6rem;
}

.privacy-content {
    max-width: 760px;
    margin: 0 auto;
}

    .privacy-content h2 {
        font-size: 1.4rem;
        margin: 2.5rem 0 0.75rem;
    }

    .privacy-content p,
    .privacy-content ul {
        margin-bottom: 1rem;
    }

    .privacy-content ul {
        padding-left: 1.5rem;
    }

    .privacy-content li {
        margin-bottom: 0.5rem;
    }

    .privacy-content a {
        color: inherit;
    }

        .privacy-content a:hover {
            color: var(--primary-color);
        }

.privacy-updated {
    color: #666;
    font-size: 0.9rem;
}

/* ========== Projekter Page ========== */
.projekter-page {
    margin-top: var(--header-height);
    padding: 4rem 0 6rem;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.tag-btn {
    display: inline-block;
    text-decoration: none;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

    .tag-btn:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .tag-btn.active {
        background: var(--primary-color);
        color: var(--text-light);
        border-color: var(--primary-color);
    }

.load-more {
    text-align: center;
    margin-top: 3rem;
}

.no-projects {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 3rem 0;
}

/* ========== Sticky CTA ========== */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.sticky-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-cta:hover {
    background: #e5760f;
    color: var(--text-light);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.sticky-cta i {
    font-size: 1.1rem;
    /* reserve the icon's space: the icon stylesheet loads after first paint */
    width: 1em;
    min-height: 1lh;
}

@media (max-width: 768px) {
    .sticky-cta {
        bottom: 1rem;
        right: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ========== Error Pages ========== */
.error-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    padding-top: calc(var(--header-height) + 4rem);
    text-align: center;
}

.error-page-content {
    max-width: 500px;
}

.error-page-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    min-height: 1lh; /* reserve the icon's line: the icon stylesheet loads after first paint */
}

.error-page-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-page h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-page p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}
