/* ============================================================
   WOLFNOVA THEME (Ren, moderniserad & optimerad)
   Basstruktur + färgvariabler
   Element	            Z-index	Beskrivning
   body	-               2	    Fallback bakgrund
   .bg-layer.bg-top	    0	    Nuvarande bakgrundsbild
   .bg-layer.bg-bottom	1	    Nästa bakgrundsbild (vid fade)
   .panel	            10	I   nnehållssektioner
   .panel::before	    1	    Mörkningslager (relativ till panel)
   .content-box	        2	    Text och knappar (relativ till panel)
   .navbar, footer	    1000	Alltid överst  
   ============================================================ */
/* -------- BAS: gemensamma variabler (ingen färgsättning) -------- */
:root {
    /* Responsiva font-storlekar */
    --font-base: clamp(0.875rem, 1vw + 0.5rem, 1rem);
    --font-small: clamp(0.75rem, 0.9vw + 0.4rem, 0.875rem);
    --font-large: clamp(1rem, 1.2vw + 0.6rem, 1.25rem);
    --h1-size: clamp(2rem, 5vw, 3.5rem);
    --h2-size: clamp(1.5rem, 4vw, 2.5rem);
    --h3-size: clamp(1.2rem, 3vw, 1.8rem);

    --nav-height: 70px;
    --footer-height: 50px;
    --transition-fast: 0.18s ease;
    --transition-med: 0.25s ease;
}

