/* ====== Base ====== */
:root{
  --bg: #ffffff;
  --muted: #d7dad7;
  --text: #111;
  --sub: #555;
  --card: #f5f6f5;
  --footer: #4b4b4b;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(0,0,0,.12);
  --border: rgba(0,0,0,.08);
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

html{
  scroll-behavior: smooth;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main{
  flex: 1;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }

.container{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.center{ text-align:center; }

/* ====== Header ====== */
.header{
  position:absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  z-index: 20;
}

.logo-wrapper{
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-link{
  font-size: 20px;
  font-weight: 600;
  color: rgba(0,0,0,.85);
}

/* ====== Forside Hero ====== */
.hero{
  position: relative;
  min-height: 75vh;
  overflow: visible;
  background: #eee;
}

.hero-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center 10%;
}

.hero-card{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -25vh;
  z-index: 10;
  width: min(860px, calc(100% - 40px));
  background: rgba(255,255,255,.92);
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0,0,0,.15);
  padding: clamp(16px, 2.2vw, 26px);
  border: 1px solid var(--border);
}

.hero-card h1{
  margin: 2px 0 10px;
  font-size: clamp(22px, 2.2vw, 34px);
  text-align:center;
}

.hero-intro{
  margin: 0 auto 18px;
  max-width: 680px;
  font-size: clamp(11px, 1.2vw, 14px);
  line-height: 1.5;
  color: rgba(0,0,0,.70);
  text-align:center;
}

.hero-boxes{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.5vw, 16px);
}

.mini-card{
  background: #EDEAEA;
  border-radius: 12px;
  padding: clamp(12px, 1.6vw, 16px);
  text-align:center;
  border: 1px solid var(--border);
}

.icon{
  margin: 0 auto 18px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.icon img{
  width: 52px;
  height: 52px;
  object-fit: contain;
  display:block;
}

.mini-card h3{
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}

.mini-card p{
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(0,0,0,.65);
}

.mini-link{
  display:inline-block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,.75);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0,0,0,.25);
}

/* ====== Sections ====== */
.section{
  padding: clamp(38px, 5vw, 64px) 0;
}

.section-muted{
  background: var(--muted);
}

.produktioner-intro{
  padding-top: 35vh;
}

.section h2{
  margin: 0 0 10px;
  font-size: 25px;
}

/* ====== Two-column blocks ====== */
.two-col{
  display:grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 1fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
}

.two-col.reverse{
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.1fr);
}

/* ====== Video ====== */
.media-video{
  width: 100%;
  max-width: 400px;
  margin-left: auto;
}

.media-video-left{
  margin-left: 0;
  margin-right: auto;
}

.media-video video{
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: block;
}

/* ====== Gallery ====== */
.gallery{
  margin-top: 24px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery img{
  width:100%;
  border-radius:14px;
  box-shadow: var(--shadow);
  cursor:pointer;
  transition: transform 0.25s ease;
}

/* Hover: hele boksen bliver større */
.gallery img:hover{
  transform: scale(1.06);
}
/* ====== Footer (forside) ====== */
.footer{
  background: #4b4b4b;
  color: #fff;
  padding: 30px 0;
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.footer-left h4{
  margin:0 0 6px;
  font-size:16px;
  font-weight:600;
}

.footer-text{
  margin:0;
  font-size:12px;
  line-height: 1.35;
  color: rgba(255,255,255,.85);
}

.footer-social{
  display:flex;
  gap:12px;
  margin-top:10px;
}

.footer-social a{
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.15);
  border-radius:6px;
  transition:0.2s;
}

.footer-social a:hover{
  background:rgba(255,255,255,0.35);
}

.footer-social svg{
  width:16px;
  height:16px;
  fill:#fff;
}

.footer-logo-wrapper{
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}

.footer-logo-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
}

