/* =========================================================
   FIBERSTROPPER – OVERSIKTSSIDE
   Crane Partner AS
   ========================================================= */

html {
  scroll-behavior: smooth;
}

.fiber-shell {
  width: 100%;
  padding: 28px 18px 44px;
  background: #eef1f2;
  box-sizing: border-box;
  overflow-x: clip;
}

.fiber-shell *,
.fiber-shell *::before,
.fiber-shell *::after {
  box-sizing: border-box;
}

.fiber-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 30px 38px;
  border: 1px solid #d9dddf;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  color: #292929;
}

.fiber-page a {
  color: #252525;
}

.fiber-page a:hover {
  color: #0e1a41;
}

/* Brødsmuler */
.fiber-page .breadcrumb {
  margin: 0 0 22px;
  font-size: .9rem;
}

.fiber-page .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fiber-page .breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.fiber-page .breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 9px;
  color: #8a8a8a;
}

.fiber-page .breadcrumb a {
  text-decoration: none;
}

.fiber-page .breadcrumb [aria-current="page"] {
  color: #666;
}

/* Hero */
.fiber-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 34px;
  align-items: center;
  padding: 12px 0 32px;
}

.fiber-eyebrow {
  margin: 0 0 7px;
  color: #666;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.fiber-hero h1 {
  margin: 0 0 13px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.fiber-ingress {
  max-width: 760px;
  margin: 0;
  color: #4c4c4c;
  font-size: 1.06rem;
  line-height: 1.64;
}

.fiber-hero-bilde {
  min-width: 0;
}

.fiber-hero-bilde img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border: 1px solid #dde0e2;
  border-radius: 9px;
}

.fiber-fakta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 23px 0 0;
}

.fiber-fakta > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #e0e3e4;
  border-radius: 7px;
  background: #f7f8f8;
}

.fiber-fakta strong,
.fiber-fakta span {
  display: block;
}

.fiber-fakta strong {
  margin-bottom: 3px;
  font-size: 1.04rem;
}

.fiber-fakta span {
  color: #606060;
  font-size: .86rem;
  line-height: 1.3;
}

.fiber-hero-knapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.fiber-sekundarknapp,
.fiber-tekstknapp {
  appearance: none;
  border: 1px solid #bfc4c7;
  border-radius: 5px;
  background: #fff;
  color: #292929;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.fiber-sekundarknapp {
  padding: 10px 15px;
}

.fiber-tekstknapp {
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hurtigvalg */
.fiber-hopp {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 38px;
}

.fiber-hopp a {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d9dddf;
  border-radius: 8px;
  background: #fafafa;
  text-decoration: none;
}

.fiber-hopp a:hover {
  background: #f3f5f5;
}

.fiber-hopp img {
  display: block;
  width: 94px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
}

.fiber-hopp strong,
.fiber-hopp small {
  display: block;
}

.fiber-hopp strong {
  margin-bottom: 3px;
}

.fiber-hopp small {
  color: #666;
}

/* Sections */
.fiber-seksjon {
  margin: 0 0 42px;
  padding-top: 4px;
  scroll-margin-top: 18px;
}

.fiber-seksjon:last-child {
  margin-bottom: 0;
}

.fiber-seksjon-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: start;
  margin-bottom: 20px;
  padding: 22px;
  border-left: 4px solid #676d71;
  border-radius: 7px;
  background: #f5f6f7;
}

.fiber-seksjon-intro--smal {
  margin-bottom: 16px;
}

.fiber-seksjon-intro h2,
.fiber-seksjonshode h2 {
  margin: 0 0 9px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.16;
}

.fiber-seksjon-intro p {
  margin: 0;
  color: #4e4e4e;
  line-height: 1.58;
}

.fiber-seksjon-side {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}

.fiber-seksjon-side img {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.fiber-highlight {
  display: flex;
  gap: 8px 12px;
  align-items: baseline;
  margin: 0 0 15px;
  padding: 13px 15px;
  border: 1px solid #dfe3e5;
  border-radius: 6px;
  background: #fafafa;
}

.fiber-highlight strong {
  flex: 0 0 auto;
}

.fiber-highlight span {
  color: #555;
}

.fiber-note {
  margin: 13px 0 0;
  color: #5b5b5b;
  font-size: .92rem;
  line-height: 1.5;
}

/* Variant details */
.fiber-varianter {
  display: grid;
  gap: 10px;
}

.fiber-variant {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9dddf;
  border-radius: 7px;
  background: #fff;
}

.fiber-variant summary {
  cursor: pointer;
  list-style: none;
  padding: 0;
}

.fiber-variant summary::-webkit-details-marker {
  display: none;
}

.fiber-variant-summary {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 9px 42px 9px 12px;
  position: relative;
}

.fiber-variant-summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  color: #686868;
}

.fiber-variant[open] .fiber-variant-summary::after {
  content: "–";
}

.fiber-variant-summary:hover {
  background: #f7f8f8;
}

.fiber-variant-bilde {
  display: flex;
  width: 74px;
  height: 58px;
  align-items: center;
  justify-content: center;
}

