/* ===== Design tokens ===== */
:root{
    --blue:#8BC4F9;          /* Isblå */
    --blue-dark:#1F7FB0;     /* Mørk isblå */
    --yellow:#FFCC00;        /* CAT-gul */
    --yellow-light:#FFE066;  /* Lys gul */
    --gray:#E6E9ED;          /* Kold grå */
    --ink:#0E2A38;           /* Mørk neutral til tekst */
    --white:#FFFFFF;
    --radius:0;              /* Hårde kanter */
    --gap:18px;              /* Fast og ren spacing */
    --shadow:0 4px 0 rgba(31,127,176,0.15); /* kantet skygge */
    --font: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}
html,body{height:100%}
body{
    margin:0; font-family:var(--font); color:var(--ink); background:var(--white);
    line-height:1.5; letter-spacing:.2px;
}
/* ===== Layout helpers ===== */
.container{
    max-width:1100px; 
    margin:0 auto; 
    padding:0 20px
}

.grid{
    display:grid; 
    gap:var(--gap)
}

.grid-3{
    grid-template-columns: repeat(3, 1fr)
}

.grid-2{
    grid-template-columns: repeat(2, 1fr)
}

@media (max-width:900px){
    .grid-3,.grid-2 {
        grid-template-columns:1fr
    }
}

/* ===== Topbar ===== */
.topbar {
  background: var(--blue);
  border-bottom: 6px solid var(--yellow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}



.topbar-inner{
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    padding:14px 0
}

.brand{
    display:flex; 
    align-items:center; 
    gap:10px; 
    text-decoration:none
}

.logo {
  width: 40px;
  height: 40px;
  background-image: url("images/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


.wordmark{
    font-weight:900; 
    letter-spacing:.5px; 
    color:var(--ink); 
    text-transform:uppercase
}

.nav a{
    color:var(--ink); 
    text-decoration:none; 
    font-weight:600; 
    margin-left:18px; 
    padding:6px 8px; 
    border:2px solid transparent
}

.nav a:focus{
    outline:none; 
    border-color:var(--ink)
}

/* ===== Hero ===== */
.hero{
    background:var(--blue); 
    color:var(--ink); 
    padding:60px 0; 
    border-bottom:6px solid var(--yellow)
}

.hero .badge{
    display:inline-block; 
    background:var(--yellow); 
    color:var(--ink); 
    padding:6px 10px; 
    font-weight:800; 
    border:3px solid var(--ink); 
    box-shadow:var(--shadow)
}

.hero h1{
    font-size:clamp(28px,4vw,44px); 
    margin:16px 0 10px; font-weight:900; 
    text-transform:uppercase; 
    letter-spacing:.6px
}

.hero p{
    max-width:760px; 
    font-size:18px
}

.cta-row{
    display:flex; 
    gap:var(--gap); 
    margin-top:20px; 
    flex-wrap:wrap
}

.btn{
    display:inline-block; 
    padding:12px 16px; 
    font-weight:800; 
    text-decoration:none; 
    text-transform:uppercase; 
    letter-spacing:.6px; 
    border:3px solid var(--ink); 
    box-shadow:var(--shadow)
}

.btn-primary{background
    :var(--yellow); 
    color:var(--ink)
}

.btn-primary:hover{
    background:var(--yellow-light)
}

.btn-outline{
    background:var(--white); 
    color:var(--ink)
}

/* ===== Panels / Cards ===== */
.panel{
    background:var(--white); 
    border:3px solid var(--ink); 
    box-shadow:var(--shadow); 
    padding:22px
}

.panel h3{
    margin-top:0; 
    text-transform:uppercase; 
    font-weight:900
}


.reveal {
opacity: 0;
transform: translateY(12px) scale(.96);
will-change: transform, opacity;
}

.reveal.is-revealed {
animation: pop-in 480ms cubic-bezier(.2,.8,.2,1) both;
animation-delay: var(--delay, 0ms); /* optional per-item delay */
}


@keyframes pop-in {
0%   { opacity: 0; transform: translateY(12px) scale(.92); filter: blur(.5px); }
60%  { opacity: 1; transform: translateY(0)    scale(1.02); }
100% { opacity: 1; transform: translateY(0)    scale(1);    filter: none; }
}


/* ===== Section: Services ===== */
.section{
    padding:60px 0
}

.section h2{
    font-size:26px; 
    margin:0 0 16px; 
    text-transform:uppercase; 
    letter-spacing:.6px
}

.services .panel{
    background: var(--blue);
    border-color: var(--ink);
}


/* ===== Process ===== */
.process-step{
    display:flex; 
    gap:16px; 
    align-items:flex-start
}

.step-no{
    min-width:46px; 
    height:46px; 
    display:grid; 
    place-items:center; 
    background:var(--yellow); 
    font-weight:900; 
    border:3px solid var(--ink)
}    

/* ===== Proof/Stats strip ===== */
.strip{
    background:var(--gray); 
    border-top:4px solid var(--blue-dark); 
    border-bottom:4px solid var(--blue-dark); 
    padding:26px 0
}

.strip-items{
    display:grid; 
    gap:var(--gap); 
    grid-template-columns: repeat(4, 1fr)
}

.strip .item{
    background:var(--white); 
    border:3px solid var(--ink); 
    text-align:center; 
    padding:14px; 
    font-weight:800
}

@media (max-width:900px){
    .strip-items{
        grid-template-columns:1fr 1fr
    }
}

@media (max-width:540px){
    .strip-items{
        grid-template-columns:1fr
    }
}


/* ===== Footer ===== */
footer{
    background:var(--ink); 
    color:var(--white); 
    padding:32px 0; 
    border-top:6px solid var(--yellow)
}

footer a{
    color:var(--yellow)
}

/* ===== Accessibility helpers ===== */
.sr-only{
    position:absolute; 
    width:1px; 
    height:1px; 
    padding:0; 
    margin:-1px; 
    overflow:hidden; 
    clip:rect(0,0,0,0); 
    border:0
}
.linkedin-section{
    background: var(--gray);
    border-top: 4px solid var(--blue-dark);
    border-bottom: 4px solid var(--blue-dark);
}

.linkedin-inner{
    text-align: center;
}

.linkedin-section h2{
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.linkedin-section p{
    max-width: 640px;
    margin: 0 auto 18px;
}
/* Citat-stil */
.martin-quote {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.martin-quote p {
    margin-bottom: 14px;
}

.martin-quote footer.quote-byline {
    margin-top: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ink);
}

/* Layout for OM OS-sektionens grid */
#om-os .grid-2 {
    grid-template-columns: 1.1fr 0.9fr; /* lidt mere plads til tekst */
}

/* Billed-panel – ingen mørk boks */
.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);   /* tving hvid baggrund */
}

/* Selve billedet */
.about-image img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-link {
  color: #ffffff;
  text-decoration: underline;
  line-height: 1.2;
}







/* ===== Verdensmål (SDG) ===== */
.sdg{
  background: var(--gray);
  border-top: 4px solid var(--blue-dark);
  border-bottom: 4px solid var(--blue-dark);
}

.sdg-grid{
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

/* Tablet */
@media (max-width: 1000px){
  .sdg-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* Mobil – 2 kolonner som i din skitse */
@media (max-width: 700px){
  .sdg-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* Meget smal mobil */
@media (max-width: 420px){
  .sdg-grid{ grid-template-columns: 1fr; }
}

.sdg-card{
  display:flex;
  flex-direction:column;
  background: var(--white);
}

.sdg-image{
  width:100%;
  aspect-ratio: 1 / 1;              /* stor firkant */
  border:3px solid var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

@media (max-width: 1000px){
  .sdg-image{
    max-width: 60%;
    margin: 0 auto 14px;    
  }
}

@media (max-width: 650px){
  .sdg-image{
    max-width: 80%;
    margin: 0 auto 14px;    
  }
}

@media (max-width: 420px){
  .sdg-image{
    max-width: 70%;
    margin: 0 auto 14px;    
  }
}

.sdg-body h3{
  margin: 0 0 10px;
}

.sdg-preview{
  margin: 0 0 12px;
}

/* ===== Details: Vis "mere tekst" i forlængelse, og knappen nederst ===== */
.sdg-details{
  margin-top: 6px;
}

/* skjul standard marker */
.sdg-details > summary{
  list-style: none;
}
.sdg-details > summary::-webkit-details-marker{
  display:none;
}

/* gør summary til knap (du bruger allerede .btn-klasser) */
.sdg-details > summary.btn{
  cursor: pointer;
  display: inline-block;
}

/* Når åbent: brug flex-order til at placere teksten før knappen */
.sdg-details[open]{
  display: flex;
  flex-direction: column;
}

.sdg-details[open] > summary{
  order: 2;                /* knappen nederst */
  align-self: flex-start;
  margin-top: 12px;
}

.sdg-details[open] > p{
  order: 1;                /* ekstra tekst lige efter preview */
  margin: 0;
}


/* Verdensmål – gul Læs mere-knap */
.sdg-details > summary.btn {
  background: var(--yellow);
  color: var(--ink);
}

.sdg-details > summary.btn:hover {
  background: var(--yellowTwilight, var(--yellow-light));
}


/* ===== OM OS: responsivt fix ===== */

/* Desktop/tablet: behold 2 kolonner */
#om-os .grid-2{
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start; /* gør at højre panel ikke strækkes unødigt */
}

/* Mobil: skift til 1 kolonne (overstyr din specifikke regel) */
@media (max-width: 900px){
  #om-os .grid-2{
    grid-template-columns: 1fr;
  }

  /* Valgfrit: vis logo/billede først på mobil */
  #om-os .about-image{
    order: -1;
  }

  /* Gør panel-padding en anelse mere “mobilvenlig” */
  #om-os .panel{
    padding: 16px;
  }
}

/* Byline under citat (matcher din HTML) */
.quote-byline{
  margin-top: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink);
}

