
	
	html>body, html>body #wrapper, html>body #wrapper2 {
height: auto;
}

#main {
margin: 0;
padding: 0;
}
/* \*/
* html #footer {
position: absolute;
}
* html #footer2{
position: absolute;
}
* html #main {
padding-bottom: 200px;
color: #000000;

}
/* \*/
head:first-child+body div#footer {
position: absolute;
z-index:0;
}

head:first-child+body div#footer2 {
position: absolute;
z-index:0;
}

head:first-child+body div#main {
/*padding-bottom: 100px;*/
}
 
}
 
@media all and (min-width:0px) {
head~body {height:100%;}
}


html, body, #wrapper, wrapper2 {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	font-family: 'Archivo', Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 11pt;
	color: #000000;
	display: flex;
  flex-direction: column;
}
html>body, html>body #wrapper, html>body #wrapper2 {
height: auto;
}
 

 
	
#headcontent {height:85px; background:#ccc; margin-left:200px; position:relative; padding:10px;}
 
#sidebar {
width:180px; float:left;
padding:10px;
background:#aaa;
}
 
#content {
margin-left:200px;
padding:10px;
}
 
.clear {
clear: both;
margin: 0;
padding: 0;
}
 


 
#main {
margin: 0;
padding: 0;
		width: 960px;
	text-align:left;
	MARGIN-LEFT: auto; 
	MARGIN-RIGHT: auto;
	display: flex;
  flex-direction: column;
  flex: 1 0 auto;      
}

#maincontent {
margin: 0;
padding: 0;
		width: 870px;
		background-color:#fff;
	margin-top: 15px;
	margin-bottom: 15px;
	text-align:left;
	MARGIN-LEFT: auto; 
	MARGIN-RIGHT: auto;
		padding: 15px 45px 20px 45px;
		
}
/* \*/
* html #footer {
position: absolute;
}

* html #footer2 {
position: absolute;
}

#empty {
margin: 0;
padding: 0;
		width: 100%;
		height: 33px;
	background-color: #0066FF;
}

* html #main {
padding-bottom: 270px;
}
/* \*/
head:first-child+body div#footer {
position: absolute;
z-index:0;
}

head:first-child+body div#footer2 {
position: absolute;
z-index:0;
}

head:first-child+body div#main {
/*padding-bottom: 270px;*/
}
 
}

#footer {
	width: 100%; /* full bredd oavsett container */
	position: relative;
	min-height:280px;
	color:#fefefe;
	background-color:#3a3a3a;
	background-repeat:no-repeat;
	background-position:right bottom;
	margin: 0;
	bottom:0;
	/*MARGIN-LEFT: auto; 
	MARGIN-RIGHT: auto;*/
clear: both;
overflow:hidden;
font-family: 'Archivo', Arial, Helvetica, sans-serif;
display: flex; /*royal loggan ok*/
justify-content: center; /* centrera .footer-inner */
}

/* Ny footer */
#footer2 {
	width: 100%;
	position: relative;
	min-height: 280px;
	color: #fefefe;
	background-color: #3a3a3a;
	background-repeat: no-repeat;
	background-position: right bottom;
	margin: 0;
	bottom: 0;
	clear: both;
	overflow: hidden;
	font-family: 'Archivo', Arial, Helvetica, sans-serif;
	display: flex;
	justify-content: center;
	flex-shrink: 0;
	/*padding: 20px 0;
  box-sizing: border-box;*/
}


form#form1, #page-container {
    margin: 0;
	padding: 0;
	border: 0;
	height: 100%;
    display: flex;
    flex-direction: column;
}

form#form2, #page-container {
  margin: 0;
  padding: 0;
  border: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

form#aspnetForm {
  margin: 0;
  padding: 0;
  border: 0;
}

#logo-footer {
	z-index:0;
	width: 960px;
	background-color: #fefefe;
	margin: 0px;
	margin-top: -10px; /* Justera värdet efter behov */
	margin-bottom: 15px;
	MARGIN-LEFT: auto; 
	MARGIN-RIGHT: auto;
	height: 125px;
	padding-top: 0px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	/*flex: 0 0 auto; /* kan justeras till flex: 1 om den ska fylla allt kvarvarande */
}

#logo-footer2{
	z-index:0;
	width: 960px;
	background-color: #fefefe;
	margin: 0px;
	margin-top: -10px; /* Justera värdet efter behov */
	margin-bottom: 15px;
	MARGIN-LEFT: auto; 
	MARGIN-RIGHT: auto;
	height: 125px;
	padding-top: 0px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 1 0 auto; /* kan justeras till flex: 1 om den ska fylla allt kvarvarande */
}


