/* MinGrundejer - Nordic Minimal Design */
/* All characters ASCII-only */

:root {
  --bg:        #F6F5F1;
  --bg-soft:   #ECEAE3;
  --surface:   #FFFFFF;
  --text:      #1C2621;
  --text-mid:  #4F5D55;
  --text-lite: #7A8A82;
  --line:      #E1E4DE;
  --primary:   #2C5F5D;
  --accent:    #E8A87C;
  --radius:    12px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --gap:       clamp(1.5rem, 4vw, 3rem);
  --max-w:     1160px;
  --header-h:  68px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primaer-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

.label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-lite);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.section-header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-header .label {
  display: block;
  margin-bottom: 0.6rem;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(246, 245, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.site-header.on-hero {
  background: transparent;
  border-bottom-color: transparent;
}

.site-header.on-hero .nav-link,
.site-header.on-hero .logo-text {
  color: #fff;
}

.site-header.on-hero .nav-toggle span {
  background: #fff;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo { display: flex; align-items: center; }
.logo-img  { height: 38px; width: auto; }
.logo-text {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 200px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.15rem;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover { color: var(--text); background: transparent; text-decoration: none; }
.nav-link.active { color: var(--primaer-link); }

/* On-hero */
.site-header.on-hero .nav-link:hover { color: rgba(255,255,255,0.7); background: transparent; }
.site-header.on-hero .nav-link.active { color: #fff; }

.nav-login, .nav-member {
  margin-left: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--top-a, var(--primary));
  color: #fff !important;
  border-radius: var(--radius-pill);
}
.nav-login:hover, .nav-member:hover {
  filter: brightness(0.85);
  text-decoration: none;
}

.nav-logout {
  font-size: 0.82rem;
  color: var(--text-lite) !important;
}

.nav-facebook {
  color: var(--text-mid);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-facebook:hover {
  opacity: 1;
  color: #1877F2;
}

.nav-admin {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primaer-link) !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem !important;
}
.nav-admin:hover {
  background: var(--top-a, var(--primary));
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 68vh;
  min-height: 480px;
  max-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--top-a, var(--primary));
  background-image:
    linear-gradient(to bottom, rgba(28,38,33,0.82) 0%, rgba(28,38,33,0.75) 60%, rgba(28,38,33,0.88) 100%),
    var(--hero-img, none);
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  padding-top: var(--header-h);
}

.hero-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.2rem;
}

.hero h1 {
  color: #fff;
  max-width: 700px;
  margin-bottom: 1.2rem;
}

.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 500px;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: var(--text);
}
.btn-primary:hover { filter: brightness(0.88); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-solid {
  background: var(--top-a, var(--primary));
  color: #fff;
}
.btn-solid:hover { filter: brightness(0.85); }

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

/* ---------- MARQUEE ---------- */
.marquee-band {
  background: var(--top-a, var(--primary));
  color: rgba(255,255,255,0.7);
  padding: 0.65rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}

.marquee-item {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0 2.5rem;
}

.marquee-dot {
  color: var(--accent);
  margin-right: 2.5rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- NEWS GRID ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--line);
  border: 1.5px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}

.news-card {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.news-card:hover { background: var(--bg); }

.news-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lite);
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.news-card h3 a {
  color: var(--text);
  text-decoration: none;
}
.news-card h3 a:hover { color: var(--primaer-link); }

.news-excerpt {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.news-read-more {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primaer-link);
}

/* ---------- KOMMUNE KRAV ---------- */
.krav-list {
  counter-reset: krav;
  list-style: none;
  border-top: 1.5px solid var(--line);
}

.krav-item {
  counter-increment: krav;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1.5px solid var(--line);
}

.krav-num {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primaer-link);
  padding-top: 0.25rem;
  opacity: 0.65;
}

.krav-num::before {
  content: counter(krav, decimal-leading-zero);
}

.krav-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.krav-desc {
  color: var(--text-mid);
  font-size: 0.88rem;
}

/* ---------- EVENTS SECTION ---------- */
.events-list { display: flex; flex-direction: column; gap: 0; }

.event-row {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.event-row:first-child { border-top: 1px solid var(--line); }

.event-date-block {
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.4rem;
}

.event-day {
  font-family: 'Manrope', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primaer-link);
}

.event-month {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lite);
}

.event-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.event-meta {
  font-size: 0.82rem;
  color: var(--text-mid);
}

.btn-kalender {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primaer-link);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
  text-decoration: none;
  background: var(--bg-soft);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-kalender:hover {
  background: var(--top-a, var(--primary));
  border-color: var(--primaer-link);
  color: #fff;
}

/* ---------- PAGE HERO ---------- */
.page-hero {
  background: var(--bg-soft);
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ---------- NEWS SINGLE ---------- */
.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 680px;
}

.article-body p { margin-bottom: 1.2rem; }
.article-body h2, .article-body h3 { margin: 2rem 0 0.75rem; }

/* ---------- DOCUMENT LIST ---------- */
/* ============================================================
 * Unified list-item pattern (introduceret 2026-05-15)
 *
 * Bruges paa offentlige medlemssider: dokumenter, referater,
 * nyheder, arrangementer. Erstatter de tidligere mosaikker af
 * .doc-item / .ref-card / .news-card / .event-row med ét konsistent
 * design — kun ikon-cellen varierer.
 *
 * Struktur:
 *   <div class="list-stack">
 *     <article class="list-item">
 *       <div class="list-item-icon list-item-icon--{type}">...</div>
 *       <div class="list-item-body">
 *         <div class="list-item-title">...</div>
 *         <div class="list-item-meta">...</div>
 *         <div class="list-item-excerpt">...</div>  (optional)
 *       </div>
 *       <div class="list-item-action">...</div>
 *     </article>
 *   </div>
 * ============================================================ */

.list-stack { list-style: none; padding: 0; margin: 0; }

.list-item {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: start;
  gap: 1.25rem;
  padding: 1.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s, padding-left 0.15s;
  border-radius: var(--radius);
}

.list-item:first-child { border-top: 1px solid var(--line); }

.list-item:hover {
  background: var(--bg-soft);
  padding-left: 1.2rem;
}

.list-item-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  text-align: center;
}

/* Dokument-variant: lille blaagraat ikon */
.list-item-icon--dokument {
  background: var(--bg-soft);
  color: var(--primaer-link);
  font-size: 1.3rem;
}

/* Referat-variant: roedt PDF-badge */
.list-item-icon--referat {
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-direction: column;
}

/* Nyhed-variant: maaned/dag som event */
.list-item-icon--nyhed {
  background: var(--bg-soft);
  color: var(--text);
  flex-direction: column;
  padding: 0.3rem;
}

.list-item-icon--nyhed .list-item-icon-day {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primaer-link);
}

.list-item-icon--nyhed .list-item-icon-mon {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lite);
  margin-top: 0.25rem;
}

/* Event-variant: stort dato-blok */
.list-item-icon--event {
  background: var(--bg-soft);
  color: var(--text);
  flex-direction: column;
  padding: 0.3rem;
}

.list-item-icon--event .list-item-icon-day {
  font-family: 'Manrope', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primaer-link);
}

.list-item-icon--event .list-item-icon-mon {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lite);
  margin-top: 0.25rem;
}

.list-item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.list-item-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.35;
}

.list-item-title a {
  color: inherit;
  text-decoration: none;
}

.list-item-title a:hover { color: var(--primaer-link); }

.list-item-meta {
  font-size: 0.78rem;
  color: var(--text-lite);
}

.list-item-excerpt {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin-top: 0.35rem;
}

.list-item-action {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.list-item-action a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primaer-link);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  transition: background 0.15s, border-color 0.15s;
}

.list-item-action a:hover {
  background: var(--bg-soft);
  border-color: var(--primaer-link);
}

.list-item-cat-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lite);
  padding: 1.5rem 0 0.5rem 0.75rem;
  margin: 0;
}

.list-item-cat-heading:first-child { padding-top: 0; }

@media (max-width: 640px) {
  .list-item {
    grid-template-columns: 3rem 1fr;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
  }
  .list-item-icon { width: 3rem; height: 3rem; }
  .list-item-action { grid-column: 2; margin-top: 0.5rem; }
  .list-item-action a { font-size: 0.8rem; padding: 0.35rem 0.75rem; }
}

/* @deprecated — gamle list-mønstre. Bevares for backward-compat. */
.doc-list { list-style: none; }

.doc-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s, padding-left 0.15s;
  border-radius: var(--radius);
}

.doc-item:hover {
  background: var(--bg-soft);
  padding-left: 1.2rem;
}

.doc-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primaer-link);
  font-size: 1rem;
  flex-shrink: 0;
}

.doc-title {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.doc-date {
  font-size: 0.78rem;
  color: var(--text-lite);
  margin-top: 0.15rem;
}

.doc-dl {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primaer-link);
  text-decoration: none;
  white-space: nowrap;
}
.doc-dl:hover { text-decoration: underline; }

.doc-cat-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-lite);
  padding: 1.5rem 0.75rem 0.5rem;
}

/* ---------- CONTACT FORM ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.form-group { margin-bottom: 1.2rem; }

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primaer-link);
}

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

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* ---------- BESTYRELSE ---------- */
.bestyrelse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.bestyrelse-card {
  background: var(--surface);
  padding: 1.6rem;
  transition: background 0.2s;
}

.bestyrelse-card:hover { background: var(--bg); }

.bestyrelse-foto,
.bestyrelse-foto-tom {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.bestyrelse-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bestyrelse-foto-tom {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--primaer-link);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
}

.bestyrelse-rolle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primaer-link);
  margin-bottom: 0.4rem;
}

.bestyrelse-navn {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.bestyrelse-contact {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.bestyrelse-contact a { color: var(--text-mid); }
.bestyrelse-contact a:hover { color: var(--primaer-link); }

/* ---------- DRIFT ---------- */
.drift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.drift-card {
  background: var(--surface);
  padding: 1.8rem;
}

.drift-icon {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.drift-card h4 { margin-bottom: 0.5rem; }

.drift-text {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ---------- REFERATER ---------- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.ref-card {
  background: var(--surface);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}

.ref-card:hover { background: var(--bg); }

.ref-pdf-icon {
  width: 2.8rem;
  height: 2.8rem;
  background: #fef2f2;
  color: #dc2626;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.ref-title { font-weight: 600; font-size: 0.95rem; }
.ref-date { font-size: 0.78rem; color: var(--text-lite); margin-top: 0.15rem; }

/* ---------- LOGIN PAGE ---------- */
.login-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1rem 2rem;
}

.login-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.login-box h2 { margin-bottom: 0.4rem; }
.login-box .label { margin-bottom: 1.8rem; }

/* ---------- PRIVATLIVSPOLITIK ---------- */
.prose {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.75;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.2rem;
}

.prose p { margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- SITE FOOTER ---------- */
.site-footer {
  /* Meget moerk udgave af foreningens primaerfarve (6. okt 2026; foer fast #1C2621 for alle) */
  background: var(--text);
  background: color-mix(in srgb, var(--primary) 30%, #0d1210);
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 0 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.footer-text strong { color: rgba(255,255,255,0.75); }
.footer-text a { color: rgba(255,255,255,0.55); }
.footer-text a:hover { color: #fff; }

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem clamp(1rem, 4vw, 2.5rem);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: rgba(255,255,255,0.65); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- NOTICE / ALERT ---------- */
.notice {
  background: var(--bg-soft);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

/* ---------- BADGE ---------- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-primary { background: var(--top-a, var(--primary)); color: #fff; }
.badge-accent { background: var(--accent); color: var(--text); }
.badge-soft { background: var(--bg-soft); color: var(--text-mid); }

/* ---------- DIVIDER ---------- */
hr.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  /* Hero: kortere paa mobil */
  .hero {
    height: auto;
    min-height: 0;
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 3.5rem;
    align-items: flex-start;
  }

  .hero-content { padding-top: 0; }

  /* Logo */
  .logo-text { font-size: 0.82rem; max-width: 150px; }
  .logo-img  { height: 30px; }


  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .event-row { grid-template-columns: 4rem 1fr; }
  .event-row > :last-child { grid-column: 2; }

  .doc-item { grid-template-columns: 2rem 1fr auto; gap: 0.75rem; }

}

/* Mobilmenu fra 1100px (MG-18): lange foreningsnavne fylder menuen paa smalle skaerme */
@media (max-width: 1100px) {
  /* Mobilmenu */
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    gap: 0;
    transform: translateY(-120%);
    transition: transform 0.3s;
  }

  .site-nav.open { transform: translateY(0); }

  .nav-link {
    padding: 0.75rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }

  .nav-link:last-child { border-bottom: none; }

  .nav-login, .nav-member {
    margin-left: 0;
    margin-top: 0.75rem;
    text-align: center;
    padding: 0.65rem;
    border-radius: var(--radius-pill);
    border-bottom: none;
  }

  .nav-logout { text-align: center; border-bottom: none; }

  /* Header altid hvid paa mobil */
  .site-header.on-hero {
    background: #ffffff;
    border-bottom-color: var(--line);
  }

  .site-header.on-hero .nav-link,
  .site-header.on-hero .logo-text { color: var(--text); }

  .site-header.on-hero .nav-toggle span { background: var(--text); }

  /* Header hvid paa mobil */
  .site-header {
    background: #ffffff;
  }
  .site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
  }
}


/* ============================================================
 * FARVE PAA UNDERSIDERNE (12. okt 2026)
 * Toppen (.page-hero) faar foreningens farve i stedet for beige. Farven blandes altid
 * med moerk, saa hvid tekst kan laeses, ogsaa naar primaerfarven er meget lys.
 * Headeren er hvid-paa-farve over toppen som paa forsiden (main.js: .page-hero = .hero).
 * Coverbilledet (--hero-img fra Indstillinger) ligger svagt bagved, hvis det findes.
 * ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--top-a) 0%, var(--top-b) 100%);
  border-bottom: none;
  color: #fff;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  pointer-events: none;
}
.page-hero-inner { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.86); }
.page-hero .label,
.page-hero a.label { color: rgba(255,255,255,0.72) !important; }
.page-hero a { color: #fff; }

/* Ikoner og datoblokke i listerne: svag tone af foreningens farve i stedet for graa */
.list-item-icon--dokument,
.list-item-icon--nyhed,
.event-date-block {
  background: color-mix(in srgb, var(--primary) 10%, #fff);
}
.list-item:hover { background: color-mix(in srgb, var(--primary) 5%, #fff); }

/* Log ind / Medlemsomraade: afrundet pille. Over farvet top (on-hero, kun desktop) hvid med moerk tekst,
   som brugerboksen oeverst til hoejre i admin */
.nav-login, .nav-member { border-radius: 999px; padding: 0.45rem 1.1rem; }
@media (min-width: 1101px) {
  .site-header.on-hero .nav-login,
  .site-header.on-hero .nav-member {
    background: #fff;
    color: var(--top-a) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    font-weight: 600;
  }
  .site-header.on-hero .nav-login:hover,
  .site-header.on-hero .nav-member:hover { filter: none; background: rgba(255,255,255,0.88); }
}

/* ============================================================
 * MODERNISERET LOOK (13. okt 2026)
 * Samme opbygning som foer, men: lavere top i foreningens farve paa forsiden
 * (med "Naeste arrangement" i et kort), kort med bloed skygge i stedet for
 * streger, stoerre og moerkere tekst, broedkrummer paa undersiderne, lav footer
 * og en kontoknap med Admin og Log ud. --primaer-tekst kommer fra header.php
 * (mg_logo_tekstfarver) og er laeselig paa hvidt, ogsaa ved lyse farver.
 * ============================================================ */
:root {
  --text-mid:      #3f4d46;
  --text-lite:     #5b6b63;
  --radius-kort:   16px;
  --skygge:        0 1px 2px rgba(13,31,28,0.05), 0 8px 24px rgba(13,31,28,0.06);
  --skygge-hover:  0 2px 4px rgba(13,31,28,0.06), 0 14px 32px rgba(13,31,28,0.10);
  --primaer-link:  var(--primaer-tekst, var(--primary));
  --primaer-moerk: var(--top-a);
}

/* Knapper */
.btn { font-weight: 600; font-size: 0.95rem; }
.btn-hvid { background: #fff; color: var(--primaer-moerk); box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.btn-hvid:hover { background: rgba(255,255,255,0.9); }

/* Menu */
.nav-link { font-size: 0.94rem; }
@media (min-width: 1101px) {
  .nav-link { padding: 0.45rem 0.85rem; }
  .site-header.on-hero .nav-link.active { background: rgba(255,255,255,0.14); }
  .site-header.on-hero .nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
}

/* Kontoknap: initialer, Admin og Log ud i en lille menu */
.nav-konto-knap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.35rem;
  padding: 0.2rem 0.6rem 0.2rem 0.2rem !important;
  background: none;
  border: 1px solid var(--line);
  font: 600 0.88rem 'Inter', sans-serif;
  color: var(--text);
  cursor: pointer;
}
.nav-konto-init {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--primary) 12%, #fff);
  color: var(--primaer-link);
}
.nav-konto-navn { display: none; }
.nav-konto .nav-dropdown-menu { left: auto; right: 0; }
.nav-dropdown.open .nav-dropdown-menu { display: block; }
@media (min-width: 1101px) {
  .site-header.on-hero .nav-konto-knap { border-color: rgba(255,255,255,0.4); color: #fff; }
  .site-header.on-hero .nav-konto-init { background: rgba(255,255,255,0.18); color: #fff; }
}
@media (max-width: 1100px) {
  .nav-konto-knap {
    width: 100%;
    margin: 0;
    padding: 0.75rem 0.5rem !important;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 0.94rem;
  }
  .nav-konto-navn { display: inline; }
  .nav-konto .nav-dropdown-menu { display: block; }
}

/* Forsidens top: lavere, i foreningens farve, coverbilledet svagt bagved */
.hero {
  height: auto;
  min-height: 0;
  max-height: none;
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
}
.hero-bg {
  background-image: linear-gradient(135deg, var(--top-a) 0%, var(--top-b) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.16;
}
.hero-content { padding-top: 0; width: 100%; }
.hero-delt {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.hero-tekst { flex: 1 1 420px; min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.9rem; }
.hero-sub { font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,0.88); max-width: 52ch; margin-bottom: 1.6rem; }
.hero-event {
  flex: 0 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
  color: var(--text);
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  transition: transform 0.15s;
}
.hero-event:hover { text-decoration: none; transform: translateY(-2px); }
.hero-event-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-lite); }
.hero-event-raekke { display: flex; gap: 0.9rem; align-items: center; }
.hero-event-dato {
  width: 3.6rem;
  height: 3.9rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-event-dag { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.45rem; line-height: 1; color: var(--primaer-link); }
.hero-event-md { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: var(--text-mid); margin-top: 0.2rem; }
.hero-event-info { display: flex; flex-direction: column; min-width: 0; }
.hero-event-titel { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.hero-event-meta { font-size: 0.9rem; color: var(--text-mid); }
.hero-event-besk { font-size: 0.92rem; line-height: 1.5; color: var(--text-mid); }
@media (max-width: 700px) {
  .hero { padding-top: calc(var(--header-h) + 1.75rem); padding-bottom: 2.25rem; }
  .hero-event { flex-basis: 100%; }
}

/* Undersidernes top: lavere, med broedkrummer og en kort linje */
.page-hero { padding: calc(var(--header-h) + 1.75rem) 0 2.25rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.brodkrumme { font-size: 0.9rem; color: rgba(255,255,255,0.72); margin-bottom: 0.4rem; }
.brodkrumme a { color: rgba(255,255,255,0.88) !important; }
.page-hero-lead { font-size: 1.05rem; margin: 0.5rem 0 0; max-width: 60ch; }
.page-hero + .section { padding-top: 2.5rem; }

/* Kort med bloed skygge i stedet for streger */
.news-card { box-shadow: var(--skygge); }
.news-date { font-size: 0.85rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-lite); }
.news-card h3 { font-size: 1.15rem; font-weight: 700; }
.news-excerpt { font-size: 1rem; }
.news-read-more { font-size: 0.92rem; font-weight: 600; color: var(--primaer-link); }

.list-item,
.event-row {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-kort);
  box-shadow: var(--skygge);
  padding: 1.1rem 1.25rem;
  transition: box-shadow 0.15s;
}
.list-item:first-child,
.event-row:first-child { border-top: 0; }
.list-item + .list-item,
.event-row + .event-row { margin-top: 0.75rem; }
.list-item:hover { background: var(--surface); padding-left: 1.25rem; box-shadow: var(--skygge-hover); }
.list-item-title { font-size: 1.05rem; }
.list-item-meta { font-size: 0.85rem; }
.list-item-excerpt { font-size: 0.95rem; }
.list-item-icon--nyhed .list-item-icon-day,
.list-item-icon--event .list-item-icon-day,
.event-day { color: var(--primaer-link); }
.event-title { font-size: 1.05rem; }
.event-meta { font-size: 0.9rem; }
.btn-kalender { font-size: 0.82rem; }

/* Lav footer i een raekke */
.site-footer { padding: 2rem 0 0; color: rgba(255,255,255,0.78); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem 3rem;
  padding-bottom: 1.75rem;
}
.footer-navn { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.05rem; color: #fff; margin-bottom: 0.3rem; }
.footer-text { font-size: 0.92rem; margin: 0; }
.footer-text a { color: rgba(255,255,255,0.78); }
.footer-links { flex-direction: row; flex-wrap: wrap; gap: 0.4rem 1.25rem; max-width: 560px; }
.footer-links a { font-size: 0.92rem; color: rgba(255,255,255,0.78); }
.footer-bottom { padding: 0.9rem clamp(1rem, 4vw, 2.5rem); color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.front-grid .news-card { padding: 1.4rem 1.6rem; gap: 0.4rem; }
.footer-links { max-width: 460px; }
.page-hero + .section .section-header { margin-bottom: 1.25rem; }
.page-hero + .section .section-header .label { display: none; }
.page-hero + .section .section-header h2 { font-size: 1.45rem; font-weight: 800; }
/* Mobilmenuen er hvid: den aktive side var hvid tekst paa hvidt (on-hero .active vandt) */
@media (max-width: 1100px) {
  .site-header.on-hero .nav-link.active,
  .nav-link.active { color: var(--primaer-link); font-weight: 600; }
}

/* Justering efter test paa test-v2 (13. okt 2026): bredere indhold, hoejere top, footer altid nederst */
:root { --max-w: 1280px; }
body { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }
.hero { min-height: 480px; padding: calc(var(--header-h) + 4rem) 0 5rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.hero-sub { font-size: 1.2rem; }
.hero-event { flex-basis: 380px; padding: 1.5rem; }
.page-hero { padding: calc(var(--header-h) + 2.5rem) 0 3rem; }
@media (max-width: 700px) {
  .hero { min-height: 0; padding: calc(var(--header-h) + 1.75rem) 0 2.5rem; }
  .page-hero { padding: calc(var(--header-h) + 1.5rem) 0 2rem; }
}
/* Store skaerme: bredde og tekst vokser med, saa siderne ikke ser smalle ud (13. okt 2026) */
@media (min-width: 1800px) {
  :root { --max-w: 1440px; }
}
@media (min-width: 2400px) {
  :root { --max-w: 1600px; }
}
/* Samme hoejde paa den farvede top paa alle sider som paa forsiden (Claus 13. okt 2026) */
.page-hero {
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
}
.page-hero-inner { width: 100%; }
@media (max-width: 700px) {
  .page-hero { min-height: 0; display: block; padding: calc(var(--header-h) + 1.5rem) 0 2rem; }
}
/* Forsiden uden kommende arrangement: navn, tekst og knapper centreret (Claus 13. okt 2026) */
.hero-centreret { justify-content: center; text-align: center; }
.hero-centreret .hero-tekst { flex: 0 1 780px; }
.hero-centreret .hero-sub { margin-left: auto; margin-right: auto; }
.hero-centreret .hero-actions { justify-content: center; }
/* Forsiden: kortet "Naeste arrangement" flugter med kolonnen Arrangementer nedenunder (samme 1.5fr/1fr
   som .front-grid i index.php), saa der ikke er et stort hul paa brede skaerme (Claus 13. okt 2026) */
@media (min-width: 769px) {
  .hero-delt:not(.hero-centreret) { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
  .hero-delt:not(.hero-centreret) .hero-event { width: 100%; }
}

/* Formateret tekst fra fmt_html() (includes/formatering.php, 13. okt 2026): nyheder, infosider.
   Laegges paa boksen sammen med fx .article-body; nulstillingen oeverst fjerner listernes indrykning. */
.fmt h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 2rem 0 0.75rem; }
.fmt h3 { font-size: clamp(1.1rem, 1.8vw, 1.25rem); margin: 1.6rem 0 0.6rem; }
.fmt > :first-child { margin-top: 0; }
.fmt ul, .fmt ol { margin: 0 0 1.2rem; padding-left: 1.5rem; }
.fmt li { margin: 0.3rem 0; }
.fmt a { text-decoration: underline; text-underline-offset: 2px; }
.fmt p, .fmt li { overflow-wrap: anywhere; }
/* ============================================================
 * MENUEN "TIL MEDLEMMERNE" (MG-22, 13. okt 2026)
 * Erstatter knappen Medlemsomraade. Markup i includes/header.php, indhold fra
 * medlemsmenu_punkter() i includes/sider.php, klik/fold i public/js/main.js.
 * Desktop: undermenuer (niveau 2) foldes ud til siden ved hover/fokus, og til
 * venstre, hvis der ikke er plads (.mod-venstre, saettes af main.js).
 * Burgermenu (max 1100px): Til medlemmerne og undermenuerne er harmonikaer,
 * der kun aabnes ved klik (.open), indrykket under overpunktet.
 * ============================================================ */
.nav-medlemmer-knap {
  background: none;
  border: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
}
.nav-medlemmer .nav-dropdown-menu-inner { overflow: visible; }
.nav-dropdown-menu .mm-skille { height: 1px; margin: 4px 0; background: var(--line, #e5e7eb); }
.nav-dropdown-menu a.mm-login { color: var(--primaer-link); font-weight: 600; }
.mm-gruppe { position: relative; }
.mm-raekke { display: flex; align-items: stretch; }
.nav-dropdown-menu .mm-over { flex: 1; }
.nav-dropdown-menu button.mm-over {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 18px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink, #111);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.nav-dropdown-menu button.mm-over:hover,
.mm-pil:hover { background: var(--sand, #f5f0e8); color: var(--primary); }
/* Pilen: mod hoejre paa desktop (undermenu til siden), ned i burgermenuen */
button.mm-over::after,
.mm-pil::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  margin-left: 0.6rem;
  vertical-align: 2px;
}
.mm-pil {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text-mid);
  cursor: pointer;
}
.mm-pil::after { margin-left: 0; }
.mm-under { display: none; }
.mm-under-inner {
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  min-width: 190px;
  overflow: hidden;
  padding: 4px 0;
}
@media (min-width: 1101px) {
  .mm-under {
    position: absolute;
    top: -5px;
    left: 100%;
    padding-left: 6px;
    z-index: 301;
  }
  .mm-gruppe.mod-venstre > .mm-under { left: auto; right: 100%; padding-left: 0; padding-right: 6px; }
  .mm-gruppe:hover > .mm-under,
  .mm-gruppe:focus-within > .mm-under,
  .mm-gruppe.open > .mm-under { display: block; }
}
/* Breddetjek 13. okt 2026 (mock med "Grundejerforeningen Bjergparken af 1975", logget ind, Facebook):
   ved 1101-1279px gik Facebook-ikonet ud over kanten. Lidt mindre luft mellem punkterne her,
   saa burgergraensen (1100px, MG-18) kan blive, hvor den er. */
@media (min-width: 1101px) and (max-width: 1279px) {
  .header-inner { gap: 1rem; }
  .site-nav .nav-link { padding-left: 0.6rem; padding-right: 0.6rem; }
}
@media (max-width: 1100px) {
  /* Med undermenuerne aabne kan burgermenuen blive hoejere end skaermen: rul inde i den */
  .site-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-medlemmer-knap { width: 100%; text-align: left; font-size: 0.94rem; color: var(--text); }
  /* Kun klik aabner (hover/fokus ville holde menuen aaben, naar man klikker for at lukke den) */
  .site-nav .nav-medlemmer:not(.open) > .nav-dropdown-menu { display: none; }
  .site-nav .nav-medlemmer.open > .nav-dropdown-menu { display: block; }
  .nav-medlemmer .nav-dropdown-menu a,
  .nav-dropdown-menu button.mm-over { white-space: normal; }
  button.mm-over::after,
  .mm-pil::after { transform: rotate(45deg); vertical-align: 4px; transition: transform 0.2s; }
  .mm-gruppe.open button.mm-over::after,
  .mm-gruppe.open .mm-pil::after { transform: rotate(-135deg); vertical-align: 0; }
  .mm-gruppe.open > .mm-under { display: block; }
  .mm-under-inner {
    box-shadow: none;
    border: 0;
    border-left: 2px solid color-mix(in srgb, var(--primary) 35%, #fff);
    border-radius: 0;
    margin: 0 0 4px 1.1rem;
    padding: 0;
    min-width: 0;
  }
}
/* Lange foreningsnavne i topmenuen: skaeres af med ... paa smalle desktopskaerme, saa menuen ikke flyder over
   (fuldt navn i title-attributten). Burgermenuen viser hele navnet. */
@media (min-width: 1101px) and (max-width: 1439px) {
  .nav-forening-navn .nav-forening-tekst { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ============================================================
 * INFOSIDER: BLOKKE (13. okt 2026)
 * Markup fra includes/sideskabeloner.php (sb_render), vist af side.php.
 * .ss = hele indholdet; hver blok giver direkte boern af .ss. Mobil foerst; kortene i stil med .article-body.
 * Hvid tekst staar paa --top-a (moerk blanding af foreningens farve), aldrig paa accenten.
 * ============================================================ */
.ss { max-width: 860px; display: flex; flex-direction: column; gap: 1.5rem; }
.ss > .article-body { max-width: 680px; }
.ss .article-body p:last-child, .ss .fmt > :last-child { margin-bottom: 0; }
.ss-forhaand {
  max-width: 860px; margin-bottom: 1.5rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: #fff4e6; border: 1px solid #f5d9b8; color: #7a3b0e; font-size: 0.92rem;
}
.ss-forhaand a { color: inherit; font-weight: 600; text-decoration: underline; }
.ss-overskrift { font-size: clamp(1.2rem, 2.2vw, 1.4rem); margin: 0.5rem 0 -0.5rem; }
.ss-etiket { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-lite); margin-bottom: 0.3rem; }

/* Billede oeverst */
.ss-topbillede { margin: 0; }
.ss-topbillede img { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-kort, 16px); box-shadow: var(--skygge); }

/* Knapper (telefon, e-mail, kort) */
.ss-knap {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.55rem 1rem;
  border-radius: var(--radius-pill); border: 1.5px solid color-mix(in srgb, var(--primary) 30%, var(--line));
  background: #fff; color: var(--primaer-link); font-weight: 600; font-size: 0.92rem; line-height: 1.2;
  text-decoration: none; overflow-wrap: anywhere; transition: background 0.15s, border-color 0.15s;
}
a.ss-knap:hover { background: color-mix(in srgb, var(--primary) 8%, #fff); border-color: var(--primaer-link); text-decoration: none; }
.ss-knap-tekst { color: var(--text-mid); border-style: dashed; }

/* Vejledning: fremhaevet boks */
.ss-boks { border-radius: var(--radius-kort, 16px); padding: 1.15rem 1.25rem; border: 1px solid; border-left-width: 6px; font-size: 1.02rem; line-height: 1.65; }
.ss-boks-titel { font-size: clamp(1.2rem, 2.4vw, 1.45rem); margin: 0 0 0.35rem; color: inherit; }
.ss-boks .fmt a { color: inherit; font-weight: 600; }
.ss-boks-rod  { background: #fdecea; border-color: #f3b8b0; border-left-color: #c0392b; color: #6e1a12; }
.ss-boks-gul  { background: #fff7db; border-color: #f1d98a; border-left-color: #d49a00; color: #5c4200; }
.ss-boks-blaa { background: #eaf2fe; border-color: #b9d0f7; border-left-color: #2563eb; color: #12306b; }

/* Vejledning: nummererede trin */
.ss-trin { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.ss-trin-kort {
  display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-kort, 16px); padding: 1.1rem 1.15rem; box-shadow: var(--skygge);
}
.ss-trin-nr {
  flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--top-a, var(--primary)); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.ss-trin-indhold { min-width: 0; flex: 1; line-height: 1.65; }
.ss-trin-titel { font-size: 1.12rem; margin: 0.35rem 0 0.3rem; }
.ss-trin-indhold .fmt p { margin-bottom: 0.6rem; }

/* Kontakter */
.ss-kontakter { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media (min-width: 640px) { .ss-kontakter { grid-template-columns: repeat(2, 1fr); } }
.ss-kontakt {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-kort, 16px);
  padding: 1.05rem 1.15rem; box-shadow: var(--skygge); display: flex; flex-direction: column; gap: 0.2rem; min-width: 0;
}
.ss-kontakt-rolle { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primaer-link); }
.ss-kontakt-navn { font-size: 1.1rem; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.ss-kontakt-note { margin: 0.15rem 0 0; color: var(--text-mid); font-size: 0.94rem; line-height: 1.5; }
.ss-kontakt-knapper { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.6rem; }

/* Sted */
.ss-sted {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-kort, 16px); padding: 1.15rem 1.25rem; box-shadow: var(--skygge);
}
@media (min-width: 760px) { .ss-sted { grid-template-columns: 1.2fr 1fr; } }
.ss-sted-adresse { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.7rem; overflow-wrap: anywhere; }
.ss-sted-felt p { margin: 0; line-height: 1.6; }
.ss-kortknapper { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ss-galleri { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
@media (min-width: 760px) { .ss-galleri { grid-template-columns: repeat(3, 1fr); } }
.ss-galleri li { position: relative; min-width: 0; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.ss-galleri a { display: block; aspect-ratio: 4 / 3; cursor: zoom-in; }
.ss-galleri a:focus-visible { outline: 3px solid var(--primaer-link); outline-offset: -3px; }
.ss-galleri img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.ss-galleri a:hover img { transform: scale(1.03); }
/* Billedteksten ligger oven paa billedet (gitteret forbliver lige); fuld tekst i billedviseren */
.ss-galleri span {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  /* Afstand forneden som kant (ikke padding): overflow skaerer ved padding-kanten, saa en 3. linje ikke titter frem */
  padding: 1.6rem 0.65rem 0; border-bottom: 0.5rem solid rgba(0, 0, 0, 0.72);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.38) 60%, transparent);
  color: #fff; font-size: 0.82rem; font-weight: 600; line-height: 1.3; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Mange billeder (over 8): taettere gitter */
.ss-galleri-mange { grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
.ss-galleri-mange li { border-radius: 8px; }
.ss-galleri-mange a { aspect-ratio: 1 / 1; }
@media (max-width: 759px) { .ss-galleri-mange span { font-size: 0.72rem; padding: 1.2rem 0.4rem 0; border-bottom-width: 0.3rem; } }
@media (min-width: 760px) { .ss-galleri-mange { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; } .ss-galleri-mange a { aspect-ratio: 4 / 3; } }
@media (min-width: 1100px) { .ss-galleri-mange { grid-template-columns: repeat(5, 1fr); } }

/* Billedviseren (public/js/galleri.js): <dialog> med billede, tekst, "3 af 24", pile og luk */
.gv { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 14, 13, 0.94); color: #fff; overflow: hidden; }
.gv::backdrop { background: rgba(10, 14, 13, 0.94); }
.gv-ramme { position: absolute; inset: 0; display: flex; flex-direction: column; }
.gv-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.75rem 0.6rem 1.1rem; flex-shrink: 0; }
.gv-taeller { font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); font-variant-numeric: tabular-nums; }
.gv-scene { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 3.6rem; touch-action: pan-y pinch-zoom; }
.gv-billede { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.gv-tekst { flex-shrink: 0; min-height: 1.4rem; padding: 0.7rem 1.1rem calc(0.9rem + env(safe-area-inset-bottom)); text-align: center; font-size: 0.95rem; line-height: 1.45; color: rgba(255, 255, 255, 0.92); }
.gv-knap { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; transition: background 0.15s; }
.gv-knap:hover { background: rgba(255, 255, 255, 0.24); }
.gv-knap:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.gv-knap svg { width: 24px; height: 24px; }
.gv-forrige, .gv-naeste { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.gv-forrige { left: 0.6rem; }
.gv-naeste { right: 0.6rem; }
.gv-knap[hidden] { display: none; }
@media (max-width: 640px) {
  .gv-scene { padding: 0; }
  .gv-forrige, .gv-naeste { top: auto; bottom: 0.5rem; transform: none; background: rgba(0, 0, 0, 0.45); }
}
html.gv-aaben, html.gv-aaben body { overflow: hidden; }

/* Spoergsmaal og svar */
.ss-faq { display: flex; flex-direction: column; gap: 0.6rem; }
.ss-faq-punkt { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--skygge); }
.ss-faq-punkt > summary {
  list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.15rem; position: relative;
  font-weight: 700; font-size: 1.04rem; line-height: 1.4; color: var(--text);
}
.ss-faq-punkt > summary::-webkit-details-marker { display: none; }
.ss-faq-punkt > summary::after {
  content: ''; position: absolute; right: 1.25rem; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--primaer-link); border-bottom: 2px solid var(--primaer-link); transform: rotate(45deg); transition: transform 0.2s;
}
.ss-faq-punkt[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ss-faq-punkt > summary:focus-visible { outline: 2px solid var(--primaer-link); outline-offset: 2px; border-radius: 14px; }
.ss-faq-svar { padding: 0 1.15rem 1.05rem; line-height: 1.7; color: var(--text-mid); }

/* Fri HTML: sandboxed iframe, hoejden saettes af side-html.php via postMessage */
.ss-html { display: block; width: 100%; height: 200px; border: 0; background: transparent; }

/* Vedhaeftede filer */
.ss-filer ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ss-filer a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; min-height: 48px;
}
.ss-filer a:hover { border-color: var(--primaer-link); text-decoration: none; }
.ss-fil-type {
  flex-shrink: 0; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; color: var(--primaer-link);
  background: color-mix(in srgb, var(--primary) 10%, #fff); border-radius: 6px; padding: 0.2rem 0.45rem;
}
.ss-fil-navn { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.ss-fil-str { flex-shrink: 0; font-size: 0.82rem; color: var(--text-lite); }