/* -------- DARK MODE -------- */
html.theme-dark {
    --bg-nav: rgba(19, 32, 47, 1);
    --bg-main: rgba(109, 129, 150, 0.55);
    --bg-darker-main: #050a13;
    --bg-panel: rgba(14, 22, 38, 0.7);
    --bg-panel-inline: rgba(19, 32, 47, 0.1);
    --bg-panel-inline-modal: rgba(19, 32, 47, 1);
    /* rgba(19, 32, 47, 0.1); */

    /*--bg-panel-inline-flip: linear-gradient(145deg, #5b6a8b 0%, #2b3f69 40%, #6b7ea5 100%);*/
    --bg-panel-inline-flip: linear-gradient(145deg, #1c2b44 0%, #142036 45%, #22385c 100%);
    --bg-panel-inline-border: rgba(63, 194, 255, 0.4);
    --bg-panel-inline-border-modal: rgba(63, 194, 255, 1);
    --bg-input: rgba(249, 249, 249, 1);
    --bg-opacity-layer: rgba(13, 27, 42, 0.7);
    --bg-service: rgba(13, 27, 42, 0.95);
    --bg-service-table: rgba(63, 193, 255, 0.08);
    --bg-th-service: rgba(63, 193, 255, 0.2);
    --td_lines-service: rgba(63, 193, 255, 0.12);
    --panel-shadow: rgba(63, 193, 255, 1);
    --panel-overlay: rgba(13, 27, 42, 0.55);
    --bg-toggle: rgb(95, 95, 95);

    --navbar-shadow: rgba(0, 0, 0, 1);
    --accent: rgba(63, 193, 255, 1);
    --accent50: #66d1ff;
    --accent-darker: rgba(63, 193, 255, 0.35);
    --input-txt: rgba(13, 27, 42, 0.55);
    --text-soft: #bfcbe0;
    --text-light: rgb(164, 223, 250);
    --text-base: 19px;
    --divider: rgba(255, 255, 255, 1);

    --mnu-text: var(--accent);
    --mnu-hover: rgba(63, 193, 255, 0.25);
    --mnu-sub-bg: var(--bg-nav);
    --mnu-sub-text: var(--accent);
    --mnu-sub-hover-bg: rgba(63, 193, 255, 0.25);
    --mnu-sub-hover-text: rgba(63, 193, 255, 1);
    --mnu-active-bg: rgba(205, 216, 242, 0.40);
    --mnu-active-text: #ffffff;
    --mnu-border: var(--accent);

    --drop-bg: rgba(19, 32, 47, 0.95);
    --drop-hover-bg: rgba(255, 255, 255, 0.06);
    --drop-border: rgba(63, 193, 255, 0.30);
    --drop-icon: var(--accent50);

    --btn-primary-text: #0d1b2a;
    --btn-primary-bg: var(--accent);
    --border-light: rgba(255, 255, 255, 0.08);

    --footer-bg: var(--bg-nav);
    --footer-text: #bfcbe0;
}

/* -------- LIGHT MODE -------- */
html.theme-light {
    --bg-nav: rgba(245, 248, 255, 1);
    --bg-main: rgba(255, 255, 255, 0.95);
    --bg-darker-main: #e5ecf5;
    --bg-panel: rgba(245, 248, 255, 0.7);
    --bg-panel-inline: rgba(245, 248, 255, 0.7);
    --bg-panel-inline-modal: rgba(245, 248, 255, 1);
    --bg-panel-inline-border: rgba(63, 193, 255, 0);
    --bg-panel-inline-border-modal: rgba(15, 23, 42, 0.75);
    /* --bg-panel-inline-flip: linear-gradient(145deg, #f6f7f9 0%, #eceef4 60%, #e2e4ec 100%); */
    --bg-panel-inline-flip: linear-gradient(145deg, #f8f9fb 0%, #eef1f7 55%, #e6ebf5 100%);
    --bg-input: rgba(249, 249, 249, 1);
    --bg-service: rgba(245, 248, 255, 0.95);
    --bg-service-table: rgba(245, 248, 255, 1);
    --bg-th-service: rgba(4, 71, 118, 0.3);
    --td_lines-service: rgba(63, 193, 255, 0.25);
    --panel-shadow: rgba(2, 2, 2, 0.5);
    --panel-overlay: rgba(13, 27, 42, 0.55);
    --bg-opacity-layer: rgba(13, 27, 42, 0.7);
    --bg-toggle: #424141;

    --accent: #1d2a35;
    --accent50: rgba(51, 57, 59, 0.5);
    --accent-darker: rgba(63, 193, 255, 0.25);

    --navbar-shadow: rgba(175, 172, 172, 1);
    --text-light: #1d2a35;
    --text-soft: #4f637a;
    --input-txt: var(--accent);
    --text-base: 19px;
    --divider: rgba(29, 42, 53, 1);

    --mnu-hover: rgba(193, 207, 242, 1);
    --mnu-active-bg: rgba(218, 224, 242, 0.9);
    --mnu-active-text: #0c1a25;
    --mnu-border: var(--accent);
    --mnu-text: #1d2a35;
    --mnu-sub-bg: var(--bg-nav);
    --mnu-sub-text: #1d2a35;
    --mnu-sub-hover-bg: rgba(216, 216, 216, 1);
    --mnu-sub-hover-text: rgba(4, 71, 118, 1);

    --btn-primary-text: rgba(245, 248, 255, 1);
    --btn-primary-bg: var(--accent);

    --drop-bg: rgba(255, 255, 255, 0.95);
    --drop-hover-bg: rgba(63, 193, 255, 0.12);
    --drop-border: rgba(255, 255, 255, 0.5);
    --drop-icon: var(--accent);

    --border-light: rgba(0, 0, 0, 0.08);

    --footer-bg: rgba(245, 248, 255, 1);
    --footer-text: #1d2a35;
}


/* ------------------------------------------------------------
   1. GLOBAL RESET + FONTER
   ------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: var(--bg-main);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: var(--text-base);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 0.6s ease-in-out;
    min-height: 100vh;
    height: auto;
    position: relative;
    z-index: auto;
    opacity: 1 !important;

}

/* ------------------------------------------------------------
   2. BAKGRUNDSLAGER 
   ------------------------------------------------------------ */
.bg-layer {
    position: fixed;
    top: var(--nav-height);
    bottom: var(--footer-height);
    bottom: 0px;
    left: 0;
    right: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0;
    z-index: 1;
}



/* GLOBALT mörkningslager Basläge – overlay finns men är osynlig */
.bg-dark-overlay {
    position: fixed;
    top: var(--nav-height);
    bottom: var(--footer-height);
    left: 0;
    right: 0;
    background: var(--bg-opacity-layer);
    z-index: 20;
    /* ← Över bg-top (0) och bg-bottom (1) */
    pointer-events: none;

    animation: overlayBreath 8s ease-in-out infinite;
}

/* När 2FA är aktiv */
body.twofa-active .bg-dark-overlay {
    opacity: 1;
}

@keyframes overlayBreath {

    0%,
    100% {
        backdrop-filter: contrast(1.25) saturate(1.8) brightness(0.8) hue-rotate(10deg) blur(2px);
    }

    50% {
        backdrop-filter: contrast(1.25) saturate(1.8) brightness(0.8) hue-rotate(10deg) blur(2px);
    }
}

/* OLF
.bg-top {
    z-index: 0;
    opacity: 1;
}

.bg-bottom {
    z-index: 1;
    opacity: 0;
}
    */

.bg-top,
.bg-bottom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
    z-index: 0;

}

.bg-top {
    opacity: 1;
    z-index: 1;
}

.bg-bottom {
    opacity: 0;
    z-index: 2;
}



/* ------------------------------------------------------------
   3. HEADER / NAVBAR (style2.css REPLIKERAD)
   ------------------------------------------------------------ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-nav);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px var(--navbar-shadow);


    /* Smooth transition om du vill animera */
    transition: box-shadow 0.3s ease;
}

