body{
  margin:0;
  font-family: system-ui, Arial, sans-serif;
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
}

.container{
  max-width:1100px;
  margin: 0 auto;
  padding: 16px;
}

.site-header{
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.logo-banner{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 10px 16px;
}

.logo{
  max-height:70px;
  max-width:260px;
  width:auto;
  height:auto;
  object-fit:contain;
}

.site-title{ font-size: 1.4rem; font-weight: 700; }

.menu{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  padding: 8px 16px 12px 16px;
}
.menu a{
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  color:#111;
}
.menu a:hover{ background: rgba(255,255,255,1); }

.card{
  background: rgba(255,255,255,0.86);
  border-radius: 16px;
  padding: 14px;
}

.footer{
  padding: 16px;
  text-align:center;
  color:#222;
  background: rgba(255,255,255,0.65);
}

@media (max-width: 520px){
  .menu{ gap: 6px; }
  .menu a{ padding: 8px; font-size: 0.95rem; }
}

.news-table{ width:100%; border-collapse: collapse; margin-top: 10px; }
.news-table th, .news-table td{
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding: 10px;
  vertical-align: top;
}
.news-img img{ max-width:140px; border-radius: 10px; }
.front-grid{
  display:grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  gap: 14px;
  align-items:start;
}

/* meget vigtigt: grid-items må gerne krympe */
.front-grid > *{
  min-width: 0;
}

.front-grid .card{
  min-width: 0;
  overflow:hidden;
}

/* på forsiden skal nyhederne være 1 kolonne */

.front-grid .news-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}

.front-grid .news-card{
  width: 100%;
  min-width: 0;
  overflow:hidden;
  background:#fff;
  border:1px solid #d9e0e7;
  border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,0.06);
  border-left:6px solid #2c4a7a;
}

.news-content{
  padding:16px 18px 18px 18px;
}

.news-date{
  display:inline-block;
  margin-bottom:10px;
  padding:4px 10px;
  font-size:0.82rem;
  color:#35527a;
  background:#eef4ff;
  border-radius:999px;
}

.news-card h3{
  margin:0 0 10px 0;
  font-size:1.15rem;
  line-height:1.3;
}



.front-grid .news-image{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display:block;
}

.side-images{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.side-images img{
  width:100%;
  height:auto;
  border-radius: 14px;
  display:block;
}

@media (max-width: 900px){
  .front-grid{ grid-template-columns: 1fr; }
  .side-images{ flex-direction:row; flex-wrap:wrap; }
  .side-images img{ width: calc(50% - 7px); }
}

/* Portrætter på "Hvem er vi" */

.member-photo{
  width:120px;
  height:120px;
  object-fit:cover;
  object-position:center;
  border-radius:10px;
}

/* medlemmer grid */

.members-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin-top:20px;
}

@media (max-width: 800px){
  .members-grid{
    grid-template-columns:1fr;
  }
}

.member-card{
  display:flex;
  gap:16px;
  padding:16px;
  background:rgba(255,255,255,0.9);
  border-radius:14px;
}

.member-photo{
  width:120px;
  height:120px;
  object-fit:cover;
  border-radius:12px;
}

.member-default{
  filter:grayscale(100%);
  opacity:0.7;
}

.member-name{
  font-size:20px;
  font-weight:600;
}

.member-role{
  font-weight:500;
  color:#444;
}

.member-since{
  font-size:13px;
  color:#666;
}

.member-email{
  font-size:14px;
  margin-top:3px;
}

.member-desc{
  margin-top:8px;
}

.news-table th {
  text-align: left;
}

.news-table td {
  text-align: left;
}

/* årsrapporter */

.reports-table {
  width: auto;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
}

.reports-table th {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 2px solid #ccc;
  font-weight: 600;
}

.reports-table td {
  padding: 4px 10px;
  border-bottom: 1px solid #e5e5e5;
}

.reports-table tr:hover {
  background: #f8f8f8;
}

.year-col {
  width: 80px;
  text-align: right;
  font-weight: 500;
}

/* download knap */

.download-btn {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  background: #e9eef6;
  color: #2c4a7a;
}

.download-btn:hover {
  background: #d8e3f3;
}

/* fremhæv nyeste årsrapport */

.reports-table tbody tr:first-child {
  background: #eef4ff;
  font-weight: 600;
}

.reports-table tbody tr:first-child .download-btn {
  background: #2c4a7a;
  color: white;
}

.reports-table tbody tr:first-child .download-btn:hover {
  background: #1f3556;
}

/* ===== Header / menu ===== */

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 20px;
  background:rgba(255,255,255,0.95);
  border-bottom:1px solid #ddd;
}

.site-header nav a{
  margin-right:18px;
  text-decoration:none;
  font-weight:500;
  color:#2c2c2c;
}

.site-header nav a:hover{
  color:#2c4a7a;
}

/* ===== container ===== */

.container{
  max-width:1100px;
  margin:auto;
  padding:20px;
}

/* ===== cards ===== */

.card{
  background:white;
  padding:18px;
  border-radius:8px;
  box-shadow:0 3px 8px rgba(0,0,0,0.08);
  margin-bottom:18px;
}

/* ===== nyheder ===== */

.news-item{
  display:flex;
  gap:16px;
  margin-bottom:16px;
}

.news-item img{
  width:140px;
  height:100px;
  object-fit:cover;
  border-radius:6px;
}

/* ===== mobil ===== */

@media (max-width: 700px){

  .site-header{
    flex-direction:column;
    align-items:flex-start;
  }

  .site-header nav{
    margin-top:8px;
  }

  .news-item{
    flex-direction:column;
  }

  .news-item img{
    width:100%;
    height:auto;
  }
}

.news-text{
  overflow-wrap:anywhere;
  line-height:1.55;
}

.news-text p:last-child{
  margin-bottom:0;
}


.companies-table{
  width:100%;
  border-collapse:collapse;
}

.companies-table td{
  padding:12px 10px;
  border-bottom:1px solid #e6e6e6;
  vertical-align:top;
}

.company-text{
  width:100%;
}

.company-name{
  font-weight:700;
  margin-bottom:4px;
}

.company-name a{
  text-decoration:underline;
}

.company-logo-cell{
  width:180px;
  text-align:right;
}

.company-logo{
  max-width:160px;
  max-height:90px;
  object-fit:contain;
}

@media (max-width: 700px){
  .companies-table,
  .companies-table tbody,
  .companies-table tr,
  .companies-table td{
    display:block;
    width:100%;
  }

  .company-logo-cell{
    text-align:left;
    margin-top:8px;
  }
}

.associations-table{
  width:100%;
  border-collapse:collapse;
}

.associations-table td{
  padding:12px 10px;
  border-bottom:1px solid #e6e6e6;
  vertical-align:top;
}

.association-name{
  font-weight:700;
  margin-bottom:4px;
}

@media (max-width: 700px){
  .associations-table,
  .associations-table tbody,
  .associations-table tr,
  .associations-table td{
    display:block;
    width:100%;
  }
}

.follow-box{
  margin-top:20px;
}

.flash-ok{
  padding:10px 12px;
  border-radius:8px;
  background:#eef8ee;
  color:#245624;
}

.flash-err{
  padding:10px 12px;
  border-radius:8px;
  background:#fff1f1;
  color:#8a2323;
}
