/* Hela hemsidan */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&display=swap');
body { 
  margin: 0;
  background: #ece9e9;
  font-family: Arial, sans-serif ;
}


/* Navbarens bakgrund */
.navbar {
  width: 100%;
  background: white;
  border-bottom: 1px solid #eeeeee;
  position: fixed;
top: 0;
z-index: 1000;
height: 100px;
transition: height 1s ease;
}
.navbar.scrolled {
  height: 47px;
}

.navbar.scrolled .nav-container {
  height: 45px;
}

/* Innehållet inuti navbaren */
.nav-container {
    width: 100%;
    max-width: 1650px;
    height: 100px;
    margin: 0 auto;
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
  width: 70px;
  margin-right: 70px;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.logo img {
  width: 100%;
  height: auto;
}

.logo img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
    gap: 35px;
    margin-left: 45px;
}
.navbar-login-button {
    flex-shrink: 0;
    margin-left: 20px;
}

/* Varje enskild länk */
.nav-links a {
  color: #111111;
  text-decoration: none;

  font-size: 17px;
  font-weight: 400;

transition: font-size 1s ease, color 0.2s ease;
}
.navbar.scrolled .nav-links a {
  font-size: 13px;
}
.nav-links a {
  color: #111111;
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
}

/* När musen är över en länk */
.nav-links a:hover {
  color: #0b5cff;
}
.navbar.scrolled .logo {
  width: 55px;
}

.logo {
  transition: width 1s ease;
}
.nav-container {
  transition: height  1s ease;
}
.nav-links {
  position: relative;
}

/* Blå linjen */
.nav-links::after {
  content: "";
  position: absolute;

  left: 0;
  bottom: -14px;

  width: 100%;
  height: 2px;

  background: #0b5cff;
  border-radius: 10px;

  transition: width 0.4s ease, opacity 0.3s ease;
}

/* Försvinner när man scrollar */
.navbar.scrolled .nav-links::after {
  width: 0;
  opacity: 0;
}
.language-switch {
  display: flex;
  gap: 5px;
  margin-left: 300px;
}

.language-switch button {
  border: none;
  background: transparent;
  cursor: pointer;

  font-size: 13px;
  padding: 6px 8px;
  border-radius: 15px;
}

.language-switch .active {
  background: #eef4ff;
  color: #0b5cff;
}
.language-switch img {
  width: 24px;
  height: 16px;
  object-fit: contain;
  border-radius: 2px;
}
.hero {
  min-height: 1100px;
  position: relative;
  padding: 100px 10%;
  overflow: hidden;
}

.hero h1 {
  font-size: 64px;
  margin: 0 0 20px;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0;
  color:#001A75
}
.hero h1 span {
  color: white

  
}
.navbar .logo img {
  width: 50px;
  height: auto;
  max-width: 70px;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(-10px);
  filter: brightness(0.65);
}
.hero-buttons {
  display: flex;
  gap: 50px;
  margin-top: 60px;
}

.hero-buttons a {
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 25px;
  font-size: 15px;
}

.primary-button {
  background: #0b5cff;
  color: white;
}

.secondary-button {
  border: 1px solid #0b5cff;
  color: #0b5cff;
}
.hero-text {
  position: relative;
  z-index: 2;
}
.hero-text {
  transform: translateY(100px);
}
.logo img {
  transition: width 0.5s ease;
}

.navbar.scrolled .logo img {
  width: 50px;
}
.navbar,
.nav-container {
  transition: height 0.7s ease;
}

.logo img {
  transition: width 0.7s ease;
}

.nav-links a {
  transition: font-size 0.7s ease;
}
.navbar.scrolled,
.navbar.scrolled .nav-container {
  transition-duration: 1.2s;
}

.navbar.scrolled .logo img,
.navbar.scrolled .nav-links a {
  transition-duration: 1.2s;
}
.phone {
  width: 200px;
  height: 420px;

  background: #111;
  border-radius: 40px;
  padding: 10px;

  position: absolute;
  right: 12%;
  top: 60%;
  transform: translateY(-10%);

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;

  background: white;
  border-radius: 32px;

  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-title {
  position: absolute;
  right: 4%;
  top: -20%;
  

  width: 250px;
  text-align: center;

  font-size: 24px;
  font-weight: 600;
  color: white
}
.scan-text {
  text-align: center;
}

.scan-text p {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: white
}

.scan-arrow {
  display: block;
  margin-top: 12px;
  font-size: 30px;
  color: #0b5cff;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Text under QR-koden */
.camera-text {
  color: white;
  font-size: 13px;
  margin-top: 25px;
  opacity: 0.8;
}
.camera-app {
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  flex-direction: column;
  position: relative;
}

.camera-top {
  height: 55px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 17px;
}

.camera-view {
  flex: 1;
  background-image: url("qr-.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.camera-bottom {
  height: 70px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  text-align: center;
  color: white;
}

.camera-modes {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 9px;
  padding-top: 12px;
}

.camera-modes .selected {
  color: #ffd60a;
}

.shutter {
  width: 35px;
  height: 35px;
  background: white;
  border: 4px solid #111;
  outline: 2px solid white;
  border-radius: 50%;
  margin-top: 7px;
}
.home-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 3px;
  background: white;
  border-radius: 10px;
}
.camera-view {
  flex: 1;
  background-image: url("qr-.png");
  background-size: cover;
  background-position: center;
}
.scan-button-new {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
pointer-events: auto;


  background: #ffd60a;
  color: #111;

  padding: 10px 16px;
  border-radius: 8px;

  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.phone-info {
  position: absolute;
  left: 12%;
  top: 70%;
  transform: translateY(-50%);
}

.phone-info h2 {
  margin: 0;
  font-size: 52px;
  line-height: 1.05;
  color: #001A75
}

.try-text {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 15px;

  font-size: 35px;
  color: #0b5cff;
}

.arrow {
  font-size: 50px;
  color: #0b5cff;
}
.demo-text {
  font-size: 12px;
  color: #111;
  margin-top: 10px;
  width: 500px;
  max-width: 500px;
  line-height: 1.5;
}
.camera-view {
  position: relative;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 5%;
  width: 90%;
  height: 4px;
  top: 10%;
  background: #0b5cff;
  box-shadow: 0 0 10px #0b5cff;
  opacity: 0;
  z-index: 50;
  pointer-events: none;
}

.camera-view.scanning .scan-line {
  opacity: 1;
  animation: qrScan 1.5s ease-in-out infinite;
}

@keyframes qrScan {
  0% {
    top: 10%;
  }

  50% {
    top: 90%;
  }

  100% {
    top: 10%;
  }
}
.camera-view {
  position: relative;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 5%;
  width: 90%;
  height: 3px;
  top: 10%;

  background: #0b5cff;
  box-shadow: 0 0 10px #0b5cff;

  opacity: 0;
  z-index: 5;
}

.camera-view.scanning .scan-line {
  opacity: 1;
animation: scanMove 1.6s ease-in-out 1;
}

@keyframes scanMove {
  0% {
    top: 10%;
  }

  50% {
    top: 90%;
  }

  100% {
    top: 10%;
  }
}
.scan-button-new {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);

  background: #ffd60a;
  color: #111;
  border: none;
  border-radius: 8px;

  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
  z-index: 9999;
}
.hero-image {
  position: absolute;
  right: 8%;
  top: 30px;
}

.hero-image img {
  width: 800x;
  height: auto;
}
.hero-text h1 {
  color: white;
}
.hero-text h1 {
  font-size: 60px;
}
.hero-text {
  transform: translateY(40px);
}

.hero-text h1 {
  font-size: 50px;
}
#scanTestButton {
  position: relative;
  z-index: 9999;
  pointer-events: auto;
  cursor: pointer;
}
#scanTestButton {
  position: absolute !important;
  left: 50% !important;
  bottom: 85px !important;
  transform: translateX(-50%) !important;

  z-index: 999999 !important;
  pointer-events: auto !important;

  background: #ffd60a !important;
  color: #111 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
.hero-image {
  pointer-events: none;
}
#scanTestButton {
  background: #ffd60a !important;
  color: #111 !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 9px 16px !important;

  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;

  transition: transform 0.2s ease, background 0.2s ease !important;
}

#scanTestButton:hover {
  transform: translateX(-50%) scale(1.05) !important;
  background: #ffe13b !important;
}
.machine-menu {
  display: none;
}
/* ===== GUIDE - SOM MOBILSCREENSHOTEN ===== */

.guide-page {
  display: none;
  width: 100% !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  background: #eef1f2 !important;
}

/* MÖRK TOPP */
.guide-header {
  width: 120% !important;
    height: 160px;
  box-sizing: border-box !important;
  padding: 22px 16px 28px !important;
  background: linear-gradient(135deg, #17272d, #073d4d) !important;
}

.guide-header img {
  width: 70px !important;
  height: auto !important;
  padding: 7px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 7px !important;
}

.guide-header h2 {
  margin: 15px 0 7px !important;
  color: white !important;
  font-size: 25px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.guide-header span {
  font-size: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  color: #9ca8ac !important;
}

/* VITA/GRÅ OMRÅDET */
.guide-content {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 23px 14px 35px !important;
}

.guide-content h3 {
  margin: 0 0 22px !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #172126 !important;
}

/* KORTEN */
.problem-card {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 6px !important;
  margin: 0 0 14px !important;

  background: white !important;
  border: none !important;
  border-top: 2px solid #00a4c7 !important;
  border-radius: 9px !important;

  box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
}

.problem-card h4 {
  margin: 0 0 5px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #172126 !important;
}

.problem-card p {
  margin: 0 0 7px !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
  color: #69777c !important;
}

/* BLÅ KNAPP */
.problem-card button {
  width: 100% !important;
  height: 40px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  background: #087f9f !important;
  color: white !important;

  border: none !important;
  border-radius: 7px !important;

  font-size: 10px !important;
  font-weight: 700 !important;
}
.guide-page {
  scrollbar-width: none;
}

.guide-page::-webkit-scrollbar {
  display: none;
}
.guide-page .problem-card {
  padding: 10px !important;
}

.guide-page .problem-card h4 {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

.guide-page .problem-card p {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}
.solution-page {
  display: none;
}
/* ===== LÖSNINGSSIDAN ===== */

.solution-page {
  display: none;
  width: 100%;
  height: 100%;
  background: #111a1f;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  scrollbar-width: none;
}

.solution-page::-webkit-scrollbar {
  display: none;
}


/* TOPPEN */
.solution-header {
  width: 100%;
  box-sizing: border-box;
  padding: 18px 16px 16px;
  background: linear-gradient(135deg, #17272d, #073d4d);
}

.solution-header img {
  width: 70px;
  height: auto;
  padding: 7px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 7px;
}

.solution-header h2 {
  margin: 22px 0 6px;
  color: white;
  font-size: 25px;
  font-weight: 800;
}

.solution-header span {
  color: #9ca8ac;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* NEDRE DELEN */
.solution-content {
  padding: 18px 14px 35px;
}


/* VIDEO */
.video-box {
  width: 100%;
  aspect-ratio: 16 / 9;

  background: #000;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* PLAY-KNAPP */
.play-button {
  width: 52px;
  height: 52px;

  border-radius: 50%;
  background: #252525;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  padding-left: 3px;
}
.video-box p {
  color: white;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.service-page {
  display: none !important;
}
.service-page {
  min-height: 100vh;
  background: #f5f6f7;
  color: #111;
  font-family: inherit;
}

.service-page-top {
  height: 80px;
  padding: 0 6%;
  background: white;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid #e5e5e5;
}

.service-page-top img {
  width: 110px;
  height: auto;
}





.service-label {
  color: #009fc7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.service-page-content h1 {
  font-size: 58px;
  line-height: 1.05;
  margin: 0 0 30px;
  letter-spacing: -2px;
}

.service-page-content > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.7;
  color: #ffffff;
}
#serviceBackButton {
  position: fixed;
  top: 520px;
  left: 10px;
  z-index: 9999;

  background:#0b5cff79;
  color: #fefeff;
  border: 1px solid #fefeff;
  border-radius: 10px;
  padding: 5px 18px;

  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.menu-page {
  display: none;
  min-height: 100vh;
  background: #f5f6f7;
}

.nav-links a.active {
  color: #0b5cff !important;
}
.service-title {
  color: #0b5cff;
  font-size: 40px;
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: 0,3px;
  margin: 0;
  padding-top: 200px;
  padding-left: 50px;
}
.service-text {
  color: #111;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;

  max-width: 650px;
  margin-top: 18px;
  margin-left: 100px;
}
.service-process {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;

  margin-top: -100px;
  padding: 0 60px;
}

.process-box {
  width: 260px;
  height: 280px;

  background: white;
  border: 1px solid #dddddd;
  border-radius: 18px;

  padding: 25px;
  box-sizing: border-box;
}

.process-box span {
  color: #0b5cff;
  font-size: 15px;
  font-weight: 700;
}

.process-box h3 {
  color: #111;
  font-size: 20px;
  line-height: 1.25;
  margin-top: -5px;
}

.process-arrow {
  color: #0b5cff;
  font-size: 35px;
  font-weight: 700;
}

.service-page {
  background: #f1f2f3 !important;
}.service-page,
.service-process {
  background-color: #f1f2f3 !important;
}.service-page {
  background: #f1f2f3 !important;
}

.service-page * {
  background-color: transparent;
}

.service-page .process-box {
  background: white !important;
}
.service-title {
  padding-top: 280px;
}
.service-process {
  transform: translateY(-50px);
}
.service-text {
  border-bottom: 3px solid #0b5cff;
  padding-bottom: 25px;
  max-width: 900px;
}
.process-box h3 {
  border-bottom: 3px solid #0b5cff;
  padding-bottom: 15px;
}
.process-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 20px;
  
}
.process-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;

  position: relative;
  top: -20px;
  left: 0;
}
.process-box {
  overflow: hidden;
}
.recording-image {
  width: 100%;
  height: 180px;

  position: relative;
  top: 20px;
  left: 0;

  object-fit: cover;
  border-radius: 10px;
}
.editing-image {
  width: 100%;
  height: 180px;

  position: relative;
  top: 20px;
  left: 0;

  object-fit: cover;
  border-radius: 10px;
}
.process-intro {
  font-size: 38px;
  font-weight: 500;
  color: #0b5cff;
  margin-left: 70px;
  margin-top: 100px;
}
.process-intro {
  background: transparent !important;
}
.process-intro {
  background: transparent !important;
  margin-top: 35px;
  margin-bottom: 35px;
}
.service-page,
.service-process {
  background-color: #f1f2f3 !important;
}

.process-intro {
  background-color: #f1f2f3 !important;
}
.service-page,
.service-page-content,
.service-process,
.process-intro {
  background-color: #f1f2f3 !important;
}
.service-page,
.service-page-content,
.service-process,
.process-intro {
  background: #e9eaec !important;
}

.process-box {
  background: white !important;
}
.process-intro {
  font-size: 24px;
  color: #000;
  margin-left: 115px;
  margin-top: 0px;
  margin-bottom: 30px;
}
.process-intro {
  font-size: 32px;
  font-weight: 500;
  color: #000;
  margin-left: 115px;
  margin-bottom: 30px;
}
.process-intro {
  display: block !important;
  visibility: visible !important;
  color: #000 !important;
  font-size: 32px !important;
  position: relative;
  z-index: 10;
  margin: 40px 0 30px 115px !important;
}
.process-intro {
  position: relative;
  top: -120px;
  left: -45px;
}
.process-box {
  transition: height 0.5s ease;
}

.process-box.expanded {
    height: auto !important;
}

.expand-button {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);

  background: none;
  border: none;
  color: #0b5cff;
  font-size: 14px;
  font-weight: 6;
  cursor: pointer;
}
.service-process {
  align-items: flex-start !important;
}

.process-box {
  align-self: flex-start !important;
  position: relative;
  transition: height 0.5s ease;
}

.process-box.expanded {
    height: 700px !important;
}
.process-box.expanded .expand-button {
  bottom: 30px;
  left: 50%;
}
#servicePage {
  display: none;
}
.service-title {
  position: relative;
  top: 50px;
}

.service-text {
  position: relative;
  top: 50px;
}

.process-intro {
  position: relative;
  top: 50px;
}

.service-process {
  position: relative;
  top: 175px;
}
.service-text {
  position: relative;
  left: -40px;
}
.process-info {
  display: none;

  position: relative;
  top: -50px;      /* upp och ner */
  left: -5px;      /* vänster och höger */

  width: 165px;   /* textområdets bredd */
  font-size: 16px; /* textens storlek */

  line-height: 1.5;
  padding: 10px;
}

.process-box.expanded .process-info {
  display: block;
}
.recording-info {
  display: none;

  position: relative;
  top: -97px;      /* upp / ner */
  left: -5px;      /* vänster / höger */

  width: 165px;   /* textområdets bredd */
  font-size: 16px; /* textens storlek */

  line-height: 1.5;
  padding: 10px;
}

.process-box.expanded .recording-info {
  display: block;
}
.editing-info {
  display: none;

  position: relative;
  top: -50px;       /* upp / ner */
  left: 0px;       /* vänster / höger */

  width: 165px;    /* bredd */
  font-size: 16px; /* textstorlek */

  line-height: 1.5;
  padding: 10px;
}

.process-box.expanded .editing-info {
  display: block;
}
.installation-info {
  display: none;

  position: relative;
  top: -50px;       /* upp / ner */
  left: 0px;       /* vänster / höger */

  width: 165px;    /* bredd */
  font-size: 16px; /* textstorlek */

  line-height: 1.5;
  padding: 10px;
}

.process-box.expanded .installation-info {
  display: block;
}
#howPage {
  background: #e9eaec;
  min-height: 100vh;
  padding: 120px 60px;
}

.how-title {
  font-size: 40px;
  font-weight: 600;
  color: #0b5cff;
  margin: 0;
}

.how-text {
  font-size: 24px;
  color: #000;
  margin-top: 25px;
}
.service-title,
.service-text {
  transform: translateY(-70px);
}
.how-text {
 
  padding-bottom: 35px;
  width: 800px;
}
.how-title {
  color: #0b5cff;
  font-size: 40px;
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: 0.3px;
  margin: 0;
  padding-top: 38px;
  padding-left: 0px;
}
.how-text {
  color: #000;
  font-size: 20px;
  font-weight: 400;

  position: relative;
  top: 0px;      /* upp / ner */
  left: 5px;    /* vänster / höger */

  width: 500px;
}
.how-text {
  position: relative;
}

.how-text::after {
  content: "";
  position: absolute;

  left: 0px;
  top: 45px; /* ändra denna för att flytta strecket */

  width: 900px;
  height: 3px;
  background: #0b5cff;
}
#howGuidePage {
  display: none;
}
#howGuidePage,
#howSolutionPage {
  display: none;
}
#howPage .guide-page,
#howPage .solution-page {
  display: none;
}
#howGuidePage,
#howSolutionPage {
  display: none ;
}

#howPage .camera-app {
  display: flex;
}
#howPage .phone {
  top: 85%;
}
.service-title,
.service-text {
  opacity: 0;
}

.service-page.animate .service-title {
  animation: textIn 0.7s ease forwards;
}

.service-page.animate .service-text {
  animation: textIn 0.7s ease 0.2s forwards;
}

@keyframes textIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#servicePage .service-process {
  transform: translateY(50px);
}
.service-page .process-box,
.service-page .process-arrow {
  opacity: 0;
}

.service-page.animate .process-box,
.service-page.animate .process-arrow {
  animation: processIn 0.6s ease forwards;
}

/* Planering */
.service-page.animate .process-box:nth-child(1) {
  animation-delay: 0.2s;
}

/* Pil 1 */
.service-page.animate .process-arrow:nth-child(2) {
  animation-delay: 0.4s;
}

/* Inspelning */
.service-page.animate .process-box:nth-child(3) {
  animation-delay: 0.6s;
}

/* Pil 2 */
.service-page.animate .process-arrow:nth-child(4) {
  animation-delay: 0.8s;
}

/* Redigering */
.service-page.animate .process-box:nth-child(5) {
  animation-delay: 1s;
}

/* Pil 3 */
.service-page.animate .process-arrow:nth-child(6) {
  animation-delay: 1.2s;
}

/* Installation */
.service-page.animate .process-box:nth-child(7) {
  animation-delay: 1.4s;
}

@keyframes processIn {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.process-box h3 {
  position: relative;
  padding-bottom: 20px;
  border-bottom: none !important;
}

.process-box h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 3px;
  background: #0b5cff;
}

.service-page.animate .process-box h3::after {
  animation: lineGrow 0.8s ease forwards;
  animation-delay: 1.4s;
}

@keyframes lineGrow {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}
.service-page.animate .service-text {
  border-bottom: none;
}

.service-page.animate .service-text::after {
  content: "";
  display: block;

  width: 0;
  height: 3px;
  background: #0b5cff;

  margin-top: 35px;

  animation: mainLineGrow 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes mainLineGrow {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}
.process-bottom-text {
  display: block !important;
  position: relative !important;

  margin: 300px 5% 120px;
  padding: 45px;

  background: white;
  border-radius: 25px;
  border: 1px solid #ddd;


  box-sizing: border-box;
}
.process-bottom-text h2 {
  font-size: 35px;
  color: #0b5cff;
  margin-bottom: 25px;
}

.process-bottom-text p {
  font-size: 25px;
  line-height: 1.6;
  color: #111;
}
.process-bottom-text {
  width: 833px !important;
  max-width: 1200px !important;

  margin-left: 60px !important;
  margin-right: 0 !important;

  box-sizing: border-box;
}
#expandAllButton {
  position: absolute;

  /* ÄNDRA PLATSEN HÄR */
  top: 0px;
  right: -250px;

  background: transparent;
  color: #0b5cff;

  border: 1.5px solid #0b5cff;
  border-radius: 50px;

  padding: 12px 32px;
  font-size: 18px;
  cursor: pointer;

  transform: none;
  transition: background 0.3s ease, color 0.3s ease;
}

#expandAllButton:hover {
  background: #0b5cff;
  color: white;
}

.process-bottom-text h2 {
  position: relative;
  top: -20px;
}
.process-box {
  transition: height 0,9s ease !important;
}

/* Texten när den är stängd */
.process-box p {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease 0.25s,
              transform 0.5s ease 0.25s;
}

/* Texten när den öppnas */
.process-box.expanded p {
  opacity: 1;
  transform: translateY(0);
}
.process-box {
  transition: height 3.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.process-box p {
  opacity: 0;
  transform: translateY(-15px);

  transition:
    opacity 1.2s ease 0.6s,
    transform 1.2s ease 0.6s;
}

.process-box.expanded p {
  opacity: 1;
  transform: translateY(0);
}
.expand-button {
  display: none !important;
}
.hero-title span {
  display: block !important;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 1.2s ease forwards;
}

/* Kunskap som */
.hero-title span:nth-child(1) {
  animation-delay: 0.1s;
}

/* aldrig går */
.hero-title span:nth-child(2) {
  animation-delay: 0.8s;
}

/* förlorad */
.hero-title span:nth-child(3) {
  animation-delay: 1.5s;
  color: #0b5cff;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-text .hero-title {
  font-size: 62px !important;
  line-height: 1.05 !important;

  position: relative;
  left: 0px;
  top: 20px;
}
/* ===== ANIMATION SÅ FUNGERAR DET ===== */

#howPage .how-title,
#howPage .how-text {
  opacity: 0;
}

#howPage.animate .how-title {
  animation: textIn 0.7s ease forwards;
}

#howPage.animate .how-text {
  animation: textIn 0.7s ease 0.2s forwards;
}
#howPage.animate .how-text::after {
  width: 0;
  animation: mainLineGrow 1s ease forwards;
  animation-delay: 0.5s;
}
.service-video {
  position: relative;

  /* FLYTTA VIDEON */
  left: 0px;    /* + = höger, - = vänster */
  top: 0px;     /* + = ner, - = upp */

  /* STORLEK */
  width: 800px;

  margin: 300px auto 50px;
}

.service-video video {
  width: 60%;
  height: auto;
  display: block;
}
html,
body {
  width: 100%;
  overflow-x: hidden;
}
.service-video {
  position: relative;

  left: -250px;
  top: 60px;
  width: 600px;

  margin: 300px auto 50px;

  /* Rutan runt videon */
  padding: 15px;
  border: 2px solid #0b5cff;
  border-radius: 25px;
}

.service-video video {
  width: 100%;
  height: auto;
  display: block;

  /* Rundade kanter på videon */
  border-radius: 15px;
}
.service-side-image {
  position: relative;

  /* FLYTTA BILDEN */
  left: 0px;   /* höger/vänster */
  top: 0px;   /* upp/ner */

  /* STORLEK */
  width: 600px;

  /* SAMMA BLÅ RAM */
  padding: 15px;
  border: 2px solid #0b5cff;
  border-radius: 25px;
}

.service-side-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}
.service-side-image {
  position: relative;
  display: inline-block;

  left: 0px;
  top: 0px;

  padding: 10px;
  border: 2px solid #0b5cff;
  border-radius: 25px;
}

.service-side-image img {
  width: 60%;
  height: auto;
  display: block;
  border-radius: 15px;
}
.service-side-image {
  position: relative !important;
  display: table !important;

  width: fit-content !important;
  max-width: none !important;

  left: 800px;
  top: -360px;

  padding: 10px;
  border: 2px solid #0b5cff;
  border-radius: 25px;
}

.service-side-image img {
  width: 355px !important;
  height: auto;
  display: block;
  border-radius: 15px;
}
.media-title {
  color:#001A75;
  font-size: 40px;

  position: relative;
  left: 80px;   /* höger/vänster */
  top: 333px;     /* upp/ner */

  margin-bottom: 30px;
}
.media-title::after {
  content: "";
  display: block;
  width: 900px;       /* längden på strecket */
  height: 3px;        /* tjockleken */
  background: #0066ff;
  margin-top: 20px;   /* avstånd från texten */
}
.video-info,
.qr-info {
  color: #0066ff;
  font-size: 22px;
  font-weight: 600;
}

/* TEXT UNDER VIDEON */
.video-info {
  position: relative;
  left: 90px;
  top: 0px;
}

/* TEXT UNDER QR-KODEN */
.qr-info {
  position: relative;
  left: 1080px;
  top: -50px;
}
.video-info,
.qr-info {
  color: black !important;
  font-size: 16px !important;
  font-weight: 400 !important;

  position: static !important;
  margin: 12px 0 0 0 !important;
}
.service-side-image {
  position: relative !important;

  left: 800px !important;  /* + höger, - vänster */
  top: -390px !important;   /* + ner, - upp */
}
.legacy-footer {
  background:#aeacac;
  color: #fcfcfc;

  width: 100%;
  padding: 70px 80px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  box-sizing: border-box;
}