/* Flytta menyn åt höger */
.navbar nav {
    margin-left: 0px !important;
}

/* Logo text */
.logo-container {
    font-size: clamp(0.5rem, 3vw, 2rem);
    /* Skalas från 16px till 40px */
    font-weight: 600;
    color: var(--accent);
    padding-left: clamp(0.5rem, 2vw, 10px);
    white-space: nowrap;
    padding-left: 15px;
    /* Förhindra radbrytning */
}

/* Logga i bakgrunden (shield) */
.logo-bg {
    height: 55px;
    width: auto;
    margin: 0;
    padding-left: 20px;
}

/* ------------------------------------------------------------
   4. NAVIGATION – BASSTIL (style2.css)
   ------------------------------------------------------------ */
nav {
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px !important;
}

/* Basstil – samma padding i ALLA states */
.nav-links>li>a {
    color: var(--mnu-text);
    text-decoration: none;
    font-size: 1.05rem;
    min-width: 130px;
    text-align: center;
    display: inline-block;
    Padding: 15px 18px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
    margin: 0 !important;

}

/* Hover – ändrar endast bakgrund, inte padding */
.nav-links>li>a:hover {
    background: var(--mnu-hover);
    border-radius: 6px;
    /* Inset-bevel gör rutan nedsjunken */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35),
        inset 0 -2px 4px rgba(255, 255, 255, 0.08);
}

/* Active – samma storlek som basen → ingen ryckning */
.nav-links a.active {
    background: var(--mnu-active-bg);

    /* starkare bevel-effekt */
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.45),
        inset 0 -2px 4px rgba(255, 255, 255, 0.12);

}

/* MENUCONTAINER → rätt position i header */
#menuContainer {
    margin-left: auto;
    margin-right: 20px;
    /* ← SKICKAR MENYN TILL HÖGER */
    display: flex;
    align-items: center;
}

/* Se till att <nav> inuti kan visas i rad */
#menuContainer nav {
    display: flex;
    align-items: center;
}

/* Se till att ul:en inte bryts rad */
#menuContainer .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* ------------------------------------------------------------
   5. DROPDOWN MENY (NY – integrerat i style2.css stil)
   ------------------------------------------------------------ */
.dropdown {
    position: relative;
}

/* Bas: Undermeny dold */
.dropdown-menu {
    position: absolute;
    top: 90%;
    /* ligger direkt under huvudlänken */
    margin-top: -0.5px;
    /* ← justerar upp 4px (perfekt för att hinna föra musen) */
    left: 0;
    color: var(--mnu-sub-text);
    background: var(--mnu-sub-bg);
    border: 2px solid var(--mnu-border);
    min-width: 230px;
    padding: 10px 0;
    border-radius: 10px;
    filter: drop-shadow(5px 5px 10px var(--panel-shadow));
    transition: opacity var(--transition-med), transform var(--transition-med);
    transform: translateY(20px);
    visibility: hidden;
    opacity: 0;
    z-index: 999;

}

