/* ============================================================
   assets/css/style.css
   Skapad: 2026-04-25
   v1.3 | 2026-04-25 | Radikalt om — ljust redaktionellt tema
   ============================================================ */

/* ── GRUNDFÄRGER: tidning, inte rockband ─────────────────── */
:root {
  --cream:   #faf7f2;   /* varm sidton — som papper */
  --white:   #ffffff;
  --ink:     #1a1a1a;   /* rubriker */
  --body:    #333333;   /* brödtext */
  --muted:   #666666;
  --dim:     #999999;
  --border:  #d8d0c4;   /* mjuk linje */
  --border2: #e8e2d8;
  --gold:    #b8862a;   /* tonad ner — mer sepia */
  --gold-bg: #f5ede0;   /* guld-nyans bakgrund */
  --green:   #2d6a40;
  --red:     #c0392b;
  --nav-bg:  #1a1a1a;   /* mörk nav = kontrast mot ljus sida */
  --nav-txt: #f0ece2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--body);
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ── SPRÅKRAD ────────────────────────────────────────────── */
.lang-bar {
  background: var(--nav-bg);
  display: flex; align-items: center; gap: 2px;
  padding: 5px 20px; font-size: 11px; letter-spacing: 1px;
}
.lang-globe { color: #666; margin-right: 6px; font-size: 12px; }
.lang-btn { padding: 3px 8px; color: #888; transition: color .15s; border-radius: 2px; }
.lang-btn:hover { color: #fff; }
.lang-btn.active { color: var(--gold); font-weight: 700; }

/* ── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 20px; background: var(--gold-bg);
  border-bottom: 1px solid var(--border);
  font-size: 11px; letter-spacing: 1px; color: var(--muted);
  flex-wrap: wrap; gap: 6px;
}
.topbar-brand { color: var(--gold); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.topbar-avail.on  { color: var(--green); font-weight: 600; }
.topbar-avail.off { color: var(--dim); }

/* ── SITE BANNER ─────────────────────────────────────────── */
.site-banner { background: #eaf3ff; border-bottom: 1px solid #c0d8f0; color: #1a5c9a; padding: 10px 20px; text-align: center; font-size: 14px; }

/* ── FLASH ───────────────────────────────────────────────── */
.flash { padding: 12px 20px; font-size: 14px; border-bottom: 1px solid; text-align: center; }
.flash-ok  { background: #eafaf1; border-color: #a3d9b8; color: var(--green); }
.flash-err { background: #fdecea; border-color: #f5b7b1; color: var(--red); }

/* ── NAV: mörk, tydlig, sticky ───────────────────────────── */
.main-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 20px;
  background: var(--nav-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  min-height: 56px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 900; color: var(--nav-txt);
  padding: 14px 0;
}
.nav-logo span { color: var(--gold); }
.hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #aaa; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-drawer {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 300px; height: 100dvh;
  background: var(--nav-bg); border-left: 1px solid #333;
  z-index: 200; transition: right .3s;
  display: flex; flex-direction: column; padding: 24px 0; overflow-y: auto;
}
.nav-drawer.open { right: 0; }
.drawer-close { align-self: flex-end; background: none; border: none; color: #666; font-size: 24px; margin: 0 20px 24px; }
.drawer-links { list-style: none; display: flex; flex-direction: column; }
.drawer-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid #2a2a2a;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: #aaa; transition: color .2s, background .2s;
}
.drawer-links a:hover, .drawer-links a.active { color: var(--gold); background: #222; }
.drawer-links a span { color: #555; }
.drawer-admin {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto; padding: 20px 20px 0;
  border-top: 1px solid #2a2a2a;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: #555; transition: color .2s;
}
.drawer-admin:hover { color: var(--gold); }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 150; }
.nav-overlay.show { display: block; }

/* ── KNAPPAR ────────────────────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--ink); color: #fff;
  padding: 14px 32px; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 700; border: 2px solid var(--ink);
  transition: background .2s, color .2s;
}
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-ghost {
  display: inline-block; background: none; color: var(--ink);
  padding: 13px 30px; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600;
  border: 2px solid var(--border); transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ── SECTION LABEL ──────────────────────────────────────── */
.sec-label {
  padding: 10px 24px; font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold);
  background: var(--gold-bg); border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding: 56px 24px 48px;
  background: var(--white);
  border-bottom: 3px solid var(--ink);
}
.hero-kicker {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 10vw, 80px);
  font-weight: 900; line-height: 1.0;
  color: var(--ink); margin-bottom: 24px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub {
  font-size: 18px; color: var(--muted); line-height: 1.75;
  margin-bottom: 36px; font-weight: 300; max-width: 540px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── PERSONA ─────────────────────────────────────────────── */
.persona {
  display: flex; align-items: center; gap: 20px;
  padding: 24px; background: var(--gold-bg);
  border-bottom: 2px solid var(--border);
}
.persona-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 20px;
  font-weight: 900; color: var(--gold); flex-shrink: 0;
}
.persona-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--ink); }
.persona-role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.persona-badge {
  display: inline-block; background: var(--ink); color: #fff;
  padding: 4px 12px; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; margin-top: 8px;
}

/* ── STATS ───────────────────────────────────────────────── */
.stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  background: var(--ink); border-bottom: 3px solid var(--gold);
}
.stat { padding: 24px 16px; border-right: 1px solid #333; text-align: center; }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; color: var(--gold); }
.stat-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #888; margin-top: 5px; }

/* ── SERVICES ────────────────────────────────────────────── */
.services { display: flex; flex-direction: column; background: var(--white); }
.service-card {
  padding: 32px 24px; border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.service-card:last-child { border-bottom: none; }
.service-card:hover { background: var(--cream); }
.service-bar { width: 40px; height: 3px; background: var(--gold); margin-bottom: 16px; }
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.service-card p { font-size: 15px; color: var(--muted); line-height: 1.8; }

/* ── FEATURED CAROUSEL ───────────────────────────────────── */
.featured-section { background: var(--cream); border-bottom: 2px solid var(--border); }
.featured-swiper .swiper-slide { width: 280px; flex-shrink: 0; }
.featured-card { display: block; background: var(--white); border: 1px solid var(--border); overflow: hidden; transition: box-shadow .2s; }
.featured-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.featured-img { width: 100%; aspect-ratio: 16/10; background: var(--border2); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.no-img-placeholder { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.play-badge { position: absolute; bottom: 8px; right: 8px; background: var(--ink); color: #fff; padding: 4px 10px; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.featured-body { padding: 14px 16px 18px; }
.featured-tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.featured-title { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.featured-meta { font-size: 11px; color: var(--dim); margin-top: 4px; }
.swiper-pagination-bullet { background: var(--border); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--gold); }

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  padding: 48px 24px 40px;
  background: var(--white); border-bottom: 3px solid var(--ink);
}
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(36px,8vw,60px); font-weight: 900; color: var(--ink); line-height: 1.05; }
.page-hero p { font-size: 16px; color: var(--muted); margin-top: 12px; font-weight: 300; line-height: 1.75; }

/* ── FILTER BAR ──────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 8px; padding: 14px 24px;
  overflow-x: auto; border-bottom: 1px solid var(--border);
  background: var(--white); scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  padding: 7px 18px; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; border: 1px solid var(--border);
  background: none; color: var(--muted); white-space: nowrap; transition: .2s; border-radius: 2px;
}
.filter-btn.active, .filter-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── PROOF CARDS ─────────────────────────────────────────── */
.proofs-grid { display: flex; flex-direction: column; background: var(--cream); }
.proof-card { background: var(--white); border-bottom: 1px solid var(--border); overflow: hidden; }
.proof-card[data-hidden="1"] { display: none; }
.proof-swiper .swiper-slide { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--border2); }
.proof-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.proof-swiper .swiper-pagination { bottom: 6px; }
.proof-no-img { width: 100%; aspect-ratio: 16/9; background: var(--border2); display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.proof-body { padding: 20px 24px 28px; }
.proof-tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.proof-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--ink); margin-bottom: 5px; }
.proof-meta { font-size: 13px; color: var(--dim); }
.proof-desc { font-size: 15px; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.proof-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.proof-pdf-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 18px; background: var(--gold-bg); border: 1px solid var(--border); font-size: 12px; color: var(--ink); }
.proof-pdf-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── VIDEO ───────────────────────────────────────────────── */
.video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-thumb { width: 100%; aspect-ratio: 16/9; background: #111; position: relative; cursor: pointer; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; transition: .2s; }
.play-btn svg { fill: var(--ink); margin-left: 5px; }
.video-thumb:hover .play-btn { transform: translate(-50%,-50%) scale(1.1); }

/* ── CV ──────────────────────────────────────────────────── */
.cv-header { padding: 40px 24px 32px; background: var(--white); border-bottom: 3px solid var(--ink); }
.cv-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(32px,7vw,52px); font-weight: 900; color: var(--ink); }
.cv-title { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.cv-lead { font-size: 16px; color: var(--muted); margin-top: 16px; line-height: 1.8; }
.cv-section { padding: 28px 24px; border-bottom: 1px solid var(--border); background: var(--white); }
.cv-section:nth-child(even) { background: var(--cream); }
.cv-sec-title { font-size: 10px; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.cv-entry { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border2); }
.cv-entry:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.cv-entry-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cv-role { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--ink); }
.cv-year { font-size: 12px; color: var(--gold); font-weight: 600; white-space: nowrap; }
.cv-place { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cv-place a { color: var(--gold); text-decoration: underline; }
.cv-desc { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.75; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { padding: 6px 14px; border: 1px solid var(--border); font-size: 12px; color: var(--body); background: var(--white); }
.cv-dl-btn { display: flex; align-items: center; gap: 10px; padding: 18px 24px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--green); background: #eafaf1; border-bottom: 2px solid #a3d9b8; width: 100%; border-top: none; border-left: none; border-right: none; text-align: left; font-weight: 700; }
.cv-dl-btn:hover { background: var(--green); color: #fff; }

/* ── KONTAKT ─────────────────────────────────────────────── */
.contact-hero { padding: 48px 24px 40px; background: var(--white); border-bottom: 3px solid var(--ink); }
.contact-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(32px,8vw,60px); font-weight: 900; color: var(--ink); }
.contact-hero p { font-size: 16px; color: var(--muted); margin-top: 12px; line-height: 1.75; }
.contact-info { display: flex; flex-direction: column; background: var(--gold-bg); border-bottom: 2px solid var(--border); }
.contact-row { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; }
.contact-icon { width: 44px; height: 44px; background: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--gold); flex-shrink: 0; }
.contact-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-val { font-size: 16px; color: var(--ink); }
.contact-val a { color: var(--gold); }
.contact-val a:hover { text-decoration: underline; }
.contact-form { padding: 36px 24px; background: var(--white); }
.contact-form h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; margin-bottom: 28px; color: var(--ink); }

/* ── FORMULÄRFÄLT — ljusa, tydliga ───────────────────────── */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%; background: var(--cream);
  border: 2px solid var(--border); color: var(--ink);
  padding: 13px 16px; font-family: inherit; font-size: 16px;
  outline: none; appearance: none; transition: border-color .2s, background .2s;
  border-radius: 2px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--ink); background: var(--white); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #bbb; }
.form-field textarea { height: 130px; resize: vertical; }
.form-success { background: #eafaf1; border: 2px solid #a3d9b8; color: var(--green); padding: 16px 20px; font-size: 15px; margin-bottom: 20px; border-radius: 2px; }
.form-error { background: #fdecea; border: 2px solid #f5b7b1; color: var(--red); padding: 16px 20px; font-size: 15px; margin-bottom: 20px; border-radius: 2px; }
.form-error div { margin-bottom: 4px; }

/* ── CAPTCHA ─────────────────────────────────────────────── */
.captcha-box { display: inline-flex; align-items: center; gap: 4px; background: var(--cream); border: 2px solid var(--border); border-radius: 4px; padding: 10px 16px; font-size: 26px; font-weight: bold; font-family: 'Playfair Display', Georgia, serif; letter-spacing: 4px; user-select: none; margin-bottom: 10px; }
.captcha-box .cn { display: inline-block; color: var(--gold); }
.captcha-box .cn:nth-child(1) { transform: rotate(-6deg) skewX(-4deg); }
.captcha-box .cn:nth-child(2) { transform: rotate(3deg); color: var(--body); }
.captcha-box .cn:nth-child(3) { transform: rotate(-8deg) skewX(5deg); }
.captcha-box .cn:nth-child(4) { transform: rotate(5deg); color: var(--body); }
.captcha-box .cn:nth-child(5) { transform: rotate(-3deg) skewX(-3deg); }
.captcha-input { width: 90px; font-size: 18px; text-align: center; padding: 8px; background: var(--white); border: 2px solid var(--ink); color: var(--ink); border-radius: 4px; font-family: inherit; outline: none; }

/* ── OM-SIDA ─────────────────────────────────────────────── */
.prose-section { padding: 36px 24px; max-width: 640px; }
.prose-section p { font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 18px; }

/* ── FOOTER — tydlig, inte svart hål ────────────────────── */
.site-footer { background: var(--ink); border-top: 4px solid var(--gold); padding: 40px 24px; }
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: #fff; }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: #aaa; padding: 6px 14px; border: 1px solid #333;
  transition: color .2s, border-color .2s, background .2s;
}
.footer-links a:hover { color: var(--gold); border-color: var(--gold); background: rgba(184,134,42,.1); }
.footer-copy { font-size: 12px; color: #555; line-height: 1.7; }

/* ── ADMIN ───────────────────────────────────────────────── */
.admin-body { background: #f0ede8; color: var(--ink); min-height: 100vh; }
.atop { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--ink); border-bottom: 3px solid var(--gold); gap: 10px; }
.alogo { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 900; color: #fff; }
.alogo span { color: var(--gold); }
.abadge { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; background: var(--gold); color: #fff; padding: 3px 8px; font-weight: 700; }
.alogout { font-size: 10px; color: #aaa; background: none; border: 1px solid #444; padding: 6px 12px; }
.alogout:hover { color: var(--red); border-color: var(--red); }
.atabs { display: flex; overflow-x: auto; border-bottom: 2px solid var(--border); background: var(--white); scrollbar-width: none; }
.atabs::-webkit-scrollbar { display: none; }
.atab { padding: 13px 16px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; background: none; border-top: none; border-left: none; border-right: none; font-family: inherit; }
.atab:hover { color: var(--ink); }
.atab.active { color: var(--gold); border-bottom-color: var(--gold); }
.apanel { display: none; } .apanel.active { display: block; }
.aph { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--white); }
.aph h2 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--ink); }
.addbtn { background: var(--ink); color: #fff; padding: 9px 14px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; border: none; cursor: pointer; }
.addbtn:hover { background: var(--gold); }
.admin-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.admin-stat { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold); padding: 16px; }
.admin-stat-num { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: var(--ink); }
.admin-stat-lbl { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); margin-top: 3px; }
.amf { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.amf label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.amf input, .amf select, .amf textarea { background: var(--cream); border: 1px solid var(--border); color: var(--ink); padding: 10px 12px; font-size: 14px; outline: none; font-family: inherit; width: 100%; }
.amf input:focus, .amf select:focus, .amf textarea:focus { border-color: var(--gold); }
.amf textarea { height: 75px; resize: vertical; }
.asavebtn { background: var(--ink); color: #fff; padding: 13px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; border: none; cursor: pointer; width: 100%; font-family: inherit; }
.asavebtn:hover { background: var(--gold); }
.atog-row { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: var(--cream); border: 1px solid var(--border); margin-bottom: 14px; }
.atog-lbl { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--body); }
.atog { width: 40px; height: 22px; background: var(--border); border-radius: 11px; position: relative; cursor: pointer; transition: .2s; flex-shrink: 0; }
.atog.on { background: var(--green); }
.atog::after { content: ''; width: 16px; height: 16px; background: #fff; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.atog.on::after { left: 21px; }
.amodal-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 300; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; }
.amodal-bg.show { display: flex; }
.amodal { background: var(--white); border: 1px solid var(--border); width: 100%; max-width: 520px; max-height: 90dvh; overflow-y: auto; box-shadow: 0 8px 40px rgba(0,0,0,.2); }
.amodal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 2px solid var(--ink); position: sticky; top: 0; background: var(--white); z-index: 1; }
.amodal-head h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--ink); }
.amodal-close { background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.prow { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border2); background: var(--white); }
.prow:hover { background: var(--cream); }
.pthumb { width: 56px; height: 42px; background: var(--border2); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--dim); text-align: center; cursor: pointer; border: 1px solid var(--border); }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.ptag { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.ptitle { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.pmeta { font-size: 11px; color: var(--dim); margin-top: 2px; }
.ract { display: flex; gap: 5px; }
.ibtn { width: 32px; height: 32px; background: none; border: 1px solid var(--border); color: var(--muted); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.ibtn:hover { border-color: var(--gold); color: var(--gold); }
.ibtn.del:hover { border-color: var(--red); color: var(--red); }
.uzone { border: 2px dashed var(--border); background: var(--cream); padding: 24px 14px; text-align: center; cursor: pointer; position: relative; transition: .2s; }
.uzone:hover, .uzone.drag { border-color: var(--gold); background: var(--gold-bg); }
.uzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.prev-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-top: 7px; }
.prev-item { position: relative; aspect-ratio: 4/3; background: var(--border2); overflow: hidden; }
.prev-item img { width: 100%; height: 100%; object-fit: cover; }
.prev-item .prm { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; background: rgba(255,255,255,.9); color: var(--red); border: none; cursor: pointer; font-size: 12px; line-height: 1; border-radius: 50%; }
.prev-item.main::after { content: 'Huvudbild'; position: absolute; bottom: 0; left: 0; right: 0; background: rgba(184,134,42,.9); color: #fff; font-size: 8px; text-align: center; padding: 2px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.mgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; padding: 14px; }
.mitem { position: relative; aspect-ratio: 4/3; background: var(--border2); border: 1px solid var(--border); overflow: hidden; cursor: pointer; }
.mitem img { width: 100%; height: 100%; object-fit: cover; }
.mitem:hover .mov { opacity: 1; }
.mov { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; opacity: 0; transition: .2s; }
.mov span { font-size: 9px; color: #fff; text-align: center; padding: 0 6px; }
.mdel { background: var(--red); color: #fff; border: none; padding: 4px 10px; font-size: 10px; cursor: pointer; }
.umore { border: 2px dashed var(--border); background: var(--cream); aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.umore:hover { border-color: var(--gold); }
.umore input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bpick { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-bottom: 13px; }
.bpick-item { aspect-ratio: 4/3; overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.bpick-item.sel { border-color: var(--gold); }
.bpick-item img { width: 100%; height: 100%; object-fit: cover; }
.anotice { padding: 10px 14px; font-size: 13px; margin: 10px 14px 0; border-radius: 2px; }
.anotice.ok { background: #eafaf1; border: 1px solid #a3d9b8; color: var(--green); }
.anotice.err { background: #fdecea; border: 1px solid #f5b7b1; color: var(--red); }
.vis-tabs { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--white); }
.vis-tab { padding: 7px 16px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; border: 1px solid var(--border); background: none; color: var(--muted); cursor: pointer; font-family: inherit; }
.vis-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.vis-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vis-table th { padding: 9px 12px; text-align: left; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); background: var(--cream); border-bottom: 2px solid var(--border); }
.vis-table td { padding: 9px 12px; border-bottom: 1px solid var(--border2); color: var(--body); vertical-align: top; }
.vis-table tr:hover td { background: var(--cream); }
.vis-bot td { color: var(--dim); }

/* ── DESKTOP ─────────────────────────────────────────────── */
@media (min-width: 768px) {
  .featured-swiper .swiper-slide { width: 340px; }
  .proofs-grid { display: grid; grid-template-columns: repeat(2,1fr); }
  .proof-card { border-right: 1px solid var(--border); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
}

@media (min-width: 1024px) {
  .hero { padding: 0; }
  .hero-inner { display: grid; grid-template-columns: 1fr 360px; min-height: 480px; }
  .hero-text { padding: 72px 56px; border-right: 3px solid var(--ink); }
  .hero-persona {
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; padding: 48px 40px; gap: 16px;
    background: var(--gold-bg); text-align: center;
  }
  .hero-persona .persona-avatar { width: 100px; height: 100px; font-size: 28px; }
  .hero-persona .persona-name { font-size: 22px; }
  .page-hero { padding: 80px 64px 60px; }
  .proofs-grid { grid-template-columns: repeat(3,1fr); }
  .services { flex-direction: row; border-top: 2px solid var(--border); }
  .service-card { flex: 1; border-right: 1px solid var(--border); border-bottom: none; }
  .service-card:last-child { border-right: none; }
  .stat-num { font-size: 32px; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ── v1.5 | 2026-04-25 ───────────────────────────────────── */

/* Mobil-fix: badge orsakar horisontell scroll */
.persona-badge {
  max-width: 100%;
  white-space: normal !important;
  word-break: break-word;
}
.persona { flex-wrap: wrap; }

/* PDF/URL-hero — stor klickbar yta istället för tom ruta */
.proof-pdf-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16/9;
  background: #fff8f0;
  border-bottom: 1px solid var(--border);
  color: #c0392b;
  gap: 10px;
  text-decoration: none;
  transition: background .2s;
}
.proof-pdf-hero:hover { background: #fdecea; }
.proof-pdf-hero i { font-size: 48px; }
.proof-pdf-hero span {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: #c0392b;
}
.proof-url-hero { color: #2d6a40; background: #f0faf5; }
.proof-url-hero:hover { background: #eafaf1; }
.proof-url-hero i { color: #2d6a40; }
.proof-url-hero span { color: #2d6a40; }

/* ── v1.6 | 2026-04-25 ─────────────────────────────────── */

/* Mobil: stabil layout, ingen horisontell scroll */
html, body { max-width: 100%; overflow-x: hidden; }

.persona {
  flex-wrap: nowrap;
  align-items: flex-start;
  overflow: hidden;
}
.persona > div { min-width: 0; overflow: hidden; }

.persona-badge {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 8px;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

/* Meddelande-knappar: alltid synliga med text */
.msg-btn {
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
}
.msg-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.msg-btn.green { border-color: var(--green); color: var(--green); }
.msg-btn.green:hover { background: var(--green); color: #fff; }
.msg-btn.red { border-color: var(--red); color: var(--red); }
.msg-btn.red:hover { background: var(--red); color: #fff; }

/* Hero-inner mobil: stabil */
.hero-inner { overflow: hidden; }

/* ── v1.7 | 2026-04-25 — Badge mobil-fix, profilbild ────── */

/* Persona-kortet: inga overflow-problem */
.hero-persona {
  overflow: hidden;
  box-sizing: border-box;
}

/* Badge i egen wrapper — bredd begränsad till förälderns bredd */
.persona-badge-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.persona-badge {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 8px;
  /* Bryt om det inte ryms */
  white-space: normal;
  word-break: break-word;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

/* Rund profilbild */
.persona-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  display: block;
}

/* Mobil: persona staplas under text-kolumnen */
@media (max-width: 1023px) {
  .hero-persona {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--gold-bg);
    border-top: 1px solid var(--border);
  }
  .hero-persona .persona-photo,
  .hero-persona .persona-avatar {
    flex-shrink: 0;
  }
  .persona-badge-wrap {
    justify-content: flex-start;
  }
}

/* Desktop: centrerat i höger kolumn */
@media (min-width: 1024px) {
  .hero-persona {
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  .persona-photo {
    width: 100px;
    height: 100px;
  }
  .persona-badge-wrap {
    justify-content: center;
  }
}

/* ── v1.8 | 2026-04-25 — Persona mobil-fix, badge alltid inuti ─── */

/* Säkerhet: ingen horisontell scroll någonstans */
html, body { max-width: 100%; overflow-x: hidden; }
* { box-sizing: border-box; }

/* Persona restructurerad: img-wrap + info-div sida vid sida */
.hero-persona {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--gold-bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.persona-img-wrap {
  flex-shrink: 0;
}

/* Rund profilbild */
.persona-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  display: block;
}

/* Avatar-cirkel (om ingen bild) */
.persona-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  flex-shrink: 0;
}

/* Info-kolumn: namn, roll, badge — badge stannar inuti */
.persona-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.persona-name {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.persona-role {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* Badge: aldrig bredare än sin förälder */
.persona-badge {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 6px;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

/* Desktop: persona som högerkolumn bredvid hero-text */
@media (min-width: 1024px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    min-height: 440px;
  }
  .hero-text {
    padding: 72px 56px;
    border-right: 3px solid var(--ink);
  }
  .hero-persona {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 32px;
    border-top: none;
    gap: 8px;
  }
  .persona-photo { width: 100px; height: 100px; }
  .persona-avatar { width: 100px; height: 100px; font-size: 26px; }
  .persona-info { align-items: center; }
  .persona-name { font-size: 22px; }
}

/* ── v1.9 | 2026-04-25 ─────────────────────────────────── */

/* Rund bild — stark override för alla webbläsare */
.persona-photo {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid var(--gold) !important;
  display: block !important;
  overflow: hidden !important;
}
@media (min-width: 1024px) {
  .persona-photo { width: 100px !important; height: 100px !important; }
}

/* Archive-bar: kompakt guldlåda */
.archive-bar {
  display: flex;
  align-items: stretch;
  border-bottom: 2px solid var(--border);
  overflow: hidden;
}
.archive-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.archive-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 0 8px;
  background: var(--gold-bg);
  flex: 1;
}
.archive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  border-right: 1px solid var(--border);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.archive-link:last-child { border-right: none; }
.archive-link:hover { background: var(--gold); color: #fff; }
.archive-link i { font-size: 10px; color: var(--gold); }
.archive-link:hover i { color: #fff; }

/* Radio-knappar i admin — vänsterjusterade, täta */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border2);
  cursor: pointer;
  transition: background .15s;
}
.radio-option:last-child { border-bottom: none; }
.radio-option:hover { background: var(--cream); }
.radio-option input[type=radio] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}
.radio-option span {
  font-size: 14px;
  color: var(--body);
  line-height: 1;
}
.radio-option.selected { background: var(--gold-bg); }

/* ── v1.10 | Språkrad: SV distinkt från övriga ───────────── */
.lang-sep {
  color: #555;
  font-size: 11px;
  margin: 0 2px;
  user-select: none;
}
/* SV-knappen: guld-accentuerad, tydligt annorlunda */
.lang-btn-sv {
  color: var(--gold) !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
}
.lang-btn-sv.active {
  color: #fff !important;
  background: var(--gold);
  padding: 2px 7px;
  border-radius: 2px;
}
.lang-btn-sv:hover {
  color: #fff !important;
  background: var(--gold);
}

/* ── v1.11 | Featured card hover + logginlogg ──────────── */
.featured-card { position: relative; overflow: hidden; }
.featured-hover {
  position: absolute;
  inset: 0;
  background: rgba(184,134,42,.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0;
  transition: opacity .2s;
}
.featured-card:hover .featured-hover { opacity: 1; }
