* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #ffffff;
    color: #1e2b2d;
    line-height: 1.6;
}

p {
    max-width: 70ch;
}

#top {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: -100;
}

a { color: green !important;
}

#forvaltning, #solution, #structure, #ctrl, #kontakt, #form {
    scroll-margin-top: 80px;
}

@media (width <= 768px){
    .container {
        max-width: unset !important;
        width: 100vw !important;
        overflow: hidden;
    }

}

@media (width <= 460px){
    .container {
        padding-left: 20px !important;
    }

    ul {
        padding-left: 20px !important;
    }

    li {
        padding-left: 10px !important;
    }
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 30px;
}

.container .mtop16 {
    margin-top: 16px;
}

.container h2 {
    font-size: 2rem;
}

/* TOP BAR */

@media (width <= 400px){
    .topbar-inner {
        display: flex;
        flex-direction: column;
        padding: 8px 0px !important;
    }

    .logo {
        font-size: 2rem;
    }

    .logo:before {
        width: 64px !important;
        height: 64px !important;
        background-size: 64px 64px !important;
        margin-top: -4px;
    }
}

.topbar {
    background: #d7eeeb;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.top-cta:hover {
    text-decoration: underline;
}

.logo {
    font-weight: 700;
    letter-spacing: 1px;
}

.logo:before {
        content: ' ';
        background-image: url(icons/filter.svg); 
        display: inline-block;
        width: 42px;
        height: 42px;
        background-size: 42px 42px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;

        margin-bottom: 3px;
        margin-right: 8px;
        vertical-align: middle;
        filter: invert(8%) sepia(5%) saturate(4564%) hue-rotate(140deg) brightness(98%) contrast(80%);
}

.top-cta {
    background: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
}

/* HERO */

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.07);
    }

    70% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.hero {
    background: #d7eeeb;
    margin-top: 80px;
}

@media (width <= 400px){
    .hero {
        margin-top: 105px !important;
    }
}

@media (width <= 460px){
    .hero h1:after {
        content: unset !important;
    }
}

@media (width <= 768px){
    .hero-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 60px;
        align-items: center;
    }   

    .heroicon {
        display: none !important;
    }

    .hero h2 {
        word-break: normal;
        word-wrap: break-word;
    }

    .hero h1:after {
        content: ' ';
        background-image: url(icons/filter.svg); 
        display: inline-block;
        width: 94px;
        height: 94px;
        background-size: 94px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        margin-left: 16px;
        margin-top: -5px;

        vertical-align: middle;
        filter: invert(8%) sepia(5%) saturate(4564%) hue-rotate(140deg) brightness(98%) contrast(80%);
    }

    .hero p {
        max-width: unset !important;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 100px;
    gap: 60px;
    align-items: center;
    padding: 60px 30px;
}

.hero h1 {
    font-size: 52px;
}

.hero h2 {
    margin-top: 4px;
    font-weight: 400;
}

.hero p {
    margin-top: 20px;
    max-width: 500px;
}

@media (width <= 443px){
    .hero-buttons {
        flex-direction: column;
        text-align: center;
    }
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 16px;
}

.heroicon {
        content: ' ';
        background-image: url(icons/filter.svg); 
        display: inline-block;
        width: 150%;
        height: 150%;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;

        vertical-align: top;
        filter: invert(8%) sepia(5%) saturate(4564%) hue-rotate(140deg) brightness(98%) contrast(80%);

        /* Puls-animation */
        animation: pulse 8s ease-in-out infinite;
        transform-origin: center;
        will-change: transform;
}

.primary-btn:hover, .secondary-btn:hover {
    text-decoration: underline;
}

.primary-btn, .secondary-btn {
    padding: 16px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1rem;
}

.primary-btn, .primary-btn:visited {
    background: #1e2b2d;
    color: #fff !important;
    padding: 17px 24px;
}

.secondary-btn {
    background: transparent;
    border: 2px solid #1e2b2d;
    color: #1e2b2d;
}

/* PROBLEM */

@media (width <= 443px){
    .problem h2 {
        hyphens: auto;
        overflow-wrap: break-word;
    }
}

.problem h2 {
    font-size: 2rem;
    margin-bottom: -8px;
}

.problem .ingress {
    color: #7aa8a0;
    font-size: 1.6rem;
    margin-bottom: 40px;
}

.problem .mtop20 {
    margin-top: 20px;
}

.problem ul {
    margin-top: 20px;
    padding-left: 20px;
}

.problem-tags {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.problem-tags span {
    background: #e0f2ef;
    padding: 8px 14px;
    border-radius: 16px;
}

/* SOLUTION */
.solution {
    background: #f4fbfa;
}

.solution-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;

}

.solution-grid ul {
    /* margin-top: 20px; */
    padding-left: 20px;
}

.solution-grid div .mtop25 {
    margin-top: 25px;
}

.target-group {
    margin-top: 60px;
    text-align: center;
}

@media (width <= 620px){
    .solution-grid {
        display: grid;
        grid-template-rows: 1fr 1fr !important;
        grid-template-columns: 1fr !important;
    }
    
    .target-cards {
        flex-direction: column;
        gap: 10px !important;
    }

    .card {
        padding: 12px 24px !important;
        font-weight: 600;
    }

    .solution-grid div .mtop25 {
        margin-top: 8px !important; 
    }

    .target-group {
        margin-top: 0px !important;
    }
}

