/* /css/style.css. Opdateret: 25.1.2026 */

:root {
  --brand-color: #2a4f6a;
  --brand-hover: #233f58;
  --text-color: #2c2c2c;
  --bg-gradient-start: #f0f4f8;
  --bg-gradient-end: #e3ecef;
  --quote-bg: #eef4f9;
  --footer-bg: #2c3e50;
  --footer-text: #aaa;
  --link-color: #ddd;
  --body-font: 'Source Sans Pro', Arial, sans-serif;
}

/* ===================================================================
   NULSTILLING/BOX-SIZING
   (samme som før)
=================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--body-font);
  color: var(--text-color);
  background-image:
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    url('https://test.vandrer-mod-lyset.dk/sky1.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: lighten;
}

main {
  flex: 1;
  padding: 2rem 1rem;
}

a {
  color: var(--brand-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===================================================================
   NAVIGATION (Øverste bjælke)
=================================================================== */
nav {
  width: 100%;
  background: #2c3e50;
  padding: 25px 20px;               /* Øget lodret padding for tykkere bjælke */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: var(--body-font);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  font-family: var(--body-font);
}

nav ul li:first-child {
  margin-right: auto;
}

/* Brand-tekst (“VANDRER MOD LYSETS FORLAG”) */
nav ul li .brand {
  color: white;
  font-weight: bold;
  font-size: 1.7rem;    /* Større, så den “popper” mere */
  font-family: var(--body-font);
}

/* ===================================================================
   NAVIGATION – hover og aktivt punkt
=================================================================== */

/* Normaltilstand */
nav ul li a {
  color: white;
  padding: 8px 12px;
  font-size: 1.3rem;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
  font-family: var(--body-font);
}

/* Hover – udfyldt mørkeblå baggrund */
nav ul li a:hover {
  background: var(--brand-hover);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

/* Aktivt menupunkt – udfyldt blå baggrund, bliver stående */
/* @media (min-width: 769px) {
  nav ul li a.active {
    background: var(--brand-color);
    color: #fff;
    border-radius: 6px;
    border: none;
  }  */


  /* ===================================================================
     Aktivt menupunkt – tydelig blå baggrund (ikke kant)
  =================================================================== */
  @media (min-width: 769px) {
    nav ul li a.active,
    .main-nav a.active {
      background: var(--brand-color);   /* udfyldt blå felt */
      color: #fff;
      border: none;
      border-radius: 6px;
      box-shadow: 0 0 8px rgba(42,79,106,0.4); /* valgfri glød-effekt */
    }

    nav ul li a.active:hover {
      background: var(--brand-hover);   /* mørkere nuance ved hover */
      color: #fff;
    }
  }



  nav ul li a.active:hover {
    background: var(--brand-hover);  /* mørkere nuance ved hover */
    color: #fff;
  }
}
/* ===================================================================
   FORSIDE (bog-præsentation + citat)
=================================================================== */
body.home .book-presentation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0 auto;
  padding: 0;
  max-width: none;
  background: none;
  box-shadow: none !important;
}

body.home .book-image img {
  width: 600px;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  display: block;
}

body.home .book-description {
  max-width: 500px;
  text-align: left;
}

body.home .book-description h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #000;
}

body.home .book-description p {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #000;
}

body.home .cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--brand-color);
  color: white;
  border-radius: 25px;
  font-weight: bold;
  margin-top: 1rem;
}

/* ===================================================================
   FOOTER (Nederste bjælke)
=================================================================== */
footer {
  background: var(--footer-bg);
  color: #fff;                    /* Hvid tekst for bedst kontrast */
  text-align: center;
  padding: 1.5rem 2rem;           /* Mere lodret & vandret luft */
  margin-top: auto;
}

footer p {
  margin: 0.2rem 0;               /* Lodret luft mellem linjerne */
  font-size: 1.1rem;              /* Større tekst i footer */
  line-height: 1.4;
  color: #fff;
}