.footer-question {
  max-width: 500px;
}

.footer-question h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.footer-question p,
.footer-contact p {
  font-size: 17px;
  line-height: 1.6;
}

.footer-question a {
  color: white;
}

.footer-contact h3 {
  margin-bottom: 15px;
}

.footer-brand img {
  width: 180px;
}
.legacy-footer {
  color: #111;
}

.footer-question a {
  color: #0b5cff;
  font-weight: 600;
  text-decoration: none;
}

.footer-question a:hover {
  text-decoration: underline;
}

.footer-contact h3,
.footer-contact p {
  color: #111;
}
.footer-socials {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.footer-socials a {
  color: #0b5cff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.footer-socials a:hover {
  text-decoration: underline;
}
.footer-socials img {
  width: 38px !important;
  height: 38px !important;
  object-fit: cover;
  border-radius: 8px;
}.footer-socials {
  display: flex;
  gap: 17px;
  margin-top: 20px;

  position: relative;
  left: 17px;
}
.legacy-footer {
  min-height: 320px;
  padding: 60px 80px;
}

.footer-question,
.footer-contact,
.footer-brand {
  position: relative;
}
/* Frågetexten till vänster */
.footer-question {
  left: 0px;  /* + höger, - vänster */
  top: 0px;   /* + ner, - upp */
}

/* Kontakt i mitten */
.footer-contact {
  left: 0px;
  top: 0px;
}

/* Logga + sociala medier till höger */
.footer-brand {
  left: 0px;
  top: 0px;
}
/* ===== NY FOOTER ===== */

.legacy-footer {
  background: #f1f4f8 !important;
  color: #111 !important;

  width: 100% !important;
  min-height: 300px;

  padding: 90px 7% 40px;
  box-sizing: border-box;

  display: grid !important;
  grid-template-columns: 1.5fr 1fr 0.8fr;
  column-gap: 60px;

  position: relative;
}

/* VÄNSTER */

.footer-question {
  position: static !important;
  max-width: 600px;
}

.footer-question h2 {
  color: #111;
  font-size: 36px;
  margin: 0 0 25px;
}

.footer-question p {
  color: #374151;
  font-size: 21px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.footer-contact-button {
  display: inline-block;
  background: #0b5cff;
  color: white !important;

  padding: 18px 30px;
  border-radius: 14px;

  font-size: 20px;
  font-weight: 700;
  text-decoration: none !important;
}

.footer-contact-button span {
  margin-left: 20px;
}


/* MITTEN */

.footer-contact {
  position: static !important;
  border-left: 1px solid #cbd2dc;
  padding-left: 55px;
}

.footer-contact h3 {
  color: #111;
  font-size: 22px;
  margin: 0 0 35px;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 20px;

  color: #111;
  font-size: 19px;
  margin-bottom: 25px;
}


/* HÖGER */

.footer-brand {
  position: static !important;
  border-left: 1px solid #cbd2dc;
  padding-left: 55px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 190px !important;
  height: auto;
}

.footer-socials {
  position: static !important;
  display: flex;
  gap: 25px;
  margin-top: 35px;
}

.footer-socials img {
  width: 42px !important;
  height: 42px !important;
  object-fit: cover;
  border-radius: 8px;
}


/* LÄNGST NER */

.footer-bottom {
  grid-column: 1 / -1;

  border-top: 1px solid #cbd2dc;
  margin-top: 70px;
  padding-top: 25px;

  color: #374151;
  font-size: 16px;
}
.service-page {
  padding-bottom: 0 !important;
}

.legacy-footer {
  margin-bottom: 0 !important;
}

body {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.service-side-image {
  margin-bottom: -222px !important;
}
/* ===== HOVER-EFFEKT PÅ KLICKBARA SAKER ===== */

button,
a {
  transition: transform 0.25s ease;
}

button:hover,
a:hover {
  transform: scale(1.06);
}



.how-extra {
  width: 90%;
  margin: 70px auto 100px;
}

.how-extra-block {
  max-width: 1100px;
}

.how-extra-block h2 {
  font-size: 32px;
  color: #0b5cff;
  margin: 0 0 15px 0;
  font-weight: 700;
}

.how-extra-block p {
  font-size: 20px;
  color: #111;
  line-height: 1.6;
  margin: 0;
}
#howScanTestButton {
    opacity: 0 !important;
}
/* Alla undersidor är helt dolda från början */
.menu-page {
    display: none !important;
}

/* Visa bara sidan som JavaScript aktiverar */
.menu-page.active-page {
    display: block !important;
}
#servicePage {
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

#servicePage .legacy-footer {
  margin-bottom: 0 !important;
}
#howPage {
  min-height: -100 !important;
  height: auto !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
#servicePage .legacy-footer {
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 0 !important;
}

#servicePage .footer-bottom {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.legacy-footer {
  zoom: 0.79;
  width: 117.65%;
}
html,
body {
    min-height: 0 !important;
    height: auto !important;
}

body {
    overflow-y: auto !important;
}

html {
  overflow-y: auto !important;
}

body {
  overflow-y: visible !important;
}

#servicePage {
  overflow: visible !important;
}
html {
    overflow-y: auto !important;
}

body {
    overflow-y: visible !important;
}
html {
    overflow-y: scroll !important;
}

body {
    overflow-y: clip !important;
}
/* ===== SÅ FUNGERAR DET – INTRO ===== */

#howPage .how-intro {
  padding: 110px 5% 100px;
  background: #e9eaec;
}

#howPage .how-intro h1 {
  margin: 0;
  color: #0b5cff;
  font-size: 52px;
  font-weight: 700;
}

#howPage .how-intro p {
  margin: 25px 0 0;
  color: #111;
  font-size: 25px;
  line-height: 1.5;
}

#howPage .how-intro-line {
  width: 100%;
  height: 3px;
  margin-top: 45px;
  background: #0b5cff;
}#howPage .how-intro h1,
#howPage .how-intro p {
  opacity: 0;
  transform: translateY(30px);
}

#howPage.animate .how-intro h1,
#howPage.animate .how-intro p {
  animation: howIntroIn 0.7s ease forwards;
}

#howPage.animate .how-intro p {
  animation-delay: 0.2s;
}

#howPage .how-intro-line {
  transform: scaleX(0);
  transform-origin: left;
}

#howPage.animate .how-intro-line {
  animation: howLineIn 0.9s ease 0.4s forwards;
}

@keyframes howIntroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes howLineIn {
  to {
    transform: scaleX(1);
  }
}
/* TEST – visa nya Så fungerar det-introt */
#howPage .how-intro h1,
#howPage .how-intro p {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#howPage .how-intro-line {
    transform: scaleX(1) !important;
}
#servicePage {
    transform: translateY(-170px);
}
/* ===== SÅ FUNGERAR DET - INFORMATION ===== */

#howPage .how-info {
    margin-top: 100px;
    margin-left: 10px;
    max-width: 550px;
}

#howPage .how-info h2 {
    font-size: 38px;
    font-weight: 700;
    color: #0b5cff;
    margin-bottom: 25px;
}

#howPage .how-info p {
    font-size: 22px;
    line-height: 1.6;
    color: #111;
    margin: 0;
}
/* ===== ANIMATION - SÅ FUNGERAR DET ===== */

#howPage .how-info {
    opacity: 0;
    transform: translateY(40px);
}

#howPage.animate .how-info {
    animation: howInfoIn 0.8s ease forwards;
}

@keyframes howInfoIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== LAGRING - ENDAST SÅ FUNGERAR DET ===== */

#howPage .storage-card {
    width: 850px;
    padding: 55px 70px 50px;
    background: #ffffff;
    border-radius: 22px;
    box-sizing: border-box;
}

#howPage .storage-label {
    display: inline-block;
    padding: 9px 16px;
    background: #eef5ff;
    color: #1264ff;
    border-radius: 20px;

    font-size: 16px;
    font-weight: 700;

    margin-bottom: 20px;
}

#howPage .storage-title {
    margin: 0 0 15px 0;

    font-size: 58px;
    line-height: 1;
    font-weight: 800;
    color: #07152f;
}

#howPage .storage-title span {
    color: #1264ff;
}

#howPage .storage-text {
    max-width: 700px;
    margin: 0;

    font-size: 21px;
    line-height: 1.35;
    color: #26334a;
}

#howPage .storage-benefits {
    display: flex;
    align-items: center;
    gap: 55px;

    margin-top: 35px;
}

#howPage .storage-benefit {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 15px;
    font-weight: 700;
    color: #26334a;
}

#howPage .storage-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eef5ff;
    color: #1264ff;

    font-size: 24px;
}
#howPage .storage-card {
    transform: scale(0.76);
    transform-origin: top left;
}
#howPage .storage-title {
    color: #1264ff !important;
}

#howPage .storage-title span {
    color: #1264ff !important;
}
#howPage .storage-card {
    position: relative;
    top: 80px;
}
/* ===== MASKINENS HJÄLPSIDA ===== */

#howPage .machine-help-card {
    width: 850px;
    padding: 55px 70px 50px;
    background: #ffffff;
    border-radius: 22px;
    box-sizing: border-box;

    /* avstånd från Lagring-rutan */
    margin-top: 40px;

    /* samma förminskning som Lagring */
    transform: scale(0.76);
    transform-origin: top left;
}

#howPage .machine-help-label {
    display: inline-block;
    padding: 9px 16px;
    background: #eef5ff;
    color: #1264ff;
    border-radius: 20px;

    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
}

#howPage .machine-help-title {
    margin: 0 0 20px 0;
    font-size: 58px;
    line-height: 1;
    font-weight: 800;
    color: #1264ff;
}

#howPage .machine-help-text {
    max-width: 700px;
    margin: 0;

    font-size: 21px;
    line-height: 1.4;
    color: #172033;
}

#howPage .machine-help-benefits {
    display: flex;
    align-items: center;
    gap: 45px;
    margin-top: 35px;
}

#howPage .machine-help-benefit {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 15px;
    font-weight: 700;
    color: #172033;
}

#howPage .machine-help-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eef5ff;
    color: #1264ff;

    font-size: 22px;
}
/* ===== ADMIN ===== */

#howPage .admin-card {
    width: 850px;
    padding: 55px 70px 50px;
    background: #ffffff;
    border-radius: 22px;
    box-sizing: border-box;

    margin-top: 100px;

    transform: scale(0.76);
    transform-origin: top left;

    position: relative;
    top: 50px;
    left: 0px;
    position: relative;
top: -140px;
}

#howPage .admin-label {
    display: inline-block;
    padding: 9px 16px;
    background: #eef5ff;
    color: #1264ff;
    border-radius: 20px;

    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
}

#howPage .admin-title {
    margin: 0 0 20px 0;
    font-size: 58px;
    line-height: 1;
    font-weight: 800;
    color: #1264ff;
}

#howPage .admin-text {
    max-width: 700px;
    margin: 0;

    font-size: 21px;
    line-height: 1.4;
    color: #172033;
}

#howPage .admin-benefits {
    display: flex;
    align-items: center;
    gap: 45px;
    margin-top: 35px;
}

#howPage .admin-benefit {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 15px;
    font-weight: 700;
    color: #172033;
}

#howPage .admin-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eef5ff;
    color: #1264ff;

    font-size: 22px;
}
/* ===== SÄKERHET ===== */

#howPage .security-card {
    width: 850px;
    padding: 55px 70px 50px;
    background: #ffffff;
    border-radius: 22px;
    box-sizing: border-box;

    margin-top: 190px;

    transform: scale(0.76);
    transform-origin: top left;

    position: relative;
    left: 0px;
    top: -230px;
}

#howPage .security-label {
    display: inline-block;
    padding: 9px 16px;
    background: #eef5ff;
    color: #1264ff;
    border-radius: 20px;

    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
}

#howPage .security-title {
    margin: 0 0 20px 0;
    font-size: 58px;
    line-height: 1;
    font-weight: 800;
    color: #1264ff;
}

#howPage .security-text {
    max-width: 700px;
    margin: 0;

    font-size: 21px;
    line-height: 1.4;
    color: #172033;
}

#howPage .security-benefits {
    display: flex;
    align-items: center;
    gap: 45px;
    margin-top: 35px;
}

#howPage .security-benefit {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 15px;
    font-weight: 700;
    color: #172033;
}

#howPage .security-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eef5ff;
    color: #1264ff;

    font-size: 22px;
}
/* ===== RUTOR GLIDER IN ===== */

#howPage .storage-card,
#howPage .machine-help-card,
#howPage .admin-card,
#howPage .security-card {
    opacity: 0;
    translate: 120px 0;
    transition:
        opacity 0.8s ease,
        translate 0.8s ease;
}

/* När JavaScript aktiverar rutan */
#howPage .storage-card.show-card,
#howPage .machine-help-card.show-card,
#howPage .admin-card.show-card,
#howPage .security-card.show-card {
    opacity: 1;
    translate: 0 0;
}
.how-phone-copy .how-phone-guide {
  display: none;
  width: 50%;
  height: 100%;
}
.how-phone-copy .how-phone-solution {
    display: none;
    width: 100%;
    height: 100%;
}
#howPhoneScanButton {
  background: #ffd400;
  color: #000;

  border: none;
  border-radius: 30px;

  width: 135px;
  height: 30px;

  font-size: 13px;
  font-weight: 700;

  white-space: nowrap;

  display: block;
  margin: 0 auto;

  cursor: pointer;
}
#howPage .legacy-footer {

  /* STORLEK */
  width: 112% !important;       /* bredd */
  min-height: 250px !important; /* höjd */

  /* POSITION */
  position: relative !important;

  left: -73px !important;  /* + höger, - vänster */
  top: 0px !important;     /* + ner, - upp */

  /* LUFT INUTI FOOTERN */
  padding: 90px 7% 40px !important;
}#howPage .legacy-footer {
  margin-top: 0px !important; /* större = längre ner */
}
/* ===== HEMLIG RUTA ===== */

#secretBox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.25);
}

.secret-box-content {
  position: absolute;
  top: 90px;
  left: 30px;

  width: 300px;
  padding: 25px;

  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#closeSecretBox {
  position: absolute;
  top: 10px;
  right: 15px;

  border: none;
  background: none;
  font-size: 25px;
  cursor: pointer;
}
/* ===== INLOGGNING ===== */

.login-text {
  margin-bottom: 20px;
  color: #666;
}

#username,
#password {
  width: 100%;
  height: 45px;

  margin-bottom: 12px;
  padding: 0 15px;

  box-sizing: border-box;

  border: 1px solid #ccc;
  border-radius: 8px;

  font-size: 15px;
  outline: none;
}

#username:focus,
#password:focus {
  border-color: #0b5cff;
}

#loginButton {
  width: 100%;
  height: 45px;

  margin-top: 5px;

  border: none;
  border-radius: 8px;

  background: #0b5cff;
  color: white;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
}

#loginButton:hover {
  background: #084dcc;
}

#loginMessage {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}
#adminBackButton {
  position: fixed;
  top: 500px;
  left: 30px;

  padding: 12px 20px;

  background: white;
  color: #111;

  border: 1px solid #dcdcdc;
  border-radius: 30px;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

  transition: 0.2s ease;
}

#adminBackButton:hover {
  background: #0b5cff;
  color: white;
  border-color: #0b5cff;

  transform: translateX(-3px);
}
#logoutButton {
  position: fixed;
  top: 450px;
  left: 30px;

  padding: 12px 20px;

  background: white;
  color: #111;

  border: 1px solid #dcdcdc;
  border-radius: 30px;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

  transition: 0.2s ease;
}

#logoutButton:hover {
  background: #0b5cff;
  color: white;
  border-color: #0b5cff;
}
.admin-title {
  position: absolute;
  top: -5px;
  left: 23%;
  transform: translateX(-50%);

  font-size: 56px;
  font-weight: 600;
  color: #0b5cff;
}
.admin-title::after {
  content: "";
  display: block;

  width: 520px;
  height: 4px;

  background: #0b5cff;
  border-radius: 10px;

  margin: 12px auto 0;
}
.admin-title {
  animation: adminSlideIn 0.8s ease forwards;
}

@keyframes adminSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -30px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.admin-buttons {
  position: absolute;
  top: 250px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
flex-direction: column;
gap: 15px;
}

.admin-buttons button {
  width: 230px;
  height: 55px;

  background: white;
  border: 1px solid #dcdcdc;
  border-radius: 12px;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;
  transition: 0.2s ease;
}

.admin-buttons button:hover {
  background: #0b5cff;
  color: white;
  border-color: #0b5cff;
  transform: translateY(-3px);
}
#adminButton1 {
  position: absolute;
  top: -60px;
  left: -600px;
}

#adminButton2 {
  position: absolute;
  top: 20px;
  left: -600px;
}

#adminButton3 {
  position: absolute;
  top: 100px;
  left: -600px;
}
/* =========================================
   LEGACY ADMIN - NY DESIGN
========================================= */

.admin-page {
  margin: 0;
  min-height: 100vh;
  background: #f5f7fb;
  font-family: Arial, sans-serif;
  color: #101828;
}


/* ===== HELA LAYOUTEN ===== */

.admin-page .admin-layout {
  display: flex;
  min-height: 100vh;
}


/* =========================================
   VÄNSTERMENY
========================================= */

.admin-page .admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;

  width: 250px;
  height: 100vh;

  background: white;
  border-right: 1px solid #e5e7eb;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  box-sizing: border-box;
  padding: 55px 20px 30px;

  z-index: 10;
}


.admin-page .admin-sidebar h2 {
  margin: 0 0 30px 10px;

  font-size: 22px;
  font-weight: 700;

  color: #101828;
}


/* ÖVERSIKT */

.admin-page .admin-nav-active {
  height: 50px;

  display: flex;
  align-items: center;

  gap: 12px;

  padding: 0 15px;

  background: #edf4ff;
  color: #0b5cff;

  border-radius: 10px;

  font-size: 15px;
  font-weight: 600;

  box-shadow: inset 4px 0 0 #0b5cff;
}


.admin-page .nav-icon {
  font-size: 21px;
}


/* =========================================
   TILLBAKA + LOGGA UT
========================================= */

.admin-page .admin-sidebar-bottom {
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}


.admin-page #adminBackButton,
.admin-page #logoutButton {
  position: static;

  width: 100%;
  height: 45px;

  display: flex;
  align-items: center;

  padding: 0 10px;
  margin: 0 0 5px;

  background: transparent;

  border: none;
  border-radius: 8px;

  box-shadow: none;

  font-size: 14px;
  font-weight: 600;

  text-align: left;

  cursor: pointer;

  transition: 0.2s ease;
}


/* TILLBAKA */

.admin-page #adminBackButton {
  color: #475467;
}

.admin-page #adminBackButton:hover {
  background: #f2f4f7;
  color: #101828;

  transform: none;
}


/* LOGGA UT */

.admin-page #logoutButton {
  color: #ef4444;
}

.admin-page #logoutButton:hover {
  background: #fff1f1;
  color: #dc2626;

  transform: none;
}


/* =========================================
   HUVUDSIDAN
========================================= */

.admin-page .admin-dashboard {
  width: calc(100% - 250px);

  margin-left: 250px;

  box-sizing: border-box;

  padding: 85px 60px;

  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(11, 92, 255, 0.07),
      transparent 28%
    ),
    #f5f7fb;
}


/* =========================================
   RUBRIKEN
========================================= */

.admin-page .admin-dashboard-heading {
  max-width: 1100px;
  margin: 0 auto 35px;
}


.admin-page .admin-small-title {
  margin: 0 0 10px;

  color: #0b5cff;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.5px;
}


.admin-page .admin-dashboard-heading h1 {
  margin: 0 0 8px;

  font-size: 38px;
  line-height: 1.1;

  color: #101828;

  font-weight: 700;
}


.admin-page .admin-subtitle {
  margin: 0;

  color: #667085;

  font-size: 15px;
}


/* =========================================
   DE TRE KORTEN
========================================= */

.admin-page .admin-dashboard-cards {
  max-width: 1100px;

  margin: 0 auto;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}


.admin-page .dashboard-card {
  min-height: 280px;

  box-sizing: border-box;

  padding: 25px;

  background: white;

  border: 1px solid #eaecf0;
  border-radius: 14px;

  box-shadow: 0 5px 20px rgba(16, 24, 40, 0.05);

  display: flex;
  flex-direction: column;

  transition: 0.25s ease;
}


.admin-page .dashboard-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.10);
}


/* =========================================
   IKONER
========================================= */

.admin-page .dashboard-icon {
  width: 52px;
  height: 52px;

  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #eaf2ff;

  border-radius: 11px;

  color: #0b5cff;

  font-size: 27px;
  font-weight: bold;
}


/* =========================================
   TEXT I KORTEN
========================================= */

.admin-page .dashboard-card h2 {
  margin: 0 0 10px;

  color: #101828;

  font-size: 20px;
  font-weight: 700;
}


.admin-page .dashboard-card p {
  margin: 0 0 25px;

  color: #667085;

  font-size: 14px;
  line-height: 1.5;
}


/* =========================================
   BLÅ ÖPPNA-KNAPPAR
========================================= */

.admin-page .dashboard-card button {
  width: 100%;
  height: 48px;

  margin-top: auto;

  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 15px;

  border: none;
  border-radius: 8px;

  background: #0b5cff;

  color: white;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s ease;
}


.admin-page .dashboard-card button:hover {
  background: #084dcc;

  transform: translateY(-2px);
}


.admin-page .dashboard-card button span {
  font-size: 20px;
}


/* =========================================
   ANIMATION NÄR SIDAN ÖPPNAS
========================================= */

.admin-page .admin-dashboard-heading {
  animation: adminFadeIn 0.6s ease forwards;
}


.admin-page .dashboard-card {
  opacity: 0;

  animation: adminCardIn 0.6s ease forwards;
}


.admin-page .dashboard-card:nth-child(1) {
  animation-delay: 0.1s;
}

.admin-page .dashboard-card:nth-child(2) {
  animation-delay: 0.2s;
}

.admin-page .dashboard-card:nth-child(3) {
  animation-delay: 0.3s;
}


@keyframes adminFadeIn {

  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


@keyframes adminCardIn {

  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


/* =========================================
   MOBIL
========================================= */

@media (max-width: 850px) {

  .admin-page .admin-sidebar {
    width: 190px;
  }

  .admin-page .admin-dashboard {
    width: calc(100% - 190px);

    margin-left: 190px;

    padding: 60px 25px;
  }

  .admin-page .admin-dashboard-cards {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 600px) {

  .admin-page .admin-layout {
    display: block;
  }

  .admin-page .admin-sidebar {
    position: relative;

    width: 100%;
    height: auto;

    padding: 25px 20px;
  }

  .admin-page .admin-sidebar-bottom {
    margin-top: 25px;
  }

  .admin-page .admin-dashboard {
    width: 100%;

    margin-left: 0;

    padding: 40px 20px;
  }

  .admin-page .admin-dashboard-heading h1 {
    font-size: 30px;
  }

}
#howPage {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  height: fit-content !important;
  min-height: 0 !important;
}

#howPage .legacy-footer {
  margin-bottom: 0 !important;
}
/* =========================================
   SUPER ADMIN
========================================= */

.super-admin-page {
  margin: 0;
  min-height: 100vh;
  background: #f5f7fb;
  font-family: Arial, sans-serif;
  color: #101828;
}

.super-admin-layout {
  display: flex;
  min-height: 100vh;
}


/* ===== VÄNSTERMENY ===== */

.super-sidebar {
  position: fixed;
  top: 0;
  left: 0;

  width: 260px;
  height: 100vh;

  padding: 35px 22px 25px;
  box-sizing: border-box;

  background: white;
  border-right: 1px solid #e5e7eb;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  z-index: 10;
}

.super-brand {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 45px;
}

.super-brand img {
  width: 55px;
  height: auto;
}

.super-brand h2 {
  margin: 0;
  font-size: 18px;
}

.super-brand p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #667085;
}


/* ===== MENY ===== */

.super-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.super-nav-item {
  width: 100%;
  height: 50px;

  padding: 0 15px;

  display: flex;
  align-items: center;
  gap: 13px;

  border: none;
  border-radius: 10px;

  background: transparent;
  color: #667085;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
  text-align: left;

  transition: 0.2s ease;
}

.super-nav-item span {
  font-size: 20px;
}

.super-nav-item:hover {
  background: #f2f4f7;
  color: #0b5cff;
}

.super-nav-item.active {
  background: #eaf2ff;
  color: #0b5cff;
  box-shadow: inset 4px 0 0 #0b5cff;
}


/* ===== NEDRE KNAPPAR ===== */

.super-sidebar-bottom {
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

#backToAdmin,
#superLogout {
  width: 100%;
  height: 44px;

  padding: 0 10px;

  display: flex;
  align-items: center;

  border: none;
  border-radius: 8px;

  background: transparent;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  text-align: left;

  transition: 0.2s ease;
}

#backToAdmin {
  color: #475467;
}

#backToAdmin:hover {
  background: #f2f4f7;
}

#superLogout {
  color: #ef4444;
}

#superLogout:hover {
  background: #fff1f1;
}


/* =========================================
   HUVUDSIDAN
========================================= */

.super-main {
  width: calc(100% - 260px);
  min-height: 100vh;

  margin-left: 260px;
  padding: 65px 55px;

  box-sizing: border-box;

  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(11, 92, 255, 0.06),
      transparent 25%
    ),
    #f5f7fb;
}


/* ===== RUBRIK ===== */

.super-heading {
  max-width: 1200px;
  margin: 0 auto 35px;
}

.super-label {
  margin: 0 0 10px;

  color: #0b5cff;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.super-heading h1 {
  margin: 0 0 10px;

  font-size: 40px;
  color: #101828;
}

.super-heading > p:last-child {
  margin: 0;

  color: #667085;
  font-size: 16px;
}


/* =========================================
   STATISTIKKORT
========================================= */

.super-stats {
  max-width: 1200px;
  margin: 0 auto 30px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.super-stat-card {
  position: relative;

  min-height: 165px;
  padding: 25px;

  box-sizing: border-box;

  background: white;

  border: 1px solid #eaecf0;
  border-radius: 14px;

  box-shadow: 0 5px 20px rgba(16, 24, 40, 0.05);

  transition: 0.2s ease;
}

.super-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.09);
}

.super-stat-icon {
  position: absolute;
  top: 22px;
  right: 22px;

  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #eaf2ff;
  color: #0b5cff;

  border-radius: 10px;

  font-size: 21px;
}

