:root{
  --bg: #f5f8fb;
  --surface: #ffffff;
  --text: #0b1220;
  --muted: #5a667a;
  --border: rgba(12, 22, 40, 0.10);
  --shadow: 0 10px 30px rgba(10, 20, 40, 0.08);
  --primary: #0b2b55;     /* marinblå */
  --accent: #00c389;      /* "Malmö-grön" */
  --accent-2: #12b5ff;    /* cyan (kan användas sparsmakat) */
  --danger: #d92d20;
  --warn: #f79009;
  --ok: #039855;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(18,181,255,0.10), transparent 55%),
              radial-gradient(900px 500px at 85% 10%, rgba(0,195,137,0.10), transparent 50%),
              var(--bg);
  line-height:1.55;
}

a{color:inherit}
a:hover{opacity:.9}

html {
  overflow-y: scroll;
}


.skiplink{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skiplink:focus{
  left:16px; top:16px; width:auto; height:auto;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 999;
}

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.header{
  position: sticky;
  top:0;
  z-index:50;
  background: rgba(245,248,251,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner{
  display:flex;
  align-items:center;
  gap:18px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  min-width: 220px;
}
.brand__mark{
  width: 44px; height: 44px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, var(--primary), #083a7a);
  box-shadow: 0 12px 24px rgba(11, 43, 85, 0.18);
  position: relative;
}
.brand__mark::after{
  content:"";
  position:absolute; inset: 10px 11px 12px 11px;
  border: 2px solid rgba(255,255,255,.85);
  border-top-color: rgba(255,255,255,.35);
  border-left-color: rgba(255,255,255,.35);
  border-radius: 12px;
  transform: rotate(12deg);
}
.brand__text{display:flex; flex-direction:column; gap:2px}
.brand__name{font-weight:800; letter-spacing: -0.02em}
.brand__tagline{font-size:12px; color:var(--muted)}

.nav{
  margin-left:auto;
  display:flex;
  flex-wrap:wrap;
  gap: 10px 12px;
  justify-content:flex-end;
}
.nav__link{
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  color: rgba(11,18,32,.92);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.nav__link:hover{
  background: rgba(255,255,255,.75);
  border-color: var(--border);
}
.nav__link.is-active{
  background: rgba(0,195,137,.12);
  border-color: rgba(0,195,137,.22);
  color: var(--primary);
}

.nav__toggle{
  display:none;
  margin-left:auto;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  font-weight:700;
}

@media (max-width: 980px){
  .brand__tagline{display:none}
  .nav__toggle{display:inline-flex}
  .nav{display:none; width:100%; justify-content:flex-start}
  .nav.is-open{display:flex}
  .header__inner{flex-wrap:wrap}
}

.hero{
  padding: 54px 0 10px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px){
  .hero__grid{grid-template-columns:1fr}
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__card{padding: 28px}
.h1{
  font-size: 40px;
  letter-spacing:-0.03em;
  line-height:1.08;
  margin: 0 0 10px;
}
.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}
.badges{
  display:flex; flex-wrap:wrap;
  gap: 8px;
  margin: 18px 0 0;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(245,248,251,.65);
}
.badge__dot{
  width:8px; height:8px; border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,195,137,.15);
}
.actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 18px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.8);
}
.btn--primary{
  background: linear-gradient(135deg, var(--accent), #29d3a2);
  border-color: rgba(0,195,137,.35);
  color: #062018;
}
.btn--dark{
  background: linear-gradient(135deg, var(--primary), #083a7a);
  border-color: rgba(11,43,85,.35);
  color: white;
}
.btn:hover{transform: translateY(-1px)}
.small{
  font-size: 13px;
  color: var(--muted);
}

.section{
  padding: 28px 0;
}
.section__title{
  font-size: 22px;
  margin: 0 0 14px;
  letter-spacing:-0.02em;
}
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px){
  .grid3{grid-template-columns:1fr}
}
.feature{
  padding: 18px;
}
.kicker{
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(11,43,85,.85);
}
.feature h3{
  margin: 8px 0 8px;
  font-size: 18px;
}
.feature p{
  margin: 0;
  color: var(--muted);
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px){
  .split{grid-template-columns:1fr}
}
.box{padding: 18px}

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.hr{
  height:1px; background: var(--border);
  margin: 18px 0;
}

.status{
  padding: 18px;
  display:flex; flex-direction:column; gap: 10px;
}
.status__row{
  display:flex; align-items:center; justify-content:space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(245,248,251,.55);
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
}
.pill__dot{width:8px; height:8px; border-radius:999px}
.pill--ok .pill__dot{background: var(--ok)}
.pill--warn .pill__dot{background: var(--warn)}
.pill--down .pill__dot{background: var(--danger)}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}
.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(11,18,32,.06);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  overflow:auto;
}

.form{
  display:grid;
  gap: 10px;
}
.input, .textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  font: inherit;
}
.textarea{min-height: 120px; resize: vertical}
.label{font-weight: 800; font-size: 13px}
.note{font-size: 12px; color: var(--muted)}

.footer{
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.65);
  margin-top: 34px;
}
.footer__inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  padding: 18px 0;
}
.footer__title{font-weight:900}
.footer__small{color: var(--muted); font-size: 12px}
.footer__links{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 12px;
  justify-content:flex-end;
}
.footer__links a{
  text-decoration:none;
  font-weight: 700;
  font-size: 13px;
  color: rgba(11,18,32,.85);
}


/* Enkel dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: transparent;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  color: rgba(11,18,32,.92);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* visas när #popup-karta är aktiv */
.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px #000;
}

/* X-knappen */
.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 40px;
  height: 40px;
  text-decoration: none;
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 3px;
  background: #fff;
}

.close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.close-btn:hover::before,
.close-btn:hover::after {
  background: #ffdddd;
}

.close-text {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 14px;
  font-family: sans-serif;
  white-space: nowrap;
  opacity: 0.8;
}

.close-btn:hover .close-text {
  opacity: 1;
}



/* popup */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.active {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.modal__window {
  position: relative;
  width: min(1100px, 95%);
  height: 85vh;
  margin: 5vh auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal__window iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
}