.dropdown-menu li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Hover: visa undermeny */
.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    color: var(--mnu-sub-hover-text)
}

/* Undermeny-länkar */
.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 20px;
    text-decoration: none;

    color: var(--text-light);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu li a:hover {
    background: var(--mnu-sub-hover-bg);
    color: var(--mnu-sub-hover-text);
}

/* Ikoner */
.dropdown-menu i[data-lucide] {
    width: 17px;
    height: 17px;
    color: var(--accent);
    opacity: 0.8;
}

/* Gör dropdown-länkarna flex så pilen hamnar korrekt */
.dropdown>a {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Lucide-pil */
.dropdown-arrow {
    width: 16px;
    height: 16px;
    stroke: var(--mnu-text);
    /* ← synlig färg */
    opacity: 1;
    flex-shrink: 0;
    pointer-events: none;
    /* ← så hover inte glappar */
}

/* Roterande pil i mobil vid öppnad dropdown */
.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}


/* ------------------------------------------------------------
   6. HAMBURGER MENY (från style2.css + förbättrat)
   ------------------------------------------------------------ */
.hamburger {
    display: none;
    position: absolute;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    /* Skjuter hamburgaren hela vägen till höger 
    margin-left: auto;*/
    justify-content: space-between;
    width: 32px;
    height: 24px;
    cursor: pointer;
    z-index: 999;

    right: 15px;
    top: 50%;
    transform: translateY(-50%);

    /* Liten skugga för kontrast (valfritt) */
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.35));
    /* Undvik subpixel-sudd: */
    box-sizing: border-box;


}

.hamburger span {
    width: 34px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: 0.3s ease;
}

.hamburger:hover span {
    transform: scaleY(1.05);
}


/* ------------------------------------------------------------
   7. MOBIL DROPDOWN (ACCORDION)
   ------------------------------------------------------------ */