.super-stat-card > p {
  margin: 5px 0 28px;

  color: #667085;

  font-size: 14px;
  font-weight: 600;
}

.super-stat-card h2 {
  margin: 0 0 5px;

  font-size: 31px;
  color: #101828;
}

.super-stat-card > span {
  color: #98a2b3;
  font-size: 13px;
}

.super-stat-card .system-online {
  color: #12b76a;
  font-size: 24px;
}


/* =========================================
   NEDRE PANELER
========================================= */

.super-content-grid {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 22px;
}

.super-panel {
  padding: 30px;

  background: white;

  border: 1px solid #eaecf0;
  border-radius: 14px;

  box-shadow: 0 5px 20px rgba(16, 24, 40, 0.05);
}

.super-panel-label {
  margin: 0 0 8px;

  color: #0b5cff;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.super-panel > h2 {
  margin: 0 0 25px;

  font-size: 22px;
  color: #101828;
}


/* ===== SNABBÅTGÄRDER ===== */

.super-action {
  width: 100%;
  min-height: 72px;

  margin-bottom: 12px;
  padding: 12px 15px;

  display: flex;
  align-items: center;
  gap: 15px;

  background: #f8faff;

  border: 1px solid #dbe7ff;
  border-radius: 11px;

  cursor: pointer;
  text-align: left;

  transition: 0.2s ease;
}

.super-action:hover {
  background: #edf4ff;
  transform: translateX(3px);
}

.super-action-icon {
  width: 45px;
  height: 45px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #eaf2ff;
  color: #0b5cff;

  border-radius: 9px;

  font-size: 20px;
  font-weight: bold;
}

.super-action div {
  flex: 1;
}

.super-action strong {
  color: #101828;
  font-size: 14px;
}

.super-action p {
  margin: 4px 0 0;

  color: #98a2b3;
  font-size: 13px;
}

.super-action-arrow {
  color: #0b5cff;
  font-size: 20px;
}


/* ===== SYSTEMSTATUS ===== */

.status-row {
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid #eaecf0;
}

.status-row:last-child {
  border-bottom: none;
}

.status-row strong {
  color: #101828;
  font-size: 14px;
}

.status-row p {
  margin: 4px 0 0;

  color: #98a2b3;
  font-size: 13px;
}

.status-good {
  padding: 7px 11px;

  background: #ecfdf3;
  color: #12b76a;

  border-radius: 20px;

  font-size: 12px;
  font-weight: 700;
}


/* =========================================
   ANIMATION
========================================= */

.super-heading {
  animation: superFade 0.6s ease forwards;
}

.super-stat-card,
.super-panel {
  opacity: 0;
  animation: superCard 0.6s ease forwards;
}

.super-stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.super-stat-card:nth-child(2) {
  animation-delay: 0.15s;
}

.super-stat-card:nth-child(3) {
  animation-delay: 0.2s;
}

.super-stat-card:nth-child(4) {
  animation-delay: 0.25s;
}

.super-panel {
  animation-delay: 0.3s;
}

@keyframes superFade {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes superCard {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================
   MINDRE SKÄRMAR
========================================= */

@media (max-width: 1000px) {

  .super-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .super-content-grid {
    grid-template-columns: 1fr;
  }

}
/* =========================================
   SUPER ADMIN - FÖRETAG
========================================= */

/* ÖVRE RAD */

.company-toolbar {
  max-width: 1200px;
  margin: 0 auto 25px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;
}


/* SÖKRUTA */

.company-search {
  width: 400px;
  height: 48px;

  display: flex;
  align-items: center;

  padding: 0 16px;

  background: white;

  border: 1px solid #e4e7ec;
  border-radius: 10px;

  box-sizing: border-box;
}

.company-search span {
  margin-right: 10px;

  color: #667085;
  font-size: 20px;
}

.company-search input {
  width: 100%;

  border: none;
  outline: none;

  background: transparent;

  font-size: 14px;
  color: #101828;
}


/* LÄGG TILL FÖRETAG */

#addCompanyButton {
  height: 48px;

  padding: 0 22px;

  border: none;
  border-radius: 9px;

  background: #0b5cff;
  color: white;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s ease;
}

#addCompanyButton:hover {
  background: #084dcc;
  transform: translateY(-2px);
}


/* STORA VITA RUTAN */

.company-panel {
  max-width: 1200px;
  min-height: 430px;

  margin: 0 auto;

  padding: 30px;

  box-sizing: border-box;

  background: white;

  border: 1px solid #eaecf0;
  border-radius: 14px;

  box-shadow: 0 5px 20px rgba(16, 24, 40, 0.05);
}


/* RUBRIK I RUTAN */

.company-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 25px;

  border-bottom: 1px solid #eaecf0;
}

.company-panel-heading h2 {
  margin: 0 0 5px;

  font-size: 20px;
  color: #101828;
}

.company-panel-heading p {
  margin: 0;

  font-size: 13px;
  color: #98a2b3;
}


/* ANTAL FÖRETAG */

.company-count {
  padding: 7px 12px;

  background: #edf4ff;
  color: #0b5cff;

  border-radius: 20px;

  font-size: 12px;
  font-weight: 700;
}


/* TOM FÖRETAGSLISTA */

.company-empty {
  min-height: 320px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;
}

.company-empty-icon {
  width: 60px;
  height: 60px;

  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #eaf2ff;
  color: #0b5cff;

  border-radius: 12px;

  font-size: 27px;
}

.company-empty h3 {
  margin: 0 0 8px;

  font-size: 18px;
  color: #101828;
}

.company-empty p {
  margin: 0 0 20px;

  color: #98a2b3;
  font-size: 14px;
}


/* KNAPP I TOMMA LISTAN */

#addFirstCompanyButton {
  height: 44px;

  padding: 0 20px;

  border: none;
  border-radius: 8px;

  background: #0b5cff;
  color: white;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s ease;
}

#addFirstCompanyButton:hover {
  background: #084dcc;
  transform: translateY(-2px);
}


/* MOBIL */

@media (max-width: 800px) {

  .company-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .company-search {
    width: 100%;
  }

}
/* =========================================
   SUPER ADMIN - ANVÄNDARE
========================================= */

.user-toolbar {
  max-width: 1200px;
  margin: 0 auto 25px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}


/* SÖKRUTA */

.user-search {
  width: 400px;
  height: 48px;

  display: flex;
  align-items: center;

  padding: 0 16px;

  background: white;
  border: 1px solid #e4e7ec;
  border-radius: 10px;

  box-sizing: border-box;
}

.user-search span {
  margin-right: 10px;

  color: #667085;
  font-size: 20px;
}

.user-search input {
  width: 100%;

  border: none;
  outline: none;

  background: transparent;

  color: #101828;
  font-size: 14px;
}


/* LÄGG TILL ANVÄNDARE */

#addUserButton {
  height: 48px;

  padding: 0 22px;

  border: none;
  border-radius: 9px;

  background: #0b5cff;
  color: white;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: 0.2s ease;
}

#addUserButton:hover {
  background: #084dcc;
  transform: translateY(-2px);
}


/* STORA VITA RUTAN */

.user-panel {
  max-width: 1200px;
  min-height: 430px;

  margin: 0 auto;

  padding: 30px;

  box-sizing: border-box;

  background: white;

  border: 1px solid #eaecf0;
  border-radius: 14px;

  box-shadow: 0 5px 20px rgba(16, 24, 40, 0.05);
}


/* RUBRIK */

.user-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 25px;

  border-bottom: 1px solid #eaecf0;
}

.user-panel-heading h2 {
  margin: 0 0 5px;

  font-size: 20px;
  color: #101828;
}

.user-panel-heading p {
  margin: 0;

  color: #98a2b3;
  font-size: 13px;
}


/* ANTAL ANVÄNDARE */

.user-count {
  padding: 7px 12px;

  background: #edf4ff;
  color: #0b5cff;

  border-radius: 20px;

  font-size: 12px;
  font-weight: 700;
}


/* TOM LISTA */

.user-empty {
  min-height: 320px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;
}

.user-empty-icon {
  width: 60px;
  height: 60px;

  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #eaf2ff;
  color: #0b5cff;

  border-radius: 12px;

  font-size: 27px;
}

.user-empty h3 {
  margin: 0 0 8px;

  color: #101828;
  font-size: 18px;
}

.user-empty p {
  margin: 0 0 20px;

  color: #98a2b3;
  font-size: 14px;
}


/* KNAPP I TOMMA LISTAN */

#addFirstUserButton {
  height: 44px;

  padding: 0 20px;

  border: none;
  border-radius: 8px;

  background: #0b5cff;
  color: white;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: 0.2s ease;
}

#addFirstUserButton:hover {
  background: #084dcc;
  transform: translateY(-2px);
}


/* MOBIL */

@media (max-width: 800px) {

  .user-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .user-search {
    width: 100%;
  }

}
.super-sidebar {
  z-index: 99999 !important;
  pointer-events: auto !important;
}

.super-nav {
  position: relative !important;
  z-index: 100000 !important;
  pointer-events: auto !important;
}

.super-nav-item {
  position: relative !important;
  z-index: 100001 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
.super-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.super-content-grid .super-panel {
  width: 100%;
  box-sizing: border-box;
}
/* Mer mellanrum mellan scanningarna */

#scanList > div {
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

#scanList > div:last-child {
  border-bottom: none;
}
.scan-filters {
  display: flex;
  gap: 10px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.scan-filters button {
  padding: 12px 24px;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  background: white;
  color: #243247;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.scan-filters button:hover {
  background: #1769e8;
  color: white;
  border-color: #1769e8;
}
.scan-filters button.active {
  background: #1769e8;
  color: white;
  border-color: #1769e8;
}
.scan-chart-container {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 30px 0;
}
/* FÖRETAGSLISTA */

.company-panel:has(.company-row) .company-empty {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  margin-top: 25px;
}

.company-row {
  display: flex;
  align-items: center;
  padding: 22px 25px;
  margin-bottom: 12px;

  background: #f8faff;
  border: 1px solid #e5eaf3;
  border-radius: 12px;

  font-size: 17px;
  font-weight: 600;
  color: #243247;

  transition: 0.2s;
}

.company-row::before {
  content: "▦";
  color: #1769e8;
  font-size: 24px;
  margin-right: 20px;
}

.company-row:hover {
  border-color: #1769e8;
  background: #f0f5ff;
}
.company-detail-stats {
  display: flex;
  gap: 20px;
  margin: 25px 0;
}

.company-detail-stat {
  flex: 1;
  padding: 25px;
  background: #f3f7ff;
  border: 1px solid #dce7ff;
  border-radius: 14px;
}

.company-detail-stat p {
  color: #64748b;
  margin-bottom: 10px;
}

.company-detail-stat h2 {
  color: #1769e8;
  font-size: 32px;
}
/* MINDRE STATISTIKRUTOR */

.company-detail-stats {
  gap: 15px;
  margin: 20px 0;
}

.company-detail-stat {
  padding: 15px 20px;
}

.company-detail-stat p {
  margin: 0 0 8px;
  font-size: 14px;
}

.company-detail-stat h2 {
  font-size: 26px;
  margin: 0;
}

/* MINDRE MASKINRUTOR */

#companyMachines .company-row {
  padding: 14px 18px;
  margin-bottom: 10px;
  min-height: 0;
  font-size: 15px;
  justify-content: space-between;
  gap: 15px;
}

#companyMachines .company-row::before {
  font-size: 19px;
  margin-right: 5px;
}

#companyDetails {
  margin-top: 20px;
}
/* FÖRETAGETS DIAGRAM */

.company-chart-section {
  margin: 25px 0;
}

.company-chart-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.company-chart-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.company-chart-filters button {
  padding: 10px 20px;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  background: white;
  color: #243247;
  font-weight: 600;
  cursor: pointer;
}

.company-chart-filters button.active,
.company-chart-filters button:hover {
  background: #1769e8;
  color: white;
  border-color: #1769e8;
}

.company-chart-container {
  position: relative;
  width: 100%;
  height: 280px;
}
.super-nav a.super-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}
.super-nav a.super-nav-item {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  width: 100%;
  box-sizing: border-box;
}
/* KONTAKTER – NY DESIGN */

#companyContacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

#companyContacts .company-row {
    display: flex !important;
    flex-direction: column;
    background: #ffffff;
    padding: 24px;
    border: 1px solid #e4eaf5;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(20, 45, 90, 0.06);
    transition: 0.2s ease;
}

#companyContacts .company-row:hover {
    box-shadow: 0 8px 24px rgba(20, 45, 90, 0.12);
    transform: translateY(-2px);
}

#companyContacts h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: #172b4d;
}

#companyContacts textarea {
    flex: 1;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    background: #f8faff;
    resize: vertical;
}

#companyContacts textarea:focus {
    outline: none;
    border-color: #3973e6 !important;
    box-shadow: 0 0 0 3px rgba(57, 115, 230, 0.1);
}

#companyContacts button {
    align-self: flex-start;
    background: #2463eb;
    color: white;
    border: none;
    border-radius: 9px;
    font-weight: 600;
    transition: 0.2s;
}

#companyContacts button:hover {
    background: #174dc0;
}
/* ==================================
   LEGACY UF – OM OSS
================================== */

#aboutPage {
    background: #f3f6fb;
    min-height: 100vh;
}

.about-section {
    max-width: 1450px;
    margin: 0 auto;
    padding: 55px 45px 100px;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* GEMENSAM DESIGN */

.about-intro,
.about-story,
.about-team {
    background: white;
    border-radius: 22px;
    padding: 50px 55px;
}

.about-label {
    display: inline-block;
    background: #eaf2ff;
    color: #1458e8;
    padding: 9px 17px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
}

.about-section h1,
.about-section h2 {
    color: #1558ed;
    font-weight: 800;
    letter-spacing: -1px;
}

.about-section h1 {
    font-size: 58px;
    margin: 0 0 20px;
}

.about-section h2 {
    font-size: 42px;
    margin: 0 0 20px;
}

.about-section p {
    color: #26364e;
    line-height: 1.65;
}

/* INTRODUKTION */

.about-intro {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 65px;
    align-items: center;
}

.about-intro-text > p {
    font-size: 20px;
    max-width: 650px;
}

.about-benefits {
    border-left: 2px solid #dce8ff;
    padding-left: 55px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-benefit {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.about-benefit-icon {
    background: #eaf2ff;
    color: #1558ed;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    flex-shrink: 0;
}

.about-benefit h3 {
    font-size: 18px;
    margin: 4px 0;
    color: #17253c;
}

.about-benefit p {
    margin: 0;
    font-size: 15px;
}

/* VÅR IDÉ */

.about-story-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
}

.about-story-columns p {
    font-size: 17px;
    margin: 0;
}

.about-story-columns p + p {
    border-left: 2px solid #dce8ff;
    padding-left: 45px;
}

/* TEAMET */

.about-team-intro {
    font-size: 17px;
    margin-bottom: 35px;
}

.about-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.about-person {
    background: #fbfcff;
    border: 1px solid #dce6f7;
    border-radius: 17px;
    padding: 30px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #d5d9e0;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

/* GRÅ PROFILPLATSHÅLLARE */

.about-avatar::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: #f5f7fa;
    border-radius: 50%;
    top: 16px;
    left: 30px;
}

.about-avatar::after {
    content: "";
    position: absolute;
    width: 65px;
    height: 45px;
    background: #f5f7fa;
    border-radius: 50%;
    bottom: -14px;
    left: 12px;
}

.about-person h3 {
    color: #17253c;
    font-size: 17px;
    margin: 0 0 10px;
}

.about-person > span {
    color: #1558ed;
    background: #eaf2ff;
    border-radius: 25px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
}

.about-person p {
    font-size: 14px;
    margin: 15px 0 0;
}

/* ANPASSNING FÖR MINDRE SKÄRMAR */

@media (max-width: 1000px) {
    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-benefits {
        border-left: none;
        border-top: 2px solid #dce8ff;
        padding: 35px 0 0;
    }

    .about-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .about-section {
        padding: 25px 15px 60px;
        gap: 20px;
    }

    .about-intro,
    .about-story,
    .about-team {
        padding: 30px 22px;
    }

    .about-section h1 {
        font-size: 42px;
    }

    .about-section h2 {
        font-size: 30px;
    }

    .about-intro-text > p {
        font-size: 17px;
    }

    .about-story-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-story-columns p + p {
        border-left: none;
        border-top: 2px solid #dce8ff;
        padding: 20px 0 0;
    }

    .about-team-grid {
        grid-template-columns: 1fr;
    }
}
/* OM OSS – SIDINTRODUKTION */

.about-page-header {
    max-width: 1450px;
    margin: 0 auto;
    padding: 55px 45px 10px;
}

.about-page-header h1 {
    color: #1558ed;
    font-size: 48px;
    font-weight: 750;
    margin: 0 0 25px;
}

.about-page-header p {
    color: #17253c;
    font-size: 23px;
    line-height: 1.5;
    margin: 0 0 30px;
}

.about-header-line {
    width: 65%;
    height: 4px;
    background: #1558ed;
}

/* MINDRE RUBRIKER PÅ RESTEN AV SIDAN */

.about-section h1 {
    font-size: 42px;
    color: #1558ed;
}

.about-section h2 {
    font-size: 34px;
    color: #1558ed;
}

/* LUFTIGARE OCH MER KOMPAKT DESIGN */

.about-section {
    max-width: 1350px;
    padding-top: 30px;
    gap: 25px;
}

.about-intro,
.about-story,
.about-team {
    padding: 38px 45px;
}

@media (max-width: 600px) {
    .about-page-header {
        padding: 35px 20px 10px;
    }

    .about-page-header h1 {
        font-size: 36px;
    }

    .about-page-header p {
        font-size: 18px;
    }

    .about-header-line {
        width: 100%;
    }

    .about-section h1 {
        font-size: 34px;
    }

    .about-section h2 {
        font-size: 28px;
    }
}
/* =====================================
   OM OSS – KOMPAKTARE DESIGN
===================================== */

/* Sidans bredd och avstånd */
.about-section {
    max-width: 1250px;
    padding: 25px 30px 70px;
    gap: 22px;
}

/* Introduktionen längst upp */
.about-page-header {
    max-width: 1250px;
    padding: 40px 30px 10px;
}

.about-page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.about-page-header p {
    font-size: 18px;
    margin-bottom: 22px;
}

/* De vita sektionerna */
.about-intro,
.about-story,
.about-team {
    padding: 32px 38px;
    border-radius: 16px;
}

/* Mindre, helblå rubriker */
.about-section h1 {
    font-size: 35px;
    color: #1558ed;
}

.about-section h2 {
    font-size: 29px;
    color: #1558ed;
}

/* Mindre vanlig text */
.about-intro-text > p {
    font-size: 16px;
}

.about-story-columns p,
.about-team-intro {
    font-size: 15px;
}

/* Mindre mellanrum */
.about-intro {
    gap: 40px;
}

.about-benefits {
    padding-left: 35px;
    gap: 20px;
}

.about-benefit-icon {
    width: 48px;
    height: 48px;
    font-size: 21px;
}

.about-benefit h3 {
    font-size: 15px;
}

.about-benefit p {
    font-size: 13px;
}

/* Mindre profilkort */
.about-team-grid {
    gap: 15px;
}

.about-person {
    padding: 20px 15px;
}

.about-avatar {
    width: 75px;
    height: 75px;
}

/* Anpassa profilplatshållarna */
.about-avatar::before {
    width: 25px;
    height: 25px;
    top: 13px;
    left: 25px;
}

.about-avatar::after {
    width: 55px;
    height: 38px;
    left: 10px;
}

.about-person h3 {
    font-size: 15px;
}

.about-person p {
    font-size: 12px;
}

/* Mobilanpassning */
@media (max-width: 600px) {
    .about-section {
        padding: 20px 15px 50px;
    }

    .about-page-header {
        padding: 30px 20px 10px;
    }

    .about-page-header h1 {
        font-size: 34px;
    }

    .about-intro,
    .about-story,
    .about-team {
        padding: 25px 20px;
    }

    .about-section h1 {
        font-size: 31px;
    }

    .about-section h2 {
        font-size: 25px;
    }

    .about-benefits {
        padding-left: 0;
    }
}
/* =========================================
   OM OSS – LEGACY UF ORIGINALDESIGN
========================================= */

/* Samma bakgrund som övriga sidor */
#aboutPage {
    background: #f3f5f9;
    min-height: 100vh;
}

/* Sidans introduktion */
.about-page-header {
    max-width: none;
    margin: 0;
    padding: 55px 5% 0;
}

.about-page-header h1 {
    color: #1558ed;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 25px;
}

.about-page-header p {
    color: #171717;
    font-size: 22px;
    line-height: 1.6;
    margin: 0 0 38px;
}

.about-header-line {
    width: 78%;
    height: 4px;
    background: #1558ed;
}

/* Mer luft mellan sektionerna */
.about-section {
    max-width: none;
    margin: 0;
    padding: 150px 5% 120px;
    display: flex;
    flex-direction: column;
    gap: 110px;
}

/* Vita informationsrutor */
.about-intro,
.about-story,
.about-team {
    width: 100%;
    background: #ffffff;
    border-radius: 22px;
    padding: 55px 60px;
    box-shadow: none;
}

/* Rubriker i samma blå färg */
.about-section h1,
.about-section h2 {
    color: #1558ed;
    font-weight: 700;
    letter-spacing: 0;
}

.about-section h1 {
    font-size: 42px;
    margin-bottom: 25px;
}

.about-section h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

/* Vanlig text */
.about-intro-text > p {
    font-size: 19px;
    line-height: 1.65;
}

.about-story-columns p {
    font-size: 18px;
    line-height: 1.7;
}

/* Introduktionsrutan */
.about-intro {
    grid-template-columns: 1.3fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-benefits {
    padding-left: 50px;
    gap: 35px;
}

.about-benefit-icon {
    width: 58px;
    height: 58px;
    font-size: 24px;
}

/* Vår idé */
.about-story-columns {
    gap: 65px;
}

/* Teamet */
.about-team-intro {
    font-size: 18px;
    margin-bottom: 45px;
}

.about-team-grid {
    gap: 25px;
}

.about-person {
    background: #ffffff;
    border: 1px solid #dce5f3;
    border-radius: 15px;
    padding: 30px 20px;
}

.about-avatar {
    width: 85px;
    height: 85px;
}

.about-avatar::before {
    width: 28px;
    height: 28px;
    top: 15px;
    left: 28px;
}

.about-avatar::after {
    width: 62px;
    height: 43px;
    left: 11px;
}

/* Surfplattor */
@media (max-width: 1000px) {
    .about-section {
        padding: 90px 5%;
        gap: 65px;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-benefits {
        border-left: none;
        border-top: 2px solid #dce8ff;
        padding: 35px 0 0;
    }

    .about-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobiler */
@media (max-width: 600px) {
    .about-page-header {
        padding: 35px 20px 0;
    }

    .about-page-header h1 {
        font-size: 36px;
    }

    .about-page-header p {
        font-size: 17px;
    }

    .about-header-line {
        width: 100%;
    }

    .about-section {
        padding: 65px 20px;
        gap: 45px;
    }

    .about-intro,
    .about-story,
    .about-team {
        padding: 30px 25px;
    }

    .about-section h1 {
        font-size: 32px;
    }

    .about-section h2 {
        font-size: 27px;
    }

    .about-intro-text > p,
    .about-story-columns p {
        font-size: 16px;
    }

    .about-story-columns {
        grid-template-columns: 1fr;
    }

    .about-story-columns p + p {
        border-left: none;
        border-top: 2px solid #dce8ff;
        padding: 25px 0 0;
    }

    .about-team-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   LEGACY UF – OM OSS SLUTLIG DESIGN
========================================== */

/* SIDANS BAKGRUND */

#aboutPage {
    background: #E9EAEC;
    min-height: 100vh;
}

/* INTRODUKTION LÄNGST UPP */

.about-page-header {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 55px 20px 0;
    box-sizing: border-box;
}

.about-page-header h1 {
    color: #1558ed;
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 18px;
}

.about-page-header p {
    color: #171717;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.about-header-line {
    width: 78%;
    height: 3px;
    background: #1558ed;
}

/* SIDANS INNEHÅLL */

.about-section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 55px 20px 100px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* VITA INFORMATIONSSEKTIONER */

.about-intro,
.about-story,
.about-team {
    width: 100%;
    box-sizing: border-box;

    background: #ffffff;
    border-radius: 10px;
    padding: 35px 40px;

    box-shadow: none;
}

/* GEMENSAMMA RUBRIKER */

.about-section h1,
.about-section h2 {
    color: #1558ed;
    font-weight: 700;
    letter-spacing: 0;
}

.about-section h1 {
    font-size: 30px;
    margin: 0 0 14px;
}

.about-section h2 {
    font-size: 27px;
    margin: 0 0 15px;
}

/* SMÅ ETIKETTER */

.about-label {
    display: inline-block;

    background: #eaf2ff;
    color: #1558ed;

    padding: 6px 12px;
    border-radius: 25px;

    font-size: 12px;
    font-weight: 700;

    margin-bottom: 15px;
}

/* FÖRSTA SEKTIONEN */

.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-intro-text > p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* FÖRDELAR */

.about-benefits {
    border-left: 1px solid #cbdcf7;
    padding-left: 35px;

    display: flex;
    flex-direction: column;
    gap: 22px;
}

.about-benefit {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-benefit-icon {
    width: 45px;
    height: 45px;

    background: #eaf2ff;
    color: #1558ed;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    flex-shrink: 0;
}

.about-benefit h3 {
    color: #1558ed;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px;
}

.about-benefit p {
    color: #26364e;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* VÅR IDÉ */

.about-story-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.about-story-columns p {
    color: #26364e;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.about-story-columns p + p {
    border-left: 1px solid #cbdcf7;
    padding-left: 35px;
}

/* TEAMET */

.about-team-intro {
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.about-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

/* PROFILKORT */

.about-person {
    background: #ffffff;
    border: 1px solid #dce6f7;
    border-radius: 8px;

    padding: 20px 12px;

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* GRÅ PROFILBILDER */

.about-avatar {
    width: 55px;
    height: 55px;

    background: #c5cad3;
    border-radius: 50%;

    position: relative;
    overflow: hidden;

    margin-bottom: 10px;
}

.about-avatar::before {
    content: "";

    position: absolute;
    width: 19px;
    height: 19px;

    background: #f5f7fa;
    border-radius: 50%;

    top: 10px;
    left: 18px;
}

.about-avatar::after {
    content: "";

    position: absolute;
    width: 42px;
    height: 29px;

    background: #f5f7fa;
    border-radius: 50%;

    bottom: -10px;
    left: 7px;
}

/* NAMN OCH ROLLER */

.about-person h3 {
    color: #17253c;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 6px;
}

.about-person > span {
    color: #1558ed;
    background: #eaf2ff;

    border-radius: 20px;
    padding: 4px 9px;

    font-size: 11px;
    font-weight: 600;
}

.about-person p {
    color: #26364e;
    font-size: 11px;
    line-height: 1.5;
    margin: 10px 0 0;
}

/* ==========================================
   RESPONSIV DESIGN
========================================== */

/* SURFPLATTOR */

@media (max-width: 850px) {

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

    .about-benefits {
        border-left: none;
        border-top: 1px solid #cbdcf7;

        padding: 25px 0 0;
    }

    .about-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* MOBILER */

@media (max-width: 600px) {

    .about-page-header {
        padding: 35px 20px 0;
    }

    .about-page-header h1 {
        font-size: 32px;
    }

    .about-page-header p {
        font-size: 15px;
    }

    .about-header-line {
        width: 100%;
    }

    .about-section {
        padding: 40px 15px 60px;
        gap: 25px;
    }

    .about-intro,
    .about-story,
    .about-team {
        padding: 25px 20px;
    }

    .about-section h1 {
        font-size: 27px;
    }

    .about-section h2 {
        font-size: 23px;
    }

    .about-intro-text > p {
        font-size: 14px;
    }

    .about-story-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-story-columns p + p {
        border-left: none;
        border-top: 1px solid #cbdcf7;

        padding: 20px 0 0;
    }

    .about-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-person {
        padding: 18px 10px;
    }

}

@media (max-width: 380px) {

    .about-team-grid {
        grid-template-columns: 1fr;
    }

}
/* ==========================================
   OM OSS – ANIMATIONER
========================================== */

/* Animation när sidan öppnas */

#aboutPage.animate .about-page-header {
    animation: aboutFadeIn 0.7s ease both;
}

/* Informationsrutorna börjar osynliga */

#aboutPage .about-intro,
#aboutPage .about-story,
#aboutPage .about-team {
    opacity: 0;
    transform: translateY(45px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

/* Informationsrutorna visas vid scrollning */

#aboutPage .show-about-card {
    opacity: 1;
    transform: translateY(0);
}

/* Mjuk introduktion */

@keyframes aboutFadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respektera användarens animationsinställningar */

@media (prefers-reduced-motion: reduce) {
    #aboutPage.animate .about-page-header {
        animation: none;
    }

    #aboutPage .about-intro,
    #aboutPage .about-story,
    #aboutPage .about-team {
        transition: none;
        transform: none;
    }
}
/* OM OSS – BLÅ LINJE GLIDER IN */

#aboutPage .about-header-line {
    transform: scaleX(0);
    transform-origin: left;
}

#aboutPage.animate .about-header-line {
    animation: aboutLineSlide 1s ease forwards;
    animation-delay: 0.25s;
}

@keyframes aboutLineSlide {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}
/* ==========================================
   LEGACY UF – HÅLLBARHET
========================================== */

#sustainabilityPage {
    background: #E9EAEC;
    min-height: 100vh;
}

/* SIDHUVUD */

.sustainability-page-header {
    width: 90%;
    margin: 0 auto;
    padding: 55px 0 0;
}

.sustainability-page-header h1 {
    color: #1558ed;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 22px;
}

.sustainability-page-header p {
    color: #171717;
    font-size: 21px;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 0 38px;
}

.sustainability-header-line {
    width: 78%;
    height: 4px;
    background: #1558ed;

    transform: scaleX(0);
    transform-origin: left;
}

/* INNEHÅLL */

.sustainability-content {
    width: 90%;
    margin: 0 auto;
    padding: 115px 0 120px;
}

/* INTRO */

.sustainability-intro {
    max-width: 850px;
    margin-bottom: 75px;
}

.sustainability-label {
    display: inline-block;
    color: #1558ed;
    background: #e7efff;
    border-radius: 25px;

    padding: 7px 14px;
    margin-bottom: 18px;

    font-size: 13px;
    font-weight: 700;
}

.sustainability-intro h2 {
    color: #1558ed;
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 18px;
}

.sustainability-intro > p {
    color: #26364e;
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   TRE HÅLLBARHETSOMRÅDEN
========================================== */

.sustainability-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;

    margin-bottom: 100px;
}

.sustainability-card {
    position: relative;
    overflow: hidden;

    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e1e6ee;

    padding: 40px 35px;

    min-height: 480px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sustainability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(20, 50, 90, 0.08);
}

/* SIFFRAN I BAKGRUNDEN */

.sustainability-number {
    position: absolute;
    top: 20px;
    right: 25px;

    color: #edf2f9;
    font-size: 65px;
    font-weight: 800;

    line-height: 1;
}

/* IKON */

.sustainability-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eaf2ff;
    color: #1558ed;

    border-radius: 50%;

    font-size: 24px;

    margin-bottom: 25px;
}

/* TYP */

.sustainability-type {
    display: block;

    color: #1558ed;
    font-size: 13px;
    font-weight: 700;

    margin-bottom: 12px;
}

/* RUBRIK */

.sustainability-card h2 {
    color: #17253c;
    font-size: 23px;
    line-height: 1.3;

    margin: 0 0 18px;
}

/* TEXT */

.sustainability-card > p {
    color: #536174;
    font-size: 14px;
    line-height: 1.7;

    margin: 0 0 28px;
}

/* PUNKTER */

.sustainability-point {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-top: 14px;
}

.sustainability-point > span {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #eaf2ff;
    color: #1558ed;

    font-size: 11px;
    font-weight: 700;
}

.sustainability-point p {
    color: #26364e;
    font-size: 13px;
    line-height: 1.5;

    margin: 1px 0 0;
}

/* ==========================================
   SMÅ SKILLNADER MELLAN DE TRE KORTEN
========================================== */

.ecological {
    border-top: 4px solid #1558ed;
}

.economic {
    border-top: 4px solid #3975e8;
}

.social {
    border-top: 4px solid #6b94e8;
}

/* ==========================================
   AVSLUTNING
========================================== */

.sustainability-future {
    background: #ffffff;
    border-radius: 18px;

    padding: 50px 55px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;
    gap: 70px;
}

.sustainability-future h2 {
    color: #1558ed;

    font-size: 30px;
    line-height: 1.3;

    margin: 0;
}

.sustainability-future > p {
    color: #26364e;

    font-size: 15px;
    line-height: 1.7;

    margin: 0;

    border-left: 2px solid #d7e4fb;
    padding-left: 45px;
}

/* ==========================================
   MOBIL / SURFPLATTA
========================================== */

@media (max-width: 950px) {

    .sustainability-three {
        grid-template-columns: 1fr;
    }

    .sustainability-card {
        min-height: auto;
    }

    .sustainability-future {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sustainability-future > p {
        border-left: none;
        border-top: 2px solid #d7e4fb;

        padding: 30px 0 0;
    }
}

@media (max-width: 600px) {

    .sustainability-page-header {
        width: auto;
        margin: 0 20px;
        padding-top: 35px;
    }

    .sustainability-page-header h1 {
        font-size: 36px;
    }

    .sustainability-page-header p {
        font-size: 17px;
    }

    .sustainability-header-line {
        width: 100%;
    }

    .sustainability-content {
        width: auto;
        margin: 0 20px;
        padding: 70px 0;
    }

    .sustainability-intro h2 {
        font-size: 27px;
    }

    .sustainability-intro > p {
        font-size: 15px;
    }

    .sustainability-card {
        padding: 32px 25px;
    }

    .sustainability-future {
        padding: 35px 25px;
    }

    .sustainability-future h2 {
        font-size: 25px;
    }
}
/* ==========================================
   HÅLLBARHET – FÄRGADE KORT
========================================== */

/* Dölj 01, 02 och 03 */
.sustainability-number {
    display: none;
}

/* Större text:
   Ekologisk / Ekonomisk / Social hållbarhet */
.sustainability-type {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Gemensamt för korten */
.sustainability-card {
    border: none;
    border-radius: 18px;
}

/* EKOLOGISK – GRÖN */
.sustainability-card.ecological {
    background: #e8f5e9;
    border-top: 4px solid #4caf67;
}

.sustainability-card.ecological .sustainability-type {
    color: #25833c;
}

.sustainability-card.ecological .sustainability-icon,
.sustainability-card.ecological .sustainability-point > span {
    background: #d2ecd7;
    color: #25833c;
}

/* EKONOMISK – GUL */
.sustainability-card.economic {
    background: #fff7d9;
    border-top: 4px solid #e5b82f;
}

.sustainability-card.economic .sustainability-type {
    color: #9b7410;
}

.sustainability-card.economic .sustainability-icon,
.sustainability-card.economic .sustainability-point > span {
    background: #f8e9af;
    color: #9b7410;
}

/* SOCIAL – RÖD */
.sustainability-card.social {
    background: #fde9e9;
    border-top: 4px solid #dc6262;
}

.sustainability-card.social .sustainability-type {
    color: #b74444;
}

.sustainability-card.social .sustainability-icon,
.sustainability-card.social .sustainability-point > span {
    background: #f5d1d1;
    color: #b74444;
}
/* HÅLLBARHET – KORTARE KORT */

.sustainability-card {
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 30px;
}

.sustainability-card > p {
    margin-bottom: 20px;
}

.sustainability-point {
    margin-top: 10px;
}
/* HÅLLBARHET – BLÅTT STRECK UNDER INTROTEXTEN */

.sustainability-header-line {
    width: 75%;
    height: 4px;
    background: #1558ed;
    margin-top: 30px;

    transform: scaleX(1);
    transform-origin: left;
}
/* HÅLLBARHET – GRÖN ETIKETT */

.sustainability-intro .sustainability-label {
    color: #25833c;
    background: #e8f5e9;
}
/* ==========================================
   HÅLLBARHET – ANIMATIONER
========================================== */

/* Rubriken längst upp */

#sustainabilityPage.animate .sustainability-page-header h1,
#sustainabilityPage.animate .sustainability-page-header p {
    animation: sustainabilityFade 0.7s ease both;
}

#sustainabilityPage.animate .sustainability-page-header p {
    animation-delay: 0.1s;
}


/* BLÅ STRECKET – VÄXER FRÅN VÄNSTER */

#sustainabilityPage .sustainability-header-line {
    transform: scaleX(0);
    transform-origin: left;
}

#sustainabilityPage.animate .sustainability-header-line {
    animation: sustainabilityLine 1s ease forwards;
    animation-delay: 0.25s;
}

