:root {
  /* Villaägarnas blå profil */
  --brand: #0a6cb4;
  --brand-600: #075c9a;
  --brand-700: #064a7e;
  --brand-50: #e9f2fa;
  --brand-100: #d2e5f5;

  --ink: #15212e;
  --ink-soft: #33485a;
  --muted: #5b7082;
  --line: #dce5ed;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --warm: #f3efe7;
  --warm-ink: #524534;
  --success: #24704a;

  /* Status: upptaget av annan = varmt rött, din bokning = brand-blå */
  --busy: #c0392b;
  --busy-bg: #fdecea;
  --busy-line: #f5cfca;
  --mine: var(--brand);
  --mine-bg: var(--brand-50);
  --mine-line: var(--brand-100);
  --blocked: #596976;
  --blocked-bg: #edf1f4;
  --blocked-line: #cdd7de;
  --service: #8b5700;
  --service-bg: #fff3d9;
  --service-line: #ecd39b;

  --danger: #c0392b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 38, 59, .06), 0 8px 28px rgba(13, 38, 59, .07);
  --shadow-sm: 0 1px 2px rgba(13, 38, 59, .06), 0 3px 10px rgba(13, 38, 59, .05);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-700); text-underline-offset: .18em; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #f5b82e; outline-offset: 3px; }
.skip-link {
  position: fixed; left: 16px; top: 10px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); color: #fff; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 10px; color: var(--brand-700); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lead { color: var(--ink-soft); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.muted { color: var(--muted); }