.target-cards {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    
}

.card {
    padding: 24px 48px;
    background: #e0f2ef;
    border-radius: 12px;
    border: 2px #1e2b2d solid;
}

/* STRUCTURE */

@media (width <= 620px){
    .structure-grid {    
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto;
        gap: 16px !important;
    }

    .structure-levels {
        gap: 8px !important;
        margin-left: unset !important;
        margin-right: unset !important;
        font-weight: 600;
    }

    .role-box {
        margin-right: unset !important;
    }
}

.structure-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.structure-text h2 {
    margin-bottom: 16px;
}

.structure-text p {
    margin-bottom: 16px;
}

.structure-text .sidetext {
    margin-top: -16px;
    font-weight: 600;
    font-style: italic;
}

.structure-levels {
    position: relative;
    display: flex;
    flex-direction: column; /* gör så att de ligger ovanpå varandra */
    justify-content: space-between;
    height: 100%;
    margin-left: 10%;
    margin-right: 10%;
}

.structure-levels::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: black;
  z-index: -1; /* bakom texterna */
}

.structure-levels div {
    background: #d7eeeb;
    padding: 10px;
    text-align: center;
    
    border-radius: 8px;
}

.role-box {
    margin-top: 24px;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #1e2b2d;
    margin-right: 30px;
}

.role-box strong {
    display: inline-block;
}

.role-box #text-loop {
    display: inline-block;
}

#text-loop {
  /* font-size: 32px; */
  /* font-weight: bold; */
  /* font-family: monospace; */
  border-right: 3px solid black;
  padding-right: 6px;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* CONTROL */
.control {
    background: #d7eeeb;
    text-align: center;
}

.control > .container > p {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

@media (width <= 566px){
    .network {
        display: flex !important;
        flex-direction: column !important;
        gap: 0px !important;
    }

    .network-center {
        padding: 24px 32px !important;
        margin-top: unset !important;
        margin-bottom: 8px;
    }

    .part1 div:nth-child(1), .part3 div:nth-child(2) {
        padding: 6px 8px !important;
    }

    .part1 div:nth-child(2), .part3 div:nth-child(1) {
        padding: 12px 16px !important;
    }
}

.network {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.network-center {
    background: #1e2b2d;
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    text-align: center;
    vertical-align: middle;
    margin-top: 32px;
}

.network-node {
    background: #ffffff;
    padding: 16px 18px;
    border-radius: 12px;
    text-align: center;
    vertical-align: middle;
    margin-bottom: 8px;
    /* line-height: 16px; */
}

/* CTA */
@media (width <= 574px){
    .cta-grid {
        grid-template-rows: auto auto auto !important;
        grid-template-columns: 1fr !important;
    }

    .cta-grid h2 {
        grid-column: unset !important;
    }

    .cta-grid .cta-box {
        margin-top: 36px;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .cta-box input, .cta-box textarea {
        font-size: 1rem;
    }
}


@media (width <= 443px){
    .cta-grid h2 {
        hyphens: auto;
        overflow-wrap: break-word;
    }
}

.cta-grid {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr 1fr;
    /* gap: 60px; */
}

.cta-grid h2 {
    grid-column: span 2;
    margin-bottom: 24px;
}

.cta-grid div ul {
    padding-left: 20px;
    margin-top: 24px;
}

.cta-box {
    background: #fff;
    padding: 30px;
    padding-top: 0px;
    border-radius: 16px;
}

.cta-box h3 {
    margin-bottom: 12px;
}

.cta-box input, .cta-box textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
}

.cta-box textarea {
    resize: none;
    height: 120px;
}

.cta-box button:hover {
    cursor: pointer;
    /* background: #1e2b2d; */
    /* color: #1e2b2d; */
    text-decoration: underline;
    
    /* outline: 2px #1e2b2d solid; */
    /* outline-offset: -2px; */
}

.cta-box button, .cta-box .secondary-btn {
    width: 100%;
    margin-top: 10px;
    padding: 17px;
    border-radius: 20px;
    border: none;

    font-weight: 600;
    font-size: 1rem;
    background: #e0f2ef;
    color: green;
}

#cta-message {
    font-weight: 600;
}

.cta-box .secondary-btn {
    background: #e0f2ef;
    color: green;
    
}

/* FOOTER */

@media (width <= 620px){
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto;
        gap: 32px !important;
    }

    .footer-grid div:nth-child(1)  {
        text-align: center !important;
    }

    .footer-grid div:nth-child(1) p {
        text-align: center !important;
    }

    .footer-grid div:nth-child(2) p {
        text-align: center !important;
    }

    .footer-grid div:nth-child(3) p {
        text-align: center !important;
        padding-right: 0px !important;
    }
}

.footer {
    background: #d7eeeb;
    padding: 20px 0px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-grid div:nth-child(2) p {
    text-align: center;
}

.footer-grid div:nth-child(3) p {
    text-align: right;
    padding-right: 40px;
}

.footer a, .footer a:visited, .footer a:active, .footer a:focus { 
    color: black !important;
    text-decoration: unset !important;
}

.footer a:hover {
    /* font-weight: 600; */
    text-decoration: underline !important;
}


.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}