@keyframes sustainabilityLine {

    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }

}


/* INNEHÅLLET KOMMER UPP MJUKT */

#sustainabilityPage .sustainability-intro,
#sustainabilityPage .sustainability-card,
#sustainabilityPage .sustainability-future {
    opacity: 0;
    transform: translateY(45px);

    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

#sustainabilityPage .show-sustainability {
    opacity: 1;
    transform: translateY(0);
}


/* DE TRE KORTEN KOMMER EFTER VARANDRA */

#sustainabilityPage .ecological {
    transition-delay: 0s;
}

#sustainabilityPage .economic {
    transition-delay: 0.15s;
}

#sustainabilityPage .social {
    transition-delay: 0.30s;
}


/* INTROANIMATION */

@keyframes sustainabilityFade {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* MINSKAD RÖRELSE */

@media (prefers-reduced-motion: reduce) {

    #sustainabilityPage .sustainability-intro,
    #sustainabilityPage .sustainability-card,
    #sustainabilityPage .sustainability-future {
        opacity: 1;
        transform: none;
        transition: none;
    }

    #sustainabilityPage .sustainability-header-line {
        transform: scaleX(1);
    }
}
/* ==========================================
   LEGACY UF – KONTAKT
========================================== */

#contactPage {
    background: #f3f5f9;
    min-height: 100vh;
}

/* SIDHUVUD */

.contact-page-header {
    width: 90%;
    margin: 0 auto;
    padding: 55px 0 0;
}

.contact-page-header h1 {
    color: #1558ed;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 22px;
}

.contact-page-header p {
    color: #171717;
    font-size: 21px;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 0 38px;
}

.contact-header-line {
    width: 78%;
    height: 4px;
    background: #1558ed;
}

/* HUVUDINNEHÅLL */

.contact-content {
    width: 90%;
    margin: 0 auto;
    padding: 115px 0 120px;
}

.contact-main {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
    align-items: center;
}

/* VÄNSTER SIDA */

.contact-info {
    max-width: 540px;
}

.contact-label {
    display: inline-block;
    background: #e7efff;
    color: #1558ed;
    border-radius: 25px;

    padding: 7px 14px;
    margin-bottom: 20px;

    font-size: 13px;
    font-weight: 700;
}

.contact-info h2 {
    color: #1558ed;
    font-size: 36px;
    line-height: 1.25;
    margin: 0 0 22px;
}

.contact-intro {
    color: #26364e;
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 45px;
}

/* KONTAKTUPPGIFTER */

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #e7efff;
    color: #1558ed;

    border-radius: 50%;
    font-size: 20px;
}

.contact-detail span {
    color: #17253c;
    font-size: 14px;
    font-weight: 700;
}

.contact-detail p {
    color: #536174;
    font-size: 14px;
    margin: 4px 0 0;
}

/* ==========================================
   FORMULÄRET
========================================== */

.contact-form-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 45px 50px;
    border: 1px solid #e1e6ee;
}

.contact-form-small {
    color: #1558ed;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.contact-form-box h2 {
    color: #17253c;
    font-size: 28px;
    margin: 10px 0 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;

    color: #26364e;
    font-size: 13px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;

    background: #f7f9fc;
    border: 1px solid #dce3ed;
    border-radius: 9px;

    padding: 13px 14px;

    color: #17253c;
    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 125px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1558ed;
    box-shadow: 0 0 0 3px rgba(21, 88, 237, 0.08);
}

/* SKICKA-KNAPP */

.contact-submit {
    align-self: flex-start;

    display: flex;
    align-items: center;
    gap: 18px;

    margin-top: 5px;
    padding: 13px 20px;

    background: #1558ed;
    color: #ffffff;

    border: none;
    border-radius: 9px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.contact-submit:hover {
    background: #0f4bd0;
    transform: translateY(-2px);
}

.contact-submit span {
    font-size: 19px;
}

/* ==========================================
   NEDRE SEKTION
========================================== */

.contact-bottom {
    margin-top: 110px;

    background: #ffffff;
    border-radius: 18px;

    padding: 45px 50px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;

    align-items: center;
}

.contact-bottom h2 {
    color: #1558ed;
    font-size: 29px;
    line-height: 1.3;
    margin: 0;
}

.contact-bottom > p {
    color: #26364e;
    font-size: 15px;
    line-height: 1.7;

    margin: 0;
    padding-left: 45px;

    border-left: 2px solid #d7e4fb;
}

/* ==========================================
   RESPONSIV
========================================== */

@media (max-width: 900px) {
    .contact-main {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-info {
        max-width: none;
    }

    .contact-bottom {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-bottom > p {
        border-left: none;
        border-top: 2px solid #d7e4fb;
        padding: 30px 0 0;
    }
}

@media (max-width: 600px) {
    .contact-page-header {
        width: auto;
        margin: 0 20px;
        padding-top: 35px;
    }

    .contact-page-header h1 {
        font-size: 36px;
    }

    .contact-page-header p {
        font-size: 17px;
    }

    .contact-header-line {
        width: 100%;
    }

    .contact-content {
        width: auto;
        margin: 0 20px;
        padding: 70px 0;
    }

    .contact-info h2 {
        font-size: 28px;
    }

    .contact-form-box {
        padding: 30px 24px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-bottom {
        margin-top: 65px;
        padding: 30px 25px;
    }

    .contact-bottom h2 {
        font-size: 25px;
    }
}
/* KONTAKT – SOCIALA MEDIER */

.contact-socials {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #dce3ed;
}

.contact-socials > p {
    color: #17253c;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 15px;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 13px;

    background: #ffffff;
    border: 1px solid #dce3ed;
    border-radius: 9px;

    color: #26364e;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.contact-social-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.contact-social-link:hover {
    transform: translateY(-2px);
    border-color: #1558ed;
}
/* ==========================================
   OM OSS + HÅLLBARHET
   SAMMA ANIMATION SOM "SÅ FUNGERAR DET"
========================================== */


/* ---------- OM OSS: STARTLÄGE ---------- */

#aboutPage .about-page-header h1,
#aboutPage .about-page-header p {
    opacity: 0;
    transform: translateY(25px);
}

#aboutPage .about-header-line {
    transform: scaleX(0);
    transform-origin: left;
}


/* ---------- OM OSS: NÄR SIDAN ÖPPNAS ---------- */

#aboutPage.animate .about-page-header h1 {
    animation: legacyPageFade 0.7s ease forwards;
}

#aboutPage.animate .about-page-header p {
    animation: legacyPageFade 0.7s ease 0.12s forwards;
}

#aboutPage.animate .about-header-line {
    animation: legacyLineGrow 0.9s ease 0.25s forwards;
}


/* ---------- OM OSS: BOXAR ---------- */

#aboutPage .about-intro,
#aboutPage .about-story,
#aboutPage .about-team {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

#aboutPage .about-intro.show-about-card,
#aboutPage .about-story.show-about-card,
#aboutPage .about-team.show-about-card {
    opacity: 1;
    transform: translateY(0);
}


/* TA BORT GAMMAL SIDLEDES-ANIMATION */

#aboutPage .about-person {
    opacity: 1;
    transform: none;
    transition: none;
}


/* ==========================================
   HÅLLBARHET
========================================== */


/* ---------- STARTLÄGE ---------- */

#sustainabilityPage .sustainability-page-header h1,
#sustainabilityPage .sustainability-page-header p {
    opacity: 0;
    transform: translateY(25px);
}

#sustainabilityPage .sustainability-header-line {
    transform: scaleX(0);
    transform-origin: left;
}


/* ---------- NÄR SIDAN ÖPPNAS ---------- */

#sustainabilityPage.animate .sustainability-page-header h1 {
    animation: legacyPageFade 0.7s ease forwards;
}

#sustainabilityPage.animate .sustainability-page-header p {
    animation: legacyPageFade 0.7s ease 0.12s forwards;
}

#sustainabilityPage.animate .sustainability-header-line {
    animation: legacyLineGrow 0.9s ease 0.25s forwards;
}


/* ---------- INNEHÅLL ---------- */

#sustainabilityPage .sustainability-intro,
#sustainabilityPage .sustainability-card,
#sustainabilityPage .sustainability-future {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

#sustainabilityPage .show-sustainability {
    opacity: 1;
    transform: translateY(0);
}


/* KORTEN KOMMER MJUKT EFTER VARANDRA */

#sustainabilityPage .ecological {
    transition-delay: 0s;
}

#sustainabilityPage .economic {
    transition-delay: 0.08s;
}

#sustainabilityPage .social {
    transition-delay: 0.16s;
}


/* ==========================================
   GEMENSAMMA KEYFRAMES
========================================== */

@keyframes legacyPageFade {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes legacyLineGrow {

    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}
/* LUGNARE ANIMATIONER – OM OSS + HÅLLBARHET */

/* Rubriker */
#aboutPage.animate .about-page-header h1,
#sustainabilityPage.animate .sustainability-page-header h1 {
    animation-duration: 1.1s;
}

/* Introtext */
#aboutPage.animate .about-page-header p,
#sustainabilityPage.animate .sustainability-page-header p {
    animation-duration: 1.1s;
    animation-delay: 0.15s;
}

/* Blå linjen */
#aboutPage.animate .about-header-line,
#sustainabilityPage.animate .sustainability-header-line {
    animation-duration: 1.4s;
    animation-delay: 0.3s;
}

/* Boxarna/innehållet */
#aboutPage .about-intro,
#aboutPage .about-story,
#aboutPage .about-team,
#sustainabilityPage .sustainability-intro,
#sustainabilityPage .sustainability-card,
#sustainabilityPage .sustainability-future {
    transition-duration: 1.1s;
}
/* ==========================================
   SAMMA SIDHUVUD PÅ ALLA HUVUDSIDOR
========================================== */

/* SAMMA BREDD + PLACERING */

.service-page-header,
.how-page-header,
.about-page-header,
.sustainability-page-header {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 55px 0 0;
    box-sizing: border-box;
}


/* SAMMA RUBRIK */

.service-page-header h1,
.how-page-header h1,
.about-page-header h1,
.sustainability-page-header h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 22px;
    color: #1558ed;
}


/* SAMMA TEXT UNDER RUBRIKEN */

.service-page-header p,
.how-page-header p,
.about-page-header p,
.sustainability-page-header p {
    font-size: 21px;
    line-height: 1.6;
    font-weight: 400;

    max-width: 900px;

    margin: 0 0 38px;
    color: #171717;
}


/* SAMMA BLÅ LINJE */

.service-header-line,
.how-header-line,
.about-header-line,
.sustainability-header-line {
    width: 78%;
    height: 4px;
    background: #1558ed;
    transform-origin: left;
}
/* FIX – OM OSS + HÅLLBARHET SAMMA SOM ÖVRIGA */

#aboutPage .about-page-header h1,
#sustainabilityPage .sustainability-page-header h1 {
    font-size: 48px !important;
    line-height: 1.15 !important;
}

#aboutPage .about-page-header p,
#sustainabilityPage .sustainability-page-header p {
    font-size: 21px !important;
    line-height: 1.6 !important;
}

/* SAMMA PLACERING */
#aboutPage .about-page-header,
#sustainabilityPage .sustainability-page-header {
    width: auto !important;
    max-width: none !important;

    margin-left: 5% !important;
    margin-right: 5% !important;

    padding-top: 55px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* SAMMA RUBRIKSTORLEK */
#aboutPage .about-page-header h1,
#sustainabilityPage .sustainability-page-header h1 {
    font-size: 48px !important;
    line-height: 1.15 !important;
    margin: 0 0 22px !important;
}


/* SAMMA TEXTSTORLEK UNDER RUBRIKEN */
#aboutPage .about-page-header p,
#sustainabilityPage .sustainability-page-header p {
    font-size: 21px !important;
    line-height: 1.6 !important;

    margin: 0 0 38px !important;

    max-width: none !important;
}


/* SAMMA LÄNGD PÅ BLÅ LINJEN */
#aboutPage .about-header-line,
#sustainabilityPage .sustainability-header-line {
    width: 44% !important;
    height: 4px !important;
}
/* ==========================================
   OM OSS + HÅLLBARHET
   EXAKT STORLEK SOM "SÅ FUNGERAR DET"
========================================== */

/* RUBRIK */
#aboutPage .about-page-header h1,
#sustainabilityPage .sustainability-page-header h1 {
    font-size: 40px !important;
    font-weight: 550 !important;
    line-height: 1.05 !important;
    letter-spacing: 0.3px !important;
    margin: 0 0 25px 0 !important;
}


/* TEXT UNDER RUBRIKEN */
#aboutPage .about-page-header p,
#sustainabilityPage .sustainability-page-header p {
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: normal !important;
    margin: 0 0 35px 5px !important;
}


/* PLACERING */
#aboutPage .about-page-header,
#sustainabilityPage .sustainability-page-header {
    width: auto !important;
    max-width: none !important;

    margin: 0 !important;

    padding-top: 80px !important;
    padding-left: 5% !important;
    padding-right: 0 !important;

    box-sizing: border-box !important;
}


/* BLÅ LINJE */
#aboutPage .about-header-line,
#sustainabilityPage .sustainability-header-line {
    width: 900px !important;
    height: 3px !important;
    background: #0b5cff !important;
    transform-origin: left !important;
}
/* ==========================================
   KONTAKT – LAYOUT SOM REFERENSBILDEN
========================================== */

#contactPage {
    background: #E9EAEC !important;
    min-height: 100vh;
}


/* Dölj gamla headern och nederdelen */

#contactPage .contact-bottom {
    display: none !important;
}


/* HELA KONTAKTOMRÅDET */

#contactPage .contact-content {
    width: 100% !important;
    margin: 0 !important;

    padding: 55px 5% 70px !important;

    box-sizing: border-box;
}


/* TVÅ HALVOR */

#contactPage .contact-main {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;

    gap: 0 !important;

    align-items: stretch !important;

    width: 100% !important;
    min-height: 650px;
}


/* ==========================================
   VÄNSTER SIDA
========================================== */

#contactPage .contact-info {
    max-width: none !important;

    padding: 0 70px 25px 15px;

    box-sizing: border-box;

    border-right: 1px solid #d9e0ea;
}


/* LITEN BLÅ ETIKETT */

#contactPage .contact-label {
    display: inline-block;

    color: #1558ed;
    background: #e7efff;

    border-radius: 25px;

    padding: 8px 15px;

    margin: 0 0 28px;

    font-size: 14px;
    font-weight: 700;
}


/* STORA RUBRIKEN */

#contactPage .contact-info h2 {
    color: #1558ed;

    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;

    margin: 0 0 32px;
}


/* INTROTEXT */

#contactPage .contact-intro {
    color: #17253c;

    font-size: 17px;
    line-height: 1.8;

    max-width: 600px;

    margin: 0 0 32px;
}


/* ==========================================
   KONTAKTUPPGIFTER
========================================== */

#contactPage .contact-details {
    display: flex;
    flex-direction: column;

    gap: 24px;
}


#contactPage .contact-detail {
    display: flex;
    align-items: center;

    gap: 20px;
}


#contactPage .contact-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e7efff;
    color: #1558ed;

    border-radius: 50%;

    font-size: 21px;
}


#contactPage .contact-detail span {
    color: #17253c;

    font-size: 15px;
    font-weight: 700;
}


#contactPage .contact-detail p {
    color: #536174;

    font-size: 14px;

    margin: 5px 0 0;
}


/* ==========================================
   SOCIALA MEDIER
========================================== */

#contactPage .contact-socials {
    margin-top: 28px !important;
    padding-top: 0 !important;

    border-top: none !important;
}


#contactPage .contact-socials > p {
    color: #17253c;

    font-size: 15px;
    font-weight: 700;

    margin: 0 0 16px;
}


#contactPage .contact-social-links {
    display: flex;

    gap: 12px;

    flex-wrap: nowrap;
}


#contactPage .contact-social-link {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 125px;

    padding: 10px 14px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #d7dee8;
    border-radius: 9px;

    color: #17253c;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}


#contactPage .contact-social-link img {
    width: 22px;
    height: 22px;

    object-fit: contain;
}


#contactPage .contact-social-link:hover {
    transform: translateY(-2px);
    border-color: #1558ed;
}


/* ==========================================
   TOM HÖGER SIDA
========================================== */

