/* =============================================================
   VARIABLER – farger, skrift og form for hele siden
   ============================================================= */
:root {
    /* Hovedfarger (bakgrunn, ikoner, knapper) */
    --hovedfarge: #667eea;
    --hovedfarge-2: #764ba2;

    /* Tekst */
    --tekst: #2c3e50;
    --tekst-dempet: #555;
    --tekst-svak: #666;

    /* Bokser og kort */
    --panel: rgba(255, 255, 255, 0.95);
    --kant: 1px solid rgba(255, 255, 255, 0.2);
    --skygge: 0 8px 32px rgba(0, 0, 0, 0.1);
    --skygge-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --hjorne: 20px;
    --hjorne-lite: 15px;

    /* «Vi ønsker å utvikle nettsidene»-banneret */
    --banner-1: #ff6b6b;
    --banner-2: #feca57;

    /* Historie-boksene */
    --historie-1: #f8f9fa;
    --historie-2: #e9ecef;

    /* Bunntekst */
    --bunn-bakgrunn: rgba(44, 62, 80, 0.95);
    --bunn-tekst: #bdc3c7;
    --bunn-uthevet: #3498db;
    --bunn-strek: #555;

    /* Skrift og bredde */
    --skrift: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --maks-bredde: 1200px;
}

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

body {
    font-family: var(--skrift);
    line-height: 1.6;
    color: var(--tekst);
    background: linear-gradient(135deg, var(--hovedfarge) 0%, var(--hovedfarge-2) 100%);
    min-height: 100vh;
}

.container {
    max-width: var(--maks-bredde);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================================
   TOPP
   ============================================================= */
.header {
    background: var(--panel);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--hovedfarge);
    animation: pulse 2s infinite;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
}

.contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tekst-dempet);
    font-size: 0.9rem;
    text-decoration: none;
}

.contact-item:hover {
    color: var(--hovedfarge);
}

/* =============================================================
   VELKOMST (hero)
   ============================================================= */
.hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: var(--hjorne);
    margin: 2rem auto;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    box-shadow: var(--skygge);
    border: var(--kant);
    animation: fadeInUp 0.8s ease;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 1s ease 0.3s both;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: slideInRight 1s ease 0.5s both;
}

.coming-soon {
    background: linear-gradient(45deg, var(--banner-1), var(--banner-2));
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.7s both;
}

/* =============================================================
   KORT
   ============================================================= */
.card,
.history-section {
    background: var(--panel);
    backdrop-filter: blur(10px);
    border-radius: var(--hjorne);
    box-shadow: var(--skygge);
    border: var(--kant);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s ease both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

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

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 i {
    color: var(--hovedfarge);
    font-size: 1.3rem;
}

.card p {
    color: var(--tekst-dempet);
    margin-bottom: 1rem;
}

.kontaktlinjer > span {
    display: block;
}

.knapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.btn {
    background: linear-gradient(45deg, var(--hovedfarge), var(--hovedfarge-2));
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, var(--hovedfarge-2), var(--hovedfarge));
}

/* =============================================================
   HISTORIE
   ============================================================= */
.history-section {
    padding: 3rem;
    margin: 3rem 0;
}

.history-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.history-section h2 i {
    color: var(--hovedfarge);
}

.history-intro {
    text-align: center;
    color: var(--tekst-svak);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.history-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--historie-1), var(--historie-2));
    border-radius: var(--hjorne-lite);
    border-left: 4px solid var(--hovedfarge);
}

.history-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* =============================================================
   BUNNTEKST
   ============================================================= */
.footer {
    background: var(--bunn-bakgrunn);
    backdrop-filter: blur(10px);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--bunn-uthevet);
}

.footer-section p,
.footer-section a {
    color: var(--bunn-tekst);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--bunn-uthevet);
}

.footer-bottom {
    border-top: 1px solid var(--bunn-strek);
    padding-top: 1rem;
    color: var(--bunn-tekst);
}

/* =============================================================
   PYNT OG FEILMELDING
   ============================================================= */
.floating {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.floating.f1 { top: 20%;    left: 10%;  font-size: 3rem;   animation-delay: 0s; }
.floating.f2 { top: 60%;    right: 10%; font-size: 2.5rem; animation-delay: 2s; }
.floating.f3 { bottom: 20%; left: 20%;  font-size: 3.5rem; animation-delay: 4s; }

/* Vises bare hvis kontakt.js mangler eller har en skrivefeil */
.kontakt-feil {
    background: #c0392b;
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
}

/* =============================================================
   MOBIL
   ============================================================= */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .history-section {
        padding: 2rem 1.25rem;
    }

    .history-section h2 {
        font-size: 2rem;
    }
}

/* Mindre bevegelse for dem som har slått det av i systemet */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* =============================================================
   ANIMASJONER
   ============================================================= */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-20px); }
}