footer .footer-line1 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

footer .footer-line2 a {
  color: #fff;
  text-decoration: underline;     /* Understreget for tydelighed */
  font-weight: 500;
}
footer .footer-line2 a:hover {
  color: var(--link-color);
}

/* ===================================================================
   BOG-DETAIL (bog.php)
   - coveret er mindre (180px bredt)
   - teksten (“book-info”) flyder ved siden af coveret, og breder sig under coveret,
     så snart den overstiger cover-højden.
   - “Bestil nu” er i egen kasse (clear: both) helt i bunden
=================================================================== */
.book-detail {
  display: block;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* COVER → float: left, fast bredde + lidt margin til højre */
.book-detail .book-image {
  float: left;
  width: 180px;               /* Præcis bredde på billedboksen */
  margin-right: 1rem;         /* Luft mellem cover & tekst */
}
.book-detail .book-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border-radius: 5px;
}

/* TEKSTBLOK (h1 + beskrivelse + tekniske data) */
.book-detail .book-info {
  overflow: hidden;           /* Sikrer at boksen udvider sig korrekt */
}

/* titel og beskrivelse */
.book-detail .book-info h1 {
  font-size: 2.5rem;
  margin: 0;
  color: var(--text-color);
}
.book-detail .book-info .description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-top: 0.75rem;
}

/* tekniske data præsenteret i to kolonner (label + værdi) */
.book-detail .book-info .technical {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}
.book-detail .book-info .technical dt {
  font-weight: 600;
  text-align: right;
  color: #222;
}
.book-detail .book-info .technical dd {
  margin: 0;
  color: #555;
  line-height: 1.4;
}

/* Formater & oversættelser (sidder umiddelbart efter “technical”) */
.book-detail .book-info .formats,
.book-detail .book-info .translations {
  font-size: 0.95rem;
  margin-top: 0.75rem;
}
.book-detail .book-info .formats a,
.book-detail .book-info .translations span {
  margin-right: 1rem;
  color: var(--brand-color);
  text-decoration: none;
}

/* “Bestil nu”-knap i eget felt (clear: both) */
.book-detail .bestil-btn {
  display: inline-block;
  clear: both;                 /* Tvinger knappen under floatede elementer */
  margin-top: 1.5rem;
  padding: 12px 28px;
  background: var(--brand-color);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  width: fit-content;
}
.book-detail .bestil-btn:hover {
  background: var(--brand-hover);
}

/* Responsiv justering af bog-detalje (under 700px) */
@media (max-width: 700px) {
  .book-detail .book-image {
    float: none;              /* Fjerner float → billede øverst */
    margin: 0 auto 1rem;      /* Ccenter og luft under */
    width: 60%;               /* Gør billedet brugervenligt bredt */
  }
  .book-detail .book-info {
    text-align: center;
  }
  .book-detail .book-info .technical {
    justify-content: center;
  }
}

/* ===================================================================
   CENTRALE UDGIVELSER (bog-listerne på “centraleudgivelser.php”)
=================================================================== */
/* Grid‐listning */
.book-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 50px auto;
  padding: 0 20px;
}