#contactPage .contact-empty-side {
    min-height: 100%;
}


/* ==========================================
   MOBIL
========================================== */

@media (max-width: 850px) {

    #contactPage .contact-main {
        grid-template-columns: 1fr !important;
    }

    #contactPage .contact-info {
        padding-right: 0;
        border-right: none;
    }

    #contactPage .contact-empty-side {
        display: none;
    }

    #contactPage .contact-social-links {
        flex-wrap: wrap;
    }
}
/* ==========================================
   KONTAKT – SIDHUVUD
   SAMMA SOM ÖVRIGA SIDOR
========================================== */

#contactPage .contact-page-header {
    display: block !important;

    width: auto !important;
    max-width: none !important;

    margin: 0 !important;

    padding-top: 80px !important;
    padding-left: 5% !important;
    padding-right: 0 !important;

    box-sizing: border-box !important;
}


/* RUBRIK */

#contactPage .contact-page-header h1 {
    color: #0b5cff !important;

    font-size: 40px !important;
    font-weight: 550 !important;
    line-height: 1.05 !important;
    letter-spacing: 0.3px !important;

    margin: 0 0 25px 0 !important;
}


/* TEXT UNDER RUBRIKEN */

#contactPage .contact-page-header p {
    color: #000 !important;

    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: normal !important;

    margin: 0 0 35px 5px !important;
    max-width: none !important;
}


/* BLÅ LINJE */

#contactPage .contact-header-line {
    display: block !important;

    width: 900px !important;
    height: 3px !important;

    background: #0b5cff !important;

    transform-origin: left !important;
}
/* KONTAKT – VISA FORMULÄRET I HÖGER SIDA */

#contactPage .contact-form-box {
    display: block !important;

    align-self: start;

    margin: 60 0 0 700px;
    padding: 40px 45px;

    max-width: 560px;

    background: #ffffff;

    border: 1px solid #e1e6ee;
    border-radius: 18px;

    box-sizing: border-box;
}
/* ==========================================
   FLYTTA KONTAKTFORMULÄRET FRITT
========================================== */

#contactPage .contact-main {
    position: relative !important;
}


/* HÖGRA KONTAKTRUTAN */

#contactPage .contact-form-box {
    position: absolute !important;

    /* ÄNDRA BARA DESSA TVÅ */
    top: 90px !important;
    left: 55% !important;

    /* RUTANS STORLEK */
    width: 500px !important;
    max-width: none !important;

    /* NOLLSTÄLL GAMLA PLACERINGAR */
    margin: 0 !important;

    background: #ffffff !important;
    border: 1px solid #e1e6ee !important;
    border-radius: 18px !important;
    padding: 40px 45px !important;

    box-sizing: border-box !important;
}
/* ==========================================
   FLYTTA HELA VÄNSTRA KONTAKTDELEN
========================================== */

#contactPage .contact-info {
    position: relative !important;

    /* ÄNDRA BARA DESSA TVÅ */
    top: 75px !important;
    left: 0px !important;
}
/* ==========================================
   KONTAKT – ANIMATIONER
========================================== */

/* RUBRIK + TEXT */

#contactPage .contact-page-header h1,
#contactPage .contact-page-header p {
    opacity: 0;
    transform: translateY(25px);
}

#contactPage.animate .contact-page-header h1 {
    animation: contactFade 1.1s ease forwards;
}

#contactPage.animate .contact-page-header p {
    animation: contactFade 1.1s ease 0.15s forwards;
}


/* BLÅ LINJEN */

#contactPage .contact-header-line {
    transform: scaleX(0);
    transform-origin: left;
}

#contactPage.animate .contact-header-line {
    animation: contactLine 1.4s ease 0.3s forwards;
}


/* VÄNSTERDEL + FORMULÄR */

#contactPage .contact-info,
#contactPage .contact-form-box {
    opacity: 0;

    transition:
        opacity 1.1s ease,
        transform 1.1s ease;
}

/* Behåller dina egna positioner för rutorna */
#contactPage .contact-info {
    transform: translateY(35px);
}

#contactPage .contact-form-box {
    transform: translateY(35px);
}

#contactPage .contact-info.show-contact,
#contactPage .contact-form-box.show-contact {
    opacity: 1;
    transform: translateY(0);
}


/* ANIMATIONER */

@keyframes contactFade {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contactLine {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}
/* ==========================================
   STARTSIDA – SCROLLANIMATION FIX
========================================== */

.hero .phone-info {
    opacity: 0;
    translate: -60px 0;

    transition:
        opacity 1.2s ease,
        translate 1.2s ease;
}

.hero .home-phone {
    opacity: 0;
    translate: 60px 0;

    transition:
        opacity 1.2s ease 0.15s,
        translate 1.2s ease 0.15s;
}


/* NÄR ANIMATIONEN STARTAR */

.hero .phone-info.show-hero,
.hero .home-phone.show-hero {
    opacity: 1;
    translate: 0 0;
}


/* TILLGÄNGLIGHET */

@media (prefers-reduced-motion: reduce) {
    .hero .phone-info,
    .hero .home-phone {
        opacity: 1;
        translate: 0 0;
        transition: none;
    }
}
/* EXTRA TEXT PÅ STARTSIDAN */

.home-extra-text {
    margin-top: 0px;
}

.home-extra-text h3 {
    color: #0b5cff;
    font-size: 30px;
    font-weight: 600;
    margin: 0 0 15px;
}

.home-extra-text p {
    color: #08267d;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    max-width: 650px;
}
/* NY FRISTÅENDE TEXT PÅ STARTSIDAN */

.home-new-section {
    position: absolute;
    left: 8%;
    top: 1400px;
    width: 900px;
    z-index: 5;
}

.home-new-section h2 {
    color: #0b5cff;
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 18px 0;
}

.home-new-section p {
    color: #08267d;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}
/* MER PLATS PÅ STARTSIDAN */
main {
 main {
    min-height: 0;
}
}
.home-new-section-two {
    margin-top: 200px;
}
/* =========================================================
   MANUELL FOOTER-POSITION
   + = NER
   - = UPP
   ========================================================= */

/* BLÅ LINJE UNDER "DETTA ÄR LEGACY" */

.home-legacy-line {
    width: 900px;
    height: 3px;
    background: #0b5cff;
    margin-top: 20px;
    margin-bottom: 25px;
}
/* MELLANRUM MELLAN DE TVÅ LEGACY-TEXTERNA */

.home-new-section-two {
    margin-top: 208px !important;
}
/* =========================================================
   SAMMA HEADER-POSITION SOM "SÅ FUNGERAR DET"
   Om oss + Hållbarhet + Kontakt
   ========================================================= */

#aboutPage .about-page-header,
#sustainabilityPage .sustainability-page-header,
#contactPage .contact-page-header {
    width: auto !important;
    max-width: none !important;

    margin: 0 !important;

    padding-top: 160px !important;
    padding-left: 5% !important;
    padding-right: 0 !important;

    box-sizing: border-box !important;

    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}


/* RUBRIKER */

#aboutPage .about-page-header h1,
#sustainabilityPage .sustainability-page-header h1,
#contactPage .contact-page-header h1 {
    font-size: 40px !important;
    font-weight: 550 !important;
    line-height: 1.05 !important;

    margin: 0 0 25px 0 !important;

    position: static !important;
}


/* UNDERTEXT */

#aboutPage .about-page-header p,
#sustainabilityPage .sustainability-page-header p,
#contactPage .contact-page-header p {
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: normal !important;

    margin: 0 0 35px 5px !important;

    position: static !important;
}


/* BLÅ LINJE */

#aboutPage .about-header-line,
#sustainabilityPage .sustainability-header-line,
#contactPage .contact-header-line {
    width: 900px !important;
    height: 3px !important;

    margin: 0 !important;

    background: #0b5cff !important;

    position: static !important;

    transform-origin: left !important;
}
/* =========================================================
   AUTOMATISK FOOTER PÅ ALLA SIDOR
   200px efter sidans sista innehåll
   ========================================================= */

/* ALLA FOOTERS */
#footer-home,
#footer-service,
#footer-how,
#footer-about,
#footer-sustainability,
#footer-contact {
    position: static !important;

    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;

    margin-top: 200px !important;
    margin-bottom: 0 !important;

    width: 100% !important;
    box-sizing: border-box !important;

    flex-shrink: 0 !important;
}


/* SIDORNA SKA AUTOMATISKT VÄXA MED INNEHÅLLET */

main,
#servicePage,
#howPage,
#aboutPage,
#sustainabilityPage,
#contactPage {
    height: auto !important;
    min-height: 100vh;
    padding-bottom: 0 !important;
    box-sizing: border-box;
}


/* FOOTERN SKA LIGGA I NORMALT DOKUMENTFLÖDE */

main > #footer-home,
#servicePage > #footer-service,
#howPage > #footer-how,
#aboutPage > #footer-about,
#sustainabilityPage > #footer-sustainability,
#contactPage > #footer-contact {
    display: flex;
}
/* Flytta ner footern på startsidan */
#footer-home {
    margin-top: 300px !important;
}
/* =========================================
   HÅLLBARHETSRUTOR PÅ STARTSIDAN
========================================= */

.home-sustainability {
    position: relative !important;
    display: block !important;

    width: 90% !important;
    max-width: none !important;

    margin: 1000px auto 120px !important;
    padding: 0 !important;

    clear: both !important;
}

.home-sustainability .sustainability-three {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;

    width: 100% !important;
    margin: 0 !important;
}

.home-sustainability .sustainability-card {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    min-height: 500px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}


/* MOBIL */

@media (max-width: 900px) {

    .home-sustainability .sustainability-three {
        grid-template-columns: 1fr !important;
    }

    .home-sustainability .sustainability-card {
        min-height: auto !important;
    }
}
/* Rubrik ovanför hållbarhetsrutorna */

.home-sustainability-header {
    width: 100%;
    margin-bottom: 55px;
}

.home-sustainability-header h2 {
    margin: 0 0 14px;

    color: #1558ed;

    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;
}

.home-sustainability-line {
    width: 78%;
    height: 4px;

    background: #1558ed;
}
/* =========================================
   BILD – DETTA ÄR LEGACY I PRAKTIKEN
========================================= */

/* =========================================
   TVÅ BILDER – LEGACY I PRAKTIKEN
========================================= */

.home-practice-images {
    position: absolute;

    top: 1800px;
    left: 8%;

    width: 84%;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.home-practice-image-card {
    height: 430px;

    overflow: hidden;

    border-radius: 18px;

    box-shadow: 0 18px 45px rgba(7, 27, 61, 0.12);
}

.home-practice-image-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}
/* ===== FÖRKORTA SIDAN TJÄNSTEN ===== */

#servicePage {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 0 !important;
}


/* Minska tomrummet före footern på Tjänsten */
#servicePage #footer-service {
    margin-top: -100px !important;
}
/* TA BORT TOMRUM UNDER FOOTERN PÅ TJÄNSTEN */
#servicePage {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#servicePage #footer-service {
    margin-bottom: -200px !important;
}
/* LEGACY I PRAKTIKEN – MJUK ANIMATION */

/* Rubriken */
.home-new-section h2 {
    animation: legacyFadeUp 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

/* Texten */
.home-new-section p,
.home-new-section-two p {
    animation: legacyFadeUp 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
}

/* Bilderna */
.home-practice-image-card {
    animation: legacyFadeUp 0.9s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

@keyframes legacyFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== ANIMATION – LEGACYS HÅLLBARHETSTÄNK ===== */

/* Rubriken tonas in och glider upp */
.home-sustainability-header h2 {
    animation: sustainabilityFadeUp 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

/* Blå strecket växer fram */
.home-sustainability-line {
    transform-origin: left;
    animation: sustainabilityLineGrow 1s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
}

/* Alla tre hållbarhetsrutorna */
.home-sustainability-card {
    animation: sustainabilityFadeUp 0.9s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

/* Mjuk insvepning */
@keyframes sustainabilityFadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Strecket växer från vänster */
@keyframes sustainabilityLineGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}
/* ===== KONTAKTFORMULÄR – NY DESIGN ===== */

/* Formulärets layout */
#contactPage .contact-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    width: 100% !important;
}

/* Namn och företag bredvid varandra */
#contactPage .contact-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 25px !important;
}

/* Etiketter ovanför fälten */
#contactPage .contact-form label {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1c2a43 !important;
}

/* Alla inmatningsfält */
#contactPage .contact-form input,
#contactPage .contact-form textarea {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;

    padding: 17px 20px !important;
    border: 1px solid #d7e0ee !important;
    border-radius: 13px !important;

    background: #f6f8fc !important;
    color: #1c2a43 !important;

    font-family: Arial, sans-serif !important;
    font-size: 16px !important;

    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

/* Större meddelanderuta */
#contactPage .contact-form textarea {
    min-height: 170px !important;
    resize: vertical !important;
}

/* När man klickar i ett fält */
#contactPage .contact-form input:focus,
#contactPage .contact-form textarea:focus {
    border-color: #0b5cff !important;
    box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.12) !important;
}

/* Skicka-knappen */
#contactPage .contact-submit {
    align-self: flex-start !important;

    background: #0b5cff !important;
    color: white !important;
    border: none !important;
    border-radius: 13px !important;

    padding: 18px 28px !important;
    font-size: 17px !important;
    font-weight: 700 !important;

    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
}

/* Mobilanpassning */
@media (max-width: 650px) {
    #contactPage .contact-form-row {
        grid-template-columns: 1fr !important;
    }

    #contactPage .contact-submit {
        width: 100% !important;
        justify-content: center !important;
    }
}
#contactPage .contact-form input {
    background: red !important;
}
/* ===== SÖMLÖST RULLANDE TEXT ===== */

.legacy-ticker-track {
    display: flex;
    width: max-content;
    gap: 0;
    animation: legacyTickerLoop 20s linear infinite;
}

.legacy-ticker-group {
    display: flex;
    flex-shrink: 0;
    white-space: nowrap;
}

.legacy-ticker-group span {
    display: block;
    padding-right: 60px;

    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes legacyTickerLoop {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}
/* FLYTTA FOOTERN UNDER SÅ FUNGERAR DET */
#footer-how {
    margin-top: 600px !important;
}
/* SÅ FUNGERAR DET – JUSTERA FOOTERN */
#footer-how {
    position: static !important;

    margin-top: 20px !important;   /* UPP / NER */
    margin-bottom: 0px !important;

    transform: translateX(0px) !important; /* SIDLED */
}

/* TA BORT EXTRA UTRYMME UNDER SIDAN */
#howPage {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
/* TA BORT GAMLA PROFILSYMBOLEN */
.about-avatar::before,
.about-avatar::after {
    content: none !important;
    display: none !important;
}

/* VISA RIKTIGA PROFILBILDER */
.about-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent !important;
}

.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* ==================================
   TEAMET – SAMMA NIVÅ + STÖRRE BILDER
================================== */

/* Alla fyra kort */
.about-team-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    align-items: stretch !important;
    gap: 18px !important;
}

/* Innehållet i varje kort */
.about-person {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    padding: 30px 15px !important;
    text-align: center !important;
    height: auto !important;
}

/* Större profilbilder */
.about-person .about-avatar {
    width: 140px !important;
    height: 140px !important;

    min-width: 140px !important;
    min-height: 140px !important;

    margin: 0 auto 18px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

/* Bilderna fyller cirklarna */
.about-person .about-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Ta bort gamla grå profilsymbolen */
.about-person .about-avatar::before,
.about-person .about-avatar::after {
    content: none !important;
    display: none !important;
}

/* Namnen på samma nivå */
.about-person h3 {
    margin: 0 0 10px !important;
}

/* Roller */
.about-person > span {
    margin: 0 0 15px !important;
}

/* Beskrivningar */
.about-person > p {
    margin: 0 !important;
    line-height: 1.5 !important;
}
/* =====================================
   TEAMET – ALLA PÅ EXAKT SAMMA NIVÅ
===================================== */

/* Nollställ gamla förflyttningar */
.about-team-grid .about-person,
.about-team-grid .about-avatar,
.about-team-grid .about-person h3,
.about-team-grid .about-person > span,
.about-team-grid .about-person > p {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    translate: none !important;
}

/* Fyra jämna kort */
.about-team-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

/* Alla kort börjar uppifrån */
.about-team-grid .about-person {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 30px 15px !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Alla bilder på samma höjd */
.about-team-grid .about-avatar {
    width: 180px !important;
    height: 180px !important;
    min-width: 180px !important;
    min-height: 180px !important;
    margin: 0 0 20px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.about-team-grid .about-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Alla namn på samma höjd */
.about-team-grid .about-person h3 {
    margin: 0 0 12px !important;
}

/* Alla roller på samma höjd */
.about-team-grid .about-person > span {
    margin: 0 0 20px !important;
}

/* Alla beskrivningar på samma höjd */
.about-team-grid .about-person > p {
    margin: 0 !important;
    line-height: 1.5 !important;
}
/* ===== LEGACY UF – MOBIL ===== */
@media (max-width: 768px) {

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

  body {
    width: 100%;
    overflow-x: hidden;
  }

  /* NAVBAR */
  .navbar,
  .navbar.scrolled {
    height: 70px;
  }

  .nav-container,
  .navbar.scrolled .nav-container {
    height: 70px;
    padding: 0 16px;
  }

  .logo {
    margin-right: 0;
  }

  .nav-links {
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: auto;
    max-width: calc(100% - 65px);
  }

  .nav-links a,
  .navbar.scrolled .nav-links a {
    font-size: 12px;
  }

  .nav-links::after {
    display: none;
  }

  /* STARTSIDAN */
  .hero {
    min-height: 0;
    padding: 110px 20px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .hero-text {
    order: 1;
    transform: none;
    width: 100%;
    text-align: center;
  }

  .hero-text h1,
  .hero h1 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.15;
  }

  .hero-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    order: 2;
  }

  .hero-image img {
    width: 100%;
    height: auto;
  }

  .hero-buttons {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
  }

  .phone-info {
    order: 4;
    position: static;
    transform: none;
    width: 100%;
    text-align: center;
  }

  .phone-info h2 {
    font-size: 30px;
  }

  .hero .demo-text {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
  }

  .try-text {
    justify-content: center;
  }

  .home-phone {
    order: 5;
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    flex-shrink: 0;
  }

  /* INFORMATION */
  .home-new-section,
  .home-new-section-two {
    width: 100%;
    max-width: 100%;
    padding: 35px 20px;
  }

  .home-new-section h2 {
    font-size: 28px;
  }

  .home-practice-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .home-practice-image-card {
    width: 100%;
    max-width: 100%;
  }

  .home-practice-image-card img {
    max-width: 100%;
    height: auto;
  }

  /* HÅLLBARHET */
  .home-sustainability {
    padding: 50px 20px;
  }

  .home-sustainability-header h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .home-sustainability .sustainability-three {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .home-sustainability .sustainability-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* TJÄNSTEN */
  .service-process {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .process-box {
    width: 100%;
    max-width: 450px;
  }

  .process-arrow {
    transform: rotate(90deg);
  }

  /* OM OSS */
  .about-team-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .about-team-grid .about-person {
    width: 100%;
  }

  /* BILDER OCH VIDEO */
  img, video {
    max-width: 100%;
  }
}

/* =====================================
   HEADER - ENDAST TJÄNSTEN-SIDAN
===================================== */

.tjansten-page .header {
  height: 75px;
}

.tjansten-page .header .logo {
  width: auto;
  height: 60px;
  max-width: 130px;
  object-fit: contain;
}

.tjansten-page .header.scrolled {
  height: 48px;
}

.tjansten-page .header.scrolled .logo {
  height: 40px;
}

/* Hamburgermenyn */

.tjansten-page .hamburger {
  flex-shrink: 0;
  transform: scale(0.85);
}

.tjansten-page .header.scrolled .hamburger {
  transform: scale(0.65);
}

/* LOGGA IN – LEGACY UF */

.navbar-login-button {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 23px;
    min-height: 42px;

    background: #1769ff;
    color: #ffffff;

    border: 1px solid #1769ff;
    border-radius: 10px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;

    cursor: pointer;

    box-shadow: 0 3px 10px rgba(23, 105, 255, 0.16);

    transition:
        padding 0.25s ease,
        min-height 0.25s ease,
        font-size 0.25s ease,
        border-radius 0.25s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.navbar-login-button:hover {
    background: #0054df;
    box-shadow: 0 5px 14px rgba(23, 105, 255, 0.24);
    transform: translateY(-1px);
}

.navbar-login-button:active {
    transform: translateY(0);
}

.navbar-login-button:focus-visible {
    outline: 3px solid #8bb5ff;
    outline-offset: 3px;
}

/* När headern krymper vid scrollning */
.navbar.scrolled .navbar-login-button,
.navbar.shrink .navbar-login-button,
.navbar.small .navbar-login-button {
    padding: 7px 16px;
    min-height: 34px;
    font-size: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(23, 105, 255, 0.12);
}

/* Mindre skärmar */
@media (max-width: 768px) {
    .navbar-login-button {
        padding: 8px 14px;
        min-height: 36px;
        font-size: 12px;
        border-radius: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-login-button {
        transition: none;
    }
}

/* FÖRETAGSINLOGGNING */

.company-login-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 18, 38, 0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.company-login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 35px;
    background: white;
    border-radius: 16px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.company-login-card h2 {
    color: #14233d;
    margin-top: 0;
}

.company-login-card p {
    color: #667085;
    line-height: 1.5;
}

.company-login-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.company-login-card label {
    font-size: 14px;
    font-weight: 600;
}

.company-login-card input {
    width: 100%;
    padding: 13px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
}

.company-login-submit {
    padding: 14px;
    background: #1458d4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.company-login-close {
    position: absolute;
    right: 15px;
    top: 12px;
    background: none;
    border: none;
    color: #667085;
    font-size: 28px;
    cursor: pointer;
}

/* LEGACY UF – FÖRETAGSPORTAL */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #142b4f;
    background: #f3f6fc;
}

/* TOPPMENY */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 5%;
    background: white;
    box-shadow: 0 2px 14px rgba(20, 43, 79, 0.06);
}

header h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1558d6;
}

header button,
button {
    border: none;
    border-radius: 9px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    background: #eaf1ff;
    color: #1558d6;
    transition: 0.2s;
}

button:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

#logoutButton,
#addCompanyMachine {
    background: #1558d6;
    color: white;
}

/* SIDANS INNEHÅLL */

main {
    width: min(1100px, 92%);
    margin: 60px auto;
}

#companyName {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
}

main > p {
    color: #7587a1;
    line-height: 1.6;
}

/* MASKINKORT */

#machineList {
    margin-top: 30px;
    background: white;
    border-radius: 17px;
    padding: 26px;
    box-shadow: 0 12px 35px rgba(30, 58, 100, 0.06);
}

#machineList > div {
    background: white;
    border: 1px solid #e8edf5 !important;
    border-radius: 12px;
    padding: 20px !important;
    margin: 12px 0;
}

#machineList h2 {
    font-size: 24px;
}

#machineList h3 {
    font-size: 17px;
    margin-top: 0;
    color: #142b4f;
}

#machineList p {
    color: #7587a1;
}

/* KNAPPAR I LISTOR */

#machineList button {
    margin-top: 8px;
    margin-right: 8px;
}

#machineList button:first-of-type {
    background: #eaf1ff;
    color: #1558d6;
}

/* MOBILANPASSNING */

@media (max-width: 700px) {
    header {
        padding: 15px 20px;
    }

    header h1 {
        font-size: 13px;
    }

    main {
        margin: 30px auto;
    }

    #machineList {
        padding: 16px;
    }

    #machineList > div {
        padding: 15px !important;
    }

    #machineList button {
        width: 100%;
        margin-right: 0;
    }
}
/* Lagerbilden fyller hela skärmens bredd */
.hero {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
}/* Lagerbild – full bredd och lite högre upp */
.hero {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    margin-top: -40px;
}
/* Låt texten och mobilen visas utan att kapas */
.hero {
    overflow: visible;
    min-height: 1400px;
}
/* Låt sidfoten fylla hela sidans bredd */
footer {
    width: 110%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}
/* ===================================
   FLYTTA MENYN ÅT HÖGER
   =================================== */

@media (min-width: 900px) {
    .navbar .nav-links {
        position: relative;
        left: -80px;
    }
}

/* ==========================================
   LEGACY UF – FÖRETAGSPORTAL
   Minimalistisk design
========================================== */

:root {
    --blue: #1458d4;
    --blue-hover: #1047ad;
    --dark: #172b4d;
    --gray: #667085;
    --background: #f4f7fb;
    --border: #e8edf4;
    --white: #ffffff;
    --red: #e23b49;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--dark);
}

/* ==========================================
   HEADER
========================================== */

header {
    width: 100%;
    min-height: 82px;
    padding: 20px 35px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.brand {
    color: var(--blue);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ==========================================
   KNAPPAR
========================================== */

button {
    padding: 12px 18px;

    border: none;
    border-radius: 8px;

    background: var(--blue);
    color: var(--white);

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
    background: var(--blue-hover);
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.55;
    cursor: wait;
}

button.danger {
    background: var(--red);
}

button.danger:hover {
    background: #bf2633;
}

#logoutButton {
    white-space: nowrap;
}

/* ==========================================
   HUVUDINNEHÅLL
========================================== */

main {
    width: 100%;
    max-width: 1100px;
    margin: 45px auto;
    padding: 0 20px;
}

main h1 {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.6px;
}

main > p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.6;
}

/* ==========================================
   VITT KORT
========================================== */

.card {
    margin-top: 25px;
    padding: 30px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;

    margin-bottom: 20px;
}

.card-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

/* ==========================================
   SÖKFÄLT
========================================== */

.search-input {
    width: 260px;
    max-width: 100%;

    padding: 12px 15px;

    border: 1px solid #dce3ed;
    border-radius: 8px;
    outline: none;

    background: #fafbfd;
    color: var(--dark);
    font-family: inherit;
    font-size: 14px;

    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--blue);
    background: var(--white);
}

/* ==========================================
   MASKINLISTA
========================================== */

#machineList {
    width: 100%;
}

