/* KS-Auto Gruppen – gjenoppbygd statisk side */
:root {
  --dark: #1f1c2f;
  --darker: #1a1a23;
  --accent: #f39c12;
  --accent-dark: #d68910;
  --text: #626262;
  --heading: #1f1c2f;
  --muted: #c2c2c2;
  --light: #f7f7f7;
  --border: #ebebeb;
  --white: #fff;
  --radius: 4px;
  --max: 1170px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { color: var(--heading); font-weight: 400; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 90px 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--dark); color: var(--muted); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.text-center { text-align: center; }
.lead { font-size: 1.1rem; max-width: 820px; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: block; text-transform: uppercase; letter-spacing: .08em;
  font-size: .85rem; font-weight: 700; color: var(--accent); margin-bottom: .8em;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
}
.site-header--solid { position: relative; background: var(--dark); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo img { width: 62px; }
.logo span { font-weight: 700; letter-spacing: .04em; font-size: 1.05rem; color: #fff; white-space: nowrap; }
@media (max-width: 400px) { .logo img { width: 50px; } .logo span { font-size: .92rem; } }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.nav a {
  color: #fff; font-size: .92rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff;
  border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer;
}
.nav-toggle svg { vertical-align: -3px; margin-right: 6px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--dark);
    display: none; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ---------- Hero / slider ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; color: #fff; overflow: hidden; background: var(--darker); }
.hero__slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease;
  padding: 120px 0 80px;
}
.hero__slide::before { content: ""; position: absolute; inset: 0; background: rgba(20, 18, 32, .62); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__content { position: relative; text-align: center; max-width: 900px; }
.hero h1, .hero h2 { color: #fff; margin-bottom: .3em; font-size: clamp(2.2rem, 6vw, 4rem); }
.hero__eyebrow {
  display: block; font-size: clamp(.8rem, 1.5vw, .95rem); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .9em; line-height: 1.4;
}
.hero__sub { display: block; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; margin-bottom: 1.2em; font-size: clamp(.85rem, 1.6vw, 1rem); }
.hero p { font-size: clamp(1rem, 1.8vw, 1.15rem); color: rgba(255,255,255,.9); }
.hero__dots { position: absolute; bottom: 32px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero__dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer;
}
.hero__dots button[aria-current="true"] { background: var(--accent); border-color: var(--accent); }

.page-hero {
  position: relative; color: #fff; text-align: center;
  background: var(--dark) url("/img/bg-kontakt.jpg") center/cover no-repeat;
  padding: 170px 0 90px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20, 18, 32, .72); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .6em 0 0; color: rgba(255,255,255,.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff; border-radius: var(--radius);
  padding: 12px 28px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: .88rem;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; border: 2px solid #fff; }
.btn--ghost:hover { background: #fff; color: var(--dark); }

/* ---------- Partner cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 28px rgba(31,28,47,.08); transition: transform .25s, box-shadow .25s; display: block; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(31,28,47,.14); color: inherit; }
.card img { width: 100%; aspect-ratio: 53/40; object-fit: cover; }
.card__body { padding: 26px 28px 30px; text-align: center; }
.card__body h3 { text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; font-weight: 700; }
.card__body p { margin: 0; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 30px; margin-top: 50px; }
.feature { text-align: center; }
.feature__icon {
  width: 84px; height: 84px; border-radius: 50%; background: #fff; box-shadow: 0 8px 26px rgba(31,28,47,.1);
  display: grid; place-items: center; margin: 0 auto 22px; color: var(--accent);
}
.feature__icon svg { width: 34px; height: 34px; }
.feature h3 { margin-bottom: .4em; }
.feature p { margin: 0; font-size: .95rem; }

/* ---------- Content (om oss / artikler) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.member { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; padding: 50px 0; border-top: 1px solid var(--border); }
.member:first-of-type { border-top: 0; }
.member__logo { background: #fff; border-radius: var(--radius); box-shadow: 0 6px 24px rgba(31,28,47,.08); padding: 16px; }
.member blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-weight: 500; color: var(--heading); }
@media (max-width: 680px) { .member { grid-template-columns: 1fr; gap: 20px; } .member__logo { max-width: 200px; } }

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.post-card h2 { font-size: 1.5rem; }
.post-card h2 a { color: var(--heading); }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { flex: 1; }
.post-card .more { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.tag { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; color: var(--accent); }

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--dark) url("/img/bg-kontakt.jpg") center/cover no-repeat; color: var(--muted); }
.contact::before { content: ""; position: absolute; inset: 0; background: rgba(26, 26, 35, .9); }
.contact .container { position: relative; }
.contact h2 { color: #fff; }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 40px; }
.contact__item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 30px; }
.contact__item h3 { color: #fff; font-weight: 700; font-size: 1.15rem; }
.contact__item p { margin: 0; line-height: 1.9; }
.contact__item a { color: #fff; }
.contact__item a:hover { color: var(--accent); }
.map { margin-top: 50px; border-radius: var(--radius); overflow: hidden; border: 0; width: 100%; height: 460px; display: block; position: relative; isolation: isolate; text-align: left; background: #e5e3df; }
.kart-nal span {
  display: block; width: 30px; height: 30px; background: var(--accent);
  border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.leaflet-popup-content { font-family: var(--font); font-size: .92rem; line-height: 1.6; color: var(--text); }
.leaflet-popup-content strong { color: var(--heading); }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color: var(--muted); text-align: center; padding: 70px 0 30px; }
.site-footer .footer-title { color: #fff; font-size: 1.8rem; line-height: 1.25; margin: 0 0 .2em; }
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 50px; margin: 40px 0 50px; }
.partners a { display: block; opacity: .85; transition: opacity .2s, transform .2s; }
.partners a:hover { opacity: 1; transform: scale(1.04); }
.partners img { height: 60px; width: auto; }
.partners .partner--light { background: #fff; border-radius: var(--radius); padding: 6px 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 26px; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }
.footer-social { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.footer-social svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .footer-bottom { justify-content: center; text-align: center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide, .card, .partners a { transition: none; }
}
