/* ============================================================
   USYNLIG FJENDE - Stylesheet
   Mørk tema med orange/rød palette
   ============================================================ */

:root {
  --orange:     #E8621A;
  --red:        #C0392B;
  --orange-lt:  #F5832E;
  --dark-bg:    #0D0D0D;
  --dark-card:  #161616;
  --dark-border:#2A2A2A;
  --text-main:  #E8E0D5;
  --text-muted: #8A8078;
  --text-light: #F5F0EA;
  --white:      #FFFFFF;
  --font-head:  'Oswald', sans-serif;
  --font-body:  'Source Serif 4', serif;
  --font-ui:    'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-lt); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,13,13,.95);
  border-bottom: 1px solid var(--dark-border);
  backdrop-filter: blur(8px);
  transition: background .3s;
}
.navbar.scrolled { background: rgba(13,13,13,1); }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--font-head); color: var(--white); letter-spacing: .1em;
}
.nav-logo .logo-top { font-size: .65rem; color: var(--orange); letter-spacing: .25em; }
.nav-logo .logo-bottom { font-size: 1.3rem; font-weight: 700; }
.nav-menu {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-link {
  font-family: var(--font-ui); font-size: .85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-muted); transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active { border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.nav-lang { display: flex; align-items: center; gap: .4rem; font-family: var(--font-ui); font-size: .8rem; }
.lang-btn { color: var(--text-muted); }
.lang-btn.active { color: var(--orange); font-weight: 700; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: .3s; }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 68px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0D0D0D 0%, #1a0800 50%, #0D0D0D 100%);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(232,98,26,.12) 0%, transparent 60%);
}
.hero-grid {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem 6rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-label {
  font-family: var(--font-ui); font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .3em;
  color: var(--orange); margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700; line-height: 1; text-transform: uppercase;
  color: var(--white);
}
.hero-title .accent { color: var(--orange); }
.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1.15rem; line-height: 1.7;
  color: var(--text-main); max-width: 480px;
}
.hero-authors {
  margin-top: 1.5rem;
  font-family: var(--font-ui); font-size: .85rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .1em;
}
.hero-cta { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image-deco {
  display: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: .85rem 2rem;
  font-family: var(--font-ui); font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  border-radius: 2px; cursor: pointer; border: none;
  transition: all .2s;
}
.btn-primary {
  background: var(--orange); color: var(--white);
}
.btn-primary:hover { background: var(--orange-lt); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(232,98,26,.35); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--dark-card); }

.section-label {
  font-family: var(--font-ui); font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .35em; color: var(--orange);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; text-transform: uppercase; color: var(--white);
  line-height: 1.1; margin-bottom: 1.5rem;
}
.section-lead {
  font-size: 1.1rem; color: var(--text-main); max-width: 640px;
  line-height: 1.8;
}

.divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  margin: 1.5rem 0;
}

/* ---- Om bogen strip ---- */
.book-strip {
  background: linear-gradient(90deg, rgba(232,98,26,.08), rgba(192,57,43,.08));
  border-top: 1px solid rgba(232,98,26,.2);
  border-bottom: 1px solid rgba(232,98,26,.2);
  padding: 3rem 0;
}
.book-strip-grid {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 3rem; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
}
.book-stat { text-align: center; }
.book-stat-num {
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 700;
  color: var(--orange);
}
.book-stat-label {
  font-family: var(--font-ui); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .15em; color: var(--text-muted);
}

/* ---- Kapitel-kort ---- */
.chapters-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; background: var(--dark-border);
  border: 1px solid var(--dark-border);
}
.chapter-card {
  background: var(--dark-card); padding: 1.75rem;
  transition: background .2s;
}
.chapter-card:hover { background: #1e1e1e; }
.chapter-num {
  font-family: var(--font-head); font-size: .75rem; font-weight: 600;
  color: var(--orange); letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: .5rem;
}
.chapter-title {
  font-family: var(--font-head); font-size: 1.05rem; color: var(--white);
  font-weight: 600;
}

/* ---- Forfattere ---- */
.authors-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.author-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 4px; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.author-card:hover { border-color: rgba(232,98,26,.4); transform: translateY(-3px); }
.author-img { height: 260px; object-fit: cover; object-position: top; width: 100%; border-radius: 4px; }
.author-body { padding: 1.75rem; }
.author-name {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  color: var(--white); text-transform: uppercase;
}
.author-role {
  font-family: var(--font-ui); font-size: .8rem; color: var(--orange);
  text-transform: uppercase; letter-spacing: .15em; margin: .4rem 0 1rem;
}
.author-bio { color: var(--text-main); font-size: .95rem; line-height: 1.7; }

/* ---- Arrangementer ---- */
.event-list { display: flex; flex-direction: column; gap: 1rem; }
.event-card {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 1.5rem; align-items: center;
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-left: 3px solid var(--orange);
  padding: 1.5rem; border-radius: 2px;
  transition: border-color .2s, background .2s;
}
.event-card:hover { background: #1a1a1a; border-left-color: var(--orange-lt); }
.event-date-box { text-align: center; }
.event-day {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700;
  color: var(--orange); line-height: 1;
}
.event-month {
  font-family: var(--font-ui); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .15em; color: var(--text-muted);
}
.event-title {
  font-family: var(--font-head); font-size: 1.15rem; color: var(--white);
  font-weight: 600;
}
.event-meta {
  font-family: var(--font-ui); font-size: .8rem; color: var(--text-muted);
  margin-top: .3rem;
}
.event-meta span + span::before { content: ' · '; }
.badge {
  display: inline-block; padding: .25rem .75rem;
  font-family: var(--font-ui); font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; border-radius: 2px;
}
.badge-green { background: rgba(39,174,96,.15); color: #2ecc71; }
.badge-red { background: rgba(192,57,43,.2); color: #e74c3c; }
.badge-grey { background: rgba(255,255,255,.07); color: var(--text-muted); }

/* ---- Booking formular ---- */
.booking-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
}
.form-card {
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: 4px; padding: 2.5rem;
}
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}
.form-label {
  display: block; font-family: var(--font-ui); font-size: .8rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); margin-bottom: .5rem;
  min-height: 1.2rem; /* Ensartet label-højde */
}
.form-control {
  width: 100%; padding: .75rem 1rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--dark-border);
  border-radius: 2px; color: var(--text-light);
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none; border-color: var(--orange);
  background: rgba(232,98,26,.05);
}
.form-control::placeholder { color: rgba(255,255,255,.2); }
select.form-control {
  cursor: pointer;
  height: 3rem;
  background: #1e1e1e;     /* Solid mørk baggrund så tekst kan ses */
  color: var(--text-light);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
select.form-control option {
  background: #1e1e1e;
  color: var(--text-light);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: end; /* Inputs justeres til bunden — starter på samme linje */
}

/* Tidsslots */
.slots-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem; margin-top: .5rem;
}
.slot-btn {
  padding: .6rem 1rem; background: rgba(255,255,255,.05);
  border: 1px solid var(--dark-border); border-radius: 2px;
  color: var(--text-main); font-family: var(--font-ui); font-size: .85rem;
  cursor: pointer; transition: all .2s; text-align: center;
}
.slot-btn:hover, .slot-btn.selected {
  background: rgba(232,98,26,.15); border-color: var(--orange); color: var(--white);
}
.slot-btn.optaget {
  opacity: .35; cursor: not-allowed;
  text-decoration: line-through;
}