.machine-row {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.machine-row:last-child {
    border-bottom: none;
}

.machine-row h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.machine-row p {
    margin: 0 0 16px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================
   KNAPPAR UNDER MASKINERNA
========================================== */

.button-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.button-group button {
    margin: 0;
}

#addCompanyMachine {
    margin-top: 25px;
}

.back-button {
    margin-bottom: 20px;
}

/* ==========================================
   FILMER
========================================== */

.video-link {
    display: inline-block;
    margin: 10px 0 15px;

    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.video-link:hover {
    text-decoration: underline;
}

/* ==========================================
   MEDDELANDEN
========================================== */

#message {
    margin-top: 20px;
    color: var(--gray);
    font-size: 14px;
}

/* ==========================================
   MOBILANPASSNING
========================================== */

@media (max-width: 650px) {

    header {
        min-height: 70px;
        padding: 18px 20px;
    }

    .brand {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    #logoutButton {
        padding: 10px 14px;
        font-size: 12px;
    }

    main {
        margin: 30px auto;
        padding: 0 15px;
    }

    main h1 {
        font-size: 27px;
    }

    .card {
        padding: 20px;
        border-radius: 12px;
    }

    .card-header h2 {
        font-size: 21px;
    }

    .search-input {
        width: 100%;
    }

    .button-group {
        gap: 8px;
    }

    .button-group button {
        flex: 1 1 auto;
        font-size: 13px;
        padding: 11px 12px;
    }

    #addCompanyMachine {
        width: 100%;
    }
}

/* Dölj stängningskrysset vid Legacy-loggan */
.sidebar-close,
.close-sidebar,
.menu-close,
.logo-close {
    display: none !important;
}

/* ==========================================
   LEGACY + FÖRETAGSLOGGA
   ========================================== */

.portal-logos {
    display: flex;
    align-items: center;
    gap: 24px;
}

.legacy-portal-logo {
    width: 85px;
    height: auto;
    object-fit: contain;
}

.company-portal-logo {
    max-width: 160px;
    max-height: 75px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Dölj loggan när ingen bild finns */
.company-portal-logo[hidden] {
    display: none !important;
}

/* Ta bort det gamla X:et */
.logo-separator {
    display: none !important;
}

/* =====================================
   PRISER – LEGACY UF
===================================== */

.prices-section {
    padding: 60px 6%;
    background: #e9eaed;
    scroll-margin-top: 90px;
}

.prices-section h2 {
    color: #1764ff;
    font-size: 60px;
    font-weight: 700;
    margin: 0 0 28px;
}

.prices-section p {
    color: #111111;
    font-size: 27px;
    line-height: 1.6;
    margin: 0 0 45px;
    max-width: 1400px;
}

.prices-divider {
    height: 5px;
    width: 100%;
    background: #1764ff;
}

/* MOBILANPASSNING */

@media (max-width: 768px) {
    .prices-section {
        padding: 45px 6%;
    }

    .prices-section h2 {
        font-size: 38px;
    }

    .prices-section p {
        font-size: 18px;
    }

    .prices-divider {
        height: 3px;
    }
}
#pricesPage {
    padding-top: 0 !important;
}

#pricesPage .contact-page-header,
#pricesPage .prices-page-header {
    padding-top: 110px !important;
    margin-top: 0 !important;
}
/* ===== PRISER – SAMMA DESIGN SOM HÅLLBARHET ===== */

#pricesPage {
    background: #E9EAEC !important;
    min-height: 100vh;
    padding: 0 !important;
}

/* Rubrik, text och streck */
#pricesPage .prices-page-header {
    width: 90%;
    margin: 0 auto !important;
    padding: 35px 0 0 !important;
}

/* Blå rubrik */
#pricesPage .prices-page-header h1 {
    color: #1558ed;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 22px;
}

/* Beskrivning */
#pricesPage .prices-page-header p {
    color: #171717;
    font-size: 21px;
    line-height: 1.6;
    max-width: none;
    margin: 0 0 38px;
}

/* Blått streck */
#pricesPage .prices-header-line {
    width: 75%;
    height: 4px;
    background: #1558ed;
    margin-top: 30px;
}

/* Mobil */
@media (max-width: 600px) {
    #pricesPage .prices-page-header {
        width: auto;
        margin: 0 20px !important;
        padding-top: 35px !important;
    }

    #pricesPage .prices-page-header h1 {
        font-size: 36px;
    }

    #pricesPage .prices-page-header p {
        font-size: 17px;
    }

    #pricesPage .prices-header-line {
        width: 100%;
    }
}/* ===== PRISER – SAMMA ANIMATION SOM OM OSS ===== */

/* Rubrik och text börjar osynliga */
#pricesPage .prices-page-header h1,
#pricesPage .prices-page-header p {
    opacity: 0;
    transform: translateY(25px);
}

/* Rubriken kommer fram */
#pricesPage.animate .prices-page-header h1 {
    animation: pricesFade 1.1s ease forwards;
}

/* Texten kommer fram lite efter */
#pricesPage.animate .prices-page-header p {
    animation: pricesFade 1.1s ease 0.15s forwards;
}

/* Blå linjen växer från vänster */
#pricesPage .prices-header-line {
    transform: scaleX(0);
    transform-origin: left;
}

#pricesPage.animate .prices-header-line {
    animation: pricesLine 1.4s ease 0.3s forwards;
}

/* Animation för rubrik och text */
@keyframes pricesFade {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation för blå linjen */
@keyframes pricesLine {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}
/* Flytta ner Priser lite */
#pricesPage .prices-page-header {
    transform: translateY(120px);
}
/* FÖRMINSKA ALLT PÅ PRISER-SIDAN */

#pricesPage .prices-page-header {
    zoom: 0.88;
}
/* FLYTTA PRISER ÅT VÄNSTER */

#pricesPage .prices-page-header {
    position: relative;
    left: 20px;
}
/* ===== STARTSIDANS FOOTER – FULL BREDD ===== */

#footer-home {
    width: 120% !important;
    max-width: none !important;
    margin-left: -10% !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    padding-left: 5% !important;
    padding-right: 5% !important;
}
/* MER UTRYMME UNDER PRISER */

#pricesPage {
    min-height: 120vh !important;
    padding-bottom: 400px !important;
    box-sizing: border-box;
}

/* =========================================
   LEGACY UF – PRISER / MJUKVARA
   ========================================= */

#pricesPage {
  min-height: 100vh !important;
  padding: 0 0 100px !important;
  background: #e9eaec !important;
  overflow-x: clip;
}

#pricesPage .legacy-pricing {
  max-width: 1240px;
  margin: 0 auto;
  padding: 125px 28px 55px;
}

#pricesPage .prices-page-header {
  position: static !important;
  text-align: center;
  margin: 0 auto 54px !important;
  max-width: 720px;
  padding: 0 !important;
}

#pricesPage .legacy-pricing-eyebrow {
  color: #9b7a40;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 800;
  margin: 0 0 14px;
}

#pricesPage .prices-page-header h1 {
  font-size: clamp(42px, 6vw, 68px);
  color: #1558ed;
  margin: 0 0 12px;
  letter-spacing: -1.5px;
}

#pricesPage .prices-page-header p:not(.legacy-pricing-eyebrow) {
  color: #17253c;
  line-height: 1.7;
  font-size: 17px;
}

#pricesPage .prices-header-line {
  width: 88px !important;
  height: 3px;
  margin: 23px auto 0;
  background: linear-gradient(
    90deg,
    #b77a42,
    #d9bd74
  );
}

/* TRE KORT BREDVID VARANDRA */

#pricesPage .legacy-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* GRUNDSTIL FÖR KORTEN */

#pricesPage .legacy-plan {
  --metal: #b67b4c;
  --metal-light: #f3e4d7;

  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 38px 30px 30px;

  background: #ffffff;
  border: 1px solid #e5e8ef;
  border-top: 5px solid var(--metal);
  border-radius: 20px;

  box-shadow: 0 14px 45px rgba(17, 33, 58, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

#pricesPage .legacy-plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(17, 33, 58, 0.13);
}

/* SILVER */

#pricesPage .legacy-plan-premium {
  --metal: #8d9ba9;
  --metal-light: #e9edf1;
}

/* GULD */

#pricesPage .legacy-plan-exclusive {
  --metal: #c7a044;
  --metal-light: #faf0d0;
}

/* IKONER */

#pricesPage .legacy-plan-medal {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--metal-light);
  color: var(--metal);
  font-size: 29px;
  margin-bottom: 23px;
}

/* TEXT */

#pricesPage .legacy-plan-level {
  margin: 0 0 7px;
  color: var(--metal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.4px;
}

#pricesPage .legacy-plan h2 {
  margin: 0 0 12px;
  color: #18283e;
  font-size: 32px;
}

#pricesPage .legacy-plan-description {
  margin: 0;
  min-height: 52px;
  line-height: 1.65;
  color: #657183;
  font-size: 15px;
}

#pricesPage .legacy-plan-divider {
  height: 1px;
  background: #e9edf2;
  margin: 26px 0;
}

/* FUNKTIONSLISTA */

#pricesPage .legacy-plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 18px;
}

#pricesPage .legacy-plan li {
  position: relative;
  padding-left: 29px;
  color: #304056;
  line-height: 1.5;
  font-size: 14px;
}

#pricesPage .legacy-plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--metal);
  font-weight: 800;
}

/* KNAPPAR */

#pricesPage .legacy-plan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 48px;
  border-radius: 10px;
  background: #18283e;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s;
}

#pricesPage .legacy-plan-button:hover {
  background: #2c4464;
}

#pricesPage .legacy-pricing-note {
  margin: 30px auto 0;
  text-align: center;
  max-width: 700px;
  color: #647184;
  font-size: 13px;
  line-height: 1.7;
}

/* SURFPLATTA */

@media (max-width: 900px) {
  #pricesPage .legacy-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pricesPage .legacy-plan-exclusive {
    grid-column: 1 / -1;
    max-width: 450px;
    width: 100%;
    justify-self: center;
  }
}

/* MOBIL */

@media (max-width: 600px) {
  #pricesPage {
    padding-bottom: 45px !important;
  }

  #pricesPage .legacy-pricing {
    padding: 100px 17px 35px;
  }

  #pricesPage .prices-page-header {
    margin-bottom: 32px !important;
  }

  #pricesPage .prices-page-header h1 {
    font-size: 42px !important;
  }

  #pricesPage .prices-page-header p:not(.legacy-pricing-eyebrow) {
    font-size: 15px !important;
  }

  #pricesPage .legacy-pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  #pricesPage .legacy-plan {
    padding: 30px 24px 24px;
  }

  #pricesPage .legacy-plan-exclusive {
    grid-column: auto;
    max-width: none;
  }

  #pricesPage .legacy-plan-description {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #pricesPage .legacy-plan {
    transition: none;
  }
}

/* ===================================
   PRISER – MINDRE KORT + LÄNGRE NER
   =================================== */

/* Flytta ner korten */
#pricesPage .legacy-pricing-grid {
    max-width: 1050px;
    margin: 65px auto 0;
    gap: 20px;
}

/* Gör korten mindre */
#pricesPage .legacy-plan {
    padding: 28px 24px 24px;
}

/* Mindre ikoner */
#pricesPage .legacy-plan-medal {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 16px;
}

/* Mindre rubriker */
#pricesPage .legacy-plan h2 {
    font-size: 27px;
}

/* Lite mindre text */
#pricesPage .legacy-plan li {
    font-size: 13px;
}

/* Mobilanpassning */
@media (max-width: 600px) {
    #pricesPage .legacy-pricing-grid {
        max-width: 380px;
        margin: 40px auto 0;
        gap: 18px;
    }

    #pricesPage .legacy-plan {
        padding: 24px 20px;
    }
}

/* VISA RUBRIKEN PÅ PRISER-SIDAN */

#pricesPage .legacy-pricing {
    padding-top: 170px !important;
}

#pricesPage .prices-page-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#pricesPage .prices-page-header h1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* MOBIL */
@media (max-width: 600px) {
    #pricesPage .legacy-pricing {
        padding-top: 125px !important;
    }
}

/* =====================================
   PRISER – FLYTTA UPP RUBRIKEN
   ===================================== */

/* Minska tomrummet över rubriken */
#pricesPage .legacy-pricing {
    padding-top: 45px !important;
}

/* Placera rubriken högre upp */
#pricesPage .prices-page-header {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
}

/* Behåll avstånd mellan rubrik och kort */
#pricesPage .legacy-pricing-grid {
    margin-top: 75px !important;
}

/* MOBIL */
@media (max-width: 600px) {
    #pricesPage .legacy-pricing {
        padding-top: 35px !important;
    }

    #pricesPage .legacy-pricing-grid {
        margin-top: 45px !important;
    }
}

/* ÖVRE RUBRIKEN PÅ PRISER-SIDAN */

#pricesPage .legacy-prices-intro {
    max-width: 1240px;
    margin: 0 auto;
    padding: 100px 28px 0;
    text-align: left;
}

#pricesPage .legacy-prices-intro h1 {
    color: #1558ed;
    font-size: 52px;
    font-weight: 700;
    margin: 0 0 22px;
}

#pricesPage .legacy-prices-intro p {
    color: #222;
    font-size: 22px;
    line-height: 1.6;
    margin: 0 0 32px;
}

#pricesPage .legacy-prices-intro-line {
    width: 100%;
    height: 4px;
    background: #1558ed;
}

/* MJUKVARA-SEKTIONEN UNDER */
#pricesPage .legacy-pricing {
    padding-top: 65px !important;
}

/* MOBIL */
@media (max-width: 600px) {
    #pricesPage .legacy-prices-intro {
        padding: 100px 20px 0;
    }

    #pricesPage .legacy-prices-intro h1 {
        font-size: 38px;
    }

    #pricesPage .legacy-prices-intro p {
        font-size: 16px;
    }

    #pricesPage .legacy-pricing {
        padding-top: 45px !important;
    }
}

/* PRISER – EXAKT SAMMA SIDHUVUD SOM HÅLLBARHET */

#pricesPage .sustainability-page-header {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;

    padding-top: 80px !important;
    padding-left: 5% !important;
    padding-right: 0 !important;

    box-sizing: border-box !important;
}

#pricesPage .sustainability-page-header h1 {
    font-size: 40px !important;
    font-weight: 550 !important;
    line-height: 1.05 !important;
    letter-spacing: 0.3px !important;
    margin: 0 0 25px 0 !important;
    color: #1558ed !important;
}

#pricesPage .sustainability-page-header p {
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: normal !important;
    margin: 0 0 35px 5px !important;
    color: #222 !important;
}

#pricesPage .sustainability-header-line {
    width: 900px !important;
    max-width: 90% !important;
    height: 3px !important;
    background: #0b5cff !important;
    transform-origin: left !important;
}

/* SAMMA ANIMATIONER SOM HÅLLBARHET */

#pricesPage.animate .sustainability-page-header h1 {
    animation: legacyPricesFadeUp 1.1s ease both;
}

#pricesPage.animate .sustainability-page-header p {
    animation: legacyPricesFadeUp 1.1s ease 0.15s both;
}

#pricesPage.animate .sustainability-header-line {
    animation: legacyPricesLineGrow 1.4s ease 0.3s both;
}

@keyframes legacyPricesFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes legacyPricesLineGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* MOBIL */
@media (max-width: 600px) {
    #pricesPage .sustainability-page-header {
        padding-top: 80px !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    #pricesPage .sustainability-page-header h1 {
        font-size: 36px !important;
    }

    #pricesPage .sustainability-page-header p {
        font-size: 16px !important;
    }

    #pricesPage .sustainability-header-line {
        max-width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #pricesPage.animate .sustainability-page-header h1,
    #pricesPage.animate .sustainability-page-header p,
    #pricesPage.animate .sustainability-header-line {
        animation: none !important;
    }
}

/* =====================================
   FLYTTA PRISER-RUBRIKEN FRITT
   ===================================== */

#pricesPage .sustainability-page-header {
    position: relative !important;

    /* ÄNDRA DESSA TVÅ VÄRDEN */

    top: 70px !important;
    left: 0px !important;
}

/* FLYTTA NER HELA MJUKVARA-SEKTIONEN */

#pricesPage .legacy-pricing {
    position: relative !important;
    top: 150px !important;
}

/* MOBIL */
@media (max-width: 600px) {
    #pricesPage .legacy-pricing {
        top: 30px !important;
    }
}

/* MER UTRYMME PÅ PRISER-SIDAN */

#pricesPage {
    min-height: 1600px !important;
    padding-bottom: 300px !important;
}

/* Flytta ner hela Mjukvara-sektionen */
#pricesPage .legacy-pricing {
    position: relative !important;
    top: 120px !important;
}

/* Mobil */
@media (max-width: 600px) {
    #pricesPage {
        min-height: auto !important;
        padding-bottom: 180px !important;
    }

    #pricesPage .legacy-pricing {
        top: 60px !important;
    }
}

/* PRISER INUTI PAKETKORTEN */

#pricesPage .legacy-plan-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 5px;
}

#pricesPage .legacy-price-amount {
    font-size: 34px;
    font-weight: 800;
    color: #18283e;
    letter-spacing: -1px;
}

#pricesPage .legacy-price-period {
    font-size: 14px;
    color: #718096;
}

@media (max-width: 600px) {
    #pricesPage .legacy-price-amount {
        font-size: 30px;
    }
}

/* MINDRE PRISTEXT – ALLA TRE PAKET */

#pricesPage .legacy-price-amount {
    font-size: 27px !important;
    letter-spacing: -0.5px;
}

#pricesPage .legacy-price-period {
    font-size: 12px !important;
}

/* MOBIL */
@media (max-width: 600px) {
    #pricesPage .legacy-price-amount {
        font-size: 24px !important;
    }

    #pricesPage .legacy-price-period {
        font-size: 11px !important;
    }
}

/* DÖLJ BRONS, SILVER OCH GULD */

#pricesPage .legacy-plan-level {
    display: none !important;
}

/* =====================================
   PRISKORT – TA BORT IKONER
   ===================================== */

#pricesPage .legacy-plan-medal {
    display: none !important;
}

/* BASIC – BRONS */
#pricesPage .legacy-plan-basic h2 {
    color: #B87B4A !important;
}

/* PREMIUM – SILVER */
#pricesPage .legacy-plan-premium h2 {
    color: #8D9BA9 !important;
}

/* EXCLUSIVE – GULD */
#pricesPage .legacy-plan-exclusive h2 {
    color: #C7A044 !important;
}

/* LITE LUFT ÖVER PAKETNAMNEN */
#pricesPage .legacy-plan h2 {
    margin-top: 12px !important;
}

/* LEGACY UF – CENTRERA FÖRETAGSINLOGGNING */

#companyLoginBox {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    align-items: center !important;
    justify-content: center !important;

    background: rgba(0, 0, 0, 0.55) !important;
    z-index: 999999 !important;

    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

#companyLoginBox .company-login-card {
    position: relative !important;

    width: 100% !important;
    max-width: 500px !important;

    margin: 0 auto !important;
    box-sizing: border-box !important;
}
#machineForm,
#videoForm {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

#machineForm label,
#videoForm label {
  font-weight: 650;
}

#machineForm input,
#machineForm textarea,
#videoForm input,
#videoForm textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #dce3ed;
  border-radius: 9px;
  font: inherit;
}

#machineList,
#videoList {
  margin-top: 24px;
}

#machineMessage,
#videoMessage {
  color: #52647f;
  margin-top: 16px;
}

#videoPanel {
  margin-top: 28px;
}

#machineCancelButton,
#videoCancelButton {
  background: #667085;
}

.hidden {
  display: none !important;
}
/* Dölj mobilen endast på sidan "Så fungerar det" */
#howPage .how-phone-copy {
    display: none !important;
}
/* ================= HÅRDVARA RUBRIK ================= */

#pricesPage .hardware-pricing-header {
    text-align: center;
    padding: 90px 20px 45px;
    margin: 0 auto;
    max-width: 1200px;
}

#pricesPage .hardware-pricing-header h1 {
    color: #1558ed;
    font-size: 64px;
    font-weight: 750;
    line-height: 1.15;
    margin: 0 0 30px;
}

#pricesPage .hardware-pricing-header p {
    color: #17253c;
    font-size: 23px;
    line-height: 1.5;
    margin: 0 0 40px;
}

#pricesPage .hardware-header-line {
    width: 116px;
    height: 5px;
    background: #1558ed;
    margin: 0 auto;
}

@media (max-width: 600px) {
    #pricesPage .hardware-pricing-header {
        padding: 65px 20px 35px;
    }

    #pricesPage .hardware-pricing-header h1 {
        font-size: 42px;
    }

    #pricesPage .hardware-pricing-header p {
        font-size: 18px;
    }
}
/* ================= HÅRDVARA RUBRIK ================= */

#pricesPage .hardware-pricing-header {
    text-align: center;
    padding: 45px 20px 30px;
    margin: 0 auto;
    max-width: 1200px;
}

#pricesPage .hardware-pricing-header h1 {
    color: #1558ed;
    font-size: 48px;
    font-weight: 750;
    line-height: 1.15;
    margin: 0 0 25px;
}

#pricesPage .hardware-pricing-header p {
    color: #17253c;
    font-size: 20px;
    line-height: 1.5;
    margin: 0 0 30px;
}

#pricesPage .hardware-header-line {
    width: 116px;
    height: 5px;
    background: #1558ed;
    margin: 0 auto;
}

@media (max-width: 600px) {
    #pricesPage .hardware-pricing-header {
        padding: 35px 20px 25px;
    }

    #pricesPage .hardware-pricing-header h1 {
        font-size: 36px;
    }

    #pricesPage .hardware-pricing-header p {
        font-size: 18px;
    }
}
/* Mindre rubrik för Hårdvara */

#pricesPage .hardware-pricing-header {
    padding: 30px 20px 25px;
}

#pricesPage .hardware-pricing-header h1 {
    font-size: 40px;
    margin-bottom: 18px;
}

#pricesPage .hardware-pricing-header p {
    font-size: 18px;
    margin-bottom: 25px;
}

@media (max-width: 600px) {
    #pricesPage .hardware-pricing-header h1 {
        font-size: 32px;
    }

    #pricesPage .hardware-pricing-header p {
        font-size: 16px;
    }
}
/* Gör hela prissidans bakgrund högre */

#pricesPage {
    min-height: 2500px;
    padding-bottom: 300px;
}
/* Mer grå bakgrund på prissidan */

#pricesPage {
    min-height: 2800px !important;
    padding-bottom: 450px !important;
    box-sizing: border-box;
}
/* Flytta ner hela Hårdvara-sektionen */

#pricesPage .hardware-pricing-header {
    margin-top: 100px !important;
}

/* ========================================
   LEGACY UF – FILMNINGSTJÄNST
   ======================================== */

#pricesPage .legacy-filming {
  width: 100%;
  max-width: 1400px;
  margin: 40px auto 65px;
  padding: 0 20px;
  box-sizing: border-box;
}

#pricesPage .legacy-filming-card {
  background: #ffffff;
  border: 1px solid #dbe4f2;
  border-radius: 26px;
  padding: 48px;
  box-shadow: 0 15px 45px rgba(20, 38, 62, 0.07);
  box-sizing: border-box;
}

/* Översta raden */

#pricesPage .legacy-filming-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

#pricesPage .legacy-filming-badge {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 30px;
  background: #edf3ff;
  color: #1558ed;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

#pricesPage .legacy-filming-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #edf3ff;
  color: #1558ed;
  font-size: 21px;
  flex-shrink: 0;
}

/* Rubrik och beskrivning */

#pricesPage .legacy-filming-card > h2 {
  margin: 0 0 18px;
  color: #14263e;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 800;
  line-height: 1.2;
}

#pricesPage .legacy-filming-intro {
  max-width: 800px;
  margin: 0 0 32px;
  color: #64748b;
  font-size: 17px;
  line-height: 1.8;
}

/* Prisruta */

#pricesPage .legacy-filming-price-box {
  background: #f2f6ff;
  border-radius: 18px;
  padding: 28px 30px;
  margin-bottom: 32px;
}

#pricesPage .legacy-filming-price-label {
  display: block;
  color: #1558ed;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

#pricesPage .legacy-filming-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

#pricesPage .legacy-filming-price strong {
  color: #14263e;
  font-size: clamp(24px, 5vw, 52px);
  font-weight: 850;
  line-height: 1.2;
}

#pricesPage .legacy-filming-price span {
  color: #64748b;
  font-size: 19px;
}

#pricesPage .legacy-filming-price-box p {
  color: #64748b;
  font-size: 14px;
  margin: 10px 0 0;
}

/* Fördelar */

#pricesPage .legacy-filming-divider {
  height: 1px;
  background: #e5eaf0;
  margin-bottom: 28px;
}

#pricesPage .legacy-filming-card > h3 {
  color: #14263e;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 28px;
}

#pricesPage .legacy-filming-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 35px;
  margin-bottom: 38px;
}

#pricesPage .legacy-filming-benefit {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

#pricesPage .legacy-filming-check {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: #fff2e2;
  color: #c58b45;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 800;
}

#pricesPage .legacy-filming-benefit h4 {
  margin: 2px 0 6px;
  color: #14263e;
  font-size: 16px;
  font-weight: 800;
}

#pricesPage .legacy-filming-benefit p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

/* Bokningsknapp */

#pricesPage .legacy-filming-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 15px 20px;
  box-sizing: border-box;
  border-radius: 13px;
  background: #14263e;
  color: #ffffff;
  font-size: 17px;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

#pricesPage .legacy-filming-button:hover {
  background: #1558ed;
  transform: translateY(-2px);
}

#pricesPage .legacy-filming-footer {
  margin: 17px 0 0;
  color: #64748b;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

/* Mobilanpassning */

@media (max-width: 700px) {
  #pricesPage .legacy-filming {
    margin: 40px auto 70px;
    padding: 0 15px;
  }

  #pricesPage .legacy-filming-card {
    padding: 25px 20px;
    border-radius: 20px;
  }

  #pricesPage .legacy-filming-intro {
    font-size: 15px;
  }

  #pricesPage .legacy-filming-price-box {
    padding: 22px;
  }

  #pricesPage .legacy-filming-benefits {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  #pricesPage .legacy-filming-button {
    font-size: 15px;
  }
}

/* ========================================
   LEGACY UF – FILMNINGSTJÄNST
   NY KOMPAKT LAYOUT
======================================== */

#pricesPage .legacy-filming {
  width: 100%;
  max-width: 1350px;
  margin: 90px auto 70px;
  padding: 0 20px;
  box-sizing: border-box;
}

#pricesPage .legacy-filming-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 45px;

  background: #ffffff;
  border: 1px solid #e0e7f0;
  border-radius: 25px;
  padding: 38px 45px;
  box-shadow: 0 12px 35px rgba(20, 38, 62, 0.06);
}

/* VÄNSTER SIDA */

#pricesPage .legacy-filming-content {
  min-width: 0;
  text-align: left;
}

#pricesPage .legacy-filming-badge {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 30px;
  background: #edf3ff;
  color: #1558ed;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

#pricesPage .legacy-filming-content h2 {
  color: #14263e;
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  text-align: left;
}

