/**
 * Broholmerselskabet – Shared Stylesheet
 * Used by: all content pages (broholmeren.html, avl.html, etc.)
 * index.html, tilmeld.html, medlem.html, opdraetter-portal.html,
 * bestyrelse.html have their own inline styles for performance.
 */

:root {
  --cream: #f5f0e8;
  --parchment: #ede5d0;
  --bark: #6b4f2e;
  --soil: #3d2b14;
  --gold: #b8892a;
  --gold-light: #d4a93e;
  --navy: #1e2d4a;
  --navy-light: #2c3e5e;
  --slate: #6b7a94;
  --shadow: rgba(30,45,74,0.1);
  --r: 3px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--cream);
  color: var(--soil);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

/* ── HEADER ── */
.site-header {
  background: var(--soil);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; flex-shrink: 0; }
.logo-paw { width: 38px; height: 38px; background: transparent; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.logo-text { font-family: 'Playfair Display', serif; color: var(--cream); font-size: 1.1rem; font-weight: 700; line-height: 1.15; }
.logo-sub { color: var(--gold-light); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 300; }

.desktop-nav { display: flex; align-items: center; gap: 0.1rem; }
.desktop-nav a {
  color: var(--parchment);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.65rem;
  border-radius: var(--r);
  transition: 0.2s;
  white-space: nowrap;
}
.desktop-nav a:hover { background: rgba(184,137,42,0.2); color: var(--gold-light); }
.btn-nav-portal { background: rgba(255,255,255,0.1) !important; border: 1px solid rgba(255,255,255,0.22) !important; }
.btn-nav-join { background: var(--gold) !important; color: var(--soil) !important; font-weight: 700 !important; margin-left: 0.35rem; }
.btn-nav-join:hover { background: var(--gold-light) !important; }

/* Lang picker */
.lang-picker-wrap { position: relative; }
.lang-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: var(--parchment); font-family: 'Source Serif 4', serif; font-size: 0.76rem; padding: 0.38rem 0.65rem; border-radius: var(--r); cursor: pointer; display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; transition: 0.2s; }
.lang-btn:hover { background: rgba(255,255,255,0.15); }
.lang-chevron { font-size: 0.6rem; opacity: 0.7; }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; background: var(--soil); border: 1px solid rgba(184,137,42,0.3); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); min-width: 160px; z-index: 300; overflow: hidden; }
.lang-opt { display: flex; align-items: center; gap: 0.5rem; width: 100%; background: none; border: none; color: rgba(245,240,232,0.8); font-family: 'Source Serif 4', serif; font-size: 0.82rem; padding: 0.55rem 1rem; cursor: pointer; text-align: left; transition: 0.15s; }
.lang-opt:hover { background: rgba(184,137,42,0.15); color: var(--cream); }
.lang-opt.active { color: var(--gold-light); font-weight: 600; }

/* Hamburger + mobile drawer */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; margin-left: 0.5rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-drawer { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: var(--soil); z-index: 190; overflow-y: auto; padding: 1.5rem 1.25rem 2rem; transform: translateX(100%); transition: transform 0.3s ease; }
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a { display: block; color: var(--parchment); text-decoration: none; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1rem; }
.mobile-drawer a:last-of-type { border-bottom: none; }
.mobile-drawer .md-join { color: var(--gold-light); font-weight: 700; margin-top: 0.5rem; }
.mobile-lang { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-lang-label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.75rem; }
.mobile-lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.mobile-lang-btn { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: rgba(245,240,232,0.75); font-family: 'Source Serif 4', serif; font-size: 0.82rem; padding: 0.5rem 0.75rem; border-radius: var(--r); cursor: pointer; text-align: left; transition: 0.2s; }
.mobile-lang-btn.active { background: rgba(184,137,42,0.2); border-color: rgba(184,137,42,0.4); color: var(--gold-light); }

/* ── PAGE CONTENT ── */
.page-content { padding: 3.5rem 1.25rem 5rem; }
.page-inner { max-width: 860px; margin: 0 auto; }