.section { padding: 64px 0; }
.section--tint { background: #edf4f9; }
.section--warm { background: var(--warm); }
.section-heading { max-width: 700px; margin-bottom: 30px; }
.section-heading h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -.03em; }
.section-heading p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* Header */
.site-header {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; flex: none; }
.brand img { width: 166px; height: auto; display: block; }
.brand-local { border-left: 1px solid var(--line); padding-left: 14px; font-size: 14px; font-weight: 750; line-height: 1.15; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.primary-nav a { color: var(--ink-soft); text-decoration: none; font-size: 13px; font-weight: 750; padding: 9px 10px; border-radius: 7px; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }
.nav-toggle { display: none; background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 9px 12px; }
.header-user { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.header-user .who { color: var(--muted); font-weight: 600; }

main.booking-main, main.admin-main { max-width: 1080px; margin: 0 auto; padding: 28px 20px 64px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.hero::after {
  /* dekorativt hus-emblem som vattenmärke */
  content: "";
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  width: 260px; height: 260px;
  background: url("emblem.png") center/contain no-repeat;
  opacity: .10;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.hero h1 { margin: 0 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.hero p { margin: 0; max-width: 560px; opacity: .94; font-size: 16px; }
.hero .trailer-name { margin: -4px 0 10px; font-size: 14px; font-weight: 600; opacity: .85; letter-spacing: .2px; }

/* Full webbplats */
.home-hero { background: #fff; border-bottom: 1px solid var(--line); }
.home-hero .container { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 64px; align-items: center; padding-block: 72px; }
.home-hero h1 { max-width: 760px; margin: 0 0 20px; font-size: clamp(43px, 7vw, 76px); line-height: .98; letter-spacing: -.055em; }
.home-hero .lead { max-width: 660px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border-radius: 8px; font-weight: 750; text-decoration: none; border: 1px solid transparent; }
.button--primary { background: var(--brand); color: #fff; }
.button--primary:hover { background: var(--brand-600); color: #fff; }
.button--secondary { background: #fff; color: var(--brand-700); border-color: var(--brand); }
.button--secondary:hover { background: var(--brand-50); }
.button--text { color: var(--brand-700); padding-inline: 8px; }
.hero-panel { background: var(--brand-700); color: #fff; padding: 30px; border-radius: 18px; box-shadow: var(--shadow); }
.hero-panel h2 { margin: 0 0 20px; font-size: 22px; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.18); }
.hero-panel li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; color: var(--brand-700); background: #fff; font-size: 13px; font-weight: 900; }
.hero-panel a { color: #fff; }
.service-list { border-top: 1px solid var(--line); }
.service-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-weight: 850; }
.service-item h3 { margin: 0 0 3px; font-size: 19px; }
.service-item p { margin: 0; color: var(--muted); }
.service-link { white-space: nowrap; font-weight: 750; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; color: var(--warm-ink); background: var(--warm); font-size: 12px; font-weight: 750; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.news-list { border-top: 1px solid var(--line); }
.empty-state { border: 1px dashed #b9c8d5; border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,.55); color: var(--muted); }
.empty-state h3 { margin: 0 0 5px; color: var(--ink); font-size: 18px; }
.empty-state p { margin: 0; }
.benefit-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.benefit-block { padding: 28px; background: #fff; border-left: 4px solid var(--brand); }
.benefit-block h3 { margin: 0 0 10px; }
.benefit-block p { color: var(--ink-soft); }
.contact-strip { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.contact-strip h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px); }
.contact-strip p { margin: 0; color: var(--warm-ink); }
.page-hero { padding: 58px 0 42px; background: #fff; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(38px, 6vw, 58px); line-height: 1.04; letter-spacing: -.045em; }
.page-hero p:not(.eyebrow) { max-width: 760px; margin: 0; }
.breadcrumbs { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: inherit; }
.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 48px; align-items: start; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 38px; font-size: 28px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--ink-soft); }
.link-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; font-weight: 700; text-decoration: none; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
textarea, select { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
textarea { min-height: 150px; resize: vertical; }
.field-help { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.resource-summary { width: 100%; min-width: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: center; margin-bottom: 28px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.resource-summary > *, .grid > *, .content-grid > * { min-width: 0; }
.resource-summary p { overflow-wrap: anywhere; }
.resource-visual { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); border-radius: 10px; text-align: center; padding: 20px; }
.resource-summary h1, .resource-summary h2 { margin: 0 0 8px; }
.resource-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.meta-pill { padding: 5px 9px; border-radius: 999px; background: var(--bg); color: var(--ink-soft); font-size: 13px; font-weight: 650; }

.site-footer { background: #10283a; color: #dce8f0; padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 42px; }
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer h2 { font-size: 20px; }
.site-footer h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer p { color: #b9cad6; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; gap: 20px; color: #afc2cf; font-size: 13px; }

/* Cards & layout */
.grid { display: grid; gap: 22px; }
.booking-workspace { display: grid; gap: 22px; }
@media (min-width: 860px) { .grid.cols-2 { grid-template-columns: 1.18fr .82fr; align-items: start; } }
@media (min-width: 860px) { .booking-workspace { grid-template-columns: 1.18fr .82fr; align-items: start; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}
.card h2 { margin: 0 0 4px; font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.card .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 14px 0 6px; }
input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #aab6c2; }
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.row { display: flex; gap: 14px; }
.row > div { flex: 1; }

button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, opacity .15s, transform .05s;
}
button:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand); color: #fff; width: 100%; margin-top: 18px;
  box-shadow: 0 2px 8px rgba(10, 108, 180, .28);
}
.btn-primary:hover { background: var(--brand-600); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: #fff; color: var(--brand-600); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--brand-50); border-color: var(--brand-100); }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid var(--busy-line); }
.btn-danger:hover { background: var(--busy-bg); }
.btn-sm { padding: 8px 13px; font-size: 13px; }

/* Tabs (om de används) */
.tabs { display: flex; gap: 8px; margin-bottom: 4px; }
.tab {
  flex: 1; text-align: center; padding: 10px; border-radius: var(--radius-sm);
  background: var(--brand-50); color: var(--brand); font-weight: 600; cursor: pointer; font-size: 14px;
}
.tab.active { background: var(--brand); color: #fff; }

/* Steps – "Så fungerar det" */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 10px 0 10px 44px;
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 9px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-600);
  border-radius: 50%; font-weight: 700; font-size: 13px;
}

/* Messages */
.msg { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-top: 14px; display: none; }
.msg.show { display: block; }
.msg.error { background: var(--busy-bg); color: var(--danger); border: 1px solid var(--busy-line); }
.msg.success { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }

/* Member badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-50); color: var(--brand-700);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600;
}

/* Booking lists */
.booking-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.booking-item:last-child { border-bottom: none; }
.booking-item .when { font-weight: 700; }
.booking-item .meta { font-size: 13px; color: var(--muted); }
.booking-actions { display: flex; gap: 8px; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head .title { font-weight: 700; font-size: 16px; text-transform: capitalize; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { background: var(--brand-50); color: var(--brand-600); padding: 6px 13px; font-size: 16px; line-height: 1; }
.cal-nav button:hover { background: var(--brand-100); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding-bottom: 4px; }
.cal-cell {
  aspect-ratio: 1 / 1; border-radius: var(--radius-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 14px; position: relative; background: #fff; font-weight: 500;
}
.cal-cell.muted { color: #c4ccc8; background: transparent; border-color: transparent; }
.cal-cell.clickable { cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .06s; }
.cal-cell.clickable:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(10, 108, 180, .15); transform: translateY(-1px); }
.cal-cell.selected { outline: 2px solid var(--brand); outline-offset: -2px; font-weight: 700; box-shadow: 0 4px 12px rgba(10, 108, 180, .18); }
.cal-cell.past { opacity: .4; }
.cal-cell.today { border-color: var(--brand); font-weight: 700; }
.cal-cell.today::after { content: "idag"; position: absolute; bottom: 4px; font-size: 8.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .3px; }
.cal-cell.booked { background: var(--busy-bg); border-color: var(--busy-line); color: var(--busy); }
.cal-cell.mine { background: var(--mine-bg); border-color: var(--mine-line); color: var(--brand-700); }
.cal-cell.blocked { background: var(--blocked-bg); border-color: var(--blocked-line); color: var(--blocked); }
.cal-cell.service { background: var(--service-bg); border-color: var(--service-line); color: var(--service); }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 3px; }
.cal-cell.booked .cal-dot { background: var(--busy); }
.cal-cell.mine .cal-dot { background: var(--mine); }
.cal-cell.blocked .cal-dot { background: var(--blocked); }
.cal-cell.service .cal-dot { background: var(--service); }
.legend { display: flex; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid transparent; }

/* Dag-panel: upptaget + lediga starttider */
.day-panel { margin: 16px 0 6px; }
.day-panel .empty.day-hint {
  background: var(--brand-50); color: var(--brand-700); border: 1px dashed var(--brand-100);
  border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 500;
}
.day-title { font-weight: 700; text-transform: capitalize; margin-bottom: 10px; font-size: 16px; }
.day-booked { margin-bottom: 16px; }
.booked-heading, .slot-heading { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.muted-inline { font-weight: 500; color: var(--muted); }
.booked-row { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; color: var(--busy); }
.booked-row.mine { color: var(--brand-700); }
.booked-row.blocked { color: var(--blocked); }
.booked-row.service { color: var(--service); }
.booked-row .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.tag-mine { font-size: 11px; background: var(--brand-50); color: var(--brand-700); border-radius: 999px; padding: 1px 9px; margin-left: 6px; font-weight: 700; }
.tag-status { font-size: 11px; color: #fff; border-radius: 999px; padding: 1px 9px; margin-left: 6px; font-weight: 700; }
.booked-row.blocked .tag-status { background: var(--blocked); }
.booked-row.service .tag-status { background: var(--service); }
.day-free-note { font-size: 14px; color: var(--brand-700); background: var(--brand-50); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 500; }

/* Tidslinje */
.timeline { margin-bottom: 12px; user-select: none; }
.tl-track {
  position: relative; height: 52px; border-radius: var(--radius-sm);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  cursor: pointer; overflow: hidden; touch-action: none;
}
.tl-track > * { pointer-events: none; }
.tl-busy {
  position: absolute; top: 0; bottom: 0;
  background: repeating-linear-gradient(-45deg, #f6cfca 0 6px, var(--busy-bg) 6px 12px);
  border-left: 1px solid var(--busy-line); border-right: 1px solid var(--busy-line);
}
.tl-busy.mine {
  background: repeating-linear-gradient(-45deg, var(--brand-100) 0 6px, var(--brand-50) 6px 12px);
  border-color: #a9d0ee;
}
.tl-past { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(95, 115, 133, .14); }
.tl-sel {
  position: absolute; top: 0; bottom: 0;
  background: rgba(10, 108, 180, .20); border: 2px solid var(--brand); border-radius: 7px;
}
.tl-sel-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(10, 108, 180, .35);
}
.tl-now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--brand-700); }
.tl-now::before {
  content: ''; position: absolute; top: -3px; left: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-700);
}
.tl-hover {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand);
  opacity: 0; transition: opacity .1s;
}
.tl-hover.show { opacity: .55; }
.tl-axis { position: relative; height: 16px; margin-top: 4px; }
.tl-axis span {
  position: absolute; transform: translateX(-50%);
  font-size: 11px; color: var(--muted); font-weight: 600;
}
.tl-axis span:first-child { transform: none; }
.tl-axis span:last-child { transform: translateX(-100%); }
.tl-readout { font-size: 14px; color: var(--muted); min-height: 20px; }
.tl-readout.chosen { color: var(--brand-700); font-weight: 600; }
.tl-readout.bad { color: var(--danger); font-weight: 600; }
.fine-tune { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.role-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.role-checks .check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.role-checks .check input { width: auto; margin: 0; }

.hidden { display: none !important; }
.footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 40px; }
.footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.note { font-size: 13px; color: var(--muted); margin-top: 8px; }

@media (max-width: 940px) {
  .brand img { width: 144px; }
  .brand-local { display: none; }
  .primary-nav a { padding-inline: 7px; font-size: 12px; }
  .home-hero .container { grid-template-columns: 1fr; min-height: auto; gap: 36px; }
  .hero-panel { max-width: 680px; }
}

@media (min-width: 941px) {
  html[data-style="2"].preview-mode .site-header .inner { padding-right: 268px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1160px); }
  .section { padding: 48px 0; }
  .site-header .inner { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .js .primary-nav { display: none; width: 100%; align-items: stretch; flex-direction: column; padding: 4px 0 8px; }
  .js .primary-nav.is-open { display: flex; }
  .primary-nav { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .primary-nav a { padding: 10px; font-size: 13px; }
  .home-hero .container { padding-block: 52px; }
  .home-hero h1 { font-size: clamp(42px, 14vw, 62px); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .service-item { grid-template-columns: 44px 1fr; gap: 14px; }
  .service-link { grid-column: 2; }
  .two-column, .benefit-split, .content-grid, .footer-grid, .contact-strip, .resource-summary { grid-template-columns: 1fr; gap: 26px; }
  .contact-strip .button { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .resource-visual { max-height: 210px; }
  .resource-summary { padding: 20px; }
  .row { flex-direction: column; gap: 0; }
  .booking-item { align-items: flex-start; flex-direction: column; }
  .booking-actions { width: 100%; }
  .booking-actions button { flex: 1; }
}

/* ─────────── Under uppbyggnad: landningssida och demomärkning ───────────
   Tillfälligt tills webbplatsen lanseras på riktigt. Styrs av previewMode
   i site-config.js och cookieblocket i .htaccess. */

.preview-badge {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #15212e;
  color: #fff;
  box-shadow: 0 2px 6px rgba(13, 38, 59, .2), 0 10px 26px rgba(13, 38, 59, .26);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .02em;
  pointer-events: none; /* Får aldrig blockera navigationen under rutan. */
}
.preview-badge strong { color: #ffc24d; font-weight: 900; letter-spacing: .08em; }
.preview-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffc24d;
  box-shadow: 0 0 0 3px rgba(255, 194, 77, .24);
  flex: none;
}
.preview-badge a {
  pointer-events: auto;
  color: rgba(255, 255, 255, .72);
  font-weight: 650;
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, .18);
  padding-left: 9px;
}
.preview-badge a:hover { color: #fff; text-decoration: underline; }

/* Håll undan sidhuvudets innehåll så rutan aldrig skymmer menyn. */
.preview-mode .site-header .inner { padding-right: 268px; }

@media (max-width: 940px) {
  .preview-mode .site-header .inner { padding-right: 20px; }
  .preview-mode .site-header { padding-top: 42px; }
  .preview-badge { top: 8px; right: 8px; max-width: calc(100vw - 16px); padding: 7px 12px; font-size: 11px; }
}

/* Landningssidan */
.construction-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--bg) 45%, #fff 100%);
}
.construction { width: 100%; max-width: 720px; }
.construction-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 48px);
}
.construction-logo { width: 190px; height: auto; display: block; margin-bottom: 26px; }
.construction-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--service-bg);
  border: 1px solid var(--service-line);
  color: var(--service);
  font-size: 13px;
  font-weight: 800;
}
.construction-status span { font-size: 10px; }
.construction h1 { margin: 0 0 14px; font-size: clamp(28px, 4.5vw, 40px); line-height: 1.12; }
.construction .lead { margin: 0; }
.construction-actions { margin: 30px 0 14px; }
.construction-actions .button { width: 100%; justify-content: center; text-align: center; }
.construction-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.construction-meanwhile { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.construction-meanwhile h2 { margin: 0 0 14px; font-size: 18px; }
.construction-meanwhile .link-list { margin: 0; }
.construction-footer { margin: 30px 0 0; color: var(--muted); font-size: 13px; }

/* ───────────────────── Stilväljare och designspår ─────────────────────
   Stil 1 är originalet ovan, helt utan visuella overrides. Stil 2–5 är
   alternativa lager som bara aktiveras via data-style på <html>. */

.style-switcher {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 190;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 36px);
  padding: 8px 9px 8px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(13, 29, 42, .94);
  color: #fff;
  box-shadow: 0 10px 34px rgba(7, 24, 38, .25);
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  line-height: 1;
  backdrop-filter: blur(14px);
}
.style-switcher__label {
  min-width: 114px;
  font-size: 11px;
  font-weight: 650;
  color: rgba(255, 255, 255, .68);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.style-switcher__label strong { color: #fff; font-weight: 800; }
.style-switcher__choices { display: flex; gap: 5px; }
.style-switcher button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .78);
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
}
.style-switcher button:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.style-switcher button[aria-pressed="true"] {
  border-color: #fff;
  background: #fff;
  color: #10283a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .24);
}

/* Stil 2 – Nordisk medlemsnytta */
html[data-style="2"] {
  --brand: #28634f;
  --brand-600: #205440;
  --brand-700: #163f33;
  --brand-50: #e8f0eb;
  --brand-100: #cddfd4;
  --ink: #1e2a24;
  --ink-soft: #3f5047;
  --muted: #68766e;
  --line: #d9d8ce;
  --bg: #f4f1e9;
  --surface: #fbfaf6;
  --warm: #e9dfcd;
  --warm-ink: #5e4c35;
  --success: #28634f;
  --mine: #28634f;
  --mine-bg: #e8f0eb;
  --mine-line: #bdd5c6;
  --radius: 3px;
  --radius-sm: 2px;
  --shadow: 0 18px 50px rgba(49, 57, 46, .09);
  --shadow-sm: 0 7px 24px rgba(49, 57, 46, .06);
}
html[data-style="2"] body {
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
}
html[data-style="2"] h1,
html[data-style="2"] .page-hero h1,
html[data-style="2"] .section-heading h2,
html[data-style="2"] .contact-strip h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.035em;
}
html[data-style="2"] .container { width: min(1220px, calc(100% - 56px)); }
html[data-style="2"] .eyebrow { color: var(--brand); letter-spacing: .15em; }
html[data-style="2"] .site-header {
  background: rgba(250, 248, 242, .96);
  border-bottom-color: rgba(30, 42, 36, .13);
  backdrop-filter: blur(12px);
}
html[data-style="2"] .site-header .inner { max-width: 1220px; padding: 17px 28px; }
html[data-style="2"] .brand-local { border-color: #c9c9bd; font-family: Georgia, serif; font-size: 15px; }
html[data-style="2"] .primary-nav { gap: 2px; }
html[data-style="2"] .primary-nav a {
  padding: 10px 11px;
  border-radius: 1px;
  color: #34453c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
html[data-style="2"] .primary-nav a:hover,
html[data-style="2"] .primary-nav a[aria-current="page"] { background: transparent; box-shadow: inset 0 -2px 0 var(--brand); }
html[data-style="2"] .primary-nav a[href="/boka/"] {
  margin-left: 7px;
  padding-inline: 16px;
  background: var(--brand-700);
  color: #fff;
  box-shadow: none;
}
html[data-style="2"] .home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(195, 169, 118, .25) 0 14%, transparent 14.2%),
    linear-gradient(115deg, #fbfaf6 0 64%, #e8e1d3 64% 100%);
}
html[data-style="2"] .home-hero::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(31, 74, 59, .24);
  border-radius: 50%;
}
html[data-style="2"] .home-hero .container { min-height: 620px; grid-template-columns: 1.25fr .75fr; gap: 78px; padding-block: 94px; position: relative; z-index: 1; }
html[data-style="2"] .home-hero h1 { max-width: 820px; font-size: clamp(50px, 7vw, 84px); line-height: .98; }
html[data-style="2"] .home-hero .lead { font-size: clamp(18px, 2vw, 22px); }
html[data-style="2"] .button { min-height: 50px; border-radius: 1px; padding-inline: 21px; }
html[data-style="2"] .button--primary { background: var(--brand-700); }
html[data-style="2"] .button--secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
html[data-style="2"] .hero-panel {
  position: relative;
  padding: 38px;
  border-radius: 2px;
  border-top: 6px solid #c39f61;
  background: #1d493b;
  box-shadow: 24px 24px 0 rgba(195, 159, 97, .18);
}
html[data-style="2"] .hero-panel li { padding-block: 15px; }
html[data-style="2"] .section { padding-block: 82px; }
html[data-style="2"] .section--tint { background: #e7eee9; }
html[data-style="2"] .section--warm { background: #e9dfcd; }
html[data-style="2"] .service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 0;
}
html[data-style="2"] .service-item {
  grid-template-columns: 54px 1fr;
  align-items: start;
  min-height: 168px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}
html[data-style="2"] .service-icon { border-radius: 2px; background: var(--brand-700); color: #fff; }
html[data-style="2"] .service-link,
html[data-style="2"] .service-item > .muted { grid-column: 2; align-self: end; }
html[data-style="2"] .empty-state { border-style: solid; border-radius: 2px; background: rgba(251, 250, 246, .72); }
html[data-style="2"] .benefit-block { border: 1px solid var(--line); border-top: 4px solid var(--brand); background: var(--surface); }
html[data-style="2"] .page-hero {
  padding-block: 82px 64px;
  border-bottom: 0;
  background: linear-gradient(110deg, #fbfaf6 0 70%, #e8e1d3 70%);
}
html[data-style="2"] .page-hero h1 { font-size: clamp(48px, 7vw, 76px); }
html[data-style="2"] .form-card,
html[data-style="2"] .card,
html[data-style="2"] .resource-summary { background: var(--surface); box-shadow: none; }
html[data-style="2"] .resource-summary { padding: 30px; border-top: 5px solid var(--brand); }
html[data-style="2"] .resource-visual {
  border-radius: 1px;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(195,159,97,.28) 48% 52%, transparent 52%),
    var(--brand-50);
}
html[data-style="2"] .resource-visual::before,
html[data-style="3"] .resource-visual::before,
html[data-style="4"] .resource-visual::before {
  content: "";
  width: 82%;
  height: 62%;
  grid-area: 1 / 1;
  background: currentColor;
  opacity: .78;
  -webkit-mask: url("/trailer-outline.svg") center / contain no-repeat;
  mask: url("/trailer-outline.svg") center / contain no-repeat;
}
html[data-style="2"] .resource-visual strong,
html[data-style="3"] .resource-visual strong,
html[data-style="4"] .resource-visual strong {
  grid-area: 1 / 1;
  align-self: end;
  padding-bottom: 7px;
  font-size: 0;
  font-weight: 750;
  letter-spacing: .035em;
  opacity: .72;
}
html[data-style="2"] .resource-visual strong::after,
html[data-style="3"] .resource-visual strong::after,
html[data-style="4"] .resource-visual strong::after { content: "Foto kommer"; font-size: 11px; }
html[data-style="2"] .meta-pill { border: 1px solid var(--line); border-radius: 2px; background: transparent; }
html[data-style="2"] .hero { border-radius: 2px; background: linear-gradient(120deg, #28634f, #143a30); box-shadow: none; }
html[data-style="2"] input,
html[data-style="2"] textarea,
html[data-style="2"] select,
html[data-style="2"] button { border-radius: 2px; }
html[data-style="2"] .cal-cell { border-radius: 2px; }
html[data-style="2"] .site-footer { background: #142d26; }

/* Stil 3 – Bokning först, tydlig appkänsla */
html[data-style="3"] {
  --brand: #3f5ee8;
  --brand-600: #314ccc;
  --brand-700: #23379d;
  --brand-50: #edf0ff;
  --brand-100: #d9dfff;
  --ink: #17203b;
  --ink-soft: #3b4668;
  --muted: #687292;
  --line: #dfe3f2;
  --bg: #f3f5ff;
  --surface: #ffffff;
  --warm: #fff0ca;
  --warm-ink: #624910;
  --mine: #3f5ee8;
  --mine-bg: #e9edff;
  --mine-line: #c9d1ff;
  --radius: 22px;
  --radius-sm: 13px;
  --shadow: 0 22px 60px rgba(38, 53, 119, .16);
  --shadow-sm: 0 9px 30px rgba(38, 53, 119, .10);
}
html[data-style="3"] body {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 112, 88, .10), transparent 24rem),
    radial-gradient(circle at 92% 38%, rgba(63, 94, 232, .11), transparent 30rem),
    var(--bg);
}
html[data-style="3"] .container { width: min(1220px, calc(100% - 44px)); }
html[data-style="3"] .site-header {
  border: 0;
  background: rgba(243, 245, 255, .82);
  backdrop-filter: blur(18px);
}
html[data-style="3"] .site-header .inner { max-width: 1220px; padding-block: 16px; }
html[data-style="3"] .primary-nav a { border-radius: 999px; padding: 10px 13px; }
html[data-style="3"] .primary-nav a:hover,
html[data-style="3"] .primary-nav a[aria-current="page"] { background: #fff; box-shadow: 0 5px 16px rgba(38, 53, 119, .09); }
html[data-style="3"] .primary-nav a[href="/boka/"] { padding-inline: 18px; background: var(--brand); color: #fff; box-shadow: 0 7px 20px rgba(63, 94, 232, .28); }
html[data-style="3"] .home-hero {
  position: relative;
  width: min(1400px, calc(100% - 24px));
  margin: 4px auto 0;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 76% 15%, rgba(255,255,255,.85) 0 5%, transparent 5.2%),
    radial-gradient(circle at 91% 82%, rgba(255,112,88,.25) 0 12%, transparent 12.2%),
    linear-gradient(135deg, #e9eeff 0%, #f8f5ff 56%, #fff0e8 100%);
}
html[data-style="3"] .home-hero::before {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 44px solid rgba(63, 94, 232, .09);
  border-radius: 50%;
}
html[data-style="3"] .home-hero .container { min-height: 620px; gap: 58px; padding-block: 76px; position: relative; }
html[data-style="3"] .home-hero h1 { font-size: clamp(50px, 7.1vw, 86px); line-height: .94; letter-spacing: -.065em; }
html[data-style="3"] .eyebrow { color: var(--brand); }
html[data-style="3"] .button { border-radius: 999px; padding-inline: 22px; }
html[data-style="3"] .button--primary { background: var(--brand); box-shadow: 0 10px 24px rgba(63, 94, 232, .25); }
html[data-style="3"] .button--secondary { border-color: transparent; box-shadow: inset 0 0 0 1px #cbd3f5; }
html[data-style="3"] .hero-panel {
  transform: rotate(1.5deg);
  border-radius: 28px;
  background: linear-gradient(145deg, #ff775f, #f0547a);
  box-shadow: 18px 22px 0 rgba(63, 94, 232, .13);
}
html[data-style="3"] .section { padding-block: 76px; }
html[data-style="3"] .section--tint { background: #e9edff; }
html[data-style="3"] .section--warm { background: #fff0ca; }
html[data-style="3"] .service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  border: 0;
}
html[data-style="3"] .service-item {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 25px;
  border: 1px solid rgba(63, 94, 232, .10);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
html[data-style="3"] .service-item:nth-child(3n + 2) { background: #fff8e6; }
html[data-style="3"] .service-item:nth-child(3n + 3) { background: #eef9f6; }
html[data-style="3"] .service-icon { border-radius: 15px; background: var(--brand); color: #fff; }
html[data-style="3"] .service-link,
html[data-style="3"] .service-item > .muted { margin-top: auto; }
html[data-style="3"] .benefit-block,
html[data-style="3"] .empty-state,
html[data-style="3"] .form-card { border-radius: 22px; box-shadow: var(--shadow-sm); }
html[data-style="3"] .benefit-block { border: 0; border-left: 0; }
html[data-style="3"] .empty-state { border-style: solid; border-color: rgba(63,94,232,.15); background: rgba(255,255,255,.78); }
html[data-style="3"] .page-hero {
  width: min(1400px, calc(100% - 24px));
  margin-inline: auto;
  padding-block: 72px 58px;
  border: 0;
  border-radius: 0 0 34px 34px;
  background: linear-gradient(135deg, #e9eeff, #fff0e8);
}
html[data-style="3"] .page-hero h1 { font-size: clamp(48px, 7vw, 74px); }
html[data-style="3"] main.booking-main { max-width: 1180px; padding-top: 38px; }
html[data-style="3"] .resource-summary { padding: 26px; border: 0; border-radius: 24px; box-shadow: var(--shadow-sm); }
html[data-style="3"] .resource-visual { border-radius: 18px; background: linear-gradient(135deg, #dce3ff, #f5dcff); }
html[data-style="3"] .meta-pill { border-radius: 999px; background: var(--brand-50); color: var(--brand-700); }
html[data-style="3"] .hero { border-radius: 24px; background: linear-gradient(135deg, #3f5ee8, #6b4fd7); }
html[data-style="3"] .card { border: 0; border-radius: 22px; box-shadow: var(--shadow-sm); }
html[data-style="3"] input,
html[data-style="3"] textarea,
html[data-style="3"] select { border-width: 2px; background: #fbfcff; }
html[data-style="3"] .btn-primary { border-radius: 14px; box-shadow: 0 8px 22px rgba(63,94,232,.24); }
html[data-style="3"] .cal-cell { border-radius: 12px; }
html[data-style="3"] .cal-cell.clickable:hover { box-shadow: 0 7px 16px rgba(63,94,232,.18); }
html[data-style="3"] .site-footer { background: #17203b; }

/* Stil 4 – mörk premium med ljusa bokningsytor */
html[data-style="4"] {
  --brand: #d5a558;
  --brand-600: #e1b970;
  --brand-700: #f2d39c;
  --brand-50: #27362f;
  --brand-100: #405344;
  --ink: #edf3ee;
  --ink-soft: #c4d0ca;
  --muted: #96aaa1;
  --line: #294049;
  --bg: #07171d;
  --surface: #10252d;
  --warm: #31291e;
  --warm-ink: #ecd5ae;
  --success: #74c59a;
  --busy: #ff9f8e;
  --busy-bg: #3b2224;
  --busy-line: #684047;
  --mine: #76d5d8;
  --mine-bg: #17383f;
  --mine-line: #2f6068;
  --blocked: #b0bdc3;
  --blocked-bg: #28363d;
  --blocked-line: #40515a;
  --service: #f1c879;
  --service-bg: #3a301f;
  --service-line: #655435;
  --danger: #ff9f8e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 22px 65px rgba(0, 0, 0, .34);
  --shadow-sm: 0 9px 30px rgba(0, 0, 0, .24);
  color-scheme: dark;
}
html[data-style="4"] body {
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 82% 5%, rgba(56, 134, 132, .13), transparent 32rem),
    var(--bg);
}
html[data-style="4"] a { color: #f2d39c; }
html[data-style="4"] a:hover { color: #fff1d5; }
html[data-style="4"] .container { width: min(1220px, calc(100% - 56px)); }
html[data-style="4"] .eyebrow { color: #e0b978; letter-spacing: .14em; }
html[data-style="4"] .site-header {
  border-bottom-color: rgba(236, 213, 174, .13);
  background: rgba(7, 23, 29, .91);
  backdrop-filter: blur(18px);
}
html[data-style="4"] .site-header .inner { max-width: 1220px; padding-block: 16px; }
html[data-style="4"] .brand { color: #fff; }
html[data-style="4"] .brand img { width: 174px; padding: 7px 10px; border-radius: 6px; background: #fff; }
html[data-style="4"] .brand-local { border-color: #3b4d50; color: #e9f0ec; }
html[data-style="4"] .primary-nav a { color: #c1cec8; }
html[data-style="4"] .primary-nav a:hover,
html[data-style="4"] .primary-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); }
html[data-style="4"] .primary-nav a[href="/boka/"] { padding-inline: 17px; background: var(--brand); color: #172019; }
html[data-style="4"] .nav-toggle { border-color: var(--line); background: var(--surface); color: var(--ink); }
html[data-style="4"] .home-hero {
  position: relative;
  overflow: hidden;
  border-bottom-color: rgba(236, 213, 174, .12);
  background:
    linear-gradient(90deg, rgba(213,165,88,.05) 1px, transparent 1px),
    linear-gradient(rgba(213,165,88,.05) 1px, transparent 1px),
    #0a1d24;
  background-size: 72px 72px;
}
html[data-style="4"] .home-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -180px;
  border: 1px solid rgba(213,165,88,.28);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(213,165,88,.025), 0 0 0 120px rgba(213,165,88,.018);
}
html[data-style="4"] .home-hero .container { min-height: 650px; grid-template-columns: 1.2fr .8fr; gap: 74px; padding-block: 94px; position: relative; z-index: 1; }
html[data-style="4"] .home-hero h1,
html[data-style="4"] .page-hero h1,
html[data-style="4"] .section-heading h2,
html[data-style="4"] .contact-strip h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
html[data-style="4"] .home-hero h1 { max-width: 820px; font-size: clamp(50px, 7vw, 84px); line-height: .98; }
html[data-style="4"] .button { border-radius: 5px; }
html[data-style="4"] .button--primary { background: var(--brand); color: #172019; }
html[data-style="4"] .button--primary:hover { background: #e6bd7b; color: #101713; }
html[data-style="4"] .button--secondary { border-color: #73857c; background: transparent; color: #fff; }
html[data-style="4"] .button--secondary:hover { background: rgba(255,255,255,.07); }
html[data-style="4"] .button--text { color: #ecd5ae; }
html[data-style="4"] .hero-panel {
  border: 1px solid rgba(213,165,88,.28);
  border-radius: 8px;
  background: rgba(16, 37, 45, .88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
html[data-style="4"] .hero-panel li { border-color: rgba(255,255,255,.11); }
html[data-style="4"] .hero-panel li::before { background: var(--brand); color: #172019; }
html[data-style="4"] .section { padding-block: 84px; }
html[data-style="4"] .section--tint { background: #0b2027; }
html[data-style="4"] .section--warm { background: #2b241a; }
html[data-style="4"] .service-list { border-color: var(--line); }
html[data-style="4"] .service-item { border-color: var(--line); }
html[data-style="4"] .service-icon { background: #223c42; color: #f2d39c; }
html[data-style="4"] .status { background: #3a301f; color: #f1c879; }
html[data-style="4"] .benefit-block { border-left-color: var(--brand); background: var(--surface); }
html[data-style="4"] .empty-state { border-color: #48606a; background: rgba(16, 37, 45, .62); }
html[data-style="4"] .empty-state h3 { color: var(--ink); }
html[data-style="4"] .page-hero {
  padding-block: 88px 66px;
  border-color: rgba(236,213,174,.12);
  background: linear-gradient(125deg, #0b2027, #122d32);
}
html[data-style="4"] .page-hero h1 { font-size: clamp(48px, 7vw, 76px); }
html[data-style="4"] .form-card,
html[data-style="4"] .card,
html[data-style="4"] .resource-summary,
html[data-style="4"] .cal-cell,
html[data-style="4"] input,
html[data-style="4"] textarea,
html[data-style="4"] select { border-color: var(--line); background: var(--surface); color: var(--ink); }
html[data-style="4"] .form-card,
html[data-style="4"] .card,
html[data-style="4"] .resource-summary { box-shadow: var(--shadow-sm); }
html[data-style="4"] .resource-summary { border-top: 3px solid var(--brand); }
html[data-style="4"] .resource-visual { background: linear-gradient(140deg, #d5a558, #8ba59a); color: #102127; }
html[data-style="4"] .meta-pill { border: 1px solid #354c54; background: #152e36; color: #c8d6d0; }
html[data-style="4"] .hero { border: 1px solid rgba(213,165,88,.22); background: linear-gradient(120deg, #17373d, #0b222a); }
html[data-style="4"] .hero::after { opacity: .06; }
html[data-style="4"] input:focus,
html[data-style="4"] textarea:focus,
html[data-style="4"] select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(213,165,88,.16); }
html[data-style="4"] input::placeholder { color: #71877e; }
html[data-style="4"] .btn-primary { background: var(--brand); color: #172019; box-shadow: 0 5px 18px rgba(213,165,88,.18); }
html[data-style="4"] .btn-primary:hover { background: #e6bd7b; }
html[data-style="4"] .btn-ghost { border-color: var(--line); background: #142b33; color: #f2d39c; }
html[data-style="4"] .btn-ghost:hover { border-color: #536a71; background: #1b353d; }
html[data-style="4"] .cal-nav button { background: #1b353d; color: #f2d39c; }
html[data-style="4"] .cal-nav button:hover { background: #28454d; }
html[data-style="4"] .cal-cell.muted { background: transparent; color: #52666d; }
html[data-style="4"] .cal-cell.booked { background: var(--busy-bg); color: var(--busy); }
html[data-style="4"] .cal-cell.mine { background: var(--mine-bg); color: #9ce5e7; }
html[data-style="4"] .cal-cell.blocked { background: var(--blocked-bg); color: var(--blocked); }
html[data-style="4"] .cal-cell.service { background: var(--service-bg); color: var(--service); }
html[data-style="4"] .tl-track { background: #17333a; border-color: #31525b; }
html[data-style="4"] .tl-readout.chosen,
html[data-style="4"] .day-free-note { color: #9ce5e7; }
html[data-style="4"] .day-free-note { background: #17383f; }
html[data-style="4"] .site-footer { border-top: 1px solid rgba(236,213,174,.12); background: #040e12; }

@media (max-width: 940px) {
  html[data-style="2"] .home-hero .container,
  html[data-style="4"] .home-hero .container { grid-template-columns: 1fr; }
  html[data-style="2"] .hero-panel,
  html[data-style="4"] .hero-panel { max-width: 720px; }
  html[data-style="2"] .primary-nav a,
  html[data-style="3"] .primary-nav a,
  html[data-style="4"] .primary-nav a { font-size: 11px; padding-inline: 8px; }
}

@media (max-width: 720px) {
  .style-switcher { left: 50%; bottom: 10px; transform: translateX(-50%); gap: 8px; padding-left: 11px; }
  .style-switcher__label { min-width: auto; }
  .style-switcher__label strong { display: none; }
  .style-switcher button { width: 30px; height: 30px; }
  html[data-style="2"] .container,
  html[data-style="3"] .container,
  html[data-style="4"] .container { width: min(100% - 32px, 1220px); }
  html[data-style="2"] .site-header .inner,
  html[data-style="3"] .site-header .inner,
  html[data-style="4"] .site-header .inner { padding-inline: 16px; }
  html[data-style="2"] .primary-nav a[href="/boka/"],
  html[data-style="3"] .primary-nav a[href="/boka/"],
  html[data-style="4"] .primary-nav a[href="/boka/"] { margin: 0; }
  html[data-style="2"] .home-hero { background: linear-gradient(155deg, #fbfaf6 0 70%, #e8e1d3 70%); }
  html[data-style="2"] .home-hero .container,
  html[data-style="3"] .home-hero .container,
  html[data-style="4"] .home-hero .container { min-height: auto; gap: 38px; padding-block: 58px; }
  html[data-style="2"] .home-hero h1,
  html[data-style="3"] .home-hero h1,
  html[data-style="4"] .home-hero h1 { font-size: clamp(42px, 13vw, 58px); }
  html[data-style="2"] .section,
  html[data-style="3"] .section,
  html[data-style="4"] .section { padding-block: 54px; }
  html[data-style="2"] .service-list,
  html[data-style="3"] .service-list { grid-template-columns: 1fr; }
  html[data-style="2"] .service-item,
  html[data-style="3"] .service-item { min-height: 0; }
  html[data-style="3"] .home-hero,
  html[data-style="3"] .page-hero { width: 100%; margin: 0; border-radius: 0; }
  html[data-style="3"] .hero-panel { transform: none; }
  html[data-style="4"] .brand img { width: 148px; }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-style="2"] .service-item,
  html[data-style="3"] .service-item,
  html[data-style="4"] .service-item { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  html[data-style="2"] .service-item:hover,
  html[data-style="3"] .service-item:hover,
  html[data-style="4"] .service-item:hover { transform: translateY(-3px); }
}

/* ─────────────────── Friare designspår, version 2 ───────────────────
   Den tidigare emblem-PNG:n saknar transparens och skapade den synliga
   "halvrutan". Vattenmärket tas bort i samtliga stilar. */
.hero::after { content: none; display: none; }

/* Stil 2 – Redaktionell föreningssajt, inspirerad av frilufts-/medlemswebb */
html[data-style="2"] {
  --brand: #006b76;
  --brand-600: #005963;
  --brand-700: #00444d;
  --brand-50: #e5f1f0;
  --brand-100: #c9e2df;
  --ink: #172622;
  --ink-soft: #40524c;
  --muted: #687972;
  --line: #cfd6cf;
  --bg: #f3efe5;
  --surface: #fffdf8;
  --warm: #eb6738;
  --warm-ink: #2d180f;
  --radius: 0;
  --radius-sm: 0;
  --shadow: none;
  --shadow-sm: none;
  color-scheme: light;
}
html[data-style="2"] body { background: var(--bg); font-family: "Aptos", "Segoe UI", Arial, sans-serif; }
html[data-style="2"] h1,
html[data-style="2"] h2,
html[data-style="2"] h3,
html[data-style="2"] .page-hero h1,
html[data-style="2"] .section-heading h2,
html[data-style="2"] .contact-strip h2 {
  font-family: "Aptos Display", "Segoe UI", Arial, sans-serif;
  font-weight: 780;
  letter-spacing: -.045em;
}
html[data-style="2"] .container { width: min(1240px, calc(100% - 64px)); }
html[data-style="2"] .site-header { position: sticky; border: 0; background: #fff; }
html[data-style="2"] .site-header .inner { max-width: 1240px; padding: 16px 32px; }
html[data-style="2"] .brand-local { font-family: inherit; font-weight: 800; }
html[data-style="2"] .primary-nav a { border-radius: 0; font-size: 13px; letter-spacing: 0; text-transform: none; }
html[data-style="2"] .primary-nav a:hover,
html[data-style="2"] .primary-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand); }
html[data-style="2"] .primary-nav a[href="/boka/"] { background: #eb6738; color: #fff; }

html[data-style="2"] .home-hero {
  min-height: 720px;
  border: 0;
  background:
    linear-gradient(90deg, #f3efe5 0 43%, rgba(243,239,229,.94) 43%, rgba(243,239,229,.08) 62%, rgba(0,0,0,.06) 100%),
    url("/hero-community-v2.jpg") center / cover no-repeat;
}
html[data-style="2"] .home-hero::after {
  content: "Illustrationsbild";
  display: block;
  position: absolute;
  right: 24px;
  bottom: 16px;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
html[data-style="2"] .home-hero .container {
  width: 100%;
  max-width: none;
  min-height: 720px;
  grid-template-columns: minmax(420px, 43%) 1fr;
  gap: 0;
  padding: 0;
}
html[data-style="2"] .home-hero .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 8vw, 124px) clamp(36px, 6vw, 96px);
}
html[data-style="2"] .home-hero h1 { max-width: 680px; font-size: clamp(50px, 6vw, 84px); line-height: .94; }
html[data-style="2"] .home-hero .lead { max-width: 590px; font-size: 19px; }
html[data-style="2"] .hero-actions { align-items: stretch; }
html[data-style="2"] .button { min-height: 56px; border-radius: 0; padding-inline: 24px; }
html[data-style="2"] .button--primary { background: var(--brand); }
html[data-style="2"] .button--secondary { border-color: var(--ink); background: transparent; }
html[data-style="2"] .hero-panel {
  align-self: end;
  justify-self: end;
  width: min(500px, calc(100% - 64px));
  margin: 0 48px 48px 0;
  padding: 34px 38px;
  border: 0;
  border-top: 8px solid #eb6738;
  border-radius: 0;
  background: #005d67;
  box-shadow: none;
  transform: none;
}
html[data-style="2"] .hero-panel h2 { font-size: 25px; }
html[data-style="2"] .hero-panel li { padding-block: 14px; }

html[data-style="2"] .section { padding-block: clamp(82px, 9vw, 128px); }
html[data-style="2"] .section-heading { max-width: 820px; margin-bottom: 46px; }
html[data-style="2"] .section-heading h2 { font-size: clamp(42px, 6vw, 68px); }
html[data-style="2"] .services-section { background: #fffdf8; }
html[data-style="2"] .services-section .service-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  border: 0;
  background: #d5d8d1;
}
html[data-style="2"] .services-section .service-item {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(30px, 4vw, 54px);
  border: 0;
  background: #f3efe5;
}
html[data-style="2"] .services-section .service-item:nth-child(1),
html[data-style="2"] .services-section .service-item:nth-child(4) { grid-column: span 7; }
html[data-style="2"] .services-section .service-item:nth-child(2),
html[data-style="2"] .services-section .service-item:nth-child(3) { grid-column: span 5; }
html[data-style="2"] .services-section .service-item:nth-child(1) { background: #006b76; color: #fff; }
html[data-style="2"] .services-section .service-item:nth-child(1) p,
html[data-style="2"] .services-section .service-item:nth-child(1) a { color: #fff; }
html[data-style="2"] .services-section .service-item:nth-child(4) { background: #eb6738; color: #20150f; }
html[data-style="2"] .services-section .service-icon {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 48px;
  font-weight: 300;
  opacity: .42;
}
html[data-style="2"] .services-section .service-item h3 { font-size: clamp(25px, 3vw, 36px); }
html[data-style="2"] .services-section .service-link,
html[data-style="2"] .services-section .service-item > .muted { grid-column: auto; margin-top: auto; color: inherit; }

html[data-style="2"] .current-section { background: #005d67; color: #fff; }
html[data-style="2"] .current-section .eyebrow,
html[data-style="2"] .current-section .section-heading p,
html[data-style="2"] .current-section a { color: #fff; }
html[data-style="2"] .current-section .empty-state { min-height: 170px; border-color: rgba(255,255,255,.38); background: transparent; color: rgba(255,255,255,.72); }
html[data-style="2"] .current-section .empty-state h3 { color: #fff; }
html[data-style="2"] .value-section { background: #f3efe5; }
html[data-style="2"] .benefit-split { gap: 0; }
html[data-style="2"] .benefit-block { min-height: 320px; padding: clamp(42px, 6vw, 76px); border: 0; border-top: 0; background: #fff; }
html[data-style="2"] .benefit-block + .benefit-block { background: #172622; color: #fff; }
html[data-style="2"] .benefit-block + .benefit-block p,
html[data-style="2"] .benefit-block + .benefit-block a { color: #fff; }
html[data-style="2"] .benefit-block h3 { font-size: clamp(30px, 4vw, 46px); }
html[data-style="2"] .contact-section { background: #eb6738; }
html[data-style="2"] .contact-section .button { background: #172622; color: #fff; }

html[data-style="2"] .page-hero { padding-block: 92px; background: #005d67; color: #fff; }
html[data-style="2"] .page-hero .eyebrow,
html[data-style="2"] .page-hero .lead,
html[data-style="2"] .page-hero .breadcrumbs,
html[data-style="2"] .page-hero a { color: #fff; }
html[data-style="2"] .page-hero h1 { max-width: 940px; font-size: clamp(54px, 8vw, 92px); }

html[data-style="2"] main.booking-main { max-width: 1280px; padding: 34px 32px 90px; }
html[data-style="2"] .booking-resource {
  position: relative;
  display: flex;
  min-height: 570px;
  align-items: flex-end;
  margin-bottom: 56px;
  padding: clamp(40px, 7vw, 82px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5,25,24,.92) 0%, rgba(5,25,24,.70) 48%, rgba(5,25,24,.08) 82%),
    url("/hero-community-v2.jpg") center / cover no-repeat;
}
html[data-style="2"] .booking-resource::after {
  content: "Illustrationsbild";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(255,255,255,.75);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html[data-style="2"] .booking-resource .resource-visual { display: none; }
html[data-style="2"] .booking-resource > div:last-child { position: relative; z-index: 1; max-width: 780px; }
html[data-style="2"] .booking-resource h1 { font-size: clamp(48px, 7vw, 80px); line-height: .98; }
html[data-style="2"] .booking-resource p:not(.eyebrow) { color: rgba(255,255,255,.9); font-size: 18px; }
html[data-style="2"] .booking-resource .eyebrow { color: #fff; }
html[data-style="2"] .booking-resource .meta-pill { border: 1px solid rgba(255,255,255,.48); background: rgba(0,0,0,.18); color: #fff; }

html[data-style="2"] #authView {
  display: grid;
  grid-template-columns: 1.05fr 1fr .9fr;
  gap: 2px;
  align-items: stretch;
  margin-bottom: 40px;
  background: #cfd6cf;
}
html[data-style="2"] #authView > .grid { display: contents; }
html[data-style="2"] .booking-intro,
html[data-style="2"] .login-card,
html[data-style="2"] .booking-guide-card { margin: 0; padding: clamp(34px, 4vw, 52px); border: 0; border-radius: 0; box-shadow: none; }
html[data-style="2"] .booking-intro { background: #005d67; color: #fff; }
html[data-style="2"] .booking-intro h2 { font-size: clamp(40px, 5vw, 62px) !important; line-height: .95; }
html[data-style="2"] .login-card { background: #fff; }
html[data-style="2"] .booking-guide-card { background: #f3efe5; }
html[data-style="2"] input,
html[data-style="2"] textarea,
html[data-style="2"] select { min-height: 54px; border-radius: 0; }
html[data-style="2"] .btn-primary { min-height: 56px; border-radius: 0; background: #eb6738; color: #20150f; box-shadow: none; }

html[data-style="2"] .booking-welcome { margin: 0 0 2px; padding: 48px; background: #005d67; }
html[data-style="2"] .booking-workspace {
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "calendar calendar" "booking mine";
  gap: 2px;
  background: #cfd6cf;
}
html[data-style="2"] .booking-stack { display: contents; }
html[data-style="2"] .calendar-card { grid-area: calendar; }
html[data-style="2"] .booking-card { grid-area: booking; }
html[data-style="2"] .my-bookings-card { grid-area: mine; }
html[data-style="2"] .booking-workspace > .card,
html[data-style="2"] .booking-workspace .card { padding: clamp(30px, 5vw, 52px); border: 0; border-radius: 0; box-shadow: none; }
html[data-style="2"] .calendar-card { background: #fff; }
html[data-style="2"] .cal-grid { gap: 10px; }
html[data-style="2"] .cal-cell { border-radius: 0; }
html[data-style="2"] .page-booking > .site-footer { margin-top: 0; }

/* Stil 4 – Arkitektur/premium: foto, skala och hårda kontraster */
html[data-style="4"] {
  --brand: #c8a461;
  --brand-600: #b38d4c;
  --brand-700: #745826;
  --brand-50: #eee6d7;
  --brand-100: #ded0b5;
  --ink: #191b1a;
  --ink-soft: #444846;
  --muted: #6b706d;
  --line: #c9cbc6;
  --bg: #efede6;
  --surface: #fff;
  --warm: #c8a461;
  --warm-ink: #17150f;
  --radius: 0;
  --radius-sm: 0;
  --shadow: none;
  --shadow-sm: none;
  color-scheme: light;
}
html[data-style="4"] body { background: var(--bg); color: var(--ink); font-family: "Aptos", "Century Gothic", "Segoe UI", sans-serif; }
html[data-style="4"] h1,
html[data-style="4"] h2,
html[data-style="4"] h3,
html[data-style="4"] .home-hero h1,
html[data-style="4"] .page-hero h1,
html[data-style="4"] .section-heading h2,
html[data-style="4"] .contact-strip h2 {
  font-family: "Aptos Display", "Century Gothic", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -.055em;
}
html[data-style="4"] a { color: #745826; }
html[data-style="4"] a:hover { color: #17150f; }
html[data-style="4"] .container { width: min(1320px, calc(100% - 72px)); }
html[data-style="4"] .site-header { position: relative; border: 0; background: #fff; }
html[data-style="4"] .site-header .inner { max-width: 1320px; padding: 18px 36px; }
html[data-style="4"] .brand img { width: 178px; padding: 0; border-radius: 0; background: transparent; }
html[data-style="4"] .brand-local { color: #191b1a; border-color: #cfd0cc; }
html[data-style="4"] .primary-nav a { border-radius: 0; color: #252826; font-size: 12px; letter-spacing: .035em; text-transform: uppercase; }
html[data-style="4"] .primary-nav a:hover,
html[data-style="4"] .primary-nav a[aria-current="page"] { color: #000; background: transparent; box-shadow: inset 0 -2px 0 #191b1a; }
html[data-style="4"] .primary-nav a[href="/boka/"] { min-height: 44px; padding-inline: 22px; background: #191b1a; color: #fff; }

html[data-style="4"] .home-hero {
  position: relative;
  width: 100%;
  min-height: min(800px, 86svh);
  margin: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(10,12,11,.08) 0%, rgba(10,12,11,.22) 42%, rgba(10,12,11,.87) 100%),
    url("/hero-community-v2.jpg") 64% center / cover no-repeat;
}
html[data-style="4"] .home-hero::before { content: none; display: none; }
html[data-style="4"] .home-hero::after {
  content: "Illustrationsbild";
  position: absolute;
  right: 24px;
  top: 18px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: rgba(255,255,255,.78);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: none;
}
html[data-style="4"] .home-hero .container {
  width: min(1320px, calc(100% - 72px));
  min-height: min(800px, 86svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  padding-block: 120px 46px;
}
html[data-style="4"] .home-hero .hero-copy { max-width: 980px; color: #fff; }
html[data-style="4"] .home-hero .eyebrow { color: #e8c887; }
html[data-style="4"] .home-hero h1 { max-width: 980px; margin-bottom: 22px; font-size: clamp(58px, 8.3vw, 116px); line-height: .83; text-transform: uppercase; }
html[data-style="4"] .home-hero .lead { max-width: 650px; color: rgba(255,255,255,.9); font-size: 19px; }
html[data-style="4"] .button { min-height: 58px; border-radius: 0; padding-inline: 28px; letter-spacing: .035em; text-transform: uppercase; }
html[data-style="4"] .button--primary { background: #c8a461; color: #17150f; }
html[data-style="4"] .button--secondary { border-color: #fff; background: transparent; color: #fff; }
html[data-style="4"] .button--text { color: #fff; }
html[data-style="4"] .hero-panel {
  width: 100%;
  max-width: none;
  margin: 54px 0 0;
  padding: 26px 0 0;
  transform: none;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.55);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
html[data-style="4"] .hero-panel h2 { display: none; }
html[data-style="4"] .hero-panel ul { display: grid; grid-template-columns: repeat(4, 1fr); }
html[data-style="4"] .hero-panel li { min-height: 68px; padding: 8px 24px; border: 0; border-left: 1px solid rgba(255,255,255,.25); }
html[data-style="4"] .hero-panel li:first-child { padding-left: 0; border-left: 0; }
html[data-style="4"] .hero-panel li::before { display: none; }
html[data-style="4"] .hero-panel a { color: #fff; font-size: 14px; font-weight: 750; text-decoration: none; text-transform: uppercase; }

html[data-style="4"] .section { padding-block: clamp(96px, 10vw, 148px); }
html[data-style="4"] .section-heading { max-width: 880px; margin-bottom: 56px; }
html[data-style="4"] .section-heading h2 { font-size: clamp(48px, 7vw, 82px); line-height: .92; text-transform: uppercase; }
html[data-style="4"] .services-section { background: #202321; color: #fff; }
html[data-style="4"] .services-section .eyebrow,
html[data-style="4"] .services-section .section-heading p { color: #c9cec9; }
html[data-style="4"] .services-section .service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 0;
  background: #5a5e5a;
}
html[data-style="4"] .services-section .service-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  min-height: 310px;
  align-items: start;
  gap: 22px;
  padding: clamp(38px, 5vw, 66px);
  border: 0;
  background: #292d2a;
  color: #fff;
}
html[data-style="4"] .services-section .service-item:nth-child(1) { background: #c8a461; color: #17150f; }
html[data-style="4"] .services-section .service-icon { grid-column: 2; grid-row: 1; width: auto; height: auto; background: transparent; color: inherit; font-size: 56px; font-weight: 300; opacity: .36; }
html[data-style="4"] .services-section .service-item > div { grid-column: 1 / -1; grid-row: 2; }
html[data-style="4"] .services-section .service-item h3 { font-size: clamp(28px, 3vw, 40px); text-transform: uppercase; }
html[data-style="4"] .services-section .service-item p { color: inherit; opacity: .75; }
html[data-style="4"] .services-section .service-link,
html[data-style="4"] .services-section .service-item > .muted { grid-column: 1 / -1; grid-row: 3; color: inherit; }
html[data-style="4"] .current-section { background: #efede6; }
html[data-style="4"] .current-section .two-column { grid-template-columns: 1.35fr .65fr; gap: 96px; }
html[data-style="4"] .empty-state { border: 1px solid #979c98; border-radius: 0; background: transparent; box-shadow: none; }
html[data-style="4"] .empty-state h3 { color: var(--ink); }
html[data-style="4"] .value-section { background: #fff; }
html[data-style="4"] .benefit-split { gap: 1px; background: #8b8e8a; }
html[data-style="4"] .benefit-block { min-height: 350px; padding: clamp(48px, 7vw, 86px); border: 0; background: #202321; color: #fff; }
html[data-style="4"] .benefit-block + .benefit-block { background: #c8a461; color: #17150f; }
html[data-style="4"] .benefit-block h3 { font-size: clamp(36px, 5vw, 58px); text-transform: uppercase; }
html[data-style="4"] .benefit-block p,
html[data-style="4"] .benefit-block a { color: inherit; }
html[data-style="4"] .contact-section { background: #c8a461; }
html[data-style="4"] .contact-section .button { border-color: #191b1a; background: #191b1a; color: #fff; }

html[data-style="4"] .page-hero { min-height: 440px; display: flex; align-items: flex-end; padding-block: 90px; border: 0; background: #202321; color: #fff; }
html[data-style="4"] .page-hero h1 { max-width: 1080px; font-size: clamp(58px, 9vw, 108px); line-height: .86; text-transform: uppercase; }
html[data-style="4"] .page-hero .lead,
html[data-style="4"] .page-hero .breadcrumbs,
html[data-style="4"] .page-hero a { color: #fff; }

html[data-style="4"] main.booking-main { max-width: 1320px; padding: 42px 36px 110px; }
html[data-style="4"] .booking-resource {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 520px;
  gap: 0;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #202321;
  color: #fff;
  box-shadow: none;
}
html[data-style="4"] .booking-resource .resource-visual {
  position: relative;
  order: 2;
  width: 100%;
  height: 100%;
  min-height: 520px;
  aspect-ratio: auto;
  border-radius: 0;
  color: transparent;
  background: url("/hero-community-v2.jpg") 70% center / cover no-repeat;
}
html[data-style="4"] .booking-resource .resource-visual::before,
html[data-style="4"] .booking-resource .resource-visual strong { display: none; }
html[data-style="4"] .booking-resource .resource-visual::after {
  content: "Illustrationsbild";
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(255,255,255,.78);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[data-style="4"] .booking-resource > div:last-child { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 88px); }
html[data-style="4"] .booking-resource h1 { font-size: clamp(48px, 6vw, 76px); line-height: .9; text-transform: uppercase; }
html[data-style="4"] .booking-resource p:not(.eyebrow) { color: rgba(255,255,255,.8); }
html[data-style="4"] .booking-resource .meta-pill { border: 1px solid #646964; border-radius: 0; background: transparent; color: #fff; }

html[data-style="4"] #authView {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 520px);
  gap: clamp(50px, 7vw, 104px);
  align-items: start;
  padding-block: clamp(74px, 8vw, 112px);
}
html[data-style="4"] #authView > .grid { display: contents; }
html[data-style="4"] .booking-intro { grid-column: 1; grid-row: 1; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; color: #191b1a; box-shadow: none; }
html[data-style="4"] .booking-intro h2 { max-width: 650px; font-size: clamp(54px, 7vw, 88px) !important; line-height: .86; text-transform: uppercase; }
html[data-style="4"] .booking-intro p { color: var(--ink-soft); font-size: 18px; }
html[data-style="4"] .login-card { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 102px; padding: clamp(38px, 5vw, 58px); border: 1px solid #bdbfb9; border-radius: 0; background: #fff; color: #191b1a; box-shadow: none; }
html[data-style="4"] .booking-guide-card { grid-column: 1; grid-row: 2; padding: 38px 0 0; border: 0; border-top: 1px solid #aeb1ac; border-radius: 0; background: transparent; box-shadow: none; }
html[data-style="4"] input,
html[data-style="4"] textarea,
html[data-style="4"] select { min-height: 56px; border: 1px solid #9da19d; border-radius: 0; background: #fff; color: #191b1a; }
html[data-style="4"] .btn-primary { min-height: 58px; border-radius: 0; background: #c8a461; color: #17150f; box-shadow: none; letter-spacing: .035em; text-transform: uppercase; }
html[data-style="4"] .btn-ghost { border-radius: 0; border-color: #9da19d; background: #fff; color: #191b1a; }

html[data-style="4"] .booking-welcome { margin: 76px 0 28px; padding: 0 0 28px; border: 0; border-bottom: 1px solid #aeb1ac; border-radius: 0; background: transparent; color: #191b1a; box-shadow: none; }
html[data-style="4"] .booking-welcome h2 { font-size: clamp(48px, 6vw, 76px) !important; text-transform: uppercase; }
html[data-style="4"] .booking-welcome p { color: var(--ink-soft); }
html[data-style="4"] .booking-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(390px, .58fr);
  grid-template-areas: "calendar booking" "mine booking";
  gap: 32px;
  align-items: start;
}
html[data-style="4"] .booking-stack { display: contents; }
html[data-style="4"] .calendar-card { grid-area: calendar; }
html[data-style="4"] .booking-card { grid-area: booking; position: sticky; top: 104px; background: #202321; color: #fff; }
html[data-style="4"] .my-bookings-card { grid-area: mine; }
html[data-style="4"] .booking-workspace .card { padding: clamp(34px, 4vw, 52px); border: 1px solid #c1c3be; border-radius: 0; background-color: #fff; color: #191b1a; box-shadow: none; }
html[data-style="4"] .booking-workspace .booking-card { border-color: #202321; background: #202321; color: #fff; }
html[data-style="4"] .booking-card h2,
html[data-style="4"] .booking-card label { color: #fff; }
html[data-style="4"] .booking-card .sub,
html[data-style="4"] .booking-card .note,
html[data-style="4"] .booking-card .muted-inline { color: #c5cbc6; }
html[data-style="4"] .booking-card input { background: #fff; color: #191b1a; }
html[data-style="4"] .cal-cell { border-radius: 0; background: #fff; color: #191b1a; }
html[data-style="4"] .cal-cell.muted { background: transparent; color: #9da19d; }
html[data-style="4"] .page-booking .section[aria-labelledby="rules-title"] { margin-top: 72px; border-top: 1px solid #aeb1ac; }
html[data-style="4"] .site-footer { border: 0; background: #202321; }

/* Stil 2 – ett redaktionellt bildreportage med en tydlig handlingsdocka */
html[data-style="2"] .home-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 29, 27, .86) 0%, rgba(10, 29, 27, .56) 46%, rgba(10, 29, 27, .12) 78%),
    url("/hero-community-v2.jpg") 66% center / cover no-repeat;
}
html[data-style="2"] .home-hero::after {
  right: 24px;
  bottom: 178px;
  color: rgba(255, 255, 255, .82);
}
html[data-style="2"] .home-hero .container {
  position: relative;
  display: flex;
  width: min(1240px, calc(100% - 64px));
  min-height: 760px;
  flex-direction: column;
  justify-content: center;
  padding: 82px 0 220px;
}
html[data-style="2"] .home-hero .hero-copy {
  display: block;
  max-width: 760px;
  padding: 0;
  color: #fff;
}
html[data-style="2"] .home-hero .eyebrow,
html[data-style="2"] .home-hero .lead { color: #fff; }
html[data-style="2"] .home-hero h1 {
  max-width: 760px;
  font-size: clamp(56px, 7.4vw, 96px);
  line-height: .9;
  text-wrap: balance;
}
html[data-style="2"] .home-hero .lead { max-width: 660px; text-shadow: 0 1px 18px rgba(0,0,0,.34); }
html[data-style="2"] .home-hero .button--secondary { border-color: #fff; color: #fff; }
html[data-style="2"] .home-hero .button--text { color: #fff; }
html[data-style="2"] .home-hero .hero-panel {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 0;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #172622;
}
html[data-style="2"] .home-hero .hero-panel h2 {
  margin: 0;
  padding: 17px 22px 10px;
  color: #006b76;
  font-family: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[data-style="2"] .home-hero .hero-panel ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-style="2"] .home-hero .hero-panel li {
  min-height: 84px;
  align-items: center;
  padding: 15px 22px 21px;
  border: 0;
  border-left: 1px solid #d8ddd8;
}
html[data-style="2"] .home-hero .hero-panel li:first-child { border-left: 0; }
html[data-style="2"] .home-hero .hero-panel li::before { display: none; }
html[data-style="2"] .home-hero .hero-panel a { color: #172622; font-weight: 760; text-decoration: none; }
html[data-style="2"] .home-hero .hero-panel a::after { content: "  →"; color: #eb6738; }

/* Stil 5 – marknadsplats: produkt, tillit och bokning i första rummet */
html[data-style="5"] {
  --brand: #8a2a8d;
  --brand-600: #762079;
  --brand-700: #5d185f;
  --brand-50: #f6eaf6;
  --brand-100: #ecd4ec;
  --ink: #242124;
  --ink-soft: #4f4a50;
  --muted: #716b72;
  --line: #e4dfe4;
  --bg: #f5f3f5;
  --surface: #fff;
  --warm: #ffdbd4;
  --warm-ink: #592721;
  --success: #2f7b49;
  --mine: #8a2a8d;
  --mine-bg: #f6eaf6;
  --mine-line: #dfbfe0;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 64px rgba(51, 30, 52, .14);
  --shadow-sm: 0 8px 28px rgba(51, 30, 52, .09);
  color-scheme: light;
}
html[data-style="5"] body { background: var(--bg); color: var(--ink); font-family: "Lato", "Aptos", "Segoe UI", Arial, sans-serif; }
html[data-style="5"] h1,
html[data-style="5"] h2,
html[data-style="5"] h3 { letter-spacing: -.038em; }
html[data-style="5"] a { color: var(--brand-700); }
html[data-style="5"] .container { width: min(1260px, calc(100% - 48px)); }
html[data-style="5"] .site-header { border: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
html[data-style="5"] .site-header .inner { max-width: 1260px; padding: 14px 24px; }
html[data-style="5"] .brand-local { border-color: #ded8de; }
html[data-style="5"] .primary-nav { gap: 5px; }
html[data-style="5"] .primary-nav a { border-radius: 999px; padding: 10px 13px; color: #403b41; }
html[data-style="5"] .primary-nav a:hover,
html[data-style="5"] .primary-nav a[aria-current="page"] { background: #f4ebf4; color: var(--brand); }
html[data-style="5"] .primary-nav a[href="/boka/"] { padding-inline: 21px; background: var(--brand); color: #fff; }

html[data-style="5"] .home-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(180deg, rgba(249,247,249,.73), rgba(244,236,244,.90)),
    url("/hero-community-v2.jpg") center 58% / cover no-repeat;
}
html[data-style="5"] .home-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9px;
  background: linear-gradient(90deg, #8a2a8d 0 42%, #61d27d 42% 71%, #df5858 71%);
}
html[data-style="5"] .home-hero::after {
  content: "Illustrationsbild";
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: #686169;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html[data-style="5"] .home-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 700px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding-block: 84px;
}
html[data-style="5"] .home-hero .hero-copy { max-width: 900px; text-align: center; }
html[data-style="5"] .home-hero .eyebrow { color: var(--brand); }
html[data-style="5"] .home-hero h1 { max-width: 900px; margin-inline: auto; font-size: clamp(54px, 7.6vw, 94px); line-height: .91; }
html[data-style="5"] .home-hero .lead { max-width: 720px; margin-inline: auto; color: #3f3a40; font-size: 19px; }
html[data-style="5"] .hero-actions { justify-content: center; }
html[data-style="5"] .button { min-height: 54px; border-radius: 999px; padding-inline: 24px; }
html[data-style="5"] .button--primary { background: var(--brand); box-shadow: 0 10px 26px rgba(138,42,141,.24); }
html[data-style="5"] .button--secondary { border-color: #b797b8; background: rgba(255,255,255,.82); }
html[data-style="5"] .hero-panel {
  width: min(1120px, 100%);
  padding: 10px;
  border: 1px solid rgba(101,67,102,.11);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(52,27,53,.18);
}
html[data-style="5"] .hero-panel h2 { margin: 4px 12px 8px; color: #6d676e; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
html[data-style="5"] .hero-panel ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-style="5"] .hero-panel li {
  min-height: 70px;
  align-items: center;
  padding: 12px 18px;
  border: 0;
  border-left: 1px solid var(--line);
}
html[data-style="5"] .hero-panel li:first-child { border-left: 0; border-radius: 14px; background: var(--brand); }
html[data-style="5"] .hero-panel li::before { display: none; }
html[data-style="5"] .hero-panel a { color: var(--ink); font-weight: 760; text-decoration: none; }
html[data-style="5"] .hero-panel li:first-child a { color: #fff; }

html[data-style="5"] .section { padding-block: clamp(76px, 8vw, 112px); }
html[data-style="5"] .section-heading { max-width: 790px; margin-bottom: 38px; }
html[data-style="5"] .section-heading h2 { font-size: clamp(40px, 5.4vw, 64px); }
html[data-style="5"] .services-section { background: #fff; }
html[data-style="5"] .services-section .service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  border: 0;
}
html[data-style="5"] .services-section .service-item {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  overflow: hidden;
  padding: 190px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
html[data-style="5"] .services-section .service-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 168px;
  background: linear-gradient(135deg, #d8ece0, #b3d3bd);
}
html[data-style="5"] .services-section .service-item:nth-child(1)::before {
  background: linear-gradient(rgba(33,18,34,.08), rgba(33,18,34,.08)), url("/hero-community-v2.jpg") 74% center / cover no-repeat;
}
html[data-style="5"] .services-section .service-item:nth-child(2)::before { background: radial-gradient(circle at 25% 30%, #fff 0 8%, transparent 8.5%), linear-gradient(135deg, #f3dbf4, #bb82bd); }
html[data-style="5"] .services-section .service-item:nth-child(3)::before { background: linear-gradient(135deg, #ffe2dc, #df7669); }
html[data-style="5"] .services-section .service-item:nth-child(4)::before { background: linear-gradient(135deg, #dff5e5, #61d27d); }
html[data-style="5"] .services-section .service-icon {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(37,24,38,.12);
}
html[data-style="5"] .services-section .service-item h3 { font-size: 22px; }
html[data-style="5"] .services-section .service-item p { color: var(--muted); }
html[data-style="5"] .services-section .service-link,
html[data-style="5"] .services-section .service-item > .muted { grid-column: auto; margin-top: auto; }
html[data-style="5"] .status { background: #ffe0da; color: #8b3329; }

html[data-style="5"] .current-section { background: #272227; color: #fff; }
html[data-style="5"] .current-section .two-column { gap: 18px; }
html[data-style="5"] .current-section .eyebrow,
html[data-style="5"] .current-section .section-heading p,
html[data-style="5"] .current-section a { color: #fff; }
html[data-style="5"] .current-section .empty-state { min-height: 180px; border: 0; border-radius: 18px; background: #393239; color: #cec5ce; }
html[data-style="5"] .current-section .empty-state h3 { color: #fff; }
html[data-style="5"] .value-section { background: #f5f3f5; }
html[data-style="5"] .benefit-split { gap: 18px; }
html[data-style="5"] .benefit-block { min-height: 300px; padding: clamp(34px, 5vw, 58px); border: 0; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
html[data-style="5"] .benefit-block + .benefit-block { background: #f2e4f3; }
html[data-style="5"] .benefit-block h3 { font-size: clamp(30px, 4vw, 44px); }
html[data-style="5"] .contact-section { background: #61d27d; }
html[data-style="5"] .contact-section .button { background: #242124; color: #fff; box-shadow: none; }

html[data-style="5"] .page-hero { padding-block: 90px 76px; border: 0; background: #f0e4f0; }
html[data-style="5"] .page-hero h1 { max-width: 920px; font-size: clamp(52px, 7.8vw, 88px); }
html[data-style="5"] .form-card,
html[data-style="5"] .empty-state { border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }

html[data-style="5"] main.booking-main { max-width: 1260px; padding: 30px 24px 100px; }
html[data-style="5"] .booking-resource {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, .65fr);
  min-height: 500px;
  align-items: stretch;
  gap: 0;
  margin-bottom: 42px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
html[data-style="5"] .booking-resource .resource-visual {
  position: relative;
  width: 100%;
  min-height: 500px;
  aspect-ratio: auto;
  border-radius: 0;
  color: transparent;
  background: url("/hero-community-v2.jpg") 70% center / cover no-repeat;
}
html[data-style="5"] .booking-resource .resource-visual strong { display: none; }
html[data-style="5"] .booking-resource .resource-visual::after {
  content: "Illustrationsbild";
  position: absolute;
  right: 15px;
  bottom: 13px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(27,22,27,.62);
  color: #fff;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html[data-style="5"] .booking-resource > div:last-child { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 4vw, 52px); }
html[data-style="5"] .booking-resource h1 { font-size: clamp(42px, 5vw, 64px); line-height: .94; }
html[data-style="5"] .booking-resource .eyebrow { color: var(--brand); }
html[data-style="5"] .booking-resource .resource-meta { gap: 7px; }
html[data-style="5"] .booking-resource .meta-pill { background: #f5f3f5; color: #504a51; }

html[data-style="5"] #authView {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
  gap: 24px 34px;
  align-items: start;
  margin-bottom: 48px;
}
html[data-style="5"] #authView > .grid { display: contents; }
html[data-style="5"] .booking-intro {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 36px 0 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
html[data-style="5"] .booking-intro h2 { max-width: 690px; font-size: clamp(45px, 6vw, 70px) !important; line-height: .92; }
html[data-style="5"] .booking-intro p { color: var(--ink-soft); font-size: 18px; }
html[data-style="5"] .login-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 94px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
html[data-style="5"] .login-card::before {
  content: "0 kr  ·  medlem";
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e3f8e8;
  color: #245c35;
  font-size: 13px;
  font-weight: 850;
}
html[data-style="5"] .booking-guide-card {
  grid-column: 1;
  grid-row: 2;
  padding: 34px;
  border: 0;
  border-radius: 20px;
  background: #eee7ef;
  box-shadow: none;
}
html[data-style="5"] .booking-guide-card .steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
html[data-style="5"] .booking-guide-card .steps li { border-color: #d6ccd7; }
html[data-style="5"] input,
html[data-style="5"] textarea,
html[data-style="5"] select { min-height: 54px; border: 1px solid #d8d1d8; border-radius: 12px; background: #fff; }
html[data-style="5"] input:focus,
html[data-style="5"] textarea:focus,
html[data-style="5"] select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
html[data-style="5"] .btn-primary { min-height: 56px; border-radius: 14px; background: #61d27d; color: #173d22; box-shadow: none; font-weight: 850; }
html[data-style="5"] .btn-primary:hover { background: #4fc56c; }
html[data-style="5"] .btn-ghost { border-radius: 12px; }

html[data-style="5"] .booking-welcome { margin: 24px 0; border: 0; border-radius: 20px; background: linear-gradient(135deg, #8a2a8d, #aa48ad); box-shadow: none; }
html[data-style="5"] .booking-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
  grid-template-areas: "booking calendar" "mine calendar";
  gap: 24px;
  align-items: start;
}
html[data-style="5"] .booking-stack { display: contents; }
html[data-style="5"] .booking-card { grid-area: booking; }
html[data-style="5"] .my-bookings-card { grid-area: mine; }
html[data-style="5"] .calendar-card { grid-area: calendar; position: sticky; top: 94px; }
html[data-style="5"] .booking-workspace .card { padding: clamp(28px, 4vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
html[data-style="5"] .calendar-card::before {
  content: "0 kr / medlem";
  display: block;
  margin: -8px 0 18px;
  color: #2f7b49;
  font-size: 14px;
  font-weight: 850;
}
html[data-style="5"] .cal-grid { gap: 7px; }
html[data-style="5"] .cal-cell { border-radius: 10px; }
html[data-style="5"] .cal-cell.selected { outline: 0; border-color: var(--brand); background: var(--brand); color: #fff; }
html[data-style="5"] .cal-nav button { border-radius: 999px; background: var(--brand-50); color: var(--brand); }
html[data-style="5"] .badge { background: var(--brand-50); color: var(--brand-700); }
html[data-style="5"] .page-booking .section[aria-labelledby="rules-title"] { margin-top: 68px; padding-top: 68px !important; border-top: 1px solid var(--line); }
html[data-style="5"] .site-footer { background: #272227; }

/* De tre friare spåren bryts om på riktigt, inte bara skalas ned. */
@media (max-width: 1040px) {
  html[data-style="2"] #authView { grid-template-columns: 1fr 1fr; }
  html[data-style="2"] .booking-intro { grid-column: 1 / -1; }
  html[data-style="2"] .services-section .service-item:nth-child(n) { grid-column: span 6; }
  html[data-style="4"] #authView { grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); gap: 52px; }
  html[data-style="4"] .booking-workspace { grid-template-columns: minmax(0, 1fr) 370px; }
  html[data-style="5"] .services-section .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-style="5"] .services-section .service-item { min-height: 360px; }
}

@media (min-width: 941px) {
  html[data-style="4"].preview-mode .site-header .inner,
  html[data-style="5"].preview-mode .site-header .inner { padding-right: 286px; }
}

@media (max-width: 860px) {
  html[data-style="2"] .home-hero .hero-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-style="2"] .home-hero .hero-panel li:nth-child(3) { border-left: 0; border-top: 1px solid #d8ddd8; }
  html[data-style="2"] .home-hero .hero-panel li:nth-child(4) { border-top: 1px solid #d8ddd8; }
  html[data-style="2"] #authView,
  html[data-style="2"] .booking-workspace { grid-template-columns: 1fr; grid-template-areas: none; }
  html[data-style="2"] .booking-intro,
  html[data-style="2"] .login-card,
  html[data-style="2"] .booking-guide-card,
  html[data-style="2"] .calendar-card,
  html[data-style="2"] .booking-card,
  html[data-style="2"] .my-bookings-card { grid-column: auto; grid-row: auto; grid-area: auto; }

  html[data-style="4"] .booking-resource { grid-template-columns: 1fr; }
  html[data-style="4"] .booking-resource .resource-visual { order: 0; min-height: 420px; }
  html[data-style="4"] .booking-resource > div:last-child { order: 1; }
  html[data-style="4"] #authView { grid-template-columns: 1fr; gap: 42px; }
  html[data-style="4"] .booking-intro,
  html[data-style="4"] .login-card,
  html[data-style="4"] .booking-guide-card { grid-column: auto; grid-row: auto; }
  html[data-style="4"] .login-card { position: static; }
  html[data-style="4"] .booking-workspace { grid-template-columns: 1fr; grid-template-areas: "calendar" "booking" "mine"; }
  html[data-style="4"] .booking-card { position: static; }

  html[data-style="5"] .hero-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-style="5"] .hero-panel li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  html[data-style="5"] .hero-panel li:nth-child(4) { border-top: 1px solid var(--line); }
  html[data-style="5"] .booking-resource { grid-template-columns: 1fr; }
  html[data-style="5"] .booking-resource .resource-visual { min-height: 390px; }
  html[data-style="5"] #authView { grid-template-columns: 1fr; }
  html[data-style="5"] .booking-intro,
  html[data-style="5"] .login-card,
  html[data-style="5"] .booking-guide-card { grid-column: auto; grid-row: auto; }
  html[data-style="5"] .login-card { position: static; }
  html[data-style="5"] .booking-workspace { grid-template-columns: 1fr; grid-template-areas: "calendar" "booking" "mine"; }
  html[data-style="5"] .calendar-card { position: static; }
}

@media (max-width: 720px) {
  html[data-style="2"] .container,
  html[data-style="4"] .container,
  html[data-style="5"] .container { width: min(100% - 32px, 1320px); }
  html[data-style="5"] .site-header .inner { padding-inline: 16px; }
  html[data-style="5"] .primary-nav a[href="/boka/"] { margin: 0; }

  html[data-style="2"] .home-hero { min-height: 0; background-position: 69% center; }
  html[data-style="2"] .home-hero::after { top: 14px; right: 14px; bottom: auto; }
  html[data-style="2"] .home-hero .container {
    width: 100%;
    min-height: 0;
    gap: 34px;
    padding: 72px 16px 0;
  }
  html[data-style="2"] .home-hero .hero-copy { padding: 0 0 28px; }
  html[data-style="2"] .home-hero h1 { font-size: clamp(47px, 14vw, 66px); }
  html[data-style="2"] .home-hero .hero-panel {
    position: relative;
    inset: auto;
    width: calc(100% + 32px);
    margin: 0 -16px;
    border-radius: 22px 22px 0 0;
  }
  html[data-style="2"] .home-hero .hero-panel ul { grid-template-columns: 1fr; }
  html[data-style="2"] .home-hero .hero-panel li,
  html[data-style="2"] .home-hero .hero-panel li:nth-child(n) { min-height: 0; border: 0; border-top: 1px solid #d8ddd8; }
  html[data-style="2"] .services-section .service-list { grid-template-columns: 1fr; }
  html[data-style="2"] .services-section .service-item:nth-child(n) { grid-column: auto; min-height: 230px; }
  html[data-style="2"] main.booking-main { padding-inline: 16px; }
  html[data-style="2"] .booking-resource { min-height: 500px; margin-inline: -16px; padding: 36px 24px; }
  html[data-style="2"] .booking-resource h1 { font-size: 49px; }
  html[data-style="2"] #authView { gap: 1px; }

  html[data-style="4"] .container { width: min(100% - 32px, 1320px); }
  html[data-style="4"] .site-header .inner { padding-inline: 16px; }
  html[data-style="4"] .home-hero,
  html[data-style="4"] .home-hero .container { min-height: 720px; }
  html[data-style="4"] .home-hero .container { width: min(100% - 32px, 1320px); padding-block: 92px 36px; }
  html[data-style="4"] .home-hero h1 { font-size: clamp(51px, 15vw, 72px); }
  html[data-style="4"] .home-hero .hero-panel { margin-top: 38px; }
  html[data-style="4"] .home-hero .hero-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-style="4"] .home-hero .hero-panel li:nth-child(3) { padding-left: 0; border-left: 0; }
  html[data-style="4"] .services-section .service-list { grid-template-columns: 1fr; }
  html[data-style="4"] .services-section .service-item { min-height: 250px; }
  html[data-style="4"] .current-section .two-column { grid-template-columns: 1fr; gap: 54px; }
  html[data-style="4"] main.booking-main { padding-inline: 16px; }
  html[data-style="4"] .booking-resource { margin-inline: -16px; }
  html[data-style="4"] .booking-resource .resource-visual { min-height: 330px; }
  html[data-style="4"] .booking-resource > div:last-child { padding: 38px 24px; }
  html[data-style="4"] #authView { padding-block: 58px; }

  html[data-style="5"] .home-hero,
  html[data-style="5"] .home-hero .container { min-height: 670px; }
  html[data-style="5"] .home-hero .container { gap: 28px; padding-block: 68px; }
  html[data-style="5"] .home-hero h1 { font-size: clamp(48px, 14vw, 66px); }
  html[data-style="5"] .hero-panel { border-radius: 18px; }
  html[data-style="5"] .hero-panel ul { grid-template-columns: 1fr; }
  html[data-style="5"] .hero-panel li,
  html[data-style="5"] .hero-panel li:nth-child(n) { min-height: 0; border: 0; border-top: 1px solid var(--line); }
  html[data-style="5"] .hero-panel li:first-child { border-top: 0; }
  html[data-style="5"] .services-section .service-list { grid-template-columns: 1fr; }
  html[data-style="5"] .services-section .service-item { min-height: 360px; }
  html[data-style="5"] .booking-guide-card .steps { grid-template-columns: 1fr; }
  html[data-style="5"] main.booking-main { padding-inline: 16px; }
  html[data-style="5"] .booking-resource { margin-inline: -8px; border-radius: 0 0 22px 22px; }
  html[data-style="5"] .booking-resource .resource-visual { min-height: 300px; }
  html[data-style="5"] .booking-resource > div:last-child { padding: 32px 24px; }
}