#pricesPage .legacy-filming-intro {
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 26px;
  max-width: 650px;
  text-align: left;
}

/* FÖRDELAR */

#pricesPage .legacy-filming-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  margin: 0;
}

#pricesPage .legacy-filming-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

#pricesPage .legacy-filming-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff2e2;
  color: #c58b45;
  font-size: 16px;
  font-weight: 800;
}

#pricesPage .legacy-filming-benefit h4 {
  color: #14263e;
  font-size: 14px;
  font-weight: 800;
  margin: 1px 0 4px;
  text-align: left;
}

#pricesPage .legacy-filming-benefit p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* HÖGER PRISDEL */

#pricesPage .legacy-filming-price-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  background: #f2f6ff;
  border-radius: 20px;
  padding: 35px 28px;
  margin: 0;
  min-width: 0;
  text-align: left;
}

#pricesPage .legacy-filming-price-label {
  display: block;
  color: #1558ed;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
  margin-bottom: 15px;
}

#pricesPage .legacy-filming-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

#pricesPage .legacy-filming-price strong {
  color: #14263e;
  font-size: clamp(35px, 3.5vw, 48px);
  font-weight: 850;
  line-height: 1.1;
}

#pricesPage .legacy-filming-price span {
  color: #64748b;
  font-size: 16px;
}

#pricesPage .legacy-filming-price-box > p:not(.legacy-filming-footer) {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 25px;
  text-align: left;
}

/* KNAPP */

#pricesPage .legacy-filming-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  box-sizing: border-box;
  border-radius: 12px;
  background: #14263e;
  color: white;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

#pricesPage .legacy-filming-button:hover {
  background: #1558ed;
  transform: translateY(-2px);
}

#pricesPage .legacy-filming-footer {
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
  margin: 13px 0 0;
  text-align: center;
  width: 100%;
}

/* MOBIL */

@media (max-width: 850px) {
  #pricesPage .legacy-filming-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }

  #pricesPage .legacy-filming-price-box {
    padding: 28px;
  }
}

@media (max-width: 550px) {
  #pricesPage .legacy-filming {
    padding: 0 15px;
    margin: 30px auto 50px;
  }

  #pricesPage .legacy-filming-card {
    padding: 23px 18px;
  }

  #pricesPage .legacy-filming-benefits {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
/* =====================================
   FILMNINGSTJÄNST – MINDRE TEXT
===================================== */

/* Översta etiketten */
#pricesPage .legacy-filming-badge {
  font-size: 10px;
  padding: 7px 12px;
}

/* Stora rubriken */
#pricesPage .legacy-filming-content h2 {
  font-size: 27px;
  line-height: 1.25;
}

/* Beskrivningen under rubriken */
#pricesPage .legacy-filming-intro {
  font-size: 13px;
  line-height: 1.6;
}

/* Rubriker vid bockarna */
#pricesPage .legacy-filming-benefit h4 {
  font-size: 12px;
}

/* Beskrivningar vid bockarna */
#pricesPage .legacy-filming-benefit p {
  font-size: 11px;
}

/* Etiketten ovanför priset */
#pricesPage .legacy-filming-price-label {
  font-size: 10px;
}

/* Priset 400 kr */
#pricesPage .legacy-filming-price strong {
  font-size: 25px;
}

/* Texten / timme */
#pricesPage .legacy-filming-price span {
  font-size: 13px;
}

/* Beskrivningen under priset */
#pricesPage .legacy-filming-price-box > p:not(.legacy-filming-footer) {
  font-size: 11px;
}

/* Bokningsknappen */
#pricesPage .legacy-filming-button {
  font-size: 13px;
}

/* Texten under knappen */
#pricesPage .legacy-filming-footer {
  font-size: 10px;
}
#pricesPage .hardware-header-line {
  width: 100px;
  height: 4px;
  background: #1763ff;
  border-radius: 10px;
  margin: 15px auto 22px;
}
#pricesPage .legacy-filming-content h2 {
  font-size: 25px;
  line-height: 1.3;
}
/* =====================================
   LEGACY UF – TVÅ TJÄNSTER
===================================== */

/* Hela sektionen */

.legacy-services {
  width: 100%;
  padding: 65px 25px 80px;
  background: #e9eaed;
  box-sizing: border-box;
}

/* Rubrik */

.legacy-services-heading {
  text-align: center;
  margin-bottom: 45px;
}

.legacy-services-heading h2,
.legacy-services-heading h2 span {
  margin: 0;
  color: #1763ff;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.3;
}

.legacy-services-line {
  width: 95px;
  height: 4px;
  background: #1763ff;
  border-radius: 10px;
  margin: 20px auto 0;
}

/* Rutornas placering */

.legacy-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Vita tjänsterutor */

.legacy-service-card {
  display: flex;
  flex-direction: column;
  gap: 25px;
  min-width: 0;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e5e8ee;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(20, 38, 62, 0.07);
  box-sizing: border-box;
  transition: transform 0.25s ease,
              box-shadow 0.25s ease;
}

.legacy-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(20, 38, 62, 0.11);
}

/* Övre delen med ikon och text */

.legacy-service-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.legacy-service-top > div:last-child {
  flex: 1;
  min-width: 0;
}

/* Blå ikoner */

.legacy-service-icon {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f0ff;
  border-radius: 16px;
  color: #1763ff;
}

.legacy-service-icon svg {
  width: 32px;
  height: 32px;
}

/* Kortens rubriker */

.legacy-service-top h3 {
  margin: 0 0 10px;
  color: #14263e;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

/* Beskrivning */

.legacy-service-top p {
  margin: 0;
  color: #52647e;
  font-size: 13px;
  line-height: 1.65;
}

/* Fördelar */

.legacy-service-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: auto 0 0;
}

.legacy-service-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #14263e;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

/* Orange bockar */

.legacy-service-list li::before {
  content: "✓";
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff3e3;
  color: #d18b27;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 800;
}

/* Surfplatta */

@media (max-width: 900px) {
  .legacy-services {
    padding: 55px 20px 70px;
  }

  .legacy-services-grid {
    grid-template-columns: 1fr;
    max-width: 550px;
  }

  .legacy-services-heading {
    margin-bottom: 35px;
  }

  .legacy-services-heading h2,
  .legacy-services-heading h2 span {
    font-size: 26px;
  }
}

/* Mobil */

@media (max-width: 550px) {
  .legacy-services {
    padding: 45px 15px 60px;
  }

  .legacy-services-heading h2,
  .legacy-services-heading h2 span {
    font-size: 23px;
  }

  .legacy-service-card {
    padding: 24px 20px;
    gap: 22px;
    border-radius: 20px;
  }

  .legacy-service-top {
    flex-direction: column;
    gap: 15px;
  }

  .legacy-service-icon {
    width: 58px;
    height: 58px;
  }

  .legacy-service-icon svg {
    width: 29px;
    height: 29px;
  }

  .legacy-service-top h3 {
    font-size: 21px;
  }

  .legacy-service-top p {
    font-size: 13px;
  }

  .legacy-service-list li {
    font-size: 12px;
  }
}
/* =====================================
   LEGACY UF – SILVER & GULD
===================================== */

/* SILVER – FÖRETAGSSIDA */

.legacy-service-card:first-child {
  background: linear-gradient(
    145deg,
    #ffffff 55%,
    #f0f2f5 100%
  );

  border: 1.5px solid #c5cbd4;

  box-shadow:
    0 12px 30px rgba(80, 95, 115, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.legacy-service-card:first-child .legacy-service-icon {
  background: linear-gradient(
    135deg,
    #e9edf2,
    #c3cbd5
  );

  color: #596b80;
}

.legacy-service-card:first-child
.legacy-service-list li::before {
  background: #e8ecf1;
  color: #788898;
}

/* GULD – KOMPLETT KIT */

.legacy-service-card:nth-child(2) {
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    145deg,
    #ffffff 45%,
    #fff8e8 100%
  );

  border: 1.5px solid #d9b76c;

  box-shadow:
    0 14px 35px rgba(170, 125, 35, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.legacy-service-card:nth-child(2) .legacy-service-icon {
  background: linear-gradient(
    135deg,
    #f9e9bd,
    #d5a748
  );

  color: #8a641b;
}

.legacy-service-card:nth-child(2)
.legacy-service-list li::before {
  background: #fff0c9;
  color: #b88626;
}

/* Diskret gulddetalj högst upp */

.legacy-service-card:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 4px;

  background: linear-gradient(
    90deg,
    transparent,
    #d4a640,
    #f2d58b,
    #d4a640,
    transparent
  );

  border-radius: 0 0 10px 10px;
}

/* Hover-effekter */

.legacy-service-card:first-child:hover {
  transform: translateY(-5px);
  border-color: #aab4c0;
  box-shadow: 0 18px 40px rgba(80, 95, 115, 0.16);
}

.legacy-service-card:nth-child(2):hover {
  transform: translateY(-7px);
  border-color: #c99a35;
  box-shadow: 0 20px 45px rgba(170, 125, 35, 0.22);
}
/* Silverdetalj högst upp på Företagssida */

.legacy-service-card:first-child {
  position: relative;
  overflow: hidden;
}

.legacy-service-card:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 5px;

  background: linear-gradient(
    90deg,
    transparent,
    #aeb8c5,
    #dce2e9,
    #aeb8c5,
    transparent
  );

  border-radius: 0 0 10px 10px;
}
/* Rubrik – samma stil som Tjänsten / processen */

.legacy-services .legacy-services-heading h2,
.legacy-services .legacy-services-heading h2 span {
  color: #1763ff;
  font-family: Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

@media (max-width: 500px) {
  .legacy-services .legacy-services-heading h2,
  .legacy-services .legacy-services-heading h2 span {
    font-size: 22px;
  }
}
/* Justerad storlek på tjänsterubriken */

.legacy-services .legacy-services-heading h2,
.legacy-services .legacy-services-heading h2 span {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

@media (max-width: 700px) {
  .legacy-services .legacy-services-heading h2,
  .legacy-services .legacy-services-heading h2 span {
    font-size: 28px;
  }
}
/* Flytta ner hela sektionen med två tjänster */

.legacy-services {
  padding-top: 170px;
}
/* =====================================
   LEGACY UF – PLAYFAIR DISPLAY
===================================== */

/* Byt typsnitt på hela hemsidan */
html body,
html body button,
html body input,
html body textarea,
html body select,
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6,
html body p,
html body span,
html body a,
html body li {
  font-family: 'Playfair Display', Georgia, serif !important;
}

/* Rubriker */
html body h1,
html body h2,
html body h3 {
  letter-spacing: -0.5px;
}
/* ==========================================
   LEGACY UF – SILVER & GULD SOM PRISKORTEN
========================================== */

/* MJUKVARA – PREMIUM SILVER */
.legacy-services .legacy-service-card:first-child {
  background: #ffffff;
  border: none;
  border-top: 7px solid #94a3b1;
  border-radius: 30px;
  box-shadow: 0 12px 35px rgba(25, 40, 60, 0.06);
}

.legacy-services .legacy-service-card:first-child h3 {
  color: #94a3b1;
}

.legacy-services .legacy-service-card:first-child .legacy-service-icon {
  background: #eef1f4;
  color: #94a3b1;
}

.legacy-services .legacy-service-card:first-child
.legacy-service-list li::before {
  background: transparent;
  color: #94a3b1;
}


/* KOMPLETT TJÄNST – EXCLUSIVE GULD */
.legacy-services .legacy-service-card:nth-child(2) {
  background: #ffffff;
  border: none;
  border-top: 7px solid #cda33f;
  border-radius: 30px;
  box-shadow: 0 12px 35px rgba(25, 40, 60, 0.06);
}

.legacy-services .legacy-service-card:nth-child(2) h3 {
  color: #cda33f;
}

.legacy-services .legacy-service-card:nth-child(2) .legacy-service-icon {
  background: #fbf5e7;
  color: #cda33f;
}

.legacy-services .legacy-service-card:nth-child(2)
.legacy-service-list li::before {
  background: transparent;
  color: #cda33f;
}


/* Ta bort de gamla metallstrecken */
.legacy-services .legacy-service-card::before {
  display: none;
}

/* Samma mörkblå text som på priskorten */
.legacy-services .legacy-service-card .legacy-service-list li {
  color: #243650;
}

.legacy-services .legacy-service-card .legacy-service-top p {
  color: #718096;
}
/* Flytta upp innehållet på Priser-sidan */

/* Minska utrymmet ovanför rubrikerna */
.pricing-section {
  padding-top: 30px;
}

/* Minska mellanrummet ovanför priskorten */
.pricing-grid {
  margin-top: 45px;
}
/* Mjuk scrollning till kontaktinformationen */

html {
  scroll-behavior: smooth;
}

#footer-home {
  scroll-margin-top: 110px;
}
/* =====================================
   FOOTER – VANLIG TEXT PÅ KONTAKTUPPGIFTER
===================================== */

.legacy-footer .footer-contact-row,
.legacy-footer .footer-contact-row span {
  font-family: Arial, sans-serif !important;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
}
/* =====================================
   FÖRETAGSADMIN – NY RUTA
===================================== */

.company-admin-card {
  max-width: 970px;
  margin: 50px auto 90px;
  padding: 65px 80px 55px;
  background: #ffffff;
  border-radius: 25px;
  box-sizing: border-box;
}

/* Liten blå etikett */
.company-admin-label {
  display: inline-block;
  background: #edf4ff;
  color: #1763ff;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 700;
}

/* Stor blå rubrik */
.company-admin-title {
  color: #1763ff;
  font-size: 58px;
  font-weight: 700;
  margin: 30px 0 15px;
  line-height: 1.15;
}

/* Beskrivning */
.company-admin-text {
  color: #17253c;
  font-size: 23px;
  line-height: 1.45;
  margin: 0;
}

/* Fördelarna längst ner */
.company-admin-benefits {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 40px;
}

.company-admin-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #17253c;
  font-size: 15px;
  font-weight: 700;
}

.company-admin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #edf4ff;
  color: #1763ff;
  font-size: 24px;
}

/* Mobilanpassning */
@media (max-width: 700px) {
  .company-admin-card {
    margin: 30px 20px 60px;
    padding: 35px 25px;
  }

  .company-admin-title {
    font-size: 38px;
  }

  .company-admin-text {
    font-size: 18px;
  }

  .company-admin-benefits {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =====================================
   FAST KONTAKTRUTA – SÅ FUNGERAR DET
===================================== */

/* Låt kontaktrutan ligga till höger */
#howPage {
  position: relative;
}

/* Kontaktkortet */
#howPage .how-sticky-contact {
  position: sticky;
  top: 145px;
  float: right;

  width: 350px;
  max-width: 32%;
  margin: 65px 5% 30px 20px;
  padding: 38px 32px;

  background: #ffffff;
  border-radius: 25px;
  box-shadow: 0 12px 35px rgba(20, 35, 60, 0.08);
  box-sizing: border-box;

  z-index: 5;
}

/* Liten etikett */
.how-sticky-contact-label {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 30px;
  background: #edf4ff;
  color: #1763ff;
  font-size: 13px;
  font-weight: 700;
}

/* Rubrik */
.how-sticky-contact h2 {
  color: #1763ff;
  font-size: 33px;
  line-height: 1.2;
  margin: 25px 0 15px;
}

/* Beskrivning */
.how-sticky-contact p {
  color: #26364f;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Blå knapp */
.how-sticky-contact-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;

  padding: 17px 20px;
  background: #1763ff;
  color: #ffffff !important;

  border-radius: 13px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;

  transition: background 0.2s, transform 0.2s;
}

.how-sticky-contact-button:hover {
  background: #0049d8;
  transform: translateY(-2px);
}

/* Mobilanpassning */
@media (max-width: 900px) {
  #howPage .how-sticky-contact {
    float: none;
    position: static;
    width: auto;
    max-width: none;
    margin: 30px 20px;
  }
}
/* =====================================
   KONTAKTRUTA – SCROLL OCH STOPP
===================================== */

@media (min-width: 901px) {
  #howPage .how-sticky-contact {
    position: sticky;
    top: 180px;
    align-self: flex-start;
  }

  /* Behållaren som stoppar rutan före footern */
  #howPage .how-content-wrapper {
    display: flow-root;
    position: relative;
  }
}
/* =====================================
   KONTAKTRUTA – MJUK UT- OCH INTONING
===================================== */

#howPage .how-sticky-contact {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

/* När man scrollat förbi Säkerhet */
#howPage .how-sticky-contact.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* ==========================================
   DEN FÄRDIGA TJÄNSTEN – NY DESIGN
========================================== */

/* Rubriken */
#servicePage .media-title {
  color: #071f68;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 45px;
}

/* Videokortet */
#servicePage .service-video {
  background: #ffffff;
  border: none !important;
  outline: none !important;
  border-radius: 30px;
  padding: 15px 15px 25px;
  box-shadow: 0 15px 35px rgba(20, 35, 65, 0.10);
  box-sizing: border-box;
  overflow: hidden;
}

/* Videon */
#servicePage .service-video video {
  display: block;
  width: 100%;
  border: none !important;
  border-radius: 23px;
  box-shadow: none;
}

/* QR-kortet */
#servicePage .service-side-image {
  background: #ffffff;
  border: none !important;
  outline: none !important;
  border-radius: 30px;
  padding: 15px 15px 25px;
  box-shadow: 0 15px 35px rgba(20, 35, 65, 0.10);
  box-sizing: border-box;
  overflow: hidden;
}

/* QR-bilden */
#servicePage .service-side-image img {
  display: block;
  width: 100%;
  height: auto;
  border: none !important;
  border-radius: 23px;
}

/* Text under bilderna */
#servicePage .video-info,
#servicePage .qr-info {
  color: #17253c;
  font-size: 19px;
  line-height: 1.5;
  margin: 20px 15px 0;
}

/* Mjuk effekt när man håller musen över */
#servicePage .service-video,
#servicePage .service-side-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#servicePage .service-video:hover,
#servicePage .service-side-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(20, 35, 65, 0.14);
}

/* Mobilanpassning */
@media (max-width: 700px) {
  #servicePage .media-title {
    font-size: 34px;
  }

  #servicePage .service-video,
  #servicePage .service-side-image {
    border-radius: 22px;
    padding: 12px 12px 20px;
  }

  #servicePage .video-info,
  #servicePage .qr-info {
    font-size: 16px;
  }
}
/* Dölj rubriken Den färdiga tjänsten */
#servicePage .media-title {
  display: none !important;
}

/* Dölj den blå linjen under rubriken */
#servicePage .media-title::after,
#servicePage .media-title::before {
  display: none !important;
}
/* =====================================
   TJÄNSTEN – MINDRE BAKGRUND
===================================== */
/* =====================================
   MINDRE MELLANRUM PÅ TJÄNSTEN-SIDAN
===================================== */

/* Flytta upp video och QR-kod */
#servicePage .service-video,
#servicePage .service-side-image {
  transform: translateY(-180px);
}

/* Behåll hover-effekten */
#servicePage .service-video:hover,
#servicePage .service-side-image:hover {
  transform: translateY(-185px);
}
/* Dölj hållbarhetsrutorna endast på startsidan */

.home-sustainability {
  display: none !important;
}
/* =====================================
   STÖRRE BAKGRUND PÅ STARTSIDAN
===================================== */

#homePage {
  min-height: 140vh;
}
/* =====================================
   FLYTTA NER FOOTERN PÅ STARTSIDAN
===================================== */

#homePage {
  padding-bottom: 350px !important;
  box-sizing: border-box;
}
/* =====================================
   STARTSIDAN – FOOTER UNDER INNEHÅLLET
===================================== */

/* Se till att startsidans innehåll tar plats */
#homePage {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  display: flow-root;
  padding-bottom: 80px !important;
}

/* Footern ska ligga i normalt sidflöde */
#footer-home {
  position: relative !important;
  clear: both;
  transform: none !important;
  margin-top: 0 !important;
}
/* =====================================
   STARTSIDAN – FOOTER LÄNGST NER
===================================== */

/* Startsidan ska växa med innehållet */
#homePage {
  height: auto !important;
  min-height: 100vh !important;
  display: flow-root !important;
  overflow: visible !important;
}

/* Footern ska inte ligga ovanpå innehållet */
#footer-home {
  position: static !important;
  float: none !important;
  clear: both !important;
  transform: none !important;
  margin-top: 100px !important;
  z-index: auto !important;
}
/* Flytta ner footern på startsidan */

#footer-home {
  margin-top: 1400px !important;
}

/* =========================================
   MOBIL – FIXA DEMOTELEFONEN
   ========================================= */

@media (max-width: 600px) {

  /* Telefonens storlek */
  .home-phone,
  .how-phone-copy .phone {
    width: min(300px, 88vw) !important;
    height: 630px !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* Skärmen innanför telefonen */
  .home-phone .phone-screen,
  .how-phone-copy .phone-screen {
    overflow: hidden !important;
    border-radius: 42px !important;
  }

  /* Rubrikdelen i hjälpsidan */
  .home-phone .guide-header,
  .home-phone .solution-header,
  .how-phone-copy .guide-header,
  .how-phone-copy .solution-header {
    height: auto !important;
    min-height: 190px !important;
    padding: 22px 20px 25px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  /* Logotyp */
  .home-phone .guide-header img,
  .home-phone .solution-header img,
  .how-phone-copy .guide-header img,
  .how-phone-copy .solution-header img {
    width: 80px !important;
    max-height: 75px !important;
    object-fit: contain !important;
    margin: 0 !important;
  }

  /* Svarvmaskin */
  .home-phone .guide-header h2,
  .home-phone .solution-header h2,
  .how-phone-copy .guide-header h2,
  .how-phone-copy .solution-header h2 {
    font-size: 29px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    position: static !important;
  }

  /* DITT FÖRETAG */
  .home-phone .guide-header span,
  .home-phone .solution-header span,
  .how-phone-copy .guide-header span,
  .how-phone-copy .solution-header span {
    display: block !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    margin: 0 !important;
    position: static !important;
  }

  /* Hjälpsidan ska kunna scrollas inuti telefonen */
  .home-phone .guide-page,
  .how-phone-copy .how-phone-guide {
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  /* Luft runt innehållet */
  .home-phone .guide-content,
  .how-phone-copy .guide-content {
    padding: 22px 16px 35px !important;
    box-sizing: border-box !important;
  }

  .home-phone .guide-content h3,
  .how-phone-copy .guide-content h3 {
    font-size: 23px !important;
    line-height: 1.2 !important;
    margin: 0 0 22px !important;
  }

  /* Problemkorten */
  .home-phone .problem-card,
  .how-phone-copy .problem-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px !important;
    margin-bottom: 15px !important;
  }

  .home-phone .problem-card h4,
  .how-phone-copy .problem-card h4 {
    font-size: 17px !important;
    line-height: 1.3 !important;
  }

  /* Lösningssidan */
  .home-phone .solution-page,
  .how-phone-copy .how-phone-solution {
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .home-phone .solution-content,
  .how-phone-copy .solution-content {
    padding: 20px 16px 30px !important;
    box-sizing: border-box !important;
  }

  /* Tillbaka-knappen */
  .home-phone .back-button,
  .how-phone-copy .how-phone-back {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 130px !important;
    height: auto !important;
    min-height: 38px !important;
    padding: 9px 14px !important;
    font-size: 12px !important;
    color: white !important;
    background: #1763ff !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
  }

  /* Videorutan */
  .home-phone .video-box,
  .how-phone-copy .video-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 18px !important;
  }

  .home-phone .video-box p,
  .how-phone-copy .video-box p {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }
}
/* Mindre och transparent tillbaka-knapp på mobilen */
@media (max-width: 600px) {

  .home-phone .back-button,
  .how-phone-copy .how-phone-back {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;

    width: fit-content !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 4px 0 !important;

    border-radius: 0 !important;
    margin-bottom: 15px !important;
  }

}
/* Tillbaka-knappen i demotelefonen */
.demo-phone .back-btn,
.phone-screen .back-btn,
.phone-demo .back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    padding: 9px 16px;

    background: transparent;
    color: #d9edf2;

    border: 1px solid rgba(180, 220, 230, 0.35);
    border-radius: 10px;

    font-size: 14px;
    font-weight: 500;

    box-shadow: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-phone .back-btn:hover,
.phone-screen .back-btn:hover,
.phone-demo .back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(180, 220, 230, 0.6);
}
/* =====================================
   DEMOTELEFON – NY TILLBAKA-KNAPP
===================================== */

.home-phone .back-button,
.how-phone-copy .how-phone-back {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: fit-content !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;

    padding: 7px 12px !important;
    margin: 0 0 16px 0 !important;

    background: rgba(255, 255, 255, 0.07) !important;
    color: #e4eef0 !important;

    border: 1px solid rgba(210, 230, 235, 0.25) !important;
    border-radius: 8px !important;

    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;

    box-shadow: none !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

.home-phone .back-button:hover,
.how-phone-copy .how-phone-back:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    transform: none !important;
}
/* Fixa DITT FÖRETAG i demotelefonen */

.home-phone .guide-header,
.how-phone-copy .guide-header {
    min-height: 215px !important;
    height: auto !important;
    padding-bottom: 30px !important;
}

.home-phone .guide-header span,
.how-phone-copy .guide-header span {
    display: block !important;
    position: relative !important;
    top: -8px !important;
    margin: 0 !important;

    color: #b8cbd1 !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    letter-spacing: 2px !important;
    opacity: 1 !important;
}
/* Kameraknapp – helt rund */

.home-phone .camera-button,
.home-phone .shutter-button,
.home-phone .camera-shutter {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;

    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;

    padding: 0 !important;
    box-sizing: border-box !important;

    border: 4px solid white !important;
    background: transparent !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Vit cirkel inuti knappen */
.home-phone .camera-button::before,
.home-phone .shutter-button::before,
.home-phone .camera-shutter::before {
    content: "";
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 50%;
    display: block;
}
/* Kameraknapp – mindre och helt rund */
.shutter {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;

    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;

    background: white !important;
    border: 3px solid #111 !important;
    outline: 2px solid white !important;

    padding: 0 !important;
    margin: 6px auto 0 !important;

    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

/* Centrera knappen i kamerans nederdel */
.camera-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    box-sizing: border-box !important;
}
/* Finjustera kameraknappens placering */
.shutter {
    position: relative !important;
    top: -0px !important;
    margin-top: 0 !important;
}
/* PRISER – FOOTER UNDER ALLT INNEHÅLL */

#pricesPage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#pricesPage > .legacy-pricing {
    width: 100%;
    flex: 1 0 auto;
}
#pricesPage > #footer-prices {
    position: relative !important;
    width: 100% !important;
    margin-top: 0 !important;
    clear: both;
    flex-shrink: 0;
}
#footer-prices {
    margin-top: 500px !important;
}
#pricesPage {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