/* Selve bog-kortet */
.book-card {
  background: rgba(255, 255, 255, 0.95); /* Let transparent hvid baggrund */
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 0;
  overflow: hidden;                         /* Sørger for at indhold “renses” */
  position: relative;
  min-height: 380px;                        /* Minimumshøjde – justér efter behov */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* COVER i bog-kortet: float, fast bredde, og margin
   → tekst flyder til højre, og under ved behov */
.book-card .book-image {
  float: left;
  width: 120px;        /* Ensartet billedbredde i alle kort */
  margin-right: 1rem;  /* Luft til højre for billedet */
}
.book-card .book-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* TEKSTBLOK (forfatter + titel + beskrivelse) */
.book-card .book-info {
  overflow: hidden;    /* Sikrer, at denne beholder udvider sig korrekt */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Forfatter og titel øverst i kortet */
.book-card .book-info h2 {
  font-size: 1.3rem;
  margin: 0 0 10px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.book-card .book-info h2 .author {
  font-size: 0.95rem;     /* Lidt mindre end titel */
  font-style: italic;
  color: #555;
}
.book-card .book-info h2 .title {
  font-weight: 600;
  color: var(--text-color);
}

/* Beskrivelse (p) */
.book-card .book-info p {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-color);
  margin-bottom: 15px;
  /* Ingen margin-top – flyder direkte efter titel, evt. under billedet */
}

.book-card .subtitle {
  display: block;
  font-size: 0.9rem;     /* Justér til ønsket størrelse */
  font-style: italic;
  color: #555;           /* Valgfri: gør farven mere afdæmpet */
  margin-top: 2px;
}
/* “Læs mere” + “Bestil” (holder til bunden af boksen) */
.book-card .book-info .cta-group {
  margin-top: auto;     /* Skubber knapper kategori helt ned */
  display: flex;
  gap: 8px;
}
.cta-group .cta-button {
  padding: 8px 14px;
  background: var(--brand-color);
  color: white;
  border-radius: 6px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.3s ease;
}
.cta-group .cta-button:hover {
  background: var(--brand-hover);
}

/* ---------------------------------------------------
   EKSTRA: Skjul floats efter kortet (valgfrit)
--------------------------------------------------- */
.book-container::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .book-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .book-container {
    grid-template-columns: 1fr;
  }
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0;
  margin: 0;
}

.main-nav li {
  position: relative;
}

.kurv-link {
  position: relative;
  display: inline-block;
}

.kurv-link img {
  width: 24px;
  height: 24px;
  display: block;
}

.kurv-antal {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: white;
  color: #3366cc;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 16px;
  text-align: center;
  line-height: 1;
  box-shadow: 0 0 2px rgba(0,0,0,0.1);
}

.bestil-form {
  margin-top: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-grid div {
  display: flex;
  flex-direction: column;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

.bestil-form label {
  margin-bottom: 4px;
  font-weight: 600;
}

.bestil-form input,
.bestil-form select,
.bestil-form textarea {
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.bestil-form textarea {
  resize: vertical;
  min-height: 100px;
}

.kurv-besked {
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d0e9c6;
  padding: 12px 16px;
  margin: 20px auto;
  max-width: 800px;
  border-radius: 6px;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
}

/* =========================================================
   KURV / BESTILLINGSFELTER – centreret, smal og pæn (desktop)
   Læg denne blok nederst i css/style.css
========================================================= */

/* Overordnet container (hvis den ikke allerede er stylet i anden CSS) */
.kurv-container{
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Gør tabellen/kurv-indholdet læsbart på baggrunden */
.kurv-container .kurv-tabel{
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.10);
  border-collapse: collapse;
  overflow: hidden;
  width: 100%;
  margin: 14px 0 22px;
}

.kurv-container .kurv-tabel th,
.kurv-container .kurv-tabel td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  vertical-align: top;
  font-size: 1rem;
}

.kurv-container .kurv-tabel thead th{
  background: rgba(42,79,106,0.10);
  font-weight: 700;
}

.kurv-container .kurv-tabel tfoot td{
  border-bottom: none;
}

/* Bestillingssektion: centreret "card" */
.kurv-container .bestil-form{
  max-width: 760px;                 /* JUSTÉR: 640–860px */
  margin: 22px auto 0;              /* centreret */
  padding: 18px 18px 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.10);
}

/* Grid for felterne */
.kurv-container .bestil-form .form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin: 12px 0 14px;
}

.kurv-container .bestil-form .form-grid .full-width{
  grid-column: 1 / -1;
}

/* Labels */
.kurv-container .bestil-form label{
  font-weight: 600;
  margin-bottom: 6px;
  color: #1f2a33;
}

/* Inputs */
.kurv-container .bestil-form input,
.kurv-container .bestil-form select,
.kurv-container .bestil-form textarea{
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.98);
  outline: none;
}

