/* ============================================================
   Horsens Borgerlige Skyttelaug — Design
   Farvepalette: Frisk grøn / hvid / varm guld
   ============================================================ */

:root {
  --groen-moerk:    #2d6a4f;
  --groen-mellem:   #40916c;
  --groen-lys:      #74c69d;
  --groen-baggrund: #f0faf4;
  --groen-kant:     #b7e4c7;
  --guld:           #c9972b;
  --guld-lys:       #f4d485;
  --tekst-moerk:    #1b2a25;
  --tekst-graa:     #5a7268;
  --hvid:           #ffffff;
  --skygge:         0 2px 12px rgba(45, 106, 79, 0.10);
  --skygge-hover:   0 4px 20px rgba(45, 106, 79, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--groen-baggrund);
  color: var(--tekst-moerk);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
}

/* ---- TOPBAR ---- */
.topbar {
  background: var(--groen-moerk);
  padding: 0.4rem 0;
  font-size: 0.78rem;
  color: var(--groen-lys);
  text-align: center;
  letter-spacing: 0.06em;
}

/* ---- HEADER ---- */
header {
  background: var(--hvid);
  border-bottom: 1px solid var(--groen-kant);
  box-shadow: var(--skygge);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logo {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.header-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.header-logo-tekst {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.header-logo .navn {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--groen-moerk);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.header-logo .tagline {
  font-size: 0.82rem;
  color: var(--tekst-graa);
  font-style: italic;
  letter-spacing: 0.02em;
}

.header-logo .aar {
  font-size: 0.72rem;
  color: var(--groen-lys);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- NAVIGATION ---- */
nav.hoved-nav {
  background: var(--groen-moerk);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: stretch;
}

.nav-inner a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.85rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
}

.nav-inner a:hover,
.nav-inner a.aktiv {
  color: var(--hvid);
  border-bottom-color: var(--guld);
  background: rgba(255,255,255,0.06);
}

.nav-spacer { flex: 1; }

.nav-bruger {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Min profil og Log ud ligner de øvrige nav-links, men med guldfarvet bundlinje */
.nav-bruger-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-bottom: 3px solid var(--guld);
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  background: rgba(201,151,43,0.08);
}

.nav-bruger-link:hover {
  color: var(--hvid);
  background: rgba(201,151,43,0.18);
}

/* Reset for logout-knap så den ligner et link */
.logout-knap {
  background: rgba(201,151,43,0.08);
  color: rgba(255,255,255,0.85);
  border: none;
  border-bottom: 3px solid var(--guld);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
}

.logout-knap:hover {
  color: var(--hvid);
  background: rgba(201,151,43,0.18);
}

/* ---- INDHOLD ---- */
main {
  flex: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  width: 100%;
}

h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--groen-moerk);
  margin: 0 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--groen-kant);
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--groen-mellem);
  margin: 2rem 0 0.8rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tekst-moerk);
  margin: 0 0 0.6rem;
}

a { color: var(--groen-mellem); }
a:hover { color: var(--groen-moerk); }

/* ---- FORSIDE HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--groen-moerk) 0%, var(--groen-mellem) 100%);
  border-radius: 12px;
  padding: 3.5rem 2.5rem;
  margin-bottom: 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -60px; left: -20px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero h1 {
  color: white;
  border-bottom-color: rgba(255,255,255,0.2);
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.hero .tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0.8rem 0 1.5rem;
}

.hero-badges {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

/* ---- KORT GRID ---- */
.kort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.kort {
  background: var(--hvid);
  border: 1px solid var(--groen-kant);
  border-radius: 10px;
  padding: 1.8rem;
  box-shadow: var(--skygge);
  transition: box-shadow 0.2s, transform 0.2s;
}

.kort:hover {
  box-shadow: var(--skygge-hover);
  transform: translateY(-2px);
}

.kort-ikon {
  width: 44px; height: 44px;
  background: var(--groen-baggrund);
  border: 1.5px solid var(--groen-kant);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.kort h3 {
  color: var(--groen-moerk);
  font-size: 1.05rem;
}

.kort p {
  color: var(--tekst-graa);
  font-size: 0.9rem;
  margin: 0.4rem 0 1.2rem;
  line-height: 1.55;
}

/* ---- KNAPPER ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
}

.btn:active { transform: translateY(1px); }

.btn-primaer {
  background: var(--groen-mellem);
  color: white;
  box-shadow: 0 2px 8px rgba(64,145,108,0.3);
}
.btn-primaer:hover {
  background: var(--groen-moerk);
  color: white;
  box-shadow: 0 4px 14px rgba(45,106,79,0.35);
}

.btn-sekundaer {
  background: transparent;
  color: var(--groen-mellem);
  border: 1.5px solid var(--groen-lys);
}
.btn-sekundaer:hover {
  background: var(--groen-baggrund);
  color: var(--groen-moerk);
}

.btn-lille {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
}

/* ---- SEKTIONSOVERSKRIFT ---- */
.sektion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  gap: 1rem;
}

.sektion-header h2 {
  margin: 0;
}

/* ---- TABEL ---- */
.tabel-wrapper {
  background: var(--hvid);
  border: 1px solid var(--groen-kant);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--skygge);
}

table.hbs-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hbs-tabel thead tr {
  background: var(--groen-moerk);
  color: white;
}

.hbs-tabel th {
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hbs-tabel td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--groen-kant);
  color: var(--tekst-moerk);
}

.hbs-tabel tbody tr:last-child td { border-bottom: none; }

.hbs-tabel tbody tr:hover td {
  background: var(--groen-baggrund);
}

.hbs-tabel a {
  font-weight: 500;
}

/* ---- LOGIN ---- */
.login-side {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.login-boks {
  background: var(--hvid);
  border: 1px solid var(--groen-kant);
  border-radius: 14px;
  box-shadow: var(--skygge-hover);
  padding: 2.5rem 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
}

.login-logo {
  text-align: center;
  margin-bottom: 1.8rem;
}

.login-logo .navn {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--groen-moerk);
}

.login-logo .tagline {
  display: block;
  font-size: 0.8rem;
  color: var(--tekst-graa);
  font-style: italic;
  margin-top: 0.2rem;
}

.login-boks h1 {
  font-size: 1.3rem;
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--groen-moerk);
}

/* ---- FORMULARER ---- */
.formfelt {
  margin-bottom: 1.2rem;
}

.formfelt label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tekst-graa);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.formfelt input[type="text"],
.formfelt input[type="email"],
.formfelt input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--groen-kant);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--hvid);
  color: var(--tekst-moerk);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.formfelt input:focus {
  outline: none;
  border-color: var(--groen-mellem);
  box-shadow: 0 0 0 3px rgba(64,145,108,0.12);
}

/* ---- BESKEDER ---- */
.beskeder { margin-bottom: 1.5rem; }

.besked {
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.besked-success, .besked-info {
  background: #ecfdf5;
  border-left: 4px solid var(--groen-lys);
  color: var(--groen-moerk);
}

.besked-fejl, .besked-error {
  background: #fef2f2;
  border-left: 4px solid #f87171;
  color: #991b1b;
}

.besked-advarsel, .besked-warning {
  background: #fffbeb;
  border-left: 4px solid #fbbf24;
  color: #92400e;
}

/* ---- PROFIL-AVATAR ---- */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--groen-kant);
}

.avatar-pladsholder {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--groen-moerk);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--groen-kant);
}

/* ---- TOM TILSTAND ---- */
.tom-liste {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--tekst-graa);
  font-style: italic;
}

/* ---- FOOTER ---- */
footer {
  background: var(--groen-moerk);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.82rem;
  margin-top: auto;
  line-height: 1.8;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  margin-bottom: 0.8rem;
  filter: brightness(0) invert(1);
}

footer a {
  color: var(--groen-lys);
  text-decoration: none;
}

footer a:hover {
  color: white;
}

.footer-navn {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.3rem;
}

/* ---- RESPONSIV ---- */
@media (max-width: 768px) {
  .header-inner { padding: 1rem; flex-direction: column; text-align: center; }
  .header-logo { flex-direction: column; align-items: center; }
  .header-logo-img { height: 56px; }
  .nav-inner { padding: 0 0.5rem; flex-wrap: wrap; }
  .nav-inner a { padding: 0.7rem 0.7rem; font-size: 0.82rem; }
  .nav-bruger { display: none; }
  main { padding: 1.5rem 1rem; }
  .hero { padding: 2rem 1.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .kort-grid { grid-template-columns: 1fr; }
  .login-boks { padding: 2rem 1.5rem; }
}

/* ---- HTMX ---- */
.htmx-request .spinner { display: inline-block; }

/* ================================================================
   OFFENTLIG NAVIGATION
   ================================================================ */

.public-nav {
  background: linear-gradient(90deg, var(--groen-moerk) 0%, #1e4d38 100%);
}

.nav-login-knap {
  display: flex;
  align-items: center;
  color: var(--guld-lys) !important;
  background: rgba(201,151,43,0.15) !important;
  border: 1px solid rgba(201,151,43,0.4);
  border-radius: 6px;
  margin: auto 0;
  padding: 0.5rem 1.1rem !important;
  font-weight: 600 !important;
  font-size: 0.86rem !important;
  letter-spacing: 0.04em;
  border-bottom: none !important;
  transition: background 0.15s, color 0.15s !important;
}

.nav-login-knap:hover {
  background: rgba(201,151,43,0.28) !important;
  color: #fff !important;
  border-color: rgba(201,151,43,0.7) !important;
}

/* Facebook-link i header (kun til ikke-logget-ind) */
.fb-header-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1877F2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid #1877F2;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.fb-header-link:hover {
  background: #1877F2;
  color: #fff;
}

/* ================================================================
   SLIDESHOW
   ================================================================ */

.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #1b2a25;
  margin-bottom: 2.5rem;
  /* Slideshow er fuld-bredde — bryder ud af main's max-width */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-tekst {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Alpine.js-overgange */
.slide-enter         { transition: opacity 0.6s ease; }
.slide-enter-start   { opacity: 0; }
.slide-enter-end     { opacity: 1; }
.slide-leave         { transition: opacity 0.6s ease; }
.slide-leave-start   { opacity: 1; }
.slide-leave-end     { opacity: 0; }

/* Overlay-tekst oven på slideshowet */
.slideshow-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.40) 50%,
    rgba(0,0,0,0.65) 100%
  );
  pointer-events: none;
}

.slideshow-titel {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.slideshow-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  font-style: italic;
  margin-top: 0.5rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.slideshow-badges {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.slide-badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* Prik-navigation */
.slide-prikker {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slide-prik {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slide-prik.aktiv,
.slide-prik:hover {
  background: #fff;
  transform: scale(1.2);
}

/* Pile */
.slide-pil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.slide-pil:hover { background: rgba(0,0,0,0.65); }
.slide-pil-venstre { left: 1rem; }
.slide-pil-hoejre  { right: 1rem; }

/* ================================================================
   FORSIDE NYHEDER
   ================================================================ */

.forside-nyheder {
  margin-bottom: 1.5rem;
}

.sektion-titel {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--groen-moerk);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--groen-kant);
}

.nyhed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.nyhed-kort {
  background: var(--hvid);
  border: 1.5px solid var(--groen-kant);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--skygge);
}

.nyhed-dato {
  font-size: 0.78rem;
  color: var(--tekst-graa);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.nyhed-emne {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--groen-moerk);
  margin: 0 0 0.6rem;
}

.nyhed-tekst {
  font-size: 0.88rem;
  color: var(--tekst-graa);
  line-height: 1.6;
  margin: 0;
}

/* ================================================================
   OFFENTLIGE SIDER (Om lauget, Historie, Optagelse)
   ================================================================ */

.side-hero {
  background: linear-gradient(135deg, var(--groen-moerk) 0%, #1a3d2b 100%);
  color: #fff;
  padding: 3rem 2rem;
  margin-bottom: 2.5rem;
  /* Fuld bredde */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.side-hero-indhold {
  max-width: 760px;
  margin: 0 auto;
}

.side-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #fff;
}

.side-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  font-style: italic;
}

.side-indhold {
  max-width: 820px;
  margin: 0 auto;
}

.ingress {
  font-size: 1.08rem;
  color: var(--tekst-graa);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
  border-left: 4px solid var(--groen-lys);
  padding-left: 1.2rem;
}

.tekstblok {
  margin-bottom: 2rem;
}

.tekstblok p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.info-sektion {
  margin-bottom: 2.5rem;
  padding: 1.6rem 2rem;
  background: var(--hvid);
  border-radius: 12px;
  border: 1.5px solid var(--groen-kant);
  box-shadow: var(--skygge);
}

.info-sektion h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--groen-moerk);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--groen-kant);
}

.info-sektion p {
  line-height: 1.8;
  margin-bottom: 0.9rem;
  color: var(--tekst-moerk);
}

/* Arrangementer-grid på Om lauget */
.arrangementer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.arr-kort {
  background: var(--groen-baggrund);
  border: 1px solid var(--groen-kant);
  border-radius: 8px;
  padding: 1rem 1.2rem;
}

.arr-ikon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.arr-kort strong {
  display: block;
  font-weight: 700;
  color: var(--groen-moerk);
  margin-bottom: 0.3rem;
}

.arr-kort p {
  font-size: 0.85rem;
  margin: 0 !important;
  color: var(--tekst-graa);
  line-height: 1.5;
}

/* CTA-blok nederst på informationssider */
.info-cta {
  text-align: center;
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--groen-baggrund);
  border-radius: 12px;
  border: 1.5px solid var(--groen-kant);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.info-cta p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--groen-moerk);
  margin: 0;
}

.info-cta .btn + .btn { margin-left: 0.6rem; }

/* ================================================================
   TIDSLINJE (Historie)
   ================================================================ */

.tidslinje {
  position: relative;
  padding-left: 0;
  margin: 2rem 0;
}

/* Den lodrette streg */
.tidslinje::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--groen-lys), var(--groen-moerk));
  border-radius: 2px;
}

.tids-punkt {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 2rem;
  margin-bottom: 2rem;
  position: relative;
}

/* Cirklen på stregen */
.tids-punkt::before {
  content: "";
  position: absolute;
  left: 91px;
  top: 0.9rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--groen-moerk);
  border: 3px solid var(--groen-lys);
  z-index: 1;
}

.tids-punkt-nu::before {
  background: var(--guld);
  border-color: var(--guld-lys);
  box-shadow: 0 0 0 4px rgba(201,151,43,0.2);
}

.tids-aar {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--groen-moerk);
  text-align: right;
  padding-top: 0.7rem;
  padding-right: 0.5rem;
  line-height: 1.3;
}

.tids-punkt-nu .tids-aar {
  color: var(--guld);
}

.tids-indhold {
  background: var(--hvid);
  border: 1.5px solid var(--groen-kant);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  box-shadow: var(--skygge);
}

.tids-indhold h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--groen-moerk);
  margin: 0 0 0.6rem;
}

.tids-indhold p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--tekst-moerk);
  margin: 0 0 0.7rem;
}

.tids-indhold p:last-child { margin-bottom: 0; }

/* ================================================================
   OPTAGELSE-SIDE
   ================================================================ */

.trin-liste {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trin {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.trin-nr {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--groen-moerk);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.trin-tekst strong {
  display: block;
  font-weight: 700;
  color: var(--groen-moerk);
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.trin-tekst p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--tekst-moerk);
}

.paaklaedning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.paaklaedning-kort {
  background: var(--groen-baggrund);
  border: 1px solid var(--groen-kant);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
}

.paaklaedning-kort strong {
  display: block;
  font-weight: 700;
  color: var(--groen-moerk);
  margin-bottom: 0.4rem;
}

.paaklaedning-kort p {
  margin: 0;
  color: var(--tekst-graa);
}

.effekt-liste {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.effekt-liste li {
  padding: 0.5rem 0.9rem;
  background: var(--groen-baggrund);
  border-radius: 6px;
  font-size: 0.92rem;
  border-left: 3px solid var(--groen-lys);
}

.advarsel-boks {
  background: #fffbeb;
  border: 1.5px solid #fbbf24;
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  color: #92400e;
  margin-top: 1rem;
}

.citat-sektion blockquote.formand-citat {
  margin: 0;
  padding: 1.4rem 1.8rem;
  background: var(--groen-moerk);
  border-left: 4px solid var(--guld);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.formand-citat p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #fff !important;
}

.formand-citat footer {
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}

.formand-citat footer strong {
  color: #fff;
}

/* ================================================================
   RESPONSIV — tilføjelser
   ================================================================ */
@media (max-width: 768px) {
  .slideshow-wrapper { height: 300px; }
  .slideshow-titel   { font-size: 1.5rem; }
  .slideshow-tagline { font-size: 0.9rem; }
  .slideshow-badges  { gap: 0.4rem; }
  .slide-badge       { font-size: 0.75rem; }
  .slide-pil         { display: none; }

  .side-hero         { padding: 2rem 1rem; }
  .side-hero h1      { font-size: 1.7rem; }

  .tidslinje::before { left: 70px; }
  .tids-punkt        { grid-template-columns: 70px 1fr; }
  .tids-punkt::before { left: 61px; }
  .tids-aar          { font-size: 0.78rem; }

  .paaklaedning-grid { grid-template-columns: 1fr; }
  .arrangementer-grid { grid-template-columns: 1fr; }
  .fb-header-link    { display: none; }

  .info-cta .btn + .btn { margin-left: 0; margin-top: 0.5rem; }
  .info-cta { flex-direction: column; }
}

/* ── Gruppe-badges ────────────────────────────────────────────────── */
.gruppe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.gruppe-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
  border: 1px solid transparent;
}

/* Farve-varianter */
.gruppe-badge--hbs-green, .gruppe-badge {
  background: var(--groen-baggrund, #ecfdf5);
  color: var(--groen-moerk, #1a5c36);
  border-color: var(--groen-kant, #a7c9b2);
}

.gruppe-badge--hbs-gold {
  background: #fef9ec;
  color: #92400e;
  border-color: var(--guld-lys, #f4d485);
}

.gruppe-badge--hbs-blue {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.gruppe-badge--hbs-red {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.gruppe-badge--hbs-gray {
  background: #f9fafb;
  color: #374151;
  border-color: #d1d5db;
}
.spinner { display: none; }