#pricesPage > #footer-prices {
    margin-top: 0 !important;
    position: static !important;
    transform: none !important;
}

#pricesPage > .legacy-pricing {
    flex: 1 0 auto !important;
}
#pricesPage > #footer-prices {
    margin-top: 400px !important;
}
#pricesPage {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 0 !important;
}

#pricesPage > .legacy-pricing {
    flex: none !important;
}

#footer-prices {
    margin-bottom: 0 !important;
}
/* Dölj Priser på startsidan */
#pricesPage {
    display: none !important;
}

/* Visa Priser när JavaScript aktiverar sidan */
#pricesPage.active {
    display: flex !important;
    flex-direction: column !important;
}
/* RUBRIK OVANFÖR VIDEO OCH QR-KOD */

.service-media-heading {
    width: 100%;
    text-align: center;
    margin: 70px auto 45px;
}

.service-media-heading h2 {
    color: #2166ff;
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 750;
    line-height: 1.2;
    margin: 0 0 24px;
}

.service-media-line {
    width: 130px;
    height: 5px;
    background: #2166ff;
    border-radius: 10px;
    margin: 0 auto;
}
/* RUBRIK – MINDRE, SMALARE OCH LÄNGRE NER */

.service-media-heading {
    margin: 50px auto 40px !important;
}

.service-media-heading h2 {
    font-size: 38px !important;
    font-weight: 600 !important;
}

.service-media-line {
    width: 90px !important;
    height: 4px !important;
}
.service-media-heading {
    position: relative !important;
    top: 135px !important;
}

.service-media-heading h2 {
    font-size: 44px !important;
    font-weight: 650 !important;
}

.service-media-line {
    width: 115px !important;
    height: 4px !important;
}
/* ANIMATION NÄR MAN SCROLLAR */

#servicePage .legacy-services-heading,
#servicePage .legacy-service-card {
    opacity: 0;
}

#servicePage .legacy-services-heading.scroll-visible {
    animation: slideDown 0.9s ease-out forwards;
}

#servicePage .legacy-service-card:first-child.scroll-visible {
    animation: slideFromLeft 1s ease-out forwards;
}

#servicePage .legacy-service-card:last-child.scroll-visible {
    animation: slideFromRight 1s ease-out 0.15s forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #servicePage .legacy-services-heading,
    #servicePage .legacy-service-card {
        opacity: 1 !important;
        animation: none !important;
    }
}
/* FLYTTA NER HÅRDVARA-RUBRIKEN */

#pricesPage .hardware-pricing-header {
    padding-top: -50px !important;
}
#pricesPage .hardware-pricing-header {
    position: relative !important;
    top: 100px !important;
}
/* SAMMA DESIGN FÖR MJUKVARA OCH HÅRDVARA */

#pricesPage .prices-page-header h1,
#pricesPage .hardware-pricing-header h1 {
    font-family: 'Playfair Display', serif !important;
    font-size: 52px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #1763ff !important;
    letter-spacing: 0 !important;
}

#pricesPage .prices-page-header p:not(.legacy-pricing-eyebrow),
#pricesPage .hardware-pricing-header p {
    font-family: 'Playfair Display', serif !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
    color: #17253c !important;
}

/* BÅDA LINJERNA BLÅ */

#pricesPage .prices-header-line,
#pricesPage .hardware-header-line {
    width: 116px !important;
    height: 4px !important;
    background: #1763ff !important;
    border-radius: 10px !important;
    margin: 25px auto 0 !important;
}
#pricesPage .hardware-pricing-header {
    transform: translateY(-45px) !important;
}
/* SCROLLANIMATION – HÅRDVARA */

#pricesPage .hardware-pricing-header,
#pricesPage .legacy-filming-card {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

#pricesPage .hardware-pricing-header {
    transform: translateY(40px);
}

#pricesPage .legacy-filming-card {
    transform: translateY(70px);
}

/* När man scrollar fram till dem */
#pricesPage .hardware-pricing-header.scroll-visible,
#pricesPage .legacy-filming-card.scroll-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
    #pricesPage .hardware-pricing-header,
    #pricesPage .legacy-filming-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================
   LEGACY UF – DESKTOP PREMIUM
========================================== */

/* 1. SCROLLINDIKATOR */

.desktop-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 99999;
    pointer-events: none;
}

#desktopScrollProgressBar {
    width: 100%;
    height: 100%;
    background: #1763ff;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .12s linear;
    box-shadow: 0 0 12px rgba(23,99,255,.25);
}


/* 2. INTERAKTIVA KORT */

@media (hover: hover) and (pointer: fine) {

    .legacy-service-card,
    .sustainability-card,
    .about-intro,
    .about-story,
    .about-person,
    .legacy-plan,
    .storage-card,
    .machine-help-card,
    .security-card,
    .home-practice-image-card,
    .desktop-timeline-card {
        transition:
            transform .65s cubic-bezier(.22,1,.36,1),
            box-shadow .65s ease;
    }

    .legacy-service-card:hover,
    .sustainability-card:hover,
    .about-person:hover,
    .legacy-plan:hover,
    .storage-card:hover,
    .machine-help-card:hover,
    .security-card:hover,
    .home-practice-image-card:hover,
    .desktop-timeline-card:hover {
        transform: translateY(-9px);
        box-shadow:
            0 22px 45px rgba(23,37,60,.13);
    }
}


/* 3. TILL TOPPEN */

.desktop-back-to-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    z-index: 990;

    width: 54px;
    height: 54px;

    border: none;
    border-radius: 50%;

    background: #1763ff;
    color: white;

    font-size: 27px;
    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(23,99,255,.25);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(25px);

    transition:
        opacity .5s ease,
        transform .7s cubic-bezier(.22,1,.36,1),
        visibility .5s ease;
}

.desktop-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.desktop-back-to-top:hover {
    background: #17253c;
    transform: translateY(-5px);
}


/* GEMENSAM DESIGN */

.desktop-timeline-section,
.desktop-faq-section {
    box-sizing: border-box;
    width: min(1100px, calc(100% - 80px));
    margin: 110px auto 0;
    padding: 0;
    font-family: "Playfair Display", Georgia, serif;
}

.desktop-section-label {
    display: inline-block;
    padding: 9px 17px;
    margin-bottom: 20px;

    background: #edf4ff;
    color: #1763ff;

    border-radius: 30px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.desktop-timeline-section h2,
.desktop-faq-section h2 {
    margin: 0 0 18px;
    color: #1763ff;
    font-size: 43px;
    line-height: 1.2;
}

.desktop-section-intro {
    margin: 0 0 45px;
    max-width: 650px;
    color: #17253c;
    font-size: 18px;
    line-height: 1.7;
}


/* 4. VANLIGA FRÅGOR */

.desktop-faq-section {
    margin-top: 120px;
    margin-bottom: 110px;
}

.desktop-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.desktop-faq-item {
    overflow: hidden;
    background: white;
    border: 1px solid #e3e9f3;
    border-radius: 20px;

    box-shadow:
        0 8px 28px rgba(23,37,60,.04);
}

.desktop-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    padding: 25px;

    border: none;
    background: transparent;
    color: #17253c;

    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    text-align: left;

    cursor: pointer;
}

.desktop-faq-question span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    flex-shrink: 0;

    background: #edf4ff;
    color: #1763ff;
    border-radius: 50%;

    font-family: Arial, sans-serif;
    font-size: 23px;

    transition: transform .6s ease;
}

.desktop-faq-item.is-open
.desktop-faq-question span {
    transform: rotate(45deg);
}

.desktop-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;

    transition:
        grid-template-rows .7s cubic-bezier(.22,1,.36,1),
        opacity .5s ease;
}

.desktop-faq-item.is-open
.desktop-faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.desktop-faq-answer > div {
    min-height: 0;
    overflow: hidden;
}

.desktop-faq-answer p {
    margin: 0;
    padding: 0 25px 25px;

    color: #66758c;
    font-size: 15px;
    line-height: 1.8;
}


/* 5. ANIMERAD TIDSLINJE */

.desktop-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.desktop-timeline-track {
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 26px;

    width: 4px;
    background: #dce6fa;
    border-radius: 10px;
}

#desktopTimelineProgress {
    width: 100%;
    height: 0;
    background: #1763ff;
    border-radius: inherit;
}

.desktop-timeline-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.desktop-timeline-number {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    flex-shrink: 0;

    box-sizing: border-box;
    border: 4px solid #dce6fa;
    border-radius: 50%;

    background: white;
    color: #1763ff;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;

    transition:
        background .6s ease,
        color .6s ease,
        border-color .6s ease;
}

.desktop-timeline-step.is-active
.desktop-timeline-number {
    background: #1763ff;
    color: white;
    border-color: #1763ff;
}

.desktop-timeline-card {
    flex: 1;
    min-width: 0;
    padding: 30px 35px;

    background: white;
    border-radius: 22px;

    box-shadow:
        0 10px 30px rgba(23,37,60,.05);
}

.desktop-timeline-card h3 {
    margin: 0 0 12px;
    color: #1763ff;
    font-size: 24px;
}

.desktop-timeline-card p {
    margin: 0;
    color: #17253c;
    font-size: 16px;
    line-height: 1.7;
}


/* SCROLLANIMATIONER – KORT FRÅN SIDORNA */

.desktop-reveal {
    opacity: 0;
    translate: 0 45px;

    transition:
        opacity 1.1s ease,
        translate 1.35s cubic-bezier(.22,1,.36,1);
}

.desktop-reveal.reveal-left {
    translate: -65px 0;
}

.desktop-reveal.reveal-right {
    translate: 65px 0;
}

.desktop-reveal.is-visible {
    opacity: 1;
    translate: 0 0;
}


/* MINDRE SKÄRMAR */

@media (max-width: 850px) {
    .desktop-timeline-section,
    .desktop-faq-section {
        width: calc(100% - 40px);
    }

    .desktop-faq-list {
        grid-template-columns: 1fr;
    }

    .desktop-timeline-section h2,
    .desktop-faq-section h2 {
        font-size: 30px;
    }

    .desktop-timeline-card {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .desktop-reveal,
    .desktop-back-to-top,
    .desktop-faq-answer,
    .desktop-timeline-number {
        opacity: 1;
        translate: none;
        transition: none;
    }
}

/* ==========================================
   FLYTTA UPP TIDSLINJE OCH VANLIGA FRÅGOR
========================================== */

/* Flytta upp hela tidslinjesektionen */
.desktop-timeline-section {
    margin-top: -300px !important;
}

/* Minska avståndet mellan rubriken och korten */
.desktop-timeline-section .desktop-section-intro {
    margin-bottom: 70px !important;
}

/* Flytta upp Vanliga frågor närmare tidslinjen */
.desktop-faq-section {
    margin-top: 55px !important;
}

/* ==========================================
   LEGACY UF – FLYTANDE SÖKASSISTENT
========================================== */

.legacy-search-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9998;

    font-family: "Playfair Display", Georgia, serif;
}

/* Blå sökknapp */

.legacy-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 21px;

    border: none;
    border-radius: 40px;

    background: #1763ff;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 8px 28px rgba(23,99,255,.25);

    cursor: pointer;

    transition:
        transform .4s ease,
        box-shadow .4s ease,
        background .4s ease;
}

.legacy-search-toggle svg {
    width: 20px;
    height: 20px;
}

.legacy-search-toggle:hover {
    transform: translateY(-4px);
    background: #1455dc;
    box-shadow: 0 12px 32px rgba(23,99,255,.32);
}

/* Sökrutan */

.legacy-search-panel {
    position: absolute;
    bottom: 72px;
    left: 0;

    width: 355px;
    max-width: calc(100vw - 40px);

    box-sizing: border-box;
    padding: 24px;

    background: #ffffff;
    border: 1px solid #e3e9f3;
    border-radius: 23px;

    box-shadow: 0 18px 55px rgba(23,37,60,.16);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(20px) scale(.96);
    transform-origin: bottom left;

    transition:
        opacity .45s ease,
        transform .6s cubic-bezier(.22,1,.36,1),
        visibility .45s ease;
}

.legacy-search-widget.is-open
.legacy-search-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Rubrik */

.legacy-search-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 23px;
}

.legacy-search-header span {
    color: #1763ff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.legacy-search-header h3 {
    margin: 9px 0 0;
    color: #17253c;
    font-size: 23px;
    line-height: 1.2;
}

.legacy-search-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    flex-shrink: 0;

    border: none;
    border-radius: 50%;

    background: #edf4ff;
    color: #1763ff;

    font-family: Arial, sans-serif;
    font-size: 22px;
    cursor: pointer;
}

/* Sökfält */

.legacy-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;

    background: #f4f7fc;
    border: 1px solid #e3e9f3;
    border-radius: 12px;

    transition: border-color .3s ease;
}

.legacy-search-input-wrap:focus-within {
    border-color: #1763ff;
}

.legacy-search-input-wrap > span {
    color: #1763ff;
    font-size: 25px;
    line-height: 1;
}

.legacy-search-input-wrap input {
    width: 100%;
    min-width: 0;

    border: none;
    outline: none;

    background: transparent;
    color: #17253c;

    font-family: inherit;
    font-size: 13px;
}

.legacy-search-input-wrap input::placeholder {
    color: #8390a2;
}

/* Resultat */

.legacy-search-results {
    display: flex;
    flex-direction: column;
    gap: 7px;

    max-height: 265px;
    overflow-y: auto;

    margin-top: 15px;
}

.legacy-search-hint {
    margin: 5px 0;

    color: #8190a4;
    font-size: 12px;
    line-height: 1.7;
}

.legacy-search-result {
    display: flex;
    flex-direction: column;
    gap: 5px;

    width: 100%;
    padding: 13px 14px;

    border: none;
    border-radius: 11px;

    background: #f4f7fc;
    color: #17253c;

    font-family: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        background .3s ease,
        transform .3s ease;
}

.legacy-search-result:hover {
    background: #e8f0ff;
    transform: translateX(4px);
}

.legacy-search-result strong {
    color: #1763ff;
    font-size: 14px;
}

.legacy-search-result small {
    color: #66758c;
    font-size: 11px;
    line-height: 1.5;
}

/* Mindre skärmar */

@media (max-width: 600px) {
    .legacy-search-widget {
        bottom: 18px;
        left: 15px;
    }

    .legacy-search-panel {
        width: min(355px, calc(100vw - 30px));
    }

    .legacy-search-toggle {
        padding: 12px 15px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legacy-search-panel,
    .legacy-search-toggle,
    .legacy-search-result {
        transition: none;
    }
}

/* ==========================================
   LEGACY BOT – LEVANDE ROBOTMASKOT
========================================== */

/* Ge roboten plats ovanför sökrutan */

.legacy-search-widget {
    isolation: isolate;
}

/* Robotens placering */

.legacy-bot {
    position: absolute;
    bottom: 54px;
    left: 12px;

    width: 150px;
    height: 175px;

    z-index: 2;
    pointer-events: none;
}

/* Robotkroppen */

.legacy-bot-body {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 150px;

    transform-origin: center bottom;

    animation:
        legacyBotIdle 4s ease-in-out infinite;
}

.legacy-bot-image {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
}

/* Mjuk rörelse när roboten väntar */

@keyframes legacyBotIdle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    35% {
        transform: translateY(-7px) rotate(-2deg);
    }

    70% {
        transform: translateY(-3px) rotate(2deg);
    }
}

/* Robot som vinkar */

.legacy-bot.is-waving .legacy-bot-body {
    animation: legacyBotWave 1.8s ease-in-out;
}

@keyframes legacyBotWave {
    0%, 100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-7deg) translateY(-5px);
    }

    40% {
        transform: rotate(6deg) translateY(-8px);
    }

    60% {
        transform: rotate(-6deg) translateY(-5px);
    }

    80% {
        transform: rotate(4deg);
    }
}

/* Robot som tittar runt */

.legacy-bot.is-looking .legacy-bot-body {
    animation: legacyBotLook 2.2s ease-in-out;
}

@keyframes legacyBotLook {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-8deg);
    }

    60% {
        transform: rotate(7deg);
    }
}

/* Robot blir glad när någon söker */

.legacy-bot.is-happy .legacy-bot-body {
    animation: legacyBotHappy 1.2s ease-in-out;
}

@keyframes legacyBotHappy {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    35% {
        transform: translateY(-15px) scale(1.05);
    }

    65% {
        transform: translateY(-5px) scale(1.02);
    }
}


/* ======================================
   TELEFONEN
====================================== */

.legacy-bot-phone {
    position: absolute;

    bottom: 15px;
    left: -20px;

    width: 32px;
    height: 55px;

    box-sizing: border-box;

    padding: 5px;

    background: #17253c;
    border: 2px solid #1763ff;
    border-radius: 9px;

    box-shadow:
        0 5px 15px rgba(23,37,60,.25);

    opacity: 0;

    transform:
        translate(-25px, 30px)
        rotate(-35deg)
        scale(.5);

    transition:
        opacity .5s ease,
        transform 1s cubic-bezier(.22,1,.36,1);
}

.legacy-bot-phone-screen {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 4px;

    background: #dce9ff;
}

.legacy-bot-phone-icon {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #1763ff;
    font-size: 19px;
}

/* Telefonen kommer fram */

.legacy-bot.is-scanning .legacy-bot-phone {
    opacity: 1;

    transform:
        translate(40px, -35px)
        rotate(-15deg)
        scale(1);
}

/* Skannerlinje */

.legacy-bot-scan-line {
    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: 3px;

    background: #1763ff;

    box-shadow:
        0 0 10px #1763ff;

    opacity: 0;
}

.legacy-bot.is-scanning .legacy-bot-scan-line {
    opacity: 1;
    animation: legacyBotScanLine 1.2s linear 2;
}

@keyframes legacyBotScanLine {
    0% {
        top: 0;
    }

    100% {
        top: calc(100% - 3px);
    }
}

/* Lyckad skanning */

.legacy-bot-scan-success {
    position: absolute;
    top: 40px;
    right: -8px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #1763ff;
    color: white;

    font-family: Arial, sans-serif;
    font-size: 18px;

    opacity: 0;
    transform: scale(.5);

    transition:
        opacity .4s ease,
        transform .4s ease;
}

.legacy-bot.is-scan-complete
.legacy-bot-scan-success {
    opacity: 1;
    transform: scale(1);
}


/* ======================================
   PRATBUBBLA
====================================== */

.legacy-bot-speech {
    position: absolute;

    bottom: 135px;
    left: 115px;

    width: max-content;
    max-width: 185px;

    box-sizing: border-box;

    padding: 10px 14px;

    background: #ffffff;
    color: #17253c;

    border: 1px solid #e3e9f3;
    border-radius: 15px 15px 15px 3px;

    box-shadow:
        0 8px 25px rgba(23,37,60,.10);

    font-family: "Playfair Display", Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;

    opacity: 0;
    transform: translateY(10px);

    transition:
        opacity .5s ease,
        transform .5s ease;
}

.legacy-bot-speech.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ======================================
   SÖKRUTAN ÖPPNAS
====================================== */

.legacy-search-widget.is-open .legacy-bot {
    bottom: 54px;
}

/* När sökpanelen är öppen:
   flytta roboten ovanför panelen */

.legacy-search-widget.is-open .legacy-bot {
    transform: translateY(-360px);
    transition: transform .65s cubic-bezier(.22,1,.36,1);
}

.legacy-search-widget:not(.is-open) .legacy-bot {
    transform: translateY(0);
    transition: transform .65s cubic-bezier(.22,1,.36,1);
}

/* Robotens pratbubbla ska inte kapas */

.legacy-search-widget,
.legacy-search-panel {
    overflow: visible;
}


/* ======================================
   MINDRE SKÄRMAR
====================================== */

@media (max-width: 700px) {

    .legacy-bot {
        width: 110px;
        height: 130px;
    }

    .legacy-bot-body {
        width: 110px;
    }

    .legacy-bot-speech {
        bottom: 105px;
        left: 85px;
        font-size: 10px;
    }

    .legacy-search-widget.is-open .legacy-bot {
        transform: translateY(-350px);
    }

}

@media (prefers-reduced-motion: reduce) {

    .legacy-bot-body,
    .legacy-bot-phone,
    .legacy-bot-scan-line,
    .legacy-bot-speech,
    .legacy-bot {
        animation: none !important;
        transition: none !important;
    }

}
/* LEGACY BOT – BILD UTAN RAM */

.legacy-bot-image {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
}
/* FÖRMINSKA LEGACY BOT */

.legacy-bot {
    width: 95px;
    height: 115px;
    left: 12px;
    bottom: 54px;
}

.legacy-bot-body {
    width: 95px;
}

.legacy-bot-image {
    width: 100%;
    height: auto;
}

/* Anpassa pratbubblan */
.legacy-bot-speech {
    bottom: 95px;
    left: 80px;
    font-size: 11px;
}

/* ==========================================
   LEGACY BOT – GÖM OCH VISA
========================================== */

/* Hela widgeten glider åt sidan */

.legacy-search-widget {
    transition:
        transform 1.1s cubic-bezier(.22, 1, .36, 1);
}

/* När roboten är gömd */
.legacy-search-widget.is-hidden {
    transform: translateX(calc(-100% + 24px));
}

/* Litet kryss */

.legacy-bot-hide {
    position: absolute;
    top: -58px;
    left: 95px;
    z-index: 15;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;

    padding: 0;
    border: 1px solid #dce6f5;
    border-radius: 50%;

    background: white;
    color: #1763ff;

    font-family: Arial, sans-serif;
    font-size: 18px;

    box-shadow:
        0 3px 12px rgba(23, 37, 60, .12);

    cursor: pointer;

    transition:
        background .3s ease,
        transform .3s ease;
}

.legacy-bot-hide:hover {
    background: #edf4ff;
    transform: scale(1.1);
}

/* Knapp för att öppna igen */

.legacy-bot-show {
    position: absolute;
    top: -115px;
    right: -3px;
    z-index: 20;

    display: none;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 48px;

    border: none;
    border-radius: 0 12px 12px 0;

    background: transparent;
    color: #1763ff;

    font-size: 25px;
    cursor: pointer;
}

/* När widgeten är gömd */

.legacy-search-widget.is-hidden
.legacy-bot-hide {
    display: none;
}

.legacy-search-widget.is-hidden
.legacy-bot-show {
    display: flex;
}

/* Stäng pratbubblan när roboten göms */

.legacy-search-widget.is-hidden
.legacy-bot-speech {
    opacity: 0 !important;
    visibility: hidden;
}

/* Dölj sökpanelen när roboten är gömd */

.legacy-search-widget.is-hidden
.legacy-search-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Förhindra att sökknappen går att klicka på */

.legacy-search-widget.is-hidden
.legacy-search-toggle {
    pointer-events: none;
}

/* Pausa animationerna när roboten är gömd */

.legacy-search-widget.is-hidden
.legacy-bot-body {
    animation-play-state: paused;
}

/* ==========================================
   LEGACY BOT – KIKAR FRAM FRÅN KANTEN
========================================== */

/* Widgetens vanliga position */
.legacy-search-widget {
    left: 30px;
    transition: left 1s cubic-bezier(.22, 1, .36, 1);
}

/* Flytta roboten mot skärmkanten */
.legacy-search-widget.is-hidden {
    left: -65px;
    transform: none !important;
}

/* Dölj sökknappen helt */
.legacy-search-widget.is-hidden .legacy-search-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Dölj sökpanelen */
.legacy-search-widget.is-hidden .legacy-search-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Låt huvudet synas och kunna klickas */
.legacy-search-widget.is-hidden .legacy-bot {
    pointer-events: auto;
    cursor: pointer;
}

/* Gör roboten lite sned så han ser ut att kika fram */
.legacy-search-widget.is-hidden .legacy-bot-body {
    animation: none !important;
    transform: rotate(9deg) translateX(5px);
    transition: transform .8s ease;
}

/* Dölj pratbubblan när han gömmer sig */
.legacy-search-widget.is-hidden .legacy-bot-speech {
    opacity: 0 !important;
    visibility: hidden;
}

/* Dölj krysset */
.legacy-search-widget.is-hidden .legacy-bot-hide {
    display: none;
}

/* Lägg återöppningsknappen över robotens huvud */
.legacy-search-widget.is-hidden .legacy-bot-show {
    display: block;
    position: absolute;
    top: -115px;
    left: 65px;
    right: auto;
    width: 55px;
    height: 70px;
    z-index: 30;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Ta bort pilen – man klickar direkt på huvudet */
.legacy-bot-show span {
    display: none;
}
/* FLYTTA KRYSSET ÅT HÖGER */

.legacy-bot-hide {
    left: 120px !important;
}
/* TILLBAKA TILL TOPPEN – HALVTRANSPARENT */

.back-to-top {
    opacity: 0.5 !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Blir tydligare när man håller musen över */
.back-to-top:hover {
    opacity: 1 !important;
}
/* HALVTRANSPARENT TILLBAKA TILL TOPPEN */

.back-to-top,
.back-to-top-btn,
.scroll-to-top,
#backToTop,
#scrollToTop {
    opacity: 0.5 !important;
}

/* Full synlighet vid hover */
.back-to-top:hover,
.back-to-top-btn:hover,
.scroll-to-top:hover,
#backToTop:hover,
#scrollToTop:hover {
    opacity: 1 !important;
}

/* TILLBAKA TILL TOPPEN – HALVTRANSPARENT */

.desktop-back-to-top.is-visible {
    opacity: 0.5 !important;
}

/* Helt synlig när musen är över */
.desktop-back-to-top.is-visible:hover {
    opacity: 1 !important;
}

/* SNYGG PIL – TILLBAKA TILL TOPPEN */

.desktop-back-to-top {
    font-family: Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.desktop-back-to-top span {
    display: inline-block;
    font-family: Arial, sans-serif !important;
    font-size: 26px !important;
    line-height: 1 !important;
    transform: none !important;
}
/* Göm roboten när sökrutan är öppen */
.legacy-search-widget.is-open .legacy-bot,
.legacy-search-widget.is-open .legacy-bot-hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ==========================================
   LEGACY BOT – MINDRE OCH LITE ÅT VÄNSTER
========================================== */

@media (min-width: 769px) {

    .legacy-search-widget {
        transform: scale(0.85) translateX(-25px);
        transform-origin: bottom right;
    }

}


/* MER MELLANRUM MELLAN TJÄNSTERNA OCH FOOTERN */

@media (min-width: 769px) {
    #servicePage .legacy-services {
        margin-bottom: 180px !important;
    }
}