/* Fokus */
.kurv-container .bestil-form input:focus,
.kurv-container .bestil-form select:focus,
.kurv-container .bestil-form textarea:focus{
  border-color: rgba(42,79,106,0.65);
  box-shadow: 0 0 0 3px rgba(42,79,106,0.18);
}

/* Textarea */
.kurv-container .bestil-form textarea{
  resize: vertical;
  min-height: 110px;
}

/* Send-knap: centrér og giv lidt luft */
.kurv-container .bestil-form button.cta-button{
  display: inline-block;
  margin: 6px auto 0;
}

/* Mobil: 1 kolonne */
@media (max-width: 760px){
  .kurv-container .bestil-form{
    max-width: 100%;
    margin: 18px 0 0;
    padding: 16px 14px;
  }

  .kurv-container .bestil-form .form-grid{
    grid-template-columns: 1fr;
  }
}

/* Centrér Antal, Pris og Total kolonner i kurven */
.kurv-tabel th:nth-child(2),
.kurv-tabel th:nth-child(3),
.kurv-tabel th:nth-child(4),
.kurv-tabel td:nth-child(2),
.kurv-tabel td:nth-child(3),
.kurv-tabel td:nth-child(4) {
  text-align: center;
}

.kurv-tabel tfoot td:last-child {
  text-align: right;
}

.tak-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-radius: 10px;
}

.info-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 12px 0 18px;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
}

.order-table th, .order-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.order-table th {
  background: #f7f7f7;
  text-align: left;
}

.text-right { text-align: right; }
.text-center { text-align: center; }

.pay-box {
  background: #f4f8ff;
  border: 1px solid #d9e6ff;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 16px 0;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   Checkout / kvittering
   (afsend.php)
========================= */
.checkout-wrap{
  max-width: 980px;
  margin: 32px auto 60px;
  padding: 0 16px;
}

.receipt-header{
  margin-bottom: 18px;
}

.receipt-header h1{
  font-size: 2.3rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.receipt-sub{
  font-size: 1.1rem;
  color: #3b3b3b;
}

.receipt-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin: 14px 0;
}

.card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 16px 18px;
}