.topbar {
  background: var(--blue);
  border-bottom: 6px solid var(--yellow);
  position: sticky;   /* <-- i stedet for fixed */
  top: 0;
  width: 100%;
  z-index: 1000;
}


@media (max-width: 500px){
  .topbar .nav a:not(.cta):not([href*="kontakt"]){
    display: none;
  }
  }

@media (max-width: 500px){
  .topbar .nav{
    padding-right: 12px;
  }
}


/* ===== OM OS – én samlet boks ===== */

.about-single{
  max-width: 1100px;   /* svarer til bredden af 2 bokse før */
  margin: 0 auto;
}

.about-single .panel{
  padding: 40px;
}

/* Tekst */
.about-text p{
  margin-bottom: 16px;
}

/* Byline */
.quote-byline{
  margin-top: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Logo under teksten */
/* ===== OM OS – responsivt logo (korrekt løsning) ===== */

.about-image{
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.about-image img{
  width: clamp(200px, 40vw, 420px);
  height: auto;
}


/* Mobil */
@media (max-width: 600px){
  .about-single .panel{
    padding: 24px;
  }

  .about-image img{
    max-width: 220px;
  }
}

.linkedin-buttons{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* holder dem pænt centreret */
  gap: 12px;                 /* mellemrum når de wrapper */
}