/* ---- Citat ---- */
.quote-block {
  border-left: 3px solid var(--orange); padding: 1.5rem 2rem;
  background: rgba(232,98,26,.05);
  font-size: 1.15rem; font-style: italic; color: var(--text-light);
  line-height: 1.8;
}
.quote-source {
  margin-top: .75rem; font-family: var(--font-ui); font-size: .8rem;
  font-style: normal; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .1em;
}

/* ---- Presse ---- */
.press-item {
  padding: 2rem; background: var(--dark-card);
  border: 1px solid var(--dark-border); border-radius: 4px;
}
.press-source {
  font-family: var(--font-ui); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em; color: var(--orange);
  margin-bottom: .75rem;
}
.press-quote { font-style: italic; color: var(--text-main); line-height: 1.7; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ---- Notice/alert ---- */
.alert {
  padding: 1rem 1.5rem; border-radius: 2px; margin-bottom: 1.5rem;
  font-family: var(--font-ui); font-size: .9rem;
}
.alert-success { background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.3); color: #2ecc71; }
.alert-error { background: rgba(192,57,43,.1); border: 1px solid rgba(192,57,43,.3); color: #e74c3c; }

/* ---- Footer ---- */
.footer {
  background: #080808; border-top: 1px solid var(--dark-border);
  padding: 4rem 0 0;
}
.footer-container {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 3rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-logo {
  display: flex; flex-direction: column;
  font-family: var(--font-head); font-weight: 700; line-height: 1;
  color: var(--white); font-size: 1.5rem; margin-bottom: 1rem;
}
.footer-logo span:first-child { font-size: .7rem; color: var(--orange); letter-spacing: .3em; }
.footer-tagline { color: var(--text-muted); font-size: .9rem; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-ui); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em; color: var(--orange);
  margin-bottom: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links li + li { margin-top: .5rem; }
.footer-links a { color: var(--text-muted); font-size: .9rem; font-family: var(--font-ui); }
.footer-links a:hover { color: var(--white); }
.footer-contact p { color: var(--text-muted); font-size: .9rem; font-family: var(--font-ui); margin-bottom: 1rem; }
.footer-cta {
  display: inline-block; padding: .6rem 1.25rem;
  background: var(--orange); color: var(--white);
  font-family: var(--font-ui); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; border-radius: 2px;
  transition: background .2s; margin-bottom: 1.25rem;
}
.footer-cta:hover { background: var(--orange-lt); color: var(--white); }
.footer-partner { color: var(--text-muted); font-size: .8rem !important; }
.footer-bottom {
  border-top: 1px solid var(--dark-border); padding: 1.25rem 1.5rem;
  text-align: center; font-family: var(--font-ui); font-size: .8rem;
  color: var(--text-muted); max-width: 100%;
}

/* ---- Admin ---- */
.admin-body { background: #0a0a0a; }
.admin-nav {
  background: #111; border-bottom: 1px solid #222;
  padding: 0 1.5rem; height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-nav-title { font-family: var(--font-head); font-size: 1rem; color: var(--orange); text-transform: uppercase; letter-spacing: .15em; }
.admin-nav a { color: var(--text-muted); font-family: var(--font-ui); font-size: .85rem; }
.admin-nav a:hover { color: var(--white); }
.admin-container { max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }
.admin-card { background: #111; border: 1px solid #222; border-radius: 4px; padding: 1.75rem; margin-bottom: 1.5rem; }
.admin-card h2 { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); text-transform: uppercase; margin-bottom: 1.25rem; border-bottom: 1px solid #222; padding-bottom: .75rem; }
.admin-table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: .85rem; }
.admin-table th { text-align: left; padding: .6rem 1rem; background: #161616; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.admin-table td { padding: .75rem 1rem; border-bottom: 1px solid #1a1a1a; color: var(--text-main); }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-box { background: #111; border: 1px solid #222; border-radius: 4px; padding: 1.25rem; text-align: center; }
.stat-box-num { font-family: var(--font-head); font-size: 2rem; color: var(--orange); }
.stat-box-label { font-family: var(--font-ui); font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-top: .25rem; }
.admin-tabs { display: flex; gap: 0; border-bottom: 1px solid #222; margin-bottom: 2rem; }
.admin-tab { padding: .75rem 1.5rem; font-family: var(--font-ui); font-size: .85rem; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; transition: .2s; text-decoration: none; }
.admin-tab.active, .admin-tab:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image-wrap { order: -1; max-width: 480px; margin: 0 auto; }
  .booking-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .event-card { grid-template-columns: 60px 1fr; }
  .event-card .badge { display: none; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .book-strip-grid { grid-template-columns: 1fr; text-align: center; }
}

/* ---- Hero: bogcover flyder over forfatterbillede ---- */
.hero-image-wrap {
  position: relative;
}
.hero-author-img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
  display: block;
  /* Begrænset højde så det ikke fylder for meget */
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}
.hero-book-cover {
  position: absolute;
  bottom: -20px;
  left: -30px;
  width: 28%;
  max-width: 140px;
  border-radius: 3px;
  box-shadow: 0 20px 50px rgba(0,0,0,.75);
  transform: rotate(-3deg);
  transition: transform .3s, box-shadow .3s;
  z-index: 10;
}
.hero-book-cover:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 30px 70px rgba(0,0,0,.8);
}

/* ---- Global billedoptimering ---- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Forfatterbilleder: ensartet størrelse og proportioner */
.author-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
}

/* Forfattersiden: større portræt */
.author-portrait {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
}

/* Bogcover: browser-standard smooth scaling */
img[src*="bog_cover"],
.hero-book-cover {
  image-rendering: auto;
}

/* Foredrag-side: begræns højde på billede */
.lecture-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 4px;
}

/* Responsive: bogcover i hero — kun tablet (700px er nu full-bleed) */
@media (max-width: 700px) {
  .hero-author-img {
    /* Overstyrres af full-bleed CSS nedenfor */
  }
  .author-img {
    height: 240px;
  }
}

/* ---- Featured presse-citat ---- */
.press-featured {
  background: linear-gradient(135deg, rgba(232,98,26,.08), rgba(192,57,43,.05));
  border: 1px solid rgba(232,98,26,.2);
  border-radius: 4px;
  padding: 2.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.press-featured::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 10rem;
  color: rgba(232,98,26,.07);
  font-family: var(--font-head);
  line-height: 1;
  pointer-events: none;
}
.press-stars {
  color: var(--orange);
  font-size: 1.3rem;
  letter-spacing: .2em;
  margin-bottom: 1rem;
}
.press-featured-quote {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto .75rem;
}
.press-featured-source {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--orange);
}

/* ---- Foredrag billeder (1, 2 eller 3) ---- */
.foredrag-billeder {
  display: grid;
  gap: .75rem;
  align-items: start;
}

/* 1 billede: fuld naturlig højde — ingen max-height */
.foredrag-billeder-1 {
  grid-template-columns: 1fr;
}
.foredrag-billeder-1 .foredrag-img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid rgba(232,98,26,.2);
}

/* 2 billeder: side om side, samme højde */
.foredrag-billeder-2 {
  grid-template-columns: 1fr 1fr;
}
.foredrag-billeder-2 .foredrag-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  border: 1px solid rgba(232,98,26,.2);
}