.card h2{
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card-accent{
  border-left: 6px solid var(--brand-color);
}

.card-wide{
  margin-top: 14px;
}

.card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pill{
  background: rgba(42,79,106,0.12);
  border: 1px solid rgba(42,79,106,0.25);
  color: #1d3c52;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.dl-clean{
  display: grid;
  gap: 8px;
  margin: 0;
}

.dl-clean > div{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: baseline;
}

.dl-clean dt{
  font-weight: 700;
  color: #2a2a2a;
}

.dl-clean dd{
  margin: 0;
  color: #2a2a2a;
}

.note-box{
  margin-top: 14px;
  background: rgba(0,0,0,0.03);
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 12px;
  padding: 12px 12px;
}

.note-title{
  font-weight: 800;
  margin-bottom: 6px;
}

.note-text{
  line-height: 1.45;
}

.pay-lead{
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.pay-muted{
  color: #3b3b3b;
  margin: 0;
}

/* tabel */
.table-wrap{
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
}

.order-table{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 620px;
}

.order-table thead th{
  background: #f6f7f8;
  font-weight: 800;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.order-table tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.order-table tbody tr:nth-child(even){
  background: rgba(0,0,0,0.02);
}

.col-center{ text-align: center; }
.col-right{ text-align: right; }
.col-book{ font-weight: 600; }

/* totals */
.totals-box{
  margin-top: 12px;
  margin-left: auto;
  max-width: 360px;
  background: rgba(42,79,106,0.06);
  border: 1px solid rgba(42,79,106,0.18);
  border-radius: 12px;
  padding: 10px 12px;
}

.totals-row{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 2px;
}

.totals-strong{
  font-weight: 900;
  border-top: 1px solid rgba(42,79,106,0.18);
  margin-top: 6px;
  padding-top: 10px;
}

/* actions */
.actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* mobil */
@media (max-width: 860px){
  .receipt-grid{
    grid-template-columns: 1fr;
  }
  .dl-clean > div{
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .totals-box{
    max-width: none;
  }
}

/* =========================
   Checkout / kvittering
   (afsend.php)
========================= */
.checkout-wrap{
  max-width: 980px;
  margin: 32px auto 60px;
  padding: 0 16px;
}

.receipt-header{
  margin-bottom: 18px;
}

.receipt-header h1{
  font-size: 2.3rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.receipt-sub{
  font-size: 1.1rem;
  color: #3b3b3b;
}

.receipt-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin: 14px 0;
}

.card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 16px 18px;
}

.card h2{
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card-accent{
  border-left: 6px solid var(--brand-color);
}

.card-wide{
  margin-top: 14px;
}

.card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pill{
  background: rgba(42,79,106,0.12);
  border: 1px solid rgba(42,79,106,0.25);
  color: #1d3c52;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.dl-clean{
  display: grid;
  gap: 8px;
  margin: 0;
}

.dl-clean > div{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: baseline;
}

.dl-clean dt{
  font-weight: 700;
  color: #2a2a2a;
}

.dl-clean dd{
  margin: 0;
  color: #2a2a2a;
}

.note-box{
  margin-top: 14px;
  background: rgba(0,0,0,0.03);
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 12px;
  padding: 12px 12px;
}

.note-title{
  font-weight: 800;
  margin-bottom: 6px;
}

.note-text{
  line-height: 1.45;
}

.pay-lead{
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.pay-muted{
  color: #3b3b3b;
  margin: 0;
}

/* tabel */
.table-wrap{
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* order-table */
.order-table{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 620px;
}

.order-table thead th{
  background: #f6f7f8;
  font-weight: 800;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.order-table tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.order-table tbody tr:nth-child(even){
  background: rgba(0,0,0,0.02);
}

.col-center{ text-align: center; }
.col-right{ text-align: center; }
.col-book{ font-weight: 600; }

/* totals */
.totals-box{
  margin-top: 12px;
  margin-left: auto;
  max-width: 360px;
  background: rgba(42,79,106,0.06);
  border: 1px solid rgba(42,79,106,0.18);
  border-radius: 12px;
  padding: 10px 12px;
}

.totals-row{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 2px;
}

.totals-strong{
  font-weight: 900;
  border-top: 1px solid rgba(42,79,106,0.18);
  margin-top: 6px;
  padding-top: 10px;
}

/* actions */
.actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* mobil */
@media (max-width: 860px){
  .receipt-grid{
    grid-template-columns: 1fr;
  }
  .dl-clean > div{
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .totals-box{
    max-width: none;
  }
}

/* =========================================================
   MOBIL FIX (tving layout korrekt uden at ændre desktop)
   Læg nederst i style.css
========================================================= */
@media (max-width: 768px){

  /* 1) NAV: undgå overflow og skæv header */
  nav{
    padding: 16px 12px;
  }
  nav ul{
    flex-wrap: wrap;
    gap: 10px;
  }
  nav ul li:first-child{
    flex: 1 1 100%;
    margin-right: 0;
  }
  nav ul li .brand{
    display: block;
    font-size: 1.25rem;
    line-height: 1.1;
  }
  nav ul li a{
    font-size: 1.05rem;
    padding: 8px 10px;
    white-space: nowrap;
  }

  /* 2) BOG-GRIDS: tving 1 kolonne på mobil uanset centrale.css/oevrige.css */
  body .book-container{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 12px !important;
    margin: 24px auto !important;
  }

  /* 3) BOG-KORT: fjern “høj tom søjle” og gør indhold kompakt */
  body .book-card{
    min-height: 0 !important;     /* din min-height:380px i style.css giver kæmpe tom luft */
    padding: 16px !important;
  }

  /* Hvis kortet bruger float-layout (style.css): gør det til stabil mobil-layout */
  body .book-card .book-image{
    float: none !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    display: flex;
    justify-content: center;
  }
  body .book-card .book-image img{
    width: 72% !important;
    max-width: 260px !important;
    height: auto !important;
  }

  body .book-card .book-info{
    overflow: visible !important;
    gap: 10px;
  }

  /* CTA-knapper: pænt og uden at sprænge bredden */
  body .book-card .book-info .cta-group{
    flex-wrap: wrap;
    justify-content: center;
  }
  body .cta-group .cta-button{
    flex: 1 1 auto;
    text-align: center;
  }

  /* 4) Forside HERO: sikker stacking og billedskalering */
  body.home .book-presentation{
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  body.home .book-image img{
    width: min(92vw, 340px);
  }
  body.home .book-description{
    max-width: 92vw;
    text-align: center;
  }
}

/* --- Sprogskifter i topmenu (diskret) --- */
.lang-menu-item{
  position: relative;
}

.lang-trigger{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  line-height: 1;
}

.lang-trigger:hover{
  background: rgba(255,255,255,0.10);
  text-decoration: none;
}

.lang-globe{
  font-size: 1.05rem;
}

.lang-badge{
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  opacity: 0.95;
}

/* Dropdown */
.lang-dropdown{
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(20, 30, 40, 0.98);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  z-index: 999;
}

.lang-dropdown a{
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
}

.lang-dropdown a:hover{
  background: rgba(255,255,255,0.10);
  text-decoration: none;
}

/* Vis dropdown ved hover (desktop) */
@media (min-width: 769px){
  .lang-menu-item:hover .lang-dropdown{
    display: block;
  }
}

/* Mobil: dropdown via klik (fallback: vis ved fokus) */
.lang-menu-item:focus-within .lang-dropdown{
  display: block;
}

/* Gør den ekstra diskret på meget smalle skærme */
@media (max-width: 420px){
  .lang-badge{ display:none; }   /* viser kun globen */
  .lang-trigger{ padding: 6px 8px; }
}

/* =========================
   Sprogskifter: diskret globe + dropdown
========================= */
.lang-menu-item{
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 6px; /* lille luft fra sidste menupunkt */
}

/* Kun globe + badge synligt */
.lang-trigger{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  line-height: 1;
  font-size: 0.95rem;           /* mindre */
  color: #fff;
  text-decoration: none;
}

.lang-trigger:hover{
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

/* Globe lidt mindre */
.lang-globe{
  font-size: 0.95rem;           /* mindre end før */
  opacity: 0.95;
}

/* Badge (DK/EN/DE/FR) småt og pænt */
.lang-badge{
  font-size: 0.78rem;           /* mindre */
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
}

/* Dropdown skjult som standard */
.lang-dropdown{
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: rgba(26, 40, 56, 0.98);   /* matcher nav mørk tone */
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  padding: 8px;
  z-index: 2000;
}

/* Vis dropdown ved hover eller keyboard focus */
.lang-menu-item:hover .lang-dropdown,
.lang-menu-item:focus-within .lang-dropdown{
  display: block;
}

/* Dropdown links */
.lang-dropdown a{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.92rem;           /* mindre tekst */
  text-decoration: none;
  white-space: nowrap;
}

.lang-dropdown a:hover{
  background: rgba(255,255,255,0.10);
  text-decoration: none;
}

/* Mobil: dropdown stadig ok (trykkes) */
@media (max-width: 768px){
  .lang-trigger{
    padding: 6px 7px;
  }
  .lang-dropdown{
    min-width: 150px;
  }
}

.lang-only{
  display: block;
  padding: 8px 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  cursor: default;
}
