
/* ==========================================
   EMMABODA LJUSTÄNDNING
   DESKTOP CSS
========================================== */


/* ==========================================
   1. JULILLUSTRATION OCH HERO
========================================== */

.lp-hero {
  position: relative;
}

.lp-startpage-hero-content {
  /*background-image: url("https://www.emmaboda.se/images/18.446fdf051a0d39929573000/1792052932690/Namnl%C3%B6s%20-%2012%20oktober%202026%20kl.%2016.23.13-2%20(3).png");*/

  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center calc(-15vw);
  background-color: transparent;

  padding-top: clamp(320px, 35vw, 580px) !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;

  box-sizing: border-box;
}


/* ==========================================
   2. TYPOGRAFI
========================================== */

.sv-font-vit-brodtext {
  font-family: "cooper-black-std", Georgia, serif !important;
  font-weight: bold;
  font-style: normal;
  font-size: 1.125em;
  color: #ffffff;
  line-height: 1.5;
}

.sv-font-vit-mellanrubrik-h2 {
  font-family: "cooper-black-std", Georgia, serif !important;
  font-weight: 900;
  font-style: normal;
  font-size: 1.5em;
  color: #ffffff;
  line-height: 1.5;
}

.sv-font-vit-sidrubrik-h1 {
  font-family: "cooper-black-std", Georgia, serif !important;
  font-weight: 900;
  font-style: normal;
  font-size: 4.2rem;
  color: #ffffff;
  line-height: 1.5;
  margin-top: 0;
}

/* Rubriker i hero */

.lp-hero h1,
.lp-hero h2 {
  font-family: "cooper-black-std", Georgia, serif;
  font-style: normal;
  font-weight: 400;
}

/* Vanlig text i hero */

.lp-startpage-hero-content p.normal {
  font-size: 0.85em;
  line-height: 1.5;
  color: #ffffff;
  margin: 0 !important;
}


/* ==========================================
   3. KNAPPAR - UTSEENDE
========================================== */

.lp-link-button a {
  font-size: 1.25em;
  line-height: 1.5em;
  color: #ffffff !important;
  font-weight: 400;
  text-transform: none;
  text-decoration: none !important;

  padding: 17px 50px;

  border: 1px solid #AE2022 !important;
  border-radius: 8px;

  display: inline-block;
  background-color: #AE2022;

  /* Ingen vänstermarginal */
  margin-left: 0;

  /* Knappar framför snöflingorna */
  position: relative;
  z-index: 999;
}

/* Hover och fokus */

.lp-link-button a:hover,
.lp-link-button a:focus {
  -webkit-box-shadow: 0 0 0 1px #ffffff !important;
  box-shadow: 0 0 0 1px #ffffff !important;

  background-color: #ffffff !important;
  color: #AE2022 !important;
  border-color: #ffffff !important;
}


/* ==========================================
   4. KNAPPAR - CENTRERING
========================================== */

/* Gemensam layout runt alla knappar */

.lp-ljustandning-buttons {
  width: 100%;
  box-sizing: border-box;
}

/* Centrera knapparnas gemensamma behållare */

.lp-ljustandning-buttons > .pagecontent,
.lp-ljustandning-buttons:not(:has(> .pagecontent)) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

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

  column-gap: 1em;
  row-gap: 1em;

  width: 100%;
  box-sizing: border-box;
}

/* Varje knappbehållare */

.lp-ljustandning-buttons .lp-link-button {
  width: auto;
  margin: 0 !important;
  padding: 0;
  text-align: center;
  flex: 0 0 auto;
}

/* Knapptext */

.lp-ljustandning-buttons .lp-link-button a {
  margin: 0 !important;
  text-align: center;
  position: relative;
  z-index: 999;
}

/* Ta bort extra styckemarginaler */

.lp-ljustandning-buttons .lp-link-button p {
  margin: 0 !important;
  padding: 0;
}


/* ==========================================
   5. LÄNKAR
========================================== */

a:hover,
a:focus {
  text-decoration: underline;
}

a.sv-font-vit-brodtext:hover,
.sv-font-vit-brodtext a:hover,
a.sv-font-vit-brodtext:focus,
.sv-font-vit-brodtext a:focus {
  color: #ffffff;
  text-decoration: underline;
}

.sv-linkicon {
  padding-left: 4px;
  max-width: 11px;
  display: none;
}


/* ==========================================
   6. SITEVISION - KNAPPAR I FORMULÄR
========================================== */

.env-button--primary {
  background-color: #AE2022;
  border-color: #ffffff !important;
  color: #ffffff !important;

  padding: 15px;
  font-weight: normal;
  border: 1px solid #ffffff !important;
}

.env-button--primary:active,
.env-button--primary:hover {
  border-color: #AE2022 !important;
  color: #AE2022 !important;
}