/* 3 billeder: alle tre i samme størrelse side om side */
.foredrag-billeder-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.foredrag-billeder-3 .foredrag-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  border: 1px solid rgba(232,98,26,.2);
}
/* Ophæv den gamle first-child grid-column regel */
.foredrag-billeder-3 picture:first-child,
.foredrag-billeder-3 img:first-child {
  grid-column: auto;
}

/* Alle picture-wrappers i 3-billede layout fylder én kolonne */
.foredrag-billeder-3 picture {
  grid-column: auto;
}

@media (max-width: 700px) {
  .foredrag-billeder-2,
  .foredrag-billeder-3 { grid-template-columns: 1fr; }
  .foredrag-billeder-2 .foredrag-img { height: 260px; }
  .foredrag-billeder-3 .foredrag-img { height: 220px; }
}

/* ---- Køb bogen cards ---- */
.buy-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: border-color .2s, transform .2s;
}
.buy-card:hover {
  border-color: rgba(232,98,26,.35);
  transform: translateY(-3px);
}
.buy-card-icon {
  font-size: 2rem;
  line-height: 1;
}
.buy-card-type {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--orange);
}
.buy-card-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin: 0;
}
.buy-card-desc {
  font-family: var(--font-ui);
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}
.buy-btn {
  display: block;
  text-align: center;
  margin-top: .5rem;
  font-size: .85rem;
  padding: .75rem 1.25rem;
}
.buy-platform-btn {
  display: block;
  text-align: center;
  padding: .6rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--dark-border);
  border-radius: 2px;
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 500;
  transition: all .2s;
}
.buy-platform-btn:hover {
  background: rgba(232,98,26,.1);
  border-color: rgba(232,98,26,.4);
  color: var(--white);
}