.fiber-variant-bilde img {
  display: block;
  max-width: 72px;
  max-height: 56px;
  object-fit: contain;
}

.fiber-variant-summary strong,
.fiber-variant-summary small {
  display: block;
}

.fiber-variant-summary strong {
  margin-bottom: 3px;
  font-size: 1.02rem;
}

.fiber-variant-summary small {
  color: #686868;
}

.fiber-variant-body {
  padding: 0 12px 14px;
  border-top: 1px solid #eceeef;
}

/* Tables */
.fiber-tabell-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.fiber-tabell {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}

.fiber-tabell th,
.fiber-tabell td {
  padding: 9px 10px;
  border-bottom: 1px solid #e3e5e6;
  text-align: left;
  vertical-align: top;
}

.fiber-tabell th {
  background: #f3f4f5;
  font-weight: 700;
}

.fiber-tabell tbody tr:last-child td {
  border-bottom: 0;
}

/* Choice blocks */
.fiber-valg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fiber-valg-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dde0e2;
  border-radius: 8px;
  background: #fafafa;
}

.fiber-valg-grid h3 {
  margin: 0 0 7px;
}

.fiber-valg-grid p {
  margin: 0 0 11px;
  color: #555;
  line-height: 1.5;
}

/* Fancybox info popup */
.fiber-popup {
  display: none;
  width: min(760px, 94vw);
}

.fiber-popup-inner {
  max-height: 82vh;
  overflow: auto;
  padding: 4px 3px;
}

.fiber-popup h2 {
  margin-top: 0;
}

.fiber-rad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.fiber-rad-grid > div {
  padding: 14px;
  border: 1px solid #e0e3e4;
  border-radius: 6px;
  background: #f7f8f8;
}

.fiber-rad-grid h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.fiber-rad-grid p {
  margin: 0;
  line-height: 1.5;
}

.fiber-punktliste {
  padding-left: 1.25rem;
}

.es-forms-floating-button {
  display: none !important;
}

@media screen and (max-width: 980px) {
  .a2a_floating_style.a2a_floating_style {
    display: none !important;
  }

  .fiber-hero {
    grid-template-columns: 1fr;
  }

  .fiber-hero-bilde {
    order: -1;
  }

  .fiber-hero-bilde img {
    max-height: 280px;
  }

  .fiber-valg-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 760px) {
  .fiber-shell {
    padding: 16px 10px 30px;
  }

  .fiber-page {
    padding: 21px 18px 30px;
  }

  .fiber-fakta {
    grid-template-columns: 1fr;
  }

  .fiber-hopp {
    grid-template-columns: 1fr;
  }

  .fiber-hopp a {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .fiber-hopp img {
    width: 80px;
    height: 62px;
  }

  .fiber-seksjon-intro {
    grid-template-columns: 1fr;
  }

  .fiber-seksjon-side {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
  }

  .fiber-seksjon-side img {
    max-height: 100px;
  }

  .fiber-highlight {
    display: block;
  }

  .fiber-highlight strong {
    display: block;
    margin-bottom: 4px;
  }

  .fiber-tabell thead {
    display: none;
  }

  .fiber-tabell,
  .fiber-tabell tbody,
  .fiber-tabell tr,
  .fiber-tabell td {
    display: block;
    width: 100%;
  }

  .fiber-tabell tr {
    padding: 8px 0;
    border-bottom: 1px solid #dfe2e3;
  }

  .fiber-tabell tr:last-child {
    border-bottom: 0;
  }

  .fiber-tabell td {
    display: grid;
    grid-template-columns: minmax(94px, 38%) minmax(0, 1fr);
    gap: 10px;
    padding: 5px 7px;
    border: 0;
  }

  .fiber-tabell td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #555;
  }

  .fiber-valg-grid {
    grid-template-columns: 1fr;
  }

  .fiber-rad-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 520px) {
  .fiber-shell {
    padding: 9px 7px 24px;
  }

  .fiber-page {
    padding: 17px 13px 24px;
    border-radius: 7px;
  }

  .fiber-page .breadcrumb {
    margin-bottom: 17px;
    font-size: .82rem;
  }

  .fiber-hero {
    gap: 20px;
    padding-bottom: 24px;
  }

  .fiber-hero h1 {
    font-size: 1.85rem;
  }

  .fiber-ingress {
    font-size: .98rem;
  }

  .fiber-hero-knapper {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fiber-hero-knapper > * {
    width: 100%;
  }

  .fiber-seksjon {
    margin-bottom: 34px;
  }

  .fiber-seksjon-intro {
    padding: 16px 14px;
  }

  .fiber-seksjon-side {
    grid-template-columns: 1fr;
  }

  .fiber-seksjon-side img {
    width: 120px;
    justify-self: start;
  }

  .fiber-variant-summary {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding-right: 34px;
  }

  .fiber-variant-bilde {
    width: 58px;
    height: 48px;
  }

  .fiber-variant-bilde img {
    max-width: 56px;
    max-height: 46px;
  }

  .fiber-variant-summary small {
    font-size: .8rem;
  }

  .fiber-tabell td {
    grid-template-columns: 88px minmax(0, 1fr);
    font-size: .9rem;
  }
}
