/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Koulen&family=Krona+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inria+Sans:wght@300;400;700&display=swap");

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

:root {
  --farve1: #fef5ef;
  --farve2: #f0e4d9;
  --font-farve: #514237;

  --logo-font: "Koulen", sans-serif;
  --overskrift-font: "Krona One", sans-serif;
  --brødtekst-font: "Inria Sans", sans-serif;
}

/* HERO SEKTION */
.hero {
  background: linear-gradient(rgba(230, 211, 192, 1), white);
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Navbar */
.navbar {
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
  background: transparent;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

#logo1 {
  font-family: var(--logo-font);
  font-size: 40px;
  font-weight: 200;
  color: var(--font-farve);
  letter-spacing: 4px;
}

#logo2 {
  font-family: var(--brødtekst-font);
  font-size: 24px;
  color: var(--font-farve);
  letter-spacing: 13px;
}

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

.nav-links a {
  font-family: var(--brødtekst-font);
  font-size: 14px;
  text-decoration: none;
  color: var(--font-farve);
  transition: 0.3s ease;
}
.nav-links a:hover {
  color: #a08977;
}

.cart {
  width: 24px;
  height: auto;
  transition: 0.3s ease;
}
.cart:hover {
  transform: scale(1.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}

/* Burger skjules på desktop */
.mobile-menu {
  display: none;
}

/* Hero indhold */
.hero-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  text-align: center;
  z-index: 1;
}

.hovedskrift {
  font-family: var(--overskrift-font);
  font-size: 12rem;
  font-weight: 700;
  color: var(--font-farve);
  line-height: 1;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  letter-spacing: 48px;
  max-width: 100vw;
  overflow: hidden;
}

