/* ============================================================
   Husdröm – utseende
   Färger och typsnitt följer den tidigare WordPress-sajten:
   Montserrat för rubriker och meny, Roboto för brödtext,
   mörk skiffer (#242D36) för knappar och sidfot.
   ============================================================ */
:root {
  --ink: #000;
  --text: #333;
  --muted: #6b7178;
  --accent: #242D36;
  --accent-2: #3a4652;
  --gray: #E1E1E1;
  --gray-light: #F3F3F3;
  --line: #d4d4d4;
  --white: #fff;
  --ok: #16A34A;
  --err: #C62828;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Roboto", system-ui, sans-serif;
  --wrap: 1180px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 12px; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-family: var(--body); font-weight: 500; font-size: .82rem;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 14px 24px; border: 1px solid var(--accent); border-radius: 3px;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }
.btn.light { background: #fff; color: var(--accent); border-color: #fff; }
.btn.light:hover { background: transparent; color: #fff; }
.btn.outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn.outline-light:hover { background: #fff; color: var(--accent); }
.btn.small { padding: 9px 14px; font-size: .72rem; letter-spacing: 1.5px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sidhuvud ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06);
  transition: background .25s, box-shadow .25s;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1320px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav li { position: relative; }
.nav a {
  display: flex; align-items: center; gap: 6px; text-decoration: none;
  font-family: var(--head); font-weight: 700; font-size: .8rem; text-transform: uppercase;
  color: var(--ink); padding: 10px 13px; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: .65; }
.nav .caret { width: 9px; height: 9px; }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px 0;
  background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); border-radius: 3px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { color: var(--ink); font-weight: 600; font-size: .76rem; padding: 10px 18px; }
.nav .sub a:hover { background: var(--gray-light); opacity: 1; }
.nav .sub .katalog-link a { color: var(--accent); }
.nav .nav-cta {
  margin-left: 10px; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 3px;
}
.nav .nav-cta:hover { opacity: 1; background: var(--accent-2); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }

/* Genomskinlig meny ovanpå stora bilder */
.has-hero .site-header:not(.scrolled) { background: transparent; box-shadow: none; }
.has-hero .site-header:not(.scrolled) .logo img { filter: invert(1); }
.has-hero .site-header:not(.scrolled) .nav > ul > li > a { color: #fff; }
.has-hero .site-header:not(.scrolled) .menu-toggle { color: #fff; }
body:not(.has-hero) main { padding-top: var(--header-h); }

/* ---------- Stor bild (startsida) ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  background: #1d232a center/cover no-repeat; color: #fff;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.55) 100%); }
.hero .wrap { position: relative; width: 100%; padding-bottom: 12vh; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.3rem); max-width: 14em; }
.hero p { max-width: 34em; font-size: 1.1rem; }

/* ---------- Sidhuvud för undersidor ---------- */
.page-head {
  position: relative; padding: calc(var(--header-h) + 70px) 0 70px; text-align: center; color: #fff;
  background: #2b333c center/cover no-repeat;
}
.page-head::before { content: ""; position: absolute; inset: 0; background: rgba(20,25,30,.55); }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; font-weight: 400; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; font-family: var(--head);
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 60px; height: 1px; background: currentColor; opacity: .6; }
.has-hero .page-head { padding-top: calc(var(--header-h) + 90px); }

/* ---------- Sektioner ---------- */
.section { padding: 80px 0; }
.section.tight { padding: 50px 0; }
.section.gray { background: var(--gray); }
.section.light { background: var(--gray-light); }
.section.dark { background: var(--accent); color: #e8ebee; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-title { text-align: center; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: 1fr 1.7fr; gap: 60px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; align-items: center; }
.lead { font-family: var(--head); font-size: 1.35rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.prose { max-width: 760px; }
.prose a { color: var(--accent); }
.quote { font-style: italic; font-size: 1.1rem; border-left: 3px solid var(--accent); padding-left: 18px; margin: 30px 0; }

/* ---------- Nyhetsrullist ---------- */
.ticker { background: var(--accent); color: #fff; }
.ticker .wrap { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.ticker-label {
  flex: none; font-family: var(--head); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px;
  background: #fff; color: var(--accent); padding: 6px 12px; border-radius: 2px;
}
.ticker-viewport { position: relative; flex: 1; height: 58px; overflow: hidden; }
.ticker-item {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff;
  opacity: 0; transform: translateY(100%); transition: transform .5s ease, opacity .5s ease; white-space: nowrap; overflow: hidden;
}
.ticker-item.active { opacity: 1; transform: none; }
.ticker-item.out { opacity: 0; transform: translateY(-100%); }
.ticker-item time { flex: none; font-size: .8rem; opacity: .7; }
.ticker-item strong { font-family: var(--head); font-weight: 600; font-size: .95rem; }
.ticker-item span { opacity: .8; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.ticker-item:hover strong { text-decoration: underline; }
.ticker-ctrl { flex: none; display: flex; gap: 4px; align-items: center; }
.ticker-ctrl button { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.ticker-ctrl button:hover { background: rgba(255,255,255,.12); }
.ticker-ctrl a { color: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; margin-left: 10px; white-space: nowrap; }
.ticker-empty { opacity: .7; font-size: .9rem; }

/* ---------- Kategori-rutor på startsidan ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tile {
  position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 3px; text-decoration: none; color: #fff;
  background: #333 center/cover no-repeat;
}
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); transition: background .3s; }
.tile:hover::after { background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,.1) 70%); }
.tile h3 { position: absolute; left: 22px; bottom: 16px; z-index: 1; color: #fff; margin: 0; font-size: 1.15rem; }
.tile small { display: block; font-family: var(--body); font-weight: 400; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: .85; }

/* ---------- Produktkatalog-band ---------- */
.katalog-band { background: var(--accent); color: #fff; }
.katalog-band .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.katalog-band h2 { color: #fff; margin: 0 0 6px; font-size: 1.5rem; }
.katalog-band p { margin: 0; opacity: .85; }
.katalog-icon { width: 64px; height: 64px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; }
.katalog-icon svg { width: 28px; height: 28px; }
.katalog-band.on-gray { background: var(--gray); color: var(--text); }
.katalog-band.on-gray h2 { color: var(--ink); }
.katalog-band.on-gray .katalog-icon { border-color: var(--accent); color: var(--accent); }

/* ---------- Huskort ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--gray); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: #ccc; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-plan {
  position: absolute; right: 12px; bottom: 12px; background: rgba(36,45,54,.9); color: #fff; border: 0; cursor: pointer;
  font-size: .65rem; text-transform: uppercase; letter-spacing: 1.5px; padding: 8px 12px; border-radius: 2px;
  display: inline-flex; gap: 6px; align-items: center;
}
.card-plan:hover { background: var(--accent); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.2rem; font-weight: 500; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #c9c9c9; }
.card-body h3 a { text-decoration: none; }
.card-body ul { list-style: none; margin: 0 0 18px; padding: 0; font-size: .82rem; color: #222; }
.card-body li { padding: 2px 0; }
.card-links { margin-top: auto; display: flex; gap: 14px; flex-wrap: wrap; font-size: .75rem; text-transform: uppercase; letter-spacing: 1.2px; }
.card-links a { text-decoration: none; color: var(--accent); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.card-links a:hover { opacity: .7; }

/* Filter på Våra hus */
.filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-bottom: 34px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; cursor: pointer;
  font-family: var(--head); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter select { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .85rem; background: #fff; }
.tabs { display: flex; justify-content: center; gap: 0; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 22px; cursor: pointer;
  font-family: var(--head); font-weight: 600; font-size: .9rem; color: var(--muted);
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Husets egen sida ---------- */
.house-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; background: #1d232a center/cover no-repeat; }
.house-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.1) 40%, rgba(0,0,0,.65)); }
.house-hero .wrap { position: relative; width: 100%; padding-bottom: 60px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.house-hero h1 { color: #fff; font-weight: 500; margin-bottom: 6px; }
.house-hero .facts { font-size: .95rem; opacity: .9; letter-spacing: .5px; }
.house-hero .facts span + span::before { content: "·"; margin: 0 10px; }
.house-katalog {
  display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.96); color: var(--accent); text-decoration: none;
  padding: 16px 22px; border-radius: 3px; max-width: 360px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s;
}
.house-katalog:hover { transform: translateY(-2px); }
.house-katalog svg { width: 30px; height: 30px; flex: none; }
.house-katalog strong { display: block; font-family: var(--head); font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }
.house-katalog small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; align-items: center; overflow-x: auto; }
.subnav a { text-decoration: none; padding: 16px 12px; font-family: var(--head); font-size: .75rem; font-weight: 600; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.subnav a:hover { color: var(--ink); }
.subnav .btn { margin-left: auto; }
.house-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.house-intro .lead { font-size: 1.1rem; font-weight: 500; }
.house-intro img { border-radius: 3px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; background: #ddd; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery.plans a { background: #fff; border: 1px solid var(--line); }
.gallery.plans a img { object-fit: contain; padding: 8px; }
.gallery.masonry { display: block; columns: 4 240px; column-gap: 10px; }
.gallery.masonry a { aspect-ratio: auto; margin-bottom: 10px; break-inside: avoid; }
.gallery.masonry a img { height: auto; }

/* ---------- Kontakt / formulär ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: 5px; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem; border: 1px solid #bbb; border-radius: 2px; background: #fff;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; }
.form-msg { grid-column: 1 / -1; padding: 12px 16px; border-radius: 3px; display: none; }
.form-msg.ok { display: block; background: #E7F7EC; border-left: 4px solid var(--ok); }
.form-msg.err { display: block; background: #FDECEC; border-left: 4px solid var(--err); }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.person img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 3px; margin-bottom: 14px; filter: grayscale(.15); }
.person h3 { margin-bottom: 2px; }
.person .role { font-size: .85rem; color: var(--muted); margin-bottom: 8px; white-space: pre-line; }
.person a { display: block; text-decoration: none; font-size: .9rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li { padding: 4px 0; }
.contact-list a { text-decoration: none; font-weight: 500; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--head); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; }

/* Finansiering */
.price-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.price-box { background: #fff; border: 1px solid var(--line); padding: 26px; border-radius: 3px; text-align: center; }
.price-box strong { display: block; font-family: var(--head); font-size: 1.6rem; color: var(--ink); }

/* ---------- Nyheter ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { text-decoration: none; display: flex; flex-direction: column; }
.news-card .img { aspect-ratio: 16/10; background: #ddd center/cover no-repeat; border-radius: 3px; margin-bottom: 14px; }
.news-card time { font-size: .8rem; color: var(--muted); }
.news-card h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.news-card p { font-size: .92rem; color: var(--text); margin: 0; }
.news-card:hover h3 { text-decoration: underline; }
.article { max-width: 820px; margin: 0 auto; }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.article .ingress { font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.article .body { white-space: pre-line; }
.article .cover { border-radius: 3px; margin: 24px 0; }
.admin-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 26px; }
.admin-only { display: none !important; }
body.logged-in .admin-only { display: revert !important; }
body.logged-in .btns.admin-only, body.logged-in .admin-bar.admin-only { display: flex !important; }

/* ---------- Produktkatalog-sidan ---------- */
.katalog-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.katalog-cover {
  aspect-ratio: 3/4; max-width: 420px; justify-self: center; width: 100%; border-radius: 3px; overflow: hidden; position: relative;
  background: #1d232a center/cover no-repeat; box-shadow: 0 25px 50px rgba(0,0,0,.25); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 34px;
}
.katalog-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,25,30,.75), rgba(20,25,30,.1) 50%, rgba(20,25,30,.8)); }
.katalog-cover > * { position: relative; }
.katalog-cover img { width: 160px; filter: invert(1); }
.katalog-cover strong { font-family: var(--head); font-size: 1.8rem; font-weight: 500; line-height: 1.2; }
.katalog-cover small { display: block; text-transform: uppercase; letter-spacing: 2px; font-size: .7rem; margin-top: 8px; }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; }
.check-list li { padding: 6px 0 6px 30px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.notice { background: #FFF8E1; border-left: 4px solid #E0A800; padding: 14px 18px; border-radius: 3px; font-size: .92rem; }
.katalog-index { columns: 3 220px; column-gap: 30px; }
.katalog-index a { display: block; padding: 6px 0; text-decoration: none; border-bottom: 1px solid var(--line); break-inside: avoid; }
.katalog-index a:hover { color: var(--muted); }
.katalog-index small { color: var(--muted); margin-left: 6px; }

/* ---------- Sidfot ---------- */
.site-footer { background: var(--accent); color: #cfd5da; font-size: .92rem; }
.site-footer .top { padding: 60px 0 40px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { text-decoration: none; color: #cfd5da; }
.site-footer a:hover { color: #fff; }
.site-footer .logo img { filter: invert(1); height: 28px; margin-bottom: 16px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: grid; place-items: center; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .8rem; }
.site-footer .bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.contact-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; background: #2E9E5B; color: #fff; text-decoration: none;
  padding: 11px 16px; border-radius: 6px; font-size: .82rem; font-weight: 500; box-shadow: 0 6px 18px rgba(0,0,0,.25); display: flex; gap: 8px; align-items: center;
}
.contact-fab svg { width: 16px; height: 16px; }

/* ---------- Ljuslåda ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,12,15,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; background: #fff0; }
.lightbox.plan img { background: #fff; padding: 10px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; padding: 14px; line-height: 1; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #bbb; font-size: .85rem; }

/* ---------- Modal (inloggning, nyheter) ---------- */
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.55); display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { background: #fff; width: 100%; max-width: 620px; border-radius: 4px; padding: 30px; position: relative; }
.modal-box h2 { font-size: 1.35rem; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 4px; opacity: 0; transition: .25s; z-index: 130; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.user-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.user-table th, .user-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.login-state { color: #9fe0b5; }

/* ---------- Mobil ---------- */
@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 10px 20px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s;
  }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; }
  .has-hero .site-header:not(.scrolled) .nav > ul > li > a { color: var(--ink); }
  .nav a { font-size: .9rem; padding: 14px 6px; border-bottom: 1px solid var(--gray-light); }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
  .nav .nav-cta { margin: 16px 0 0; justify-content: center; }
  .menu-open .site-header { background: #fff !important; }
  .menu-open .site-header .logo img { filter: none !important; }
  .menu-open .site-header .menu-toggle { color: var(--ink) !important; }
}
@media (max-width: 900px) {
  .split, .split.even, .house-intro, .katalog-hero { grid-template-columns: 1fr; gap: 30px; }
  .cards, .news-grid { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .katalog-band .wrap { grid-template-columns: 1fr; text-align: left; gap: 18px; }
  .ticker-item span { display: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .logo img { height: 26px; }
  .tiles, .cards, .news-grid, .people, .price-boxes { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .ticker-ctrl a { display: none; }
  .ticker-label { display: none; }
  .house-katalog { max-width: none; width: 100%; }
  .subnav .btn { display: none; }
}
