/* 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:    4px;
  --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(--primary); 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;
  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);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav-link.active { color: var(--primary); }

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

.nav-logout {
  font-size: 0.82rem;
  color: var(--text-lite) !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: 100svh;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--primary);
  background-image:
    linear-gradient(to bottom, rgba(28,38,33,0.55) 0%, rgba(28,38,33,0.35) 60%, rgba(28,38,33,0.6) 100%),
    url('/public/img/hero-placeholder.jpg');
  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);
  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 { background: #dfa06a; }

.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(--primary);
  color: #fff;
}
.btn-solid:hover { background: #1e4a48; }

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

/* ---------- MARQUEE ---------- */
.marquee-band {
  background: 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(--primary); }

.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(--primary);
}

/* ---------- 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(--primary);
  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);
  padding: 0.6rem 0.4rem;
}

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

.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);
}

/* ---------- 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 ---------- */
.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);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  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(--primary);
  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);
  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(--primary);
}

.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);
  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);
  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-rolle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  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(--primary); }

/* ---------- 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);
  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: calc(var(--radius) * 2);
  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 {
  background: var(--text);
  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) var(--radius) 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(--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) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    transform: translateY(-110%);
    transition: transform 0.3s;
  }

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

  .nav-link { padding: 0.7rem 0.5rem; border-radius: 0; }
  .nav-login, .nav-member { margin-left: 0; margin-top: 0.5rem; }

  .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; }
}