@media (max-width: 1500px) {
    .hamburger {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        padding: 0 1rem;
        height: var(--nav-height);
    }

    .menu-inner {
        position: fixed;
        right: 10px;
        top: var(--nav-height);
        height: calc(100vh - var(--nav-height));
        background: var(--bg-darker-main);
        width: 200px;
        transform: translateX(calc(100% + 10px));
        transition: var(--transition-med);
        z-index: 999;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .menu-inner.active,
    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 1rem 24px 24px;
        gap: 18px;
        width: 100%;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .dropdown-menu {
        position: static;
        background: none;
        border: none;
        backdrop-filter: none;

        visibility: visible;
        opacity: 1;
        transform: none;

        padding-left: 14px;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .logo-bg {
        height: 55px;
        width: auto;
        margin: 0;
        padding-left: 20px;
    }

}

@media (max-width: 760px) {
    .columns {
        flex-direction: column;
        gap: 2rem;
    }

    .col {
        width: 100%;
        min-height: 340px;
        /* ger varje kort utrymme i höjdled */
    }

    .flip-wrapper {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .flip-front,
    .flip-back {
        flex: 1;
        padding: 1rem;
    }

    .logo-bg {
        height: 40px;
        max-width: 120px;
        padding-left: 10px;
    }

    .flip-front p,
    .flip-back p,
    .flip-front h4,
    .flip-back h5 {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .flip-front,
    .flip-back {
        padding: 0.8rem;
    }

    .btn-primary {
        margin-top: auto;
        align-self: flex-end;
    }
}

/* ------------------------------------------------------------
   8. PANELER / SEKTIONER
   ------------------------------------------------------------ */
/* === PANELS === */
.panel {
    min-height: 100vh;
    bottom: 0px;
    /*top: var(--nav-height);*/
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
    position: relative;
    z-index: 100;
    /* ← LÄGG TILL DENNA */

}

.panel.no-before::before {
    display: none;
}


.panel .content-box {
    position: relative;
    z-index: 2;
    /* ← Ligger över ::before men under header */
    background: var(--bg-panel);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 0 30px var(--panel-shadow);
    z-index: 20;
}

.content-box {
    background: var(--bg-panel-inline);
    z-index: 20;
}

.interaction-shield {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.55);
    backdrop-filter: blur(6px);
    pointer-events: auto;
}


.panel h1,
.panel h2,
.panel h3 .panel h4 {
    font-family: "Montserrat", sans-serif;
    margin-bottom: 1.6rem;

}

.panel h1 {
    color: var(--accent);
    font-size: var(--h1-size);
}

.panel h2 {
    font-size: var(--h2-size);
    color: var(--accent);
}

.panel h3 {
    font-size: var(--h3-size);
    color: var(--accent);
    text-align: center;
    font-style: italic;

}

.panel h4 {
    font-size: var(--h4-size);
    color: var(--accent);
    text-align: center;
    margin-bottom: 10px;
}

.panel p {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-light);
}

.panel .content-box input:focus,
.panel .content-box textarea:focus {
    animation: neonPulse 2s infinite alternate;
}

.cert-row img {
    height: 50px;
    filter: brightness(0.95) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* ------------------------------------------------------------
   8.1 LOGGA ININGSFORMULÄR
   ------------------------------------------------------------ */

body.login-page .panel,
body.login-page section.panel {
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
}

.login-container {
    width: 100%;
    position: relative;
    z-index: 1000;
    max-width: 400px;
    text-align: center;
    background: var(--bg-panel);
    padding: 2.5rem;
    border-radius: 18px;
    box-shadow: 0 0 40px 10px rgba(63, 193, 255, 0.45),
        inset 0 0 25px rgba(63, 193, 255, 0.15);
}

.login-container h1 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-container p {
    color: var(--accent);
    margin-bottom: 30px;
}

/* === INPUT-FÄLT === */
.login-container input {
    width: 100%;
    max-width: 280px;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: var(--bg-input);
    color: var(--input-txt);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px rgba(63, 193, 255, 0.3);
}

.login-container input:focus {
    outline: none;
    box-shadow: 0 0 25px var(--accent);
    border: double 2px var(--accent);
}

/* 2FA MODAL */
.twofa-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: var(--bg-panel-inline-modal);
    border: 12px double var(--bg-panel-inline-border-modal);
    /* över login */
}

/* När 2FA är aktiv → dimma login */
body.twofa-active #login-box {
    filter: blur(3px) brightness(0.7);
    pointer-events: none;
}

/* === TOGGLE INLOGGNINGSKNAPP === */
.password-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
    gap: 8px;
}

.password-row {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Toggle switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    display: none;
}

.slider {
    position: relative;
    width: 42px;
    height: 22px;
    background-color: var(--bg-toggle);
    border-radius: 22px;
    transition: background-color 0.3s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch input:checked+.slider {
    background-color: var(--bg-toggle);
}

.toggle-switch input:checked+.slider::before {
    transform: translateX(20px);
}

.toggle-text {
    font-size: 0.85rem;
    color: var(--accent);
}

/* Caps lock warning */
.caps-warning {
    display: none;
    font-size: 0.8rem;
    color: #ec1f1f;
}












/* ------------------------------------------------------------
      KONTAKTFORMULÄR
   ------------------------------------------------------------ */

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin-bottom: 15px;
}

.note {
    margin-top: 25px;
    margin-bottom: 2px;
    color: #d0d8e0;
}

.contact-title {
    display: flex;
    align-items: center;
    /* vertikal centrering */
    gap: 15px;
    /* avstånd mellan ikon och text */
    justify-content: center;
    /* centrera hela blocket */
}

.icon-mail {
    width: 75px;
    height: 75px;
    position: relative;
    top: -15px;
    color: var(--accent);
    /* <-- magiska offsetten */
}