/* ====== Figma embed ====== */
.figma-embed{
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.figma-embed iframe{
  width: 100%;
  height: 600px;
  border: 0;
  display: block;
}

/* =========================================================
   OM MIG SIDE (FIX)
   ========================================================= */

.about{
  min-height: 100vh;
}

.about-hero{
  position: relative;
  min-height: 100vh;
  background-image: url("image/om-mig.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 120px 0;
}

.about-card{
  position: relative;
  width: 520px;
  max-width: 90%;
  margin-left: 80px;
  background: rgba(90,90,90,0.92);
  color: #fff;
  padding: 50px 40px;
}

.about-card__bar{
  position: absolute;
  left: 25px;
  top: 40px;
  bottom: 40px;
  width: 8px;
  background: #111;
}

.about-card__content{
  margin-left: 40px;
}

.about-card__content h1{
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 700;
}

.about-card__content p{
  margin: 0 0 18px;
  line-height: 1.7;
  font-size: 15px;
  opacity: 10.95;
}

.about-photo{
  display:none;
}

.card-link{
  display:block;
  color: inherit;
  text-decoration: none;
}

.card-link:focus-visible{
  outline: 2px solid rgba(0,0,0,.35);
  outline-offset: 4px;
  border-radius: 12px;
}

/* ====== Back arrow (Om mig) ====== */
.back-arrow{
  position: absolute;
  top: 100px;
  left: 30px;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: #111;
  background: rgba(255,255,255,0.9);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  transition: all 0.2s ease;
  z-index: 100;
}

.back-arrow:hover{
  background: #fff;
  transform: translateX(-3px);
}

/* ====== Kontakt side ====== */
.kontakt-hero{
  min-height: 100vh;
  background: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px;
}

.kontakt-wrapper{
  max-width: 1000px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.kontakt-image{
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
}

/* =========================================================
   CV SIDE (matcher prototype)
   ========================================================= */
.cv{
  background: var(--muted);
}

.cv-hero{
  padding-top: 140px;
  padding-bottom: 60px;
}

.cv-img{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

/* Mobil */
@media (max-width: 640px){
  .back-arrow{
    top: 86px;
    left: 16px;
  }

  .cv-hero{
    padding-top: 120px;
    padding-bottom: 30px;
  }

  .cv-img{
    width: calc(100% - 24px);
  }
}

/* =========================
   RESPONSIVE
   ========================= */

/* Tablet og ned */
@media (max-width: 980px){
  .container{
    width: min(1100px, calc(100% - 28px));
  }

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

  .two-col,
  .two-col.reverse{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .media-video{
    margin: 0;
    max-width: 100%;
  }

  .media-video-left{
    margin-right: 0;
  }

  .about-card{
    margin-left: 28px;
    width: min(520px, calc(100% - 56px));
  }
}

/* Telefon og ned */
@media (max-width: 640px){

  .header{
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .logo-wrapper{
    width: 54px;
    height: 54px;
  }

  .header-link{
    font-size: 16px;
  }

  .hero{
    min-height: 95vh;
  }

  .hero-bg{
    object-position: 30% 15%;
  }

  .hero-card{
    width: calc(100% - 24px);
    bottom: -320px;
    padding: 16px;
    border-radius: 14px;
  }

  .hero-card h1{
    font-size: 22px;
    line-height: 1.15;
    margin: 6px 0 10px;
  }

  .hero-intro{
    font-size: 13px;
    margin-bottom: 14px;
  }

  .hero-boxes{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mini-card{
    padding: 14px;
  }

  .icon{
    margin: 0 auto 12px;
  }

  .icon img{
    width: 44px;
    height: 44px;
  }

  .produktioner-intro{
    padding-top: 380px;
  }

  .section h2{
    font-size: 20px;
  }

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

  .about-hero{
    padding: 110px 0;
    background-position: 60% 20%;
  }

  .about-card{
    margin-left: 12px;
    margin-right: 12px;
    width: auto;
    max-width: none;
    padding: 22px 18px;
    background: rgba(90, 90, 90, 0.75);
  }

  .about-card__bar{
    left: 14px;
    top: 18px;
    bottom: 18px;
    width: 6px;
  }

  .about-card__content{
    margin-left: 22px;
  }

  .about-card__content h1{
    font-size: 22px;
    margin-bottom: 12px;
  }

  .about-card__content p{
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 12px;
  }

  .kontakt-hero{
    padding: 90px 12px;
  }

  .kontakt-image{
    max-width: 100%;
  }
}

/* Ekstra lille telefon */
@media (max-width: 420px){

  .hero{
    min-height: 98vh;
  }

  .hero-bg{
    object-position: 35% 15%;
  }

  .hero-card{
    bottom: -300px;
  }

  .produktioner-intro{
    padding-top: 360px;
  }

  .header-link{
    font-size: 15px;
  }
}