
:root{
  --bg1:#f3f4f6;
  --bg2:#ffffff;
  --ink:#0b0f19;
  --muted:#6b7280;
  --line:#e5e7eb;
  --card: rgba(255,255,255,.78);
  --cardSolid:#ffffff;
  --shadow: 0 18px 50px rgba(17,24,39,.12);
  --radius: 22px;
  --radius-lg: 28px;
  --blur: 10px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  background: radial-gradient(1200px 700px at 10% 0%, #ffffff 0%, var(--bg1) 55%, #e9eef7 100%);
}

a{ color:inherit; text-decoration:none; }
button{ font: inherit; }

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

/* Header */
.site-header{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(var(--blur));
  background: rgba(255,255,255,.8);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:14px; min-width: 0;
}
.brand img{
  height: 54px; width:auto;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.12));
}
.brand .brand-text{
  line-height: 1.05;
}
.brand .brand-text .t1,
.brand .brand-text .t2{
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 14px;
  white-space: nowrap;
}
.brand .brand-text .t2{ margin-top: 3px; }

.nav-desktop{
  display:none;
  gap: 34px;
  align-items:center;
}
.nav-desktop a{
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  padding-bottom: 6px;
  transition: all .25s ease;
}
.nav-desktop a:hover{ color: var(--ink); border-bottom-color: #bfc5cf; }
.nav-desktop a.active{ color: var(--ink); border-bottom-color: var(--ink); }

/* Mobile menu button */
.mobile-controls{
  display:flex; align-items:center; gap:10px;
}
.pill{
  display:none;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-btn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: 0 6px 18px rgba(17,24,39,.08);
}
.bars{ display:flex; flex-direction:column; gap:6px; }
.bars span{ height:2px; width: 22px; background: var(--ink); border-radius:2px; display:block; }

.mobile-panel{
  display:none;
  padding: 10px 0 16px 0;
}
.mobile-panel .panel{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.mobile-panel a{
  display:block;
  padding: 14px 16px;
  border-bottom: 1px solid #f2f3f6;
  color: #374151;
  font-size: 14px;
}
.mobile-panel a:last-child{ border-bottom:none; }
.mobile-panel a.active{ background:#f7f7f9; color: var(--ink); }

/* Main */
main{ flex:1; }
.page-wrap{ padding: 24px 0 44px; }
.hero{
  padding: 34px 0 10px;
}
.card{
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card .card-inner{ padding: 22px; }
h1{
  margin:0 0 14px 0;
  font-weight: 650;
  letter-spacing: .02em;
  font-size: 26px;
}
p{
  margin:0;
  color: #4b5563;
  line-height: 1.7;
  font-size: 16px;
}

/* Buttons/inputs */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #111827;
  background: #111827;
  color:white;
  font-weight: 600;
  letter-spacing: .03em;
}
.btn.outline{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.full{ width:100%; }

.input{
  width:100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  outline:none;
  font-size: 15px;
}
.input:focus{
  border-color:#111827;
  box-shadow: 0 0 0 3px rgba(17,24,39,.12);
}

.row{ display:flex; gap:12px; flex-direction:column; }
.badges{ display:flex; flex-wrap: wrap; gap:8px; }
.badge{
  font-size: 12px;
  border: 1px solid var(--line);
  background: #f3f4f6;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Footer */
.site-footer{
  margin-top: 26px;
  background: #0b0f19;
  color: white;
}
.footer-inner{ padding: 28px 0; }
.footer-title{
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0 0 14px;
}
.sponsor-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sponsor-tile{
  height: 78px;
  border-radius: 16px;
  overflow: hidden;              /* viktigt för rundade hörn */
  padding: 1px;                    /* ta bort padding */
  background: transparent;
  display: flex;
}
.sponsor-tile img{
  width: 100%;
  height: 100%;
  object-fit: contain;           /* fyll utan beskärning */
  background: white;             /* gör så vit logga smälter in */
  border-radius: 16px;           /* exakt samma som rutan */
  display: block;
}
.footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: 12px;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
}

/* Desktop */
@media (min-width: 768px){
  .nav-desktop{ display:flex; }
  .mobile-controls{ display:none; }
  .mobile-panel{ display:none !important; }
  .brand img{ height: 74px; }
  .brand .brand-text .t1, .brand .brand-text .t2{ font-size: 18px; }
  .page-wrap{ padding: 46px 0 74px; }
  .card .card-inner{ padding: 44px; }
  h1{ font-size: 34px; }
  p{ font-size: 18px; }
  .row{ flex-direction: row; }
  .sponsor-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .sponsor-tile{ height: 78px; }
}

/* Utility */
.hidden{ display:none !important; }

.two-col{
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;                 /* lite mer luft mellan rutorna */
  max-width: 1400px;         /* 👈 gör hela blocket bredare */
  margin: 24px auto;
  padding: 0 24px;
}

@media (min-width: 1024px){
  .two-col{
    grid-template-columns: 1fr 1fr;  /* lika breda */
    align-items: start;
  }
}

.two-col > .card{
  width: 100%;
  max-width: none;
  margin: 0;
}

.member-status {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}
.member-status.ok {
  color: #1f7a3a;   /* grön */
}
.member-status.fail {
  color: #b42318;   /* röd */
}

/* ===== Enhetlig font i alla formulär ===== */

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}

/* Placeholder-text */
input::placeholder,
textarea::placeholder {
  font-family: inherit;
  font-size: 14px;
  color: #9ca3af;
  opacity: 1;
}

/* Datumfält också */
input[type="date"] {
  font-family: inherit;
}

/* ===== Dropdown (Desktop) ===== */
.nav-item{ position: relative; display: inline-flex; align-items: center; }

.has-submenu .submenu{
  position: absolute;
  top: 100%;
margin-top: 8px; /* valfritt */
  left: 0;
  min-width: 220px;
  display: none;

  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(var(--blur));
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 6px;
  z-index: 60;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu{
  display: block;
}

.has-submenu .submenu a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 11px;
  color: #374151;
  border-bottom: none;
}

.has-submenu .submenu a:hover{
  background: #f3f4f6;
  color: var(--ink);
}

/* Håll dropdownen öppen när musen går från länken till menyn */
.nav-desktop .nav-item.has-submenu{
  position: relative;
}

/* Osynlig hover-yta mellan länk och dropdown (eliminerar glapp) */
.nav-desktop .nav-item.has-submenu::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;           /* matcha ditt tidigare glapp (t.ex. 12px) */
}

/* Dropdown-position (behåll gärna din styling i övrigt) */
.nav-desktop .nav-item.has-submenu > .submenu{
  top: 100%;
margin-top: 4px; /* eller 0 om du vill ha helt tight */
}

/* ===== BOMB-SÄKER DROPDOWN (Desktop) ===== */
.nav-desktop .nav-item.has-submenu{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Osynlig "bro" som gör att hover inte släpper när du rör musen nedåt */
.nav-desktop .nav-item.has-submenu::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;       /* öka vid behov */
}

/* Själva menyn */
.nav-desktop .nav-item.has-submenu > .submenu{
  display: none !important;
  position: absolute;
  left: 0;
  top: 100%;
margin-top: 4px; /* eller 0 om du vill ha helt tight */
  min-width: 220px;
  z-index: 9999;

  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(var(--blur));
  pointer-events: auto;
}

/* Öppna på hover + när fokus är i menyn */
.nav-desktop .nav-item.has-submenu:hover > .submenu,
.nav-desktop .nav-item.has-submenu:focus-within > .submenu{
  display: block !important;
}

/* Länkar i dropdownen */
.nav-desktop .nav-item.has-submenu > .submenu a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border-bottom: none !important;
  padding-bottom: 10px;
}

/* ===== Modern Kontakt-sida ===== */

.contact-hero {
  padding: 60px 0;
}

.contact-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.contact-card {
  text-decoration: none;
  color: inherit;
  display: block;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.image-wrapper {
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.contact-card:hover img {
  transform: scale(1.05);
}

.contact-content {
  padding: 30px;
}

.contact-content h2 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.contact-email a {
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: #1a1a1a;
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 15px;
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* ===== Kontakt-sida (SÄKB-stil) ===== */

/* ===== Kontakt-sida (SÄKB-stil) – FIX ===== */

.card .contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
}

/* Fullbredds-notis under kontaktkorten */
.card .contact-note-card {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.85;
}

.card a.contact-box {
  display: block;
  text-decoration: none;
  color: inherit;

  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.card a.contact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 46px rgba(0,0,0,0.12);
}

/* Viktigt: gör att bilderna inte blir “jättestora” även om ni har globala img-regler */
.card a.contact-box > img {
  width: 100%;
  height: 340px;   /* Ökad höjd */
  object-fit: cover;
  display: block;
}

.card .contact-box-body {
  padding: 18px 20px 20px;
}

.card .contact-box-body h2 {
  margin: 0 0 10px;
}

.card .contact-box-body .contact-email {
  font-weight: 700;
  margin-top: 10px;
  display: inline-block;   /* Gör att den inte beter sig som fullbredds <p> */
  white-space: nowrap;     /* Hindrar radbrytning */
}

.card .contact-note {
  margin-top: 22px;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.65;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 14px;
}

/* Mobil */
@media (max-width: 900px) {
  .card .contact-row {
    grid-template-columns: 1fr;
  }

  .card a.contact-box > img {
    height: 220px;
  }
}
/* ===== Mobilanpassning ===== */

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

  .image-wrapper img {
    height: 250px;
  }
}

/* ===== Tvinga mailadresser att alltid ligga på en rad ===== */
.contact-email,
.contact-email a {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  display: inline-block;
}

/* ===== Kontakt: håll text + mail på en rad (premium) ===== */

/* Brödtext (stycke) i korten: max 1 rad + ellipsis */
.contact-content p,
.card .contact-box-body p {
  font-size: 0.95rem;      /* lite mindre */
  line-height: 1.45;
  margin: 0.45rem 0;
}

/* Gör just beskrivningstexten till 1 rad + ... */
.contact-content p:not(.contact-email):not(.contact-note),
.card .contact-box-body p:not(.contact-email):not(.contact-note) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mail: alltid 1 rad */
.contact-email,
.contact-email a,
.card .contact-box-body .contact-email,
.card .contact-box-body .contact-email a {
  font-size: 1.0rem;       /* ev lite mindre än innan */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;          /* så ellipsis funkar säkert */
  max-width: 100%;
}

.quick-links__title{
  margin: 0 0 0.9rem 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.quick-links__grid{
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-link{
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;

  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.quick-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
  border-color: rgba(15, 23, 42, 0.14);
}

.quick-link__label{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-weight: 800;
}

.quick-link__label::after{
  content: "→";
  opacity: .55;
}

.quick-link__meta{
  display: block;
  margin-top: .35rem;
  font-size: .92rem;
  opacity: .72;
  line-height: 1.35;
}

/* Lite tightare på små skärmar */
@media (max-width: 520px){
  .quick-links__grid{ grid-template-columns: 1fr; }
}

/* 3 kolumner på desktop */
@media (min-width: 900px){
  .quick-links__grid{
    grid-template-columns: repeat(3, 1fr);
  }

/* 3 kolumner på desktop */
@media (min-width: 900px){
  .quick-links__grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2 kolumner på mellanbredd */
@media (min-width: 620px) and (max-width: 899px){
  .quick-links__grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

.results-list{
  display: grid;
  gap: 1rem;
}

.result-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;

  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 6px 18px rgba(15,23,42,0.05);
}

.result-item h3{
  margin: 0 0 .25rem 0;
}

.result-item p{
  margin: 0;
  opacity: .7;
  font-size: .95rem;
}

/* Mobil */
@media (max-width: 640px){
  .result-item{
    flex-direction: column;
    align-items: flex-start;
  }
}