.env-button--primary:focus,
.env-button--primary:hover {
  background-color: #ffffff;
  color: #AE2022 !important;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
.sv-defaultFormTheme input[type="button"]:hover,
.sv-defaultFormTheme input[type="submit"]:hover,
.sv-defaultFormTheme input[type="reset"]:hover,
.sv-defaultFormTheme input[type="button"]:focus,
.sv-defaultFormTheme input[type="submit"]:focus,
.sv-defaultFormTheme input[type="reset"]:focus {
  color: #fff;
  background-color: #f2f6f9;
  outline: 0;
  box-shadow: 0 0 0 1px #82122f;
}


/* ==========================================
   7. VERKTYGSMENY
========================================== */

.lp-toolsmenu:before {
  height: 78px;
  width: 100%;
  content: "";
  background: transparent !important;
  position: absolute;
  left: 0;
}


/* ==========================================
   8. SIDHUVUD
========================================== */

header {
  background: #15436d;
  position: absolute;
  overflow: hidden;
}


/* ==========================================
   9. LOGOTYP
========================================== */

.lp-logo {
  margin: 0 25px 16px 30px;
  float: left;
  position: relative;
  z-index: 2;

  background-color: rgba(0,0,0,0.3);
  padding: 20px;

  display: none;
}


/* ==========================================
   10. STARTSIDEPUFFAR
========================================== */

.lp-start-boxes > .pagecontent {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  -ms-flex-wrap: wrap;
  flex-wrap: wrap;

  margin: 0 -15px;
}

.lp-start-boxes > .pagecontent > .sv-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;

  width: 33.33333333333333%;
  margin-bottom: 30px;
  padding: 0 15px;

  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.lp-start-boxes > .pagecontent > .sv-layout:nth-child(4n+2),
.lp-start-boxes > .pagecontent > .sv-layout:nth-child(5n) {
  width: 66.66666666666667%;
}

.lp-start-boxes > .pagecontent > .sv-layout > div {
  width: 100%;
}

.lp-start-boxes > .pagecontent > .sv-layout > .sv-layout {
  background-color: #11A789;
  padding: 60px;
  position: relative;

  background-position: center;
  background-size: cover;

  min-height: 240px;
}

.lp-start-boxes > .pagecontent > .sv-layout:nth-child(odd) > .sv-layout {
  background-color: #DF792C;
}


/* ==========================================
   11. TEXT I STARTSIDEPUFFAR
========================================== */

.lp-start-boxes h2,
.lp-start-boxes h2 a {
  color: #ffffff;
  font-size: 22px;
  line-height: 32px;
  font-weight: 600;
  margin: 0;
}

.lp-start-boxes h2 a {
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;

  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}

.lp-start-boxes p.normal {
  color: #ffffff;
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 0 !important;
}


/* ==========================================
   12. PUFFAR UTAN BAKGRUNDSBILD
========================================== */

.lp-start-boxes > .pagecontent > .sv-layout > .sv-layout > .sv-text-portlet h2,
.lp-start-boxes > .pagecontent > .sv-layout > .sv-layout > .sv-text-portlet h2 a {
  font-size: 36px;
  line-height: 46px;
  margin-bottom: 15px;
}

.lp-start-boxes > .pagecontent > .sv-layout > .sv-layout > .sv-text-portlet h2 a {
  text-decoration: none;
  border-bottom-width: 4px;
  font-size: 36px;
  line-height: 42px;
  margin-bottom: 15px;
}


/* Pil efter text */

.lp-start-boxes > .pagecontent > .sv-layout > .sv-layout > .sv-text-portlet .normal:after {
  content: "";
  height: 38px;
  width: 25px;

  background-image: url("data:image/svg+xml,%3Csvg%20viewBox='0%200%2037.54%2058.95'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23fff'%3E%3Cpath%20d='M1.89%2C1.63a5.62%2C5.62%2C0%2C0%2C1%2C8%2C0l27.7%2C28-28%2C27.7a5.62%2C5.62%2C0%2C1%2C1-7.91-8L22%2C29.15%2C1.85%2C9.58A5.62%2C5.62%2C0%2C1%2C1.89%2C1.63Z'%3E%3C/path%3E%3C/svg%3E");

  background-repeat: no-repeat;
  display: block;
  margin-top: 30px;
}


/* ==========================================
   13. TEXT PÅ BAKGRUNDSBILD
========================================== */

.lp-start-boxes > .pagecontent > .sv-layout > .sv-layout > .sv-layout {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  background: rgba(34,34,34,0.7);

  padding: 20px 30px;
  width: auto;
}


/* ==========================================
   14. HOVER FÖR STARTSIDEPUFFAR
========================================== */

.lp-start-boxes > .pagecontent > .sv-layout > .sv-layout:hover h2 a {
  border-color: #ffffff;
  padding-bottom: 2px;
  margin-bottom: 5px;
}


/* ==========================================
   15. SITEVISION - REDIGERINGSLÄGE
========================================== */

.lp-start-boxes > .pagecontent.sv-editable-layout > .sv-layout:nth-child(4n+2),
.lp-start-boxes > .pagecontent.sv-editable-layout > .sv-layout:nth-child(5n) {
  width: 33.33333333333333%;
}

.lp-start-boxes > .pagecontent.sv-editable-layout > .sv-layout:nth-child(4n+1),
.lp-start-boxes > .pagecontent.sv-editable-layout > .sv-layout:nth-child(4n) {
  width: 66.66666666666667%;
}

.lp-start-boxes > .pagecontent.sv-editable-layout > .sv-layout > .sv-layout {
  background-position: center !important;
  background-size: cover !important;
}


/* ==========================================
   16. MJUK SCROLLNING MELLAN AVSNITT
========================================== */

/* Mjuk scrollning */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Tillgänglighet: minska rörelser */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Avstånd ovanför ankarmål */

[id^="Text"] {
  scroll-margin-top: 30px;
}