/* ── PROSE ── */
.prose h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.3rem,2.5vw,1.7rem); font-weight: 700; color: var(--soil); margin: 2rem 0 0.75rem; }
.prose h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--bark); margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; font-size: 0.975rem; }
.prose .lead { font-size: 1.1rem; color: var(--bark); font-weight: 300; line-height: 1.85; margin-bottom: 2rem; }
.prose ul, .prose ol { margin: 0.5rem 0 1.25rem 1.5rem; }
.prose li { margin-bottom: 0.4rem; font-size: 0.975rem; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--parchment);
  border-left: 4px solid var(--gold);
  padding: 1.1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
}
.highlight-box a { color: var(--gold); font-weight: 600; }

/* ── INFO GRID ── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.info-card {
  background: var(--cream);
  border: 1px solid rgba(107,79,46,0.15);
  border-radius: 4px;
  padding: 1.25rem;
  transition: 0.25s;
}
.info-card:hover { box-shadow: 0 4px 16px var(--shadow); transform: translateY(-1px); }
.info-card strong { font-family: 'Playfair Display', serif; font-size: 0.95rem; display: block; margin-bottom: 0.4rem; }
.info-card p { font-size: 0.85rem; color: #5a4a38; margin: 0; }
.info-card a { color: var(--gold); font-weight: 600; font-size: 0.82rem; }

/* ── LINKS ── */
.link-group { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.btn-link {
  display: inline-flex; align-items: center; padding: 0.65rem 1.4rem;
  background: var(--gold); color: var(--soil);
  border-radius: var(--r); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: 0.2s;
}
.btn-link:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-link-ghost {
  display: inline-flex; align-items: center; padding: 0.65rem 1.4rem;
  background: transparent; color: var(--bark);
  border: 1px solid rgba(107,79,46,0.3);
  border-radius: var(--r); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: 0.2s;
}
.btn-link-ghost:hover { background: var(--parchment); }

/* ── TABLES ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 1rem 0 1.5rem; }
.data-table th { background: var(--parchment); padding: 0.6rem 0.9rem; text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bark); border-bottom: 1px solid rgba(107,79,46,0.2); }
.data-table td { padding: 0.65rem 0.9rem; border-bottom: 1px solid rgba(107,79,46,0.1); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(237,229,208,0.35); }

/* ── FOOTER ── */
.site-footer { background: #111929; color: rgba(245,240,232,0.58); padding: 3.5rem 1.25rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 1.75rem; }
.footer-brand p { font-size: 0.85rem; margin-top: 0.85rem; line-height: 1.75; font-weight: 300; }
.footer-col h4 { font-family: 'Playfair Display', serif; color: var(--cream); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.85rem; }
.footer-col a { display: block; color: rgba(245,240,232,0.52); text-decoration: none; font-size: 0.82rem; padding: 0.18rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; font-size: 0.75rem; }
.footer-bottom a { color: rgba(245,240,232,0.38); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-badges { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.75rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-badges-label { font-family: 'Playfair Display', serif; color: var(--cream); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-badges img { height: 74px; width: 74px; object-fit: contain; display: block; background: #fff; border-radius: 50%; padding: 7px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); transition: transform 0.2s, box-shadow 0.2s; }
.footer-badges a:hover img { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.4); }

/* ── TOAST ── */
#toastContainer { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.6rem; pointer-events: none; max-width: 320px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  /* keep the "Bliv medlem" button visible on mobile; hide the rest of the nav */
  .desktop-nav { display: flex; }
  .desktop-nav > #dynamicDesktopNav, .desktop-nav > .btn-nav-portal, .desktop-nav > #langPickerDesktop { display: none !important; }
  .btn-nav-join { margin-left: 0; }
  .hamburger { display: flex; }
  .mobile-drawer { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}
@media (max-width: 600px) {
  .page-content { padding: 2.5rem 1rem 4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}

/* ── DROPDOWN NAV ── */
.nav-dropdown{position:relative;display:inline-flex;}
.nav-drop-btn{background:none;border:none;color:var(--parchment);font-family:'Source Serif 4',serif;font-size:0.78rem;letter-spacing:0.06em;text-transform:uppercase;padding:0.45rem 0.65rem;border-radius:var(--r);cursor:pointer;transition:0.2s;white-space:nowrap;}
.nav-drop-btn:hover{background:rgba(184,137,42,0.2);color:var(--gold-light);}
.nav-drop-menu{display:none;position:absolute;top:100%;left:0;background:var(--soil);border:1px solid rgba(184,137,42,0.25);border-radius:4px;box-shadow:0 8px 24px rgba(0,0,0,0.35);min-width:210px;z-index:300;overflow:hidden;margin-top:0;}
.nav-drop-menu a{display:block;color:rgba(245,240,232,0.78);text-decoration:none;padding:0.55rem 1rem;font-size:0.82rem;transition:0.15s;border-bottom:1px solid rgba(255,255,255,0.05);}
.nav-drop-menu a:last-child{border-bottom:none;}
.nav-drop-menu a:hover{background:rgba(184,137,42,0.15);color:var(--cream);}
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu,
.nav-dropdown .nav-drop-menu:hover{display:block;}
.nav-dropdown{position:relative}
.nav-dropdown::after{content:'';position:absolute;top:100%;left:0;right:0;height:8px;background:transparent;display:none}
.nav-dropdown:hover::after{display:block}
/* Mobile section labels */
.md-section-label{font-size:0.6rem!important;letter-spacing:0.2em;text-transform:uppercase;color:var(--slate)!important;padding:0.75rem 0 0.2rem!important;font-weight:700;border-bottom:none!important;cursor:default;}
/* Breadcrumb */
.breadcrumb{font-size:0.75rem;color:var(--slate);margin-bottom:1.5rem;display:flex;align-items:center;gap:0.4rem;flex-wrap:wrap;}
.breadcrumb a{color:var(--gold);text-decoration:none;font-weight:600;}
.breadcrumb a:hover{text-decoration:underline;}
.breadcrumb span{opacity:0.5;}
/* Page hero alt (lighter) */
.page-hero-light{background:var(--parchment);border-bottom:1px solid rgba(107,79,46,0.12);padding:2.5rem 1.25rem 2rem;}
.page-hero-light .page-inner-hero{max-width:860px;margin:0 auto;}
.page-hero-light h1{font-family:'Playfair Display',serif;font-size:clamp(1.6rem,3.5vw,2.4rem);font-weight:900;color:var(--soil);}
.page-hero-light .pg-tag{font-size:0.68rem;letter-spacing:0.2em;text-transform:uppercase;color:var(--gold);font-weight:600;margin-bottom:0.4rem;}
/* Related links box */
.related-box{background:var(--parchment);border-radius:5px;padding:1.25rem 1.5rem;margin-top:3rem;}
.related-box h4{font-family:'Playfair Display',serif;font-size:0.88rem;font-weight:700;margin-bottom:0.75rem;text-transform:uppercase;letter-spacing:0.08em;color:var(--bark);}
.related-links{display:flex;gap:0.6rem;flex-wrap:wrap;}
.related-link{font-size:0.8rem;color:var(--navy);text-decoration:none;font-weight:600;padding:0.35rem 0.75rem;background:var(--cream);border:1px solid rgba(107,79,46,0.18);border-radius:var(--r);transition:0.2s;}
.related-link:hover{background:rgba(184,137,42,0.1);border-color:var(--gold);}

/* ── MOBILE DRAWER (mob-drawer class used by kalender, etc) ─────────────── */
.mob-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  background: var(--navy);
  z-index: 300;
  padding: 1.5rem 0;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0,0,0,.3);
}
.mob-drawer.open { display: flex; }
.mob-drawer a {
  display: block;
  padding: .75rem 1.5rem;
  color: rgba(245,240,232,.75);
  text-decoration: none;
  font-size: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mob-drawer a:hover { background: rgba(255,255,255,.07); color: var(--cream); }
.mob-drawer a.active { color: var(--gold-light); font-weight: 600; }
.mob-close {
  background: none; border: none; color: rgba(245,240,232,.6);
  font-size: 1.2rem; cursor: pointer; padding: .5rem 1.5rem 1rem;
  text-align: right; display: block; width: 100%;
}
.hbg {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: .4rem;
}
.hbg span { display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: .2s; }
.hbg.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hbg.open span:nth-child(2) { opacity: 0; }
.hbg.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media(max-width:768px) {
  .hbg { display: flex; }
}