.footer-left {
  position: absolute;   /* tar sig ur flexcentreringen */
  left: 20px;           /* till vänster */
  bottom: 10px;         /* längst ner */
  margin: 0;            /* nollställ ev. auto-marginaler */
  width: auto;          /* säkerställ att den inte fyller 100% */
}

.footer-left .spacer {
  flex: 1 1 auto;             /* tar all “tom” höjd ovanför knappen */
}

.footer-left .button {
  width: auto !important;   /* om .button annars sätter width:100% */
  height: auto !important;
  display: inline-block;
  flex: 0 0 auto;
}

.button-left {
  margin: 0;         /* tar bort eventuell auto-centrering */
}



/* Nytt för EDS nya-footern*/
.footcontent {
  background-color: #3a3a3a;
  color: #fefefe;
  padding: 20px 30px;  /* top right/left bottom */
  max-width: 960px;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: 'Archivo', Arial, Helvetica, sans-serif;
}

/* Rad med kolumner */
.footrow {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}

/* Gemensamt för kolumner */
.footcol {
  flex: 1.75;
  min-width: 200px;
  font-size: 12px;
  line-height: 1.2;
}

.footcol.logo {
  flex: 3.5;
}

.footcol.logo img {
  width: 80%;
  margin-bottom: 10px;
}
.footcol.logo p {
  color: #bbbbbb;
  font-size: 12px;
  line-height: 1.2;
  margin: 0;
}

.fotrubrik {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 5px;
  display: inline-block;
}

.footcol a {
  color: #bbbbbb;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 4px;
}

.footcol a:hover {
  color: #fefefe;
  text-decoration: underline;
}

/* Gemensamma länkar i footer */
.footcontent a,
.footer-bottom a {
  color: #bbbbbb;
  text-decoration: none;
  background-color: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footcontent a:hover,
.footer-bottom a:hover {
  color: #fefefe;
  text-decoration: underline;
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid #555;
  padding: 10px 0 0;
  margin-top: 10px;
  font-size: 11px;
  color: #bbbbbb;
  background-color: transparent; /* Ingen ny bakgrund! */
  text-align: center;
  box-sizing: border-box;
}

.footer-bottom-links {
  margin-bottom: 2px;
}

.footer-bottom a {
  color: #bbbbbb;
  text-decoration: none;
  margin: 0 5px;
}

.footer-bottom-copy {
  font-size: 11px;
  color: #bbbbbb;
  margin-bottom: 2px; 
}

/* Hela footern, 125 px hög och mörk bakgrund (tvingad i PDF) */
body.pdf #pdf-logo-footer {
    z-index:0;
	width: 960px;
	background-color: #ffffff; /* #3a3a3a;  #e1e1e1 – ljusgrå  #ffffff – vit
	margin: 0px;
	margin-top: -10px; /* Justera värdet efter behov */
	margin-bottom: 15px;
	MARGIN-LEFT: auto; 
	MARGIN-RIGHT: auto;
	height: 125px;
	padding-top: 0px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

#pdf-logo-footer {
    z-index:0;
	width: 960px;
	background-color: #ffffff;
	margin: 0px;
	margin-top: -10px; /* Justera värdet efter behov */
	margin-bottom: 15px;
	MARGIN-LEFT: auto; 
	MARGIN-RIGHT: auto;
	height: 125px;
	box-sizing: border-box; /* så höjden 270px hålls utan overflow */
	padding-top: 0px;
	padding-bottom:6px;    /* lite luft under copy */
	position: relative;
	display: flex;
	/*justify-content: center;
	align-items: center;*/
	flex-direction: column;          /* ?? Stapla under varandra */
    justify-content: flex-start;     /* ?? Låt .push-pdf trycka ner botteninnehållet */
    align-items: center;             /* ?? Centrera horisontellt */
}

/* Större logo men inom 125 px totalhöjd */
body.pdf #pdf-logo-footer .logo-img-pdf {
  max-height: 90px;/*90px;*/
  width: auto;
  margin: 0 auto; 
  margin-top: 6px;  
  padding-top: 20px;
  display: block;
}

/* Spacer som trycker ner linje + copy till botten */
body.pdf #pdf-logo-footer .push-pdf { flex: 1; width: 100%; }

/* Linje precis ovanför copyright */
body.pdf #pdf-logo-footer .separator-pdf {
  width: 100%;
  border-top: 1px solid #555 !important;
  height: 0;
  margin: 6px 0 4px;
}

/* Copyright längst ner */
body.pdf #pdf-logo-footer .footer-bottom-copy-pdf {
  font-size: 10px;
  margin: 0;
  line-height: 1;
  text-align: center;
  color: #bbbbbb;
  font-family: 'Archivo', Arial, Helvetica, sans-serif;
}

/* Texten under loggan */
body.pdf #pdf-logo-footer p {
  margin: 4px 0 0;   /* lite avstånd från loggan */
  font-size: 12px;
  line-height: 1.3;
  text-align: left;  /* vänsterjusterad text */
   color: #bbbbbb;
  font-family: 'Archivo', Arial, Helvetica, sans-serif;
}

/* Footern ska alltid vara längst ner men inte täcka annat */
.footer-bottom-fixed {
  flex-shrink: 0;
  width: 100%;
  background-color: #3a3a3a;
  color: #fefefe;
  font-size: 12px;
  text-align: center;
  border-top: 1px solid #555;
  padding: 10px 0 12px;
  box-sizing: border-box;
}



/* Rubriken "Sponsorer" */
.sponsor-title {
  background-color: #f5f5f5; /*#e1e1e1;  grå bakgrund */
  color: #000;               /* svart text */
  padding: 5px 0 5px 0;
  margin: 0 0 0 0;
  text-align: center;
  font-family: 'Archivo', Arial, Helvetica, sans-serif !important;
  width: 960px; 
  align-self: stretch;/* säkerställ full bredd i flex-läge */  
  border-top-left-radius: 26px;
  border-top-right-radius: 8px;
}


.sponsorband {
  width: 100%;
  display: flex;
  justify-content: center;   /* centrera horisontellt */
  align-items: center;       /* centrera vertikalt om det behövs */
}

.sponsorband img {
  display: block;           /* du hade 'isplay' här 😊 */
  margin: 0 auto;
  float: none !important;   /* om något annat satt float:right; etc */
}

/* Agria */
.sponsorband-1 img {
  max-width: 100%;
  max-height: 100px;
}

/* Royal Canin */
.sponsorband-2 img {
  max-width: 100%;
  max-height: 125px;
  /* align-items:center; gör inget på img, så vi tar bort det */
}


/* PDF: enklare centrering utan flex */
body.pdf .sponsorband {
  width: 100%;
  display: block !important;       /* stäng av flex i PDF */
  text-align: center !important;   /* centrera innehållet */
}

body.pdf .sponsorband img {
  display: inline-block !important;
  margin: 0 auto !important;
  float: none !important;
}


 
@media all and (min-width:0px) {
head~body {height:100%;}
}

.white
{background-color: #FF66CC;
width: 100%;
height: 100%;
margin-bottom: 33px;
	padding: 15px 45px 20px 45px;
}


/* --- MOBIL-OVERRIDES (ändrar inget på desktop) --- */
@media (max-width: 768px) {
  /* Slå av ev. flex/100vh-sticky-känsla på mobil */
  #page-container, #wrapper, #main {
    display: block;
    min-height: auto;
  }

  /* Låt footern bete sig normalt och inte breda ut sig */
  #footer2 {
    position: static !important;     /* inte pinned */
    bottom: auto !important;
    margin-top: 0 !important;
    min-height: unset;
    padding: 16px 12px;

    /* hindra att bakgrund “flödar över” */
    background-size: contain;
    background-position: center bottom;

    /* bättre radbrytning om den har flexinnehåll */
    flex-wrap: wrap;
  }
  
  /* Säkerställ att loggor inte orsakar overflow */
  #logo-footer {
    max-width: 100%;
    overflow: hidden;
    text-align: center;
  }
  #logo-footer img,
  #logo-footer svg {
    max-width: 100%;
    height: auto;
  }

  /* Extra skydd mot sidledes scroll på små skärmar */
  html, body { overflow-x: hidden; }
}





/* Gör root-formuläret till en flex-container i kolumn */
form#form1, form#form2, #page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Innehållet ska ta plats; footern trycks ned */
#wrapper, #wrapper2, #main {
  flex: 1 0 auto;
}

/* Neutralisera gamla IE-hacks och absolut-positionering */
#footer2 {
  position: relative !important;
  bottom: auto !important;
  margin-top: auto !important;  /* <- nyckeln som trycker ner footern */
  z-index: 1;                   /* under cookie-bannern */
}



@media print {
  

  .footrow {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .footcol {
    display: table-cell;
    vertical-align: top;
    padding: 0 10px;
  }

  .footcol.logo {
    width: 50%;
  }

  .footer-bottom {
    page-break-inside: avoid;
    border-top: 1px solid #555;
  }
  .footer-printfix {
    background-color: #3a3a3a !important; /* Grå bakgrund */
    color: #fefefe !important;         /* Vit text */
    padding: 20px;
    text-align: center;
    font-size: 0.95em;
    font-family: 'Archivo', Arial, sans-serif;
  }
  .maincontent-printfix a {
    color: 216fb9 !important; /* länkar i blå text också */
  }
  .footer-printfix a {
    color: #fefefe !important; /* länkar i vit text också */
    text-decoration: none !important;
  }
}