.hero-img {
  width: 500px;
  height: auto;
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Knap */
.knap1 {
  position: absolute;
  bottom: 10%;
  left: 80%;
  transform: translateX(-50%);
  padding: 21px 60px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(to right, #514237, #a08977);
  color: white;
  font-family: var(--brødtekst-font);
  font-size: 24px;
  cursor: pointer;
  transition: 0.3s ease;
  overflow: hidden;
  text-decoration: none;
}
.knap1:hover {
  transform: translateX(-50%) scale(1.05);
}

/* PRODUKT SEKTION */
.produkt {
  background: linear-gradient(white, var(--farve2));
  width: 100%;
  padding: 100px 5%;
}

.produkt-container {
  max-width: 1200px;
  margin: 0 auto;
}

.produktinfo {
  width: 100%;
}

.product-title {
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.speclumina {
  font-family: var(--logo-font);
  font-size: 50px;
  color: var(--font-farve);
  letter-spacing: 8px;
}

.specone {
  font-family: var(--brødtekst-font);
  font-size: 30px;
  color: var(--font-farve);
  letter-spacing: 10px;
}

.produktbeskrivelse {
  font-family: var(--brødtekst-font);
  font-size: 18px;
  color: var(--font-farve);
  max-width: 550px;
  margin-top: 20px;
  line-height: 1.5;
}

/* Farvevælger */

.vaelg-farve {
  font-family: var(--brødtekst-font);
  font-size: 18px;
  color: var(--font-farve);
  margin-top: 30px;
  border-bottom: 1px solid var(--font-farve);
  padding-bottom: 8px;
}

.produktinfo input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.farvevalg {
  display: flex;
  gap: 20px;
  padding: 15px 0 20px;
  border-bottom: 1px solid var(--font-farve);
}

.produkt-indhold:has(#beige:focus-visible) .beige,
.produkt-indhold:has(#lilla:focus-visible) .lilla,
.produkt-indhold:has(#rosa:focus-visible) .rosa,
.produkt-indhold:has(#groen:focus-visible) .groen {
  outline: 3px solid var(--font-farve);
  outline-offset: 4px;
}

.farve {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid var(--font-farve);

  display: flex;
  justify-content: center;
  align-items: center;

  font-family: var(--brødtekst-font);
  letter-spacing: 5px;

  cursor: pointer;
  transition: 0.2s ease;
}

.farve:hover {
  transform: scale(1.05);
}

.beige {
  background: #f0e0c7;
}

.lilla {
  background: #ccccff;
}

.rosa {
  background: #dda1a1;
}

.groen {
  background: #c5d1b9;
}

/* Produktbilleder */

.produktbillede {
  display: none;
  width: 350px;
  max-width: 100%;
  height: auto;
}

#beige:checked ~ .produktbilleder .beige-img {
  display: block;
}

#lilla:checked ~ .produktbilleder .lilla-img {
  display: block;
}

#rosa:checked ~ .produktbilleder .rosa-img {
  display: block;
}

#groen:checked ~ .produktbilleder .groen-img {
  display: block;
}

/* Pris */

.pris {
  position: static;
  font-family: var(--brødtekst-font);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--font-farve);
  margin-top: 20px;
}

/* Læg i kurv */

.buy {
  grid-column: 2;
  justify-self: center;

  position: static;
  transform: none;

  display: block;
  width: fit-content;

  margin: 30px auto 0;
  padding: 15px 30px;

  border-radius: 25px;
  background: var(--font-farve);

  color: white;
  font-family: var(--brødtekst-font);
  font-size: 18px;
  text-decoration: none;

  transition: 0.3s ease;
}

.buy:hover {
  transform: scale(1.05);
}

.produkt-indhold {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  align-items: center;
}

.product-title,
.produktbeskrivelse,
.vaelg-farve,
.farvevalg,
.pris {
  grid-column: 1;
}

.produktbilleder {
  grid-column: 2;
  grid-row: 1 / 6;

  display: flex;
  justify-content: center;
  align-items: center;

  margin: 0;
}

/* SPECIFIKATIONER SEKTION */

.specs {
  background: linear-gradient(var(--farve2), white);
  width: 100%;
  padding: 100px 5% 0;
  overflow: hidden;
}

.specs-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Overskrift */

.specs-title {
  font-family: var(--overskrift-font);
  font-size: 36px;
  letter-spacing: 12px;
  color: var(--font-farve);
  margin-bottom: 60px;
}

/* Hver række */

.spec-item {
  border-bottom: 1px solid #c9b8a7;
}

.spec-item summary {
  min-height: 100px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;
  list-style: none;

  font-family: var(--brødtekst-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--font-farve);
}

/* Fjerner browserens standard-pil */

.spec-item summary::-webkit-details-marker {
  display: none;
}

.spec-item summary::marker {
  content: "";
}

/* Plus / kryds */

.spec-icon {
  width: 32px;
  height: 32px;
  border: 3px solid var(--font-farve);
  border-radius: 50%;

  position: relative;
  flex-shrink: 0;
}

/* Vandret streg */

.spec-icon::before {
  content: "";
  position: absolute;

  width: 14px;
  height: 2px;

  background-color: var(--font-farve);

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Lodret streg */

.spec-icon::after {
  content: "";
  position: absolute;

  width: 2px;
  height: 14px;

  background-color: var(--font-farve);

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Når rækken er åben */

.spec-item[open] .spec-icon::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.spec-item[open] .spec-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Teksten der foldes ud */

.spec-content {
  padding: 0 60px 35px 0;

  font-family: var(--brødtekst-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--font-farve);

  max-width: 900px;
}

.spec-content p {
  margin-bottom: 20px;
}

.spec-content p:last-child {
  margin-bottom: 0;
}

/* Højtaleren nederst */

.specs-speaker {
  display: block;
  width: 450px;
  max-width: 70%;
  height: auto;

  margin: 70px auto 0px;
}

/* APP SEKTION */

.app {
  width: 100%;
  background-color: white;
  padding: 100px 5%;
  overflow: hidden;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hent appen */

.app-title {
  font-family: var(--overskrift-font);
  font-size: 36px;
  letter-spacing: 12px;
  color: var(--font-farve);
}

/* Tekst + telefon */

.app-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
}

/* Mørk boks */

.app-info {
  background-color: #30271f;
  color: white;
  padding: 60px 180px 60px 70px;
  border-radius: 80px 0 0 80px;
}

.app-info h3 {
  font-family: var(--brødtekst-font);
  font-size: 38px;
  letter-spacing: 4px;
  margin-bottom: 30px;
}

.app-info p {
  font-family: var(--brødtekst-font);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 3px;
  max-width: 600px;
}

/* App Store knapper */

.app-download {
  display: flex;
  gap: 20px;
  margin-top: 45px;
  align-items: center;
}

.app-download a {
  display: block;
}

.app-download img {
  display: block;
  width: 200px;
  height: auto;
  transition: 0.3s ease;
}

.app-download img:hover {
  transform: scale(1.05);
}

/* Telefon */

.app-phone {
  position: relative;
  z-index: 2;

  margin-left: -130px;

  display: flex;
  justify-content: center;
}

.app-phone img {
  width: 400px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* FOOTER */

footer {
  background-color: #e7d2bd;
  padding: 60px 5%;
  color: var(--font-farve);
  font-family: var(--brødtekst-font);
}

.footer-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-col h3 {
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-col a {
  color: var(--font-farve);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Logo */

.footer-logo {
  font-family: var(--logo-font);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 4px;
  line-height: 1;
}

.footer-brand p {
  font-size: 17px;
  letter-spacing: 10px;
  line-height: 1;
  margin-top: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--font-farve);
  outline-offset: 4px;
}

/* Responsivt til mobil */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    padding: 15px 20px;
  }

  /* Logo */
  #logo1 {
    font-size: 37.5px;
    letter-spacing: 2px;
  }

  #logo2 {
    font-size: 21px;
    letter-spacing: 7px;
  }

  /* Navigation */

  /* Skjul desktop-menu */
  .nav-links {
    display: none;
  }

  /* Vis burger */
  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu summary {
    list-style: none;
    cursor: pointer;
    font-size: 45px;
    color: var(--font-farve);
  }

  .mobile-menu summary:hover {
    transform: scale(1.1);
  }

  /* Fjerner standard-pilen */
  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  /* Menuen der kommer frem */
  .mobile-links {
    position: absolute;
    top: 40px;
    right: 0;

    list-style: none;
    background-color: white;
    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 15px;

    min-width: 180px;
  }

  .mobile-links a {
    font-family: var(--brødtekst-font);
    font-size: 14px;
    text-decoration: none;
    color: var(--font-farve);
  }

  .nav-right {
    gap: 15px;
  }

  .cart {
    width: 38px;
  }

  /* Hero overskrift */
  .hovedskrift {
    font-size: 14vw;
    letter-spacing: 2vw;
    left: 50%;
    bottom: 1%;
  }

  /* Hero billede */
  .hero-img {
    width: 55vw;
    max-width: 350px;
    left: 50%;
    top: auto;
  }

  /* KØB NU knap */
  .knap1 {
    left: 50%;
    bottom: 35%;
    transform: translateX(-50%);
    padding: 21px 60px;
    font-size: 24px;
    white-space: nowrap;
  }

  /* Produkt */

  .produkt {
    padding: 0px 20px 100px;
  }

  .speclumina {
    font-size: 36px;
    letter-spacing: 4px;
  }

  .specone {
    font-size: 22px;
    letter-spacing: 7px;
  }

  .produktbeskrivelse {
    font-size: 16px;
  }

  .farvevalg {
    justify-content: space-between;
    gap: 8px;
  }

  .farve {
    width: 70px;
    height: 70px;
    font-size: 13px;
    letter-spacing: 3px;
  }

  .produktbillede {
    width: 220px;
  }

  .pris {
    font-size: 20px;
  }

  .buy {
    font-size: 16px;
    padding: 12px 25px;
  }

  .produkt-indhold {
    display: block;
  }

  .produktbilleder {
    margin-top: 30px;
  }

  .buy {
    margin: 30px auto 0;
  }

  /* Specifikationer */

  .specs {
    padding: 60px 20px 0;
  }

  .specs-title {
    font-size: 20px;
    letter-spacing: 4px;
    margin-bottom: 40px;
  }

  .spec-item summary {
    min-height: 75px;
    font-size: 17px;
  }

  .spec-icon {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }

  .spec-content {
    padding: 0 40px 25px 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .spec-content p {
    margin-bottom: 18px;
  }

  .specs-speaker {
    width: 270px;
    max-width: 75%;
    margin: 45px auto 30px;
  }

  /* App */

  .app {
    padding: 60px 20px 80px;
    overflow: hidden;
  }

  .app-container {
    width: 100%;
  }

  /* Hent appen */

  .app-title {
    font-size: 20px;
    letter-spacing: 4px;
    margin-bottom: 35px;
    white-space: nowrap;
  }

  /* Behold to kolonner ligesom på desktop */

  .app-layout {
    display: grid;
    grid-template-columns: 68% 32%;
    align-items: center;
    width: 100%;
  }

  /* Mørk boks */

  .app-info {
    width: 100%;
    min-height: 260px;
    padding: 10px 65px 30px 25px;

    border-radius: 45px 0 0 45px;
  }

  .app-info h3 {
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 15px;
  }

  .app-info p {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 1px;
  }

  /* App Store + Google Play */

  .app-download {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    align-items: center;
  }

  .app-download a {
    display: block;
    flex: 1;
  }

  .app-download img {
    width: 100%;
    max-width: 95px;
    height: auto;
  }

  /* Telefonen */

  .app-phone {
    position: relative;
    z-index: 2;

    margin-left: -55px;

    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .app-phone img {
    width: 155px;
    max-width: none;
    height: auto;
    display: block;
  }

  footer {
    padding: 50px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px 25px;
  }

  /* Logoet fylder hele den øverste række */
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-logo {
    font-size: 32px;
  }

  .footer-brand p {
    font-size: 15px;
    letter-spacing: 8px;
  }

  .footer-col h3 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .footer-col p {
    font-size: 13px;
    line-height: 1.7;
  }
}