input,
textarea {
    width: 100%;
    max-width: 600px;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--bg-input);
    color: #0d1b2a;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

textarea {
    height: 120px;
    resize: vertical;
    margin-bottom: 20px;
}


.status-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-nav);
    color: var(--text-base);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    z-index: 9999;
    min-width: 350px;
}

.status-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.hidden {
    display: none;
}

.spinner {
    border: 4px solid #ccc;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
    z-index: 999;
}


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

    100% {
        transform: rotate(360deg);
    }
}

/* === Neon-puls vid fokus (valfritt, ta bort om du vill ha statiskt) === */
@keyframes neonPulse {
    0% {
        box-shadow: 0 0 8px var(--accent),
            0 0 16px var(--accent),
            0 0 24px var(--accent);
    }

    50% {
        box-shadow: 0 0 12px var(--accent50),
            0 0 24px var(--accent50),
            0 0 36px var(--accent50);
    }

    100% {
        box-shadow: 0 0 8px var(--accent),
            0 0 16px var(--accent),
            0 0 24px var(--accent);
    }
}

/* ------------------------------------------------------------
   9. TYPOGRAFI
   ------------------------------------------------------------ */
h2 {
    font-size: var(--h2-size);
    margin-bottom: 16px;
    color: var(--accent);
}

h3 {
    font-size: var(--h3-size);
    color: var(--accent);
}

p,
.service-content p {
    color: var(--text-soft);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: 8px;
}

a {
    font-size: var(--text-base);
    color: var(--text-soft);
    font-style: normal;
    font-weight: 800;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ------------------------------------------------------------
   10. CTA-KNAPPAR
   ------------------------------------------------------------ */
.cta-buttons {
    display: flex;
    gap: 1.25rem;
    /* öka till 1.5rem eller 2rem om du vill ha mer luft */
    justify-content: center;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    transition: all var(--transition-fast);
    border-radius: 20px;
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--accent);
    transform: translateY(-3px);
    color: var(--btn-primary-text);
    text-decoration: none;
}

.btn-primary:focus {
    outline: none;
    box-shadow: none;
}

.btn-secondary {
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 24px;
    border-radius: 20px;
    background: transparent;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--btn-primary-text);
    box-shadow: 0 0 30px var(--accent);
    transform: translateY(-3px);
}

.btn-secondary:focus {
    outline: none;
    box-shadow: none;
}


/* ------------------------------------------------------------
   11. KOLUMN-Grid (AFFÄRSOMRÅDEN)
   ------------------------------------------------------------ */
.columns {
    display: flex;
    gap: 24px;
    margin-top: 26px;
    justify-content: space-between;
    align-items: stretch;
    overflow: visible;
    /* Viktigt! */
}

.col {
    flex: 1;
    background: var(--bg-panel);
    border: 1px solid var(--bg-panel-inline-border);
    border-radius: 12px;
    text-align: center;
    /* border-color: var(--accent); */
}

.columns .col {
    flex: 1;
    min-width: 0;
    /* Viktigt för flexbox */
}

.panelicon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 12px;
}




/* ------------------------------------------------------------
   KORTVÄNDNING FÖRSTA SIDAN
   ------------------------------------------------------------ */
.col.flip-enabled {
    position: relative;
    perspective: 1000px;
    height: 400px;
    overflow: hidden;
}

.flip-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

/* Flip vid hover */
.col.flip-enabled:hover .flip-wrapper {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    backface-visibility: hidden;
}

.flip-front {
    z-index: 2;
    transform: rotateY(0deg);
    padding: 28px;
}

.flip-back {
    background: var(--bg-panel-inline-flip);
    transform: rotateY(180deg);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 12px;
    box-sizing: border-box;
}

.flip-back-content {
    width: 100%;
    height: 100%;
    padding: 1rem;
    margin: 5px 5px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #000;
    border-radius: 12px;
    box-sizing: border-box;
}

/* knappen längst ned, centrerad */
.flip-back-content a {
    margin-top: auto;
    /* tryck ned till botten */
    align-self: center;
    /* centrera horisontellt */
}

.info-block {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px 14px;
    margin-bottom: 16px;
    align-items: start;
    color: var(--text-light);
}

.info-block i {
    width: 22px;
    height: 22px;
}

.info-block h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.info-block p {
    grid-column: 2;
    margin: 0 0 0 0;
    font-size: 0.7rem;
    line-height: 1.3;
}


/* ------------------------------------------------------------
   12. SPRÅKVAL
   ------------------------------------------------------------ */
.language-selector {
    position: fixed;
    bottom: 10px;
    left: 20px;
    z-index: 999;
}

.language-selector select {
    background: var(--bg-panel);
    color: var(--text-light);
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: 6px;
}


/* ------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------ */

footer {
    border-top: 1px solid var(--border-light);
    background: var(--footer-bg);
    color: var(--footer-text);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: block;
    /* räcker bra här */
    z-index: 1000;
    box-sizing: border-box;
    height: 50px;
}

.footer-text {
    flex: 0 1 auto;
    /* låt texten ta sin naturliga bredd */
    text-align: center;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-theme {
    flex-shrink: 0;
    /* behåll full bredd på togglen */
    display: flex;
    align-items: center;
    gap: 0.25rem;
    /* lite luft mellan ☾ / ☀ och slider */
    margin-left: 10px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    /* centrera innehållet som helhet */
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    gap: 0.75rem;
    /* mindre gap så slidern hamnar nära texten */
    box-sizing: border-box;
    flex-wrap: nowrap;
    overflow-x: hidden;
    /* ta bort scroll i x-led */
}

.footer-language {
    display: none;
}

/* Dölj standard-checkbox */
.theme-toggle input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: none;
    /* vi använder label som visuellt element */
}

/* Wrapper för toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    min-width: 70px;
}

/* Själva “slidern” */
.theme-toggle label {
    width: 46px;
    height: 22px;
    background: #555;
    display: inline-block;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    min-width: 46px;
}

.theme-toggle label::after {
    content: "";
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.25s ease;
}

/* När checkboxen är ikryssad */
.theme-toggle input:checked+label {
    background: var(--accent);
}

.theme-toggle input:checked+label::after {
    transform: translateX(24px);
}

/* Grundläge: desktop = lång text */
.text-compact .text-full {
    display: inline;
}

.text-compact .text-short {
    display: none;
}

/* Mobil: byt till kort text */
@media (max-width: 600px) {
    .text-compact .text-full {
        display: none;
    }

    .text-compact .text-short {
        display: inline;
    }
}

/* ------------------------------------------------------------
   14. OVERLAY (bakom hamburgermeny)
   ------------------------------------------------------------ */
.nav-overlay {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));

    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;

    transition: var(--transition-med);
    z-index: 20;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ------------------------------------------------------------
   15. TRANSLATION OVERLAY
   ------------------------------------------------------------ */
#translate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9;
}

#translate-overlay.hidden {
    display: none;
}

.translate-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.courseicon {
    width: 60px;
    height: 60px;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-area {
    background: var(--bg-panel-inline);
    padding: 30px 24px;
    border-radius: 8px;
    border: 1px solid var(--bg-panel-inline-border);
    /*   --bg-panel-inline-border: rgba(63, 193, 255, 0.4);*/
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    min-height: 400px;
    transition: all var(--transition-fast);
}

.service-area:hover {
    transform: translateY(-3px);
    background: var(--bg-panel-inline-flip);
    border: 2px solid var(--accent);
    box-shadow: 0 8px 25px var(--panel-shadow),
        0 0 15px var(--accent-darker);

}

.service-area * {
    pointer-events: none;
}

.service-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}



.service-footer {
    width: 100%;
    margin-top: auto;
}

.service-area h4 {
    font-size: var(--text-base);
    margin-bottom: 12px;
    color: var(--text);
}

.service-area p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

.service-area hr {
    width: 100%;
    border: none;
    border-top: 1px solid var(--divider);
    margin: 0 0 12px 0;
}

.open-hint {
    font-size: var(--text-base);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.open-hint i {
    width: 18px;
    height: 18px;
}

.service-area:hover .open-hint {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

.service-area:hover .courseicon {
    transform: scale(1.3);
    filter: drop-shadow(0 0 20px var(--accent));
}

/* ------------------------------------------------------------
   16. ANIMATIONER
   ------------------------------------------------------------ */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === TABELLER PÅ UTBILDNINGS/KONSULT-SIDAN === */
.course-table,
.service-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-service-table);
    border-radius: 12px;
    overflow: hidden;
}

/* rubrikrad */
.course-table thead th,
.service-table thead th {
    text-align: left;
    padding: 0.9rem 0.8rem;
    background: var(--bg-th-service);
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* celler */
.course-table tbody td,
.service-table tbody td {
    padding: 0.85rem 0.8rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--td_lines-service);
    vertical-align: top;
}

/* === LISTOR === */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    /* Justera efter behov */
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-list li i {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 0.2rem;
}

.feature-list .lstCheck {
    color: var(--accent) !important;
    stroke-width: 2.5;
    width: 30px;
    height: 30px;
    background: var(--accent-darker);
    border-radius: 5%;
    padding: 0.1rem;
    box-shadow: 0 2px 6px var(--accent-darker);
}

/* === SERVICE OVERLAY FIX === */
.service-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 2500;
    /* Över navbar och allt annat */
    padding: 2rem;
}

.service-overlay.active {
    display: flex;
}

.overlay-content {
    width: min(1500px, 95vw);
    max-height: 105vh;
    overflow: auto;
    background: var(--bg-service);
    border: 1px solid var(--drop-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 1);
    padding: 1.5rem;
    animation: fadeInUp 0.35s ease;
}

.overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.overlay-title {
    color: var(--accent);
    margin: 0;
}

.overlay-actions {
    display: flex;
    gap: .6rem;
}

.overlay-actions .btn-primary i,
.overlay-actions .btn-secondary i {
    width: 18px;
    height: 18px;
    margin-right: .4rem;
    vertical-align: 3px;
}

/* === SAMARBETSFORMSKORT === */
.partner-card {
    position: relative;
    background: var(--bg-panel-inline);
    padding: 30px 24px;
    border-radius: 8px;
    border: 1px solid var(--bg-panel-inline-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 420px;
    overflow: visible;
    /* Viktigt för popup */
}

.partner-card .courseicon {
    width: 60px;
    height: 60px;
    color: var(--accent);
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}

.partner-card h4 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.partner-card>p {
    flex-grow: 1;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Details/Popup - dold som standard */
.partner-card .details {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-service);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-med);
    z-index: 999;
    box-shadow: 0 10px 40px var(--panel-shadow),
        0 0 20px var(--accent-darker);
}

.partner-card .details p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
    margin: 0 0 10px 0;
}

/* Visa popup vid hover */
.partner-card:hover .details {
    opacity: 1;
    visibility: visible;
    width: 350px;
    /* eller använd max-width om du vill ha responsivitet */
    max-width: 350px;
    z-index: 999;

}

/* Hover-effekt på kortet */
.partner-card:hover {
    transform: translateY(-5px);
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px var(--accent-darker);

}

.partner-card:hover .courseicon {
    color: var(--accent);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--accent-darker));
}

.partner-card .details ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0 0 0;
    text-align: left;
}

.partner-card .details ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.partner-card .details ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Lås scroll bakom overlay */
body.modal-open {
    overflow: hidden;
}

@page {
    size: A4 landscape;
    margin: 2cm;
}

/* === PRINT CLEANUP === */
@media print {

    /* Dölj element som inte ska skrivas ut */
    .navbar,
    .bg-layer,
    .panel::before,
    button,
    .btn-primary,
    .btn-secondary,
    .print-btn,
    .close-btn,
    .open-hint {
        display: none !important;
    }

    /* Extra justering för mycket små skärmar */
    @media (max-width: 400px) {
        .logo-container {
            font-size: 0.9rem;
            /* Minsta storlek på riktigt små mobiler */
        }
    }
}