/* Godt Gået – fælles stilark */
:root {
  --red: #C0392B;
  --red-dark: #962d22;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --fg: #212121;
  --fg-muted: #555;
  --border: #ddd;
  --font: 'Google Sans', 'Nunito', Arial, sans-serif;
  --nav-height: 64px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
}

/* ── NAVIGATION ─────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 12px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img { height: 44px; width: auto; }
.nav-logo-text { font-size: 17px; font-weight: 700; color: var(--fg); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0; margin-left: auto;
}
.nav-links a {
  display: block; padding: 8px 12px;
  color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 500;
  border-radius: 4px; transition: background 0.15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: #f0f0f0; }
.nav-links a.active { color: var(--red); }

/* dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after { content: '▾'; font-size: 10px; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 4px; min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  list-style: none; padding: 4px 0;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { padding: 8px 16px; font-size: 14px; }

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); margin: 5px 0; }

@media (max-width: 768px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--border);
    padding: 12px 16px; gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 8px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: #f8f8f8; border-radius: 0; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-dropdown > a::after { margin-left: auto; }
}

/* ── HERO / PAGE HEADER ─────────────────────── */
.hero {
  text-align: center; padding: 48px 16px 32px;
  background: #fff;
}
.hero-logo { width: 100%; max-width: 562px; height: auto; margin: 0 auto; display: block; }
.hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); color: var(--red); margin-bottom: 16px; }

.page-header {
  text-align: center; padding: 40px 16px 24px;
}
.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--red); }

/* ── CONTENT ─────────────────────────────────── */
.container { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 0; }
.section + .section { border-top: 1px solid var(--border); }

p { margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }

h2 { font-size: 1.4rem; color: var(--red); margin-bottom: 16px; }
h3 { font-size: 1.1rem; color: var(--red); margin-bottom: 8px; }

/* Goal tiles */
.goals-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; margin-top: 20px;
}
.goal-tile {
  background: var(--bg-alt); border-radius: 8px; padding: 14px 16px;
  font-size: 0.95rem; display: flex; align-items: center; gap: 10px;
}
.goal-tile .emoji { font-size: 1.4rem; flex-shrink: 0; }

/* Document links */
.doc-list { list-style: none; padding: 0; }
.doc-list li { margin-bottom: 10px; }
.doc-list a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red); text-decoration: none; font-weight: 500;
  border: 1px solid var(--border); border-radius: 6px; padding: 8px 14px;
}
.doc-list a:hover { background: var(--bg-alt); }
.doc-list a::before { content: '📄'; }

.doc-previews {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.doc-preview {
  display: block; text-decoration: none; color: var(--fg);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  background: #fff; transition: box-shadow 0.15s, transform 0.15s;
}
.doc-preview:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.doc-preview img {
  display: block; width: 100%; aspect-ratio: 848 / 1200; object-fit: cover; object-position: top;
  border-bottom: 1px solid var(--border);
}
.doc-preview span {
  display: block; padding: 10px 14px; font-size: 0.9rem; font-weight: 500; color: var(--red);
}
.doc-preview span::before { content: '📄 '; }

/* News / image cards */
.news-card {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; margin-bottom: 32px;
}
@media (min-width: 600px) {
  .news-card { grid-template-columns: 200px 1fr; align-items: start; }
  .news-card.reversed { grid-template-columns: 1fr 200px; }
  .news-card.reversed .news-img { order: 2; }
  .news-card.reversed .news-text { order: 1; }
}
.news-img img {
  width: 100%; border-radius: 8px; display: block;
  aspect-ratio: 1; object-fit: cover;
}
.news-text h2 { margin-top: 0; }

/* ── BESTYRELSEN ─────────────────────────────── */
.members-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px; margin-top: 24px;
}
.member-card { text-align: center; }
.member-card img {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--border); margin-bottom: 12px; display: block; margin-left: auto; margin-right: auto;
}
.member-card .member-no-photo {
  width: 180px; height: 180px; border-radius: 50%; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
  margin: 0 auto 12px;
}
.member-role { color: var(--red); font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.member-name { font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.member-info { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.7; }
.member-info a { color: var(--red); text-decoration: none; }

/* ── SPORT PAGES ─────────────────────────────── */
.sport-hero {
  text-align: center; padding: 32px 16px;
}
.sport-hero img { max-width: 400px; width: 100%; border-radius: 8px; margin: 16px auto; display: block; }
.sport-info {
  background: var(--bg-alt); border-radius: 8px; padding: 20px 24px;
  margin-bottom: 24px;
}
.sport-info h3 { margin-bottom: 10px; color: var(--fg); }
.sport-info p { margin-bottom: 6px; }
.sport-info strong { color: var(--red); }

/* ── ARRANGEMENTER ───────────────────────────── */
.event-list { list-style: none; padding: 0; }
.event-item {
  background: var(--bg-alt); border-radius: 8px; padding: 20px 24px;
  margin-bottom: 16px; border-left: 4px solid var(--red);
}
.event-item h3 { color: var(--red); margin-bottom: 6px; }
.event-item p { margin-bottom: 4px; color: var(--fg-muted); }
.event-item p strong { color: var(--fg); }

/* ── SPORTSKAMMERAT ──────────────────────────── */
.award-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.award-table th { background: var(--red); color: #fff; padding: 10px 16px; text-align: left; }
.award-table td { padding: 9px 16px; border-bottom: 1px solid var(--border); }
.award-table tr:nth-child(even) td { background: var(--bg-alt); }
.award-year { font-weight: 700; color: var(--red); }

/* ── LINKS ───────────────────────────────────── */
.links-list { list-style: none; padding: 0; }
.links-list li { margin-bottom: 12px; }
.links-list a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red); text-decoration: none; font-size: 1.05rem; font-weight: 500;
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px;
}
.links-list a:hover { background: var(--bg-alt); }
.links-list a::before { content: '🔗'; }

/* ── PROGRAM / PDF ───────────────────────────── */
.pdf-embed { width: 100%; min-height: 600px; border: 1px solid var(--border); border-radius: 8px; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  margin-top: 48px; padding: 40px 16px;
}
.footer-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer-col h4 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-muted); margin-bottom: 10px;
}
.footer-col p, .footer-col a { font-size: 0.9rem; color: var(--fg); line-height: 1.8; }
.footer-col a { color: var(--red); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-brand { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.footer-bottom {
  max-width: 900px; margin: 24px auto 0; padding-top: 16px;
  border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--fg-muted);
  text-align: center;
}

/* Arrangement med invitation */
.event-item.has-doc { display: flex; gap: 20px; align-items: flex-start; }
.event-thumb { flex: 0 0 120px; display: block; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.event-thumb img { display: block; width: 100%; aspect-ratio: 848 / 1200; object-fit: cover; object-position: top; }
.event-body { flex: 1; min-width: 0; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--red); border-radius: 6px; color: var(--red); background: #fff;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.btn:hover { background: #fbeceb; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
@media (max-width: 560px) {
  .event-item.has-doc { gap: 14px; padding: 16px; }
  .event-thumb { flex-basis: 84px; }
  .event-actions { gap: 8px; }
  .event-actions .btn { flex: 1 1 auto; padding: 0 10px; font-size: 0.85rem; white-space: nowrap; }
}

/* Forside: intro og mål som originalen */
.intro { text-align: center; font-family: Arial, Helvetica, sans-serif; font-size: 18.67px; line-height: 1.45; }
.intro p { margin-bottom: 14px; }
.goals { margin-top: 28px; }
.goals p { font-weight: 700; font-style: italic; margin-bottom: 12px; }
.goals .goals-title { font-style: normal; text-decoration: underline; margin-bottom: 16px; }
@media (max-width: 560px) { .intro { font-size: 16.5px; } }