/* ---- Platform cards (Få bogen) ---- */
.platform-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.platform-card:hover {
  border-color: rgba(232,98,26,.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  color: inherit;
}
.platform-logo {
  height: 56px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}
.platform-types {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.platform-arrow {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: auto;
  transition: color .2s;
}
.platform-card:hover .platform-arrow {
  color: var(--orange);
}

/* Type badges */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.type-physical {
  background: rgba(255,255,255,.07);
  color: #ccc;
  border: 1px solid rgba(255,255,255,.1);
}
.type-ebook {
  background: rgba(100,160,255,.1);
  color: #7ab4ff;
  border: 1px solid rgba(100,160,255,.2);
}
.type-audio {
  background: rgba(29,185,84,.1);
  color: #1DB954;
  border: 1px solid rgba(29,185,84,.2);
}

/* ---- Bogen-side platform rows ---- */
.bogen-platform-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--white);
  transition: border-color .2s, background .2s;
}
.bogen-platform-row:hover {
  border-color: rgba(232,98,26,.4);
  background: rgba(232,98,26,.04);
  color: var(--white);
}
.bogen-platform-logo {
  width: 90px;
  height: 40px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  text-align: center;
  line-height: 1.2;
  padding: 0 .5rem;
}
.bogen-platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  flex: 1;
}
.bogen-platform-cta {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: color .2s;
}
.bogen-platform-row:hover .bogen-platform-cta {
  color: var(--orange);
}

/* ---- "Få bogen" navbar knap ---- */
.nav-emergency-item {
  margin-left: .25rem;
}
.nav-emergency-btn {
  display: inline-block;
  padding: .45rem .9rem;
  background: transparent;
  color: #C0392B !important;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 2px;
  border: 1px solid rgba(192,57,43,.4);
  transition: background .2s, border-color .2s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-emergency-btn:hover {
  background: rgba(192,57,43,.1);
  border-color: rgba(192,57,43,.7);
  color: #e74c3c !important;
}

.nav-buy-item {
  margin-left: .5rem;
}
.nav-buy-btn {
  display: inline-block;
  padding: .45rem 1.1rem;
  background: var(--orange);
  color: var(--white) !important;
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 2px;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.nav-buy-btn:hover {
  background: var(--orange-lt);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Mobil: fuld bredde i åben menu */
@media (max-width: 700px) {
  .nav-emergency-item {
    margin-left: 0;
    padding: .75rem 0;
    border-bottom: 1px solid #1a1a1a;
  }
  .nav-emergency-btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: .75rem;
  }
  .nav-buy-item {
    margin-left: 0;
    padding: .75rem 0;
    border-bottom: 1px solid #1a1a1a;
  }
  .nav-buy-btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: .75rem;
  }
}

/* ---- Coming Soon ---- */
.coming-soon-wrap {
  position: relative;
  pointer-events: none;
  user-select: none;
}
.coming-soon-wrap > *:not(.coming-soon-badge) {
  opacity: .35;
  filter: grayscale(.4);
}
.coming-soon-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  opacity: 1 !important;
  filter: none !important;
}
.coming-soon-badge span {
  background: rgba(13,13,13,.95);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: .5rem 1.25rem;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
/* Inline variant — ikke overlay, bare et badge */
.cs-tag {
  display: inline-block;
  padding: .2rem .7rem;
  background: rgba(13,13,13,.9);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 2px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ============================================================
   MOBILOPTIMERING — komplet gennemgang
   ============================================================ */

/* Sikr at navbar altid ligger over ALT andet */
.navbar { z-index: 2000; }

/* Hero: billedet må ikke ligge over navbaren */
.hero-image-wrap { z-index: 1; }
.hero { z-index: 0; }

@media (max-width: 900px) {
  /* Hero: reducer padding og juster billedhøjde */
  .hero-grid { padding: 3rem 1.5rem 4rem; }
  .hero-author-img { max-height: 460px; }
  .hero-title { font-size: clamp(2.5rem, 8vw, 4rem); }
  .hero-subtitle { font-size: 1rem; }

  /* Book strip: et punkt pr. linje */
  .book-strip-grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }

  /* Forfattere: 2 kolonner */
  .authors-grid { grid-template-columns: repeat(2, 1fr); }

  /* Platform cards: 2 kolonner */
  .platform-card { padding: 1.25rem; }

  /* Foredrag sektioner: stablet */
  .foredrag-billeder-2 { grid-template-columns: 1fr; }
  .foredrag-billeder-2 .foredrag-img { height: 280px; }
  .foredrag-billeder-3 { grid-template-columns: 1fr 1fr; }

  /* Firma-pakke */
  section .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 700px) {
  /* Navbar: større touch-targets */
  .nav-toggle { padding: 8px; }
  .nav-toggle span { width: 28px; height: 2px; }
  /* Nav-menu: skjult på mobil via transform (iOS-kompatibelt) */
  .nav-menu {
    display: flex !important; /* Altid flex så iOS ikke har problemer */
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 68px; left: 0; right: 0;
    height: calc(100vh - 68px);
    background: rgba(13,13,13,.98);
    padding: 1.5rem 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1999;
    /* Skjul ved at flytte ud af skærm */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
  }
  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-menu li { padding: .875rem 0; border-bottom: 1px solid #1a1a1a; }
  .nav-link { font-size: .95rem; }
  .nav-buy-btn { font-size: .85rem; padding: .65rem 1rem; }

  /* Logo */
  .nav-logo .logo-bottom { font-size: 1.1rem; }

  /* Hero: håndteres af full-bleed CSS */
  .hero-label { font-size: .65rem; }
  .hero-cta { gap: .75rem; }

  /* Sections */
  .section { padding: 3rem 0; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-lead { font-size: .95rem; }

  /* Forfattere: 1 kolonne */
  .authors-grid { grid-template-columns: 1fr; }
  .author-img { height: 240px; }

  /* Events */
  .event-card { gap: 1rem; padding: 1rem; }
  .event-day { font-size: 1.5rem; }

  /* Platform cards: 1 kolonne */
  .platform-card { padding: 1rem; }

  /* Formularer */
  .form-card { padding: 1.25rem; }
  .booking-grid { gap: 2rem; }

  /* Press grid: 1 kolonne */
  .press-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-container { gap: 1.5rem; }
  .footer { padding: 2.5rem 0 0; }

  /* Alle 2-kolonne grids → 1 kolonne på mobil */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Admin */
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-table { font-size: .8rem; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 2rem; }
  .btn { font-size: .8rem; padding: .7rem 1rem; }
  .nav-buy-item { display: none; } /* Skjul "Få bogen" på meget smalle skærme — emergency-linket forbliver synligt */
}

/* ---- Formular: inputfelter på linje i form-row ---- */
/* form-group strækker sig til fuld højde af cellen */
.form-row .form-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Input skubbes til bunden = på linje */
}
.form-row .form-label {
  line-height: 1.3;
  margin-bottom: .5rem;
}
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; align-items: start; }
  .form-row .form-group { justify-content: flex-start; }
}

/* ---- Announcement bar ---- */
.announce-bar {
  position: fixed;
  top: 68px; /* Under navbar */
  left: 0; right: 0;
  z-index: 1500;
  background: linear-gradient(90deg, #b84a0e 0%, var(--orange) 50%, #b84a0e 100%);
  background-size: 200% 100%;
  animation: announce-shimmer 4s ease-in-out infinite;
  padding: .55rem 1rem;
}
@keyframes announce-shimmer {
  0%   { background-position: 100% 0; }
  50%  { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}
.announce-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.announce-new {
  background: rgba(255,255,255,.25);
  color: #fff;
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 2px;
  flex-shrink: 0;
}
.announce-text {
  font-family: var(--font-ui);
  font-size: .85rem;
  color: #fff;
  line-height: 1.4;
  text-align: center;
}
.announce-text strong {
  font-weight: 700;
}
.announce-links {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.announce-btn {
  display: inline-block;
  background: #fff;
  color: var(--orange);
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .35rem .9rem;
  border-radius: 2px;
  white-space: nowrap;
  transition: background .2s, transform .1s;
}
.announce-btn:hover {
  background: #ffeee5;
  color: var(--orange);
  transform: translateY(-1px);
}
.announce-link {
  color: rgba(255,255,255,.9);
  font-family: var(--font-ui);
  font-size: .8rem;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announce-link:hover { color: #fff; }
.announce-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 .25rem;
  line-height: 1;
  margin-left: auto;
  flex-shrink: 0;
  transition: color .2s;
}
.announce-close:hover { color: #fff; }

/* Skub sidens indhold ned så announce-bar ikke dækker hero */
body:has(#announceBar[style=""]) .hero,
body:has(#announceBar:not([style])) .hero {
  padding-top: calc(68px + 2.5rem);
}
/* Fallback for browsere uden :has() */
.hero { padding-top: calc(68px + 2.5rem); }

@media (max-width: 700px) {
  .announce-bar { padding: .5rem .75rem; }
  .announce-text { font-size: .78rem; }
  .announce-new { display: none; }
  .announce-links { gap: .5rem; }
  .announce-btn { font-size: .7rem; padding: .3rem .7rem; }
  .announce-link { font-size: .72rem; }
}

/* ============================================================
   GRID KLASSER — erstatter inline styles, mobilvenlige
   ============================================================ */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-2col-start { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.grid-1-3 { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.grid-3-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: start; }
.grid-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

@media (max-width: 700px) {
  /* Alle tovejs-grids → én kolonne */
  .grid-2col,
  .grid-2col-start,
  .grid-1-2,
  .grid-1-3,
  .grid-3-1,
  .grid-3col { 
    grid-template-columns: 1fr !important; 
    gap: 2rem !important;
  }
  .grid-stats { grid-template-columns: 1fr 1fr; gap: .75rem; }

  /* Inline grids i PHP-filer — overstyres her */
  [style*="grid-template-columns:1fr 1.6fr"],
  [style*="grid-template-columns:1fr 2fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.6fr"],
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Forfattere: billeder fylder ikke fuld bredde */
  .author-portrait { max-height: 320px; }

  /* Bogen-siden info-boks: 1 kolonne */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:1rem"],
  [style*="grid-template-columns: 1fr 1fr"][style*="gap: 1rem"] {
    grid-template-columns: 1fr 1fr !important; /* Behold 2-kol til small stat-bokse */
  }

  /* Platform cards: 2 kolonner i stedet for auto-fit */
  .platform-card { font-size: .9rem; }

  /* Foredrag: info-boks indhold */
  .foredrag-billeder-3 { grid-template-columns: 1fr !important; }

  /* Corp stats: 1 kolonne */
  .corp-stat-box { padding: 1.25rem; }
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Booking grid */
  .booking-grid { grid-template-columns: 1fr !important; gap: 2rem; }

  /* Foredrag-sider: billeder + tekst */
  .foredrag-billeder-2 { grid-template-columns: 1fr !important; }
  .foredrag-billeder-2 .foredrag-img { height: 240px; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr !important; gap: 1.5rem; }

  /* Generel tekst på mobil */
  .section-lead { font-size: .95rem; line-height: 1.7; }
  .section-title { line-height: 1.15; }

  /* Fjern stor padding på sektioner */
  .section { padding: 2.5rem 0; }
  .container { padding: 0 1.25rem; }

  /* Event cards */
  .event-card { gap: .75rem; padding: 1rem; }

  /* Press grid */
  .press-grid { grid-template-columns: 1fr !important; }

  /* Authors */
  .authors-grid { grid-template-columns: 1fr !important; }

  /* Announcement bar: wrap tekst */
  .announce-text { font-size: .78rem; }
  .announce-inner { gap: .5rem; }

  /* Form card padding */
  .form-card { padding: 1.25rem; }

  /* Chapters grid */
  .chapters-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  /* Meget smalle skærme */
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.4rem; }
  .btn { font-size: .8rem; padding: .7rem 1rem; }
  .platform-card { padding: .875rem; }
  .corp-pkg-card { padding: 1.25rem; }
  
  /* Platform grid: 1 kolonne */
  [style*="minmax(220px,1fr)"],
  [style*="minmax(230px,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Nav */
  .nav-logo .logo-bottom { font-size: 1rem; }
}

/* ============================================================
   HERO MOBIL — full-bleed cinematic layout
   ============================================================ */
@media (max-width: 700px) {

  /* Hero: fylder hele viewport-højden */
  .hero {
    min-height: 100svh; /* svh = safe viewport height, iOS-kompatibel */
    padding-top: 0 !important;
    position: relative;
    overflow: hidden;
  }

  /* Grid: stablet, intet gap */
  .hero-grid {
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    gap: 0 !important;
    min-height: 100svh;
    position: relative;
  }

  /* Billede: fylder hele baggrunden — override 900px regel */
  .hero-image-wrap {
    position: absolute !important;
    inset: 0 !important;
    max-width: none !important;
    width: 100vw !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    order: 0 !important;
    z-index: 0;
  }

  /* picture-element skal også fylde */
  .hero-image-wrap picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-author-img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100svh !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
  }

  /* Mørk gradient overlay så teksten er læsbar */
  .hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(13,13,13,.35) 0%,
      rgba(13,13,13,.15) 30%,
      rgba(13,13,13,.6) 60%,
      rgba(13,13,13,.95) 100%
    );
    z-index: 1;
  }

  /* Tekst: placeres i bunden over billedet */
  .hero-content {
    position: relative;
    z-index: 2;
    margin-top: auto; /* Skubbes ned */
    padding: 0 1.5rem calc(2.5rem + env(safe-area-inset-bottom));
    order: 1;
  }

  /* Bogcover: fast position over billedet øverst til højre */
  .hero-book-cover {
    position: absolute !important;
    top: calc(68px + 1rem + env(safe-area-inset-top));
    right: 1.25rem;
    bottom: auto !important;
    left: auto !important;
    width: 22vw !important;
    max-width: 110px !important;
    transform: rotate(-3deg) !important;
    z-index: 3;
  }

  /* Tekststørrelser */
  .hero-label { font-size: .7rem; margin-bottom: .6rem; }
  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3rem) !important;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,.5);
    margin-bottom: .75rem;
  }
  .hero-subtitle {
    font-size: .9rem !important;
    color: rgba(255,255,255,.9);
    line-height: 1.65;
    margin-bottom: .75rem;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
  }
  .hero-authors {
    font-size: .72rem;
    color: rgba(255,255,255,.65);
    margin-bottom: 1.25rem;
  }
  .hero-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
  }
  .hero-cta .btn {
    font-size: .85rem !important;
    padding: .8rem 1.4rem !important;
    backdrop-filter: blur(4px);
  }
  .hero-cta .btn-primary {
    background: var(--orange);
    box-shadow: 0 4px 20px rgba(232,98,26,.4);
  }
  .hero-cta .btn-outline {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.4);
    color: #fff;
    backdrop-filter: blur(8px);
  }

  /* Announcement bar: tilpas padding til notch */
  .announce-bar {
    top: 68px;
    padding-top: calc(.55rem + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 11vw, 2.6rem) !important; }
  .hero-book-cover {
    width: 20vw !important;
    max-width: 85px !important;
  }
}

/* ============================================================
   HERO MOBIL FINAL OVERRIDE — dette skal stå SIDST
   Overskriver alle tidligere regler
   ============================================================ */
@media screen and (max-width: 700px) {
  .hero {
    min-height: 100svh !important;
    min-height: 100vh !important; /* Fallback */
    padding-top: 0 !important;
    overflow: hidden !important;
  }
  .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important; /* Tekst til bunden */
    padding: 0 !important;
    gap: 0 !important;
    min-height: 100svh !important;
    min-height: 100vh !important;
    position: relative !important;
  }
  .hero-image-wrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    order: 0 !important;
    z-index: 0 !important;
  }
  .hero-image-wrap picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }
  .hero-author-img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
  }
  .hero-image-wrap::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: 0 !important;
    background: linear-gradient(
      to bottom,
      rgba(13,13,13,.3) 0%,
      rgba(13,13,13,.1) 25%,
      rgba(13,13,13,.55) 60%,
      rgba(13,13,13,.95) 100%
    ) !important;
    z-index: 1 !important;
  }
  .hero-content {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 0 !important;
    padding: 0 1.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)) !important;
    order: 1 !important;
    width: 100% !important;
  }
  .hero-book-cover {
    position: absolute !important;
    top: calc(80px + env(safe-area-inset-top, 0px)) !important;
    right: 1.25rem !important;
    bottom: auto !important;
    left: auto !important;
    width: 20vw !important;
    max-width: 100px !important;
    transform: rotate(-3deg) !important;
    z-index: 3 !important;
  }
  .hero-title {
    font-size: clamp(2rem, 10vw, 2.8rem) !important;
    color: #fff !important;
    text-shadow: 0 2px 16px rgba(0,0,0,.5) !important;
  }
  .hero-subtitle {
    font-size: .9rem !important;
    color: rgba(255,255,255,.9) !important;
    text-shadow: 0 1px 8px rgba(0,0,0,.4) !important;
  }
  .hero-authors {
    color: rgba(255,255,255,.65) !important;
    font-size: .72rem !important;
  }
  .hero-cta .btn-outline {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.35) !important;
    color: #fff !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }
  .hero-cta .btn-primary {
    box-shadow: 0 4px 20px rgba(232,98,26,.4) !important;
  }
}

/* ============================================================
   MOBIL HERO — komplet separat HTML-element, nul konflikter
   ============================================================ */

/* Desktop: skjul mobil-hero */
.hero-mobile { display: none; }

@media (max-width: 700px) {
  /* Skjul desktop-hero */
  .hero-desktop { display: none !important; }

  /* Vis mobil-hero — højde sættes af JS */
  .hero-mobile {
    display: block;
    position: relative;
    width: 100%;
    height: calc(100vh - 68px); /* JS overskriver dette med korrekt iOS-højde */
    overflow: hidden;
    margin-top: 68px;
  }

  /* Billedet fylder hele containeren */
  .hero-mobile-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }

  /* Mørkt gradient overlay */
  .hero-mobile-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
      to bottom,
      rgba(13,13,13,.2) 0%,
      rgba(13,13,13,.05) 25%,
      rgba(13,13,13,.5) 60%,
      rgba(13,13,13,.95) 100%
    );
    z-index: 1;
  }

  /* Bogcover øverst til højre */
  .hero-mobile-book {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 3;
    display: block;
    width: 18vw;
    max-width: 90px;
    transform: rotate(-3deg);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.6));
  }
  .hero-mobile-book img {
    width: 100%;
    display: block;
  }

  /* Tekst ALTID i bunden via position:absolute bottom:0 */
  .hero-mobile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
  }
  .hero-mobile-content .hero-label {
    font-size: .7rem;
    margin-bottom: .5rem;
  }
  .hero-mobile-content .hero-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,.5);
    margin-bottom: .6rem;
  }
  .hero-mobile-content .hero-subtitle {
    font-size: .875rem;
    color: rgba(255,255,255,.9);
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
    margin-bottom: .75rem;
  }
  .hero-mobile-content .hero-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
  }
  .hero-mobile-content .btn-outline {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.35);
    color: #fff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .hero-mobile-content .btn-primary {
    box-shadow: 0 4px 20px rgba(232,98,26,.45);
  }

  /* Announcement bar: reducer margin-top da hero-mobile har sin egen */
  .announce-bar { top: 68px; }

  /* Hero-desktop skal ikke påvirke layout */
  .hero-desktop { margin: 0; padding: 0; }
}

/* ============================================================
   DROPDOWN MENU
   ============================================================ */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  font-family: var(--font-ui); font-size: .85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-muted); transition: color .2s;
  background: none; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: .3rem;
}
.nav-dropdown-btn:hover,
.nav-dropdown.active .nav-dropdown-btn { color: var(--white); }
.nav-dropdown-btn .nav-arrow { font-size: .55rem; transition: transform .2s; opacity: .5; }
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.nav-dropdown-panel {
  display: none;
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
  background: transparent;
  z-index: 3000; min-width: 210px;
}
.nav-dropdown-panel::before {
  content: ''; display: block;
  position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.nav-dropdown-panel-inner {
  background: #0e0e0e; border: 1px solid #222;
  border-radius: 4px; padding: .5rem 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.open .nav-dropdown-panel { display: block; }
.nav-dropdown-panel a {
  display: block; padding: .6rem 1.25rem;
  font-family: var(--font-ui); font-size: .8rem;
  color: var(--text-muted); letter-spacing: .08em;
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav-dropdown-panel a:hover { color: var(--white); background: #161616; }
.nav-dropdown-panel a.active { color: var(--orange); }
.nav-dropdown-divider { border: none; border-top: 1px solid #1a1a1a; margin: .35rem 0; }
.nav-dropdown-label {
  display: block; padding: .3rem 1.25rem .1rem;
  font-family: var(--font-ui); font-size: .6rem;
  text-transform: uppercase; letter-spacing: .2em; color: #333;
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: flex !important; flex-direction: column; gap: 0;
    position: fixed; top: 68px; left: 0; right: 0;
    height: calc(100vh - 68px);
    background: rgba(13,13,13,.98);
    padding: 1.5rem 1rem; overflow-y: auto;
    z-index: 1999;
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s ease, visibility .25s ease;
    pointer-events: none;
  }
  .nav-menu.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .nav-menu li { padding: .875rem 0; border-bottom: 1px solid #1a1a1a; }
  .nav-link { font-size: .95rem; }
  .nav-buy-btn { font-size: .85rem; padding: .65rem 1rem; }
  .nav-dropdown-panel {
    display: none; position: static; transform: none;
    padding-top: 0; background: transparent; min-width: 0;
  }
  .nav-dropdown-panel::before { display: none; }
  .nav-dropdown-panel-inner {
    background: #111; border: none; border-radius: 0;
    padding: .25rem 0 .25rem 1rem; box-shadow: none;
  }
  .nav-dropdown.open .nav-dropdown-panel { display: block !important; }
  .nav-dropdown:hover .nav-dropdown-panel { display: none; }
  .nav-dropdown-btn { font-size: .95rem; width: 100%; justify-content: space-between; padding: 0; }
  .nav-dropdown-panel a { font-size: .88rem; padding: .5rem .75rem; }
  .nav-dropdown-label { display: none; }
}

/* ---- Markdown mini — til redaktionelle noter og analyse-bokse ---- */
.md-mini p { font-size:.88rem; color:var(--text-muted); line-height:1.75; margin:0 0 .6rem; }
.md-mini p:last-child { margin-bottom:0; }
.md-mini strong { color:var(--white); font-weight:600; }
.md-mini em { color:rgba(232,98,26,.9); font-style:italic; }
.md-mini h1,.md-mini h2,.md-mini h3,.md-mini h4 {
  font-family:var(--font-head); text-transform:uppercase;
  color:var(--white); margin:.75rem 0 .4rem; line-height:1.2;
}
.md-mini h2 { font-size:1rem; border-left:3px solid var(--orange); padding-left:.5rem; }
.md-mini h3 { font-size:.9rem; color:var(--orange); }
.md-mini ul,.md-mini ol { font-size:.85rem; color:var(--text-muted); margin:.4rem 0 .6rem; padding-left:1.2rem; }
.md-mini li { margin-bottom:.25rem; line-height:1.6; }
.md-mini ul li::marker { color:var(--orange); }
.md-mini blockquote {
  border-left:3px solid var(--orange); background:rgba(232,98,26,.05);
  padding:.5rem .75rem; margin:.5rem 0; font-style:italic; font-size:.85rem;
}
.md-mini blockquote p { color:var(--text-main); margin:0; }
.md-mini code {
  font-family:'Courier New',monospace; font-size:.82rem;
  background:rgba(255,255,255,.07); border:1px solid #2a2a2a;
  padding:0 3px; border-radius:2px; color:var(--orange);
}
.md-mini table { width:100%; border-collapse:collapse; font-size:.82rem; margin:.5rem 0; }
.md-mini thead { background:rgba(232,98,26,.15); }
.md-mini thead th { padding:.4rem .7rem; color:var(--orange); text-align:left; font-size:.75rem; text-transform:uppercase; }
.md-mini tbody td { padding:.35rem .7rem; border-bottom:1px solid #222; color:var(--text-muted); }

/* ---- Markdown fuld artikel (.md) ---- */
.md { color:var(--text-main); line-height:1.85; font-size:1rem; }
.md p { margin:0 0 1.25rem; }
.md p:last-child { margin-bottom:0; }
.md strong { color:var(--white); font-weight:700; }
.md em { color:rgba(232,98,26,.9); font-style:italic; }
.md h1,.md h2,.md h3,.md h4 {
  font-family:var(--font-head); text-transform:uppercase;
  color:var(--white); margin:2rem 0 .75rem; line-height:1.2; letter-spacing:.04em;
}
.md h1 { font-size:clamp(1.4rem,3vw,2rem); }
.md h2 {
  font-size:clamp(1.1rem,2vw,1.4rem);
  border-left:3px solid var(--orange); padding-left:.75rem;
  margin-left:-.75rem;
}
.md h3 { font-size:1.05rem; color:var(--orange); }
.md h4 { font-size:.9rem; color:#888; text-transform:uppercase; letter-spacing:.1em; }
.md ul,.md ol { margin:.5rem 0 1.25rem 1.5rem; padding:0; }
.md li { margin-bottom:.4rem; line-height:1.75; color:var(--text-main); }
.md ul li::marker { color:var(--orange); }
.md ol li::marker { color:var(--orange); font-weight:700; }
.md blockquote {
  border-left:3px solid var(--orange);
  background:linear-gradient(90deg,rgba(232,98,26,.06),transparent);
  padding:.85rem 1.25rem; margin:1.5rem 0;
  font-style:italic; border-radius:0 4px 4px 0;
}
.md blockquote p { color:var(--text-main); margin:0; font-size:.97rem; }
.md code {
  font-family:'Courier New',monospace; font-size:.85rem;
  background:rgba(255,255,255,.07); border:1px solid #2a2a2a;
  padding:1px 5px; border-radius:3px; color:var(--orange);
}
.md pre {
  background:#0a0a0a; border:1px solid #1e1e1e; border-radius:4px;
  padding:1.25rem; overflow-x:auto; margin:1.25rem 0;
}
.md pre code {
  background:none; border:none; padding:0;
  font-size:.85rem; color:#c9d1d9;
}
.md hr {
  border:none; border-top:1px solid #1e1e1e;
  margin:2rem 0;
}
.md a { color:var(--orange); text-decoration:underline; text-underline-offset:3px; }
.md a:hover { color:var(--orange-lt); }
.md table { width:100%; border-collapse:collapse; margin:1.25rem 0; font-size:.9rem; }
.md thead { background:rgba(232,98,26,.12); }
.md thead th { padding:.6rem .85rem; color:var(--orange); text-align:left; font-weight:700; font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; }
.md tbody td { padding:.55rem .85rem; border-bottom:1px solid #1e1e1e; color:var(--text-muted); vertical-align:top; }
.md tbody tr:last-child td { border-bottom:none; }
.md img { max-width:100%; border-radius:4px; border:1px solid var(--dark-border); margin:1rem 0; }
