/* ========================================================================== 
   CasparEric – style.css (cleaned, deduplicated, correct media queries)
   ========================================================================== */

/* Import font --------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600&display=swap');

/* Root variables -----------------------------------------------------------*/
:root {
  --max-width: 95%;
  --text-color: #000;
  --bg-color: #fff;
}

/* Base / Reset -------------------------------------------------------------*/
html, body { height: 100%; }
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
  width: var(--max-width);
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
}

h1, h2, h5, h6 { margin: 0; padding: 0; }

/* Headings -----------------------------------------------------------------*/
h1.myHeader {
  font-size: 9vw; /* default for medium screens */
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: inherit;
}

h2 { font-size: 5vw; }
h5 { font-size: 2vw; font-weight: 200; }
h6 { font-size: 2.5vw; text-align: center; }

/* Links --------------------------------------------------------------------*/
a { color: black; text-decoration: none; }

/* Layout containers --------------------------------------------------------*/
main { text-align: center; margin: 5% 15% 10%; }

.wrapper {
  padding-top: 1vw;
  display: block;
  text-align: center;
  max-width: 60%;
  margin: 0 auto;
}

.navlink {
  display: block;
  font-size: 5vw;
  margin: 2vw 0;
  padding: 0;
  text-align: center;
  line-height: 1;
  color: inherit;
}

/* Content Types ------------------------------------------------------------*/
.booklist { text-align: center; font-size: 5vw; }
.spotifyLink { font-size: 3vw; }
.contactList { font-size: 4vw; }

/* Images -------------------------------------------------------------------*/
img { width: 40%; height: auto; padding-bottom: 4vw; }

/* Form Inputs --------------------------------------------------------------*/
textarea { width: 400px; height: 200px; }
input[type="text"] { width: 400px; height: 200px; resize: both; }

/* Footer -------------------------------------------------------------------*/
footer {
  position: fixed;
  bottom: 2px;
  left: 0.5rem;
  height: 35px;
  color: #000;
}
footer > a { text-transform: lowercase; padding-left: 5px; color: inherit; }

/* Accessibility Helpers ----------------------------------------------------*/
.skip-link {
  position: absolute;
  top: -999px;
  left: -999px;
  background: white;
  padding: 8px 12px;
  z-index: 999;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.skip-link:focus {
  top: 10px;
  left: 10px;
  border: 2px solid black;
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Kontakt-listen: fjern bullets, centrer og skab luft */
.contactList ul {
    list-style: none;     /* fjern standardpunktopstilling */
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;   /* centrér indholdet */
  }
  
  .contactList li {
    margin: 3vw 0;        /* stor lodret afstand mellem poster (tilpas efter ønske) */
    padding: 0;
  }
  
  .contactList a {
    display: inline-block; /* gør linket til blokniveau så klikfelt er pænt */
    font-size: 3.5vw;      /* tilpas størrelse for kontakt-tekst */
    color: inherit;
    text-decoration: none;
  }
  

/* Header spacing -----------------------------------------------------------*/
header {
  padding-top: 10vw;
}

/* ========================================================================== */
/* Desktop: larger screens --------------------------------------------------*/
/* ========================================================================== */
@media (min-width: 1000px) { header { padding-top: 5vw; } /* halveret fra 10vw */
  h1.myHeader { font-size: 6.5vw; }
  .navlink { font-size: 3vw; margin: 1.2vw 0; }
  .wrapper { max-width: 40%; padding-top: 1vw; }
  .booklist { font-size: 2.5vw; }
  .contactList { font-size: 2vw; }
}

  

/* ========================================================================== */
/* Mobile: small screens ----------------------------------------------------*/
/* ========================================================================== */
@media only screen and (max-width: 600px) {
  header { padding-top: 26vw; }
  h1.myHeader { font-size: 10vw; }
  .navlink { font-size: 6vw; margin: 8vw 0; text-align: center; }
  .wrapper { max-width: 100%; padding-top: 4vw; }
}

/* End of file --------------------------------------------------------------*/

/* Desktop-only book grid (>=1000px) */
@media (min-width: 1000px) {
    /* gør .booklist til grid */
    .booklist {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* 2 kolonner på almindeligt desktop */
      gap: 4vw; /* afstand mellem rækker og kolonner */
      align-items: start;
      justify-items: center;
      padding: 2vw 0;
      max-width: 80%;
      margin: 0 auto;
    }
  
    /* hvert book-item styres visuelt som et kort */
    .book-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 100%;
      max-width: 420px; /* begræns bredde af hvert kort så layoutet ser rent ud */
      transition: transform .18s ease, box-shadow .18s ease;
    }
  
    /* hover-agtig fremhævning (kun løft, ingen kasse) */
    .book-item:hover,
    .book-item:focus {
      transform: translateY(-4px);
      box-shadow: none;
      background: none;
      border: none;
    }

    /* Fjern default outline ved klik med mus, men bevar pæn fokusstil for tastatur */
    .book-item:focus { outline: none; }

    /* Vis pæn fokusring kun når fokus kommer via tastatur (focus-visible) */
    .book-item:focus-visible {
      box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
      transform: translateY(-4px);
    }
  
    /* billede: fyld bredden i kortet, behold proportioner */
    .book-item img {
      width: 100%;
      height: auto;
      display: block;
      object-fit: contain;
      border-radius: 2px; /* subtil afrunding hvis du vil */
      margin-bottom: 0vw;
    }
  
    /* titel-styling under billedet */
    .book-title {
      font-size: 1.6vw;    /* lille, elegant tekst på desktop */
      line-height: 1.2;
      margin: 0;
      margin-bottom: 1.8vw;
      color: inherit;
    }
  
    /* større skærme: 3 kolonner */
    @media (min-width: 1400px) {
      .booklist {
        grid-template-columns: repeat(3, 1fr);
        gap: 3.5vw;
        max-width: 85%;
      }
      .book-title { font-size: 1.4vw; }
    }
  }
  
  .podcastlinks ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }
  .podcastlinks li {
    margin: 2vw 0;
  }
  .podcastlinks a {
    font-size: 3.5vw;
    text-decoration: none;
    color: inherit;
  }
  @media (min-width:1000px) {
    .podcastlinks a { font-size: 1.8vw; }
  }
  