BODY {BEHAVIOR: url(csshover.htc); FONT-FAMILY: Arial; TEXT-ALIGN: center; BACKGROUND-COLOR: #EDEDED; color:#000000; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; margin: 0; padding: 0;}

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

/* =====================================================
   FULL-BLEED WRAPPERS for top and bottom dark bars.
   Uses margin-left/width trick — NO transform — so no
   new stacking context is created. This is critical:
   transform on a parent breaks position:fixed for all
   children (hamburger button stops being fixed and
   z-index gets trapped inside the parent context).
   ===================================================== */
.fullbleed-top {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: #4D5359;
  margin-top: 0;
  padding: 0;
}
.fullbleed-bottom {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: #4D5359;
  margin-bottom: 0;
  padding: 0;
}

/* =====================================================
   LAYOUT
   ===================================================== */
#top {WIDTH: 100%; HEIGHT: auto; float: left; BACKGROUND-COLOR: #4D5359; MARGIN-TOP: 0px;}
#topobal {MARGIN-LEFT: 0; WIDTH: 100%; MARGIN-RIGHT: 0; POSITION: relative; TEXT-ALIGN: left; BACKGROUND-COLOR: #4D5359;}
#logo {display: none;}
#logomobil {WIDTH: 100%; HEIGHT: auto; BACKGROUND-COLOR: #4D5359; position: relative;}
#menupc {display: none;}
#hambacobal {display: none;}

#middle {WIDTH: 100%; HEIGHT: auto; float: left; BACKGROUND-COLOR: #EDEDED; overflow: hidden;}
#nadpis {MARGIN-LEFT: auto; WIDTH: 100%; MARGIN-RIGHT: auto; POSITION: relative; TEXT-ALIGN: left; BACKGROUND-COLOR: #EDEDED;}
#middleobal {MARGIN-LEFT: auto; WIDTH: 100%; MARGIN-RIGHT: auto; POSITION: relative; TEXT-ALIGN: left; BACKGROUND-COLOR: #EDEDED; display: block;}
#emailmobil {WIDTH: 100%; BACKGROUND-COLOR: #EDEDED;}
#emailpc {display: none;}
#content {display: none;}
#contentmobil {WIDTH: 100%; HEIGHT: auto; float: left; margin-top: 5px; BACKGROUND-COLOR: #EDEDED;}
#contentuni {WIDTH: 100%; HEIGHT: auto; float: left; margin-top: 10px; BACKGROUND-COLOR: #EDEDED;}
#right {display: none;}

#bottom {WIDTH: 100%; HEIGHT: auto; float: left; BACKGROUND-COLOR: #4D5359; MARGIN-BOTTOM: 0px; MARGIN-TOP: 20px;}
#bottomobal {display: none;}
#bottomobalmobil {MARGIN-LEFT: 0; WIDTH: 100%; MARGIN-RIGHT: 0; POSITION: relative; TEXT-ALIGN: left; BACKGROUND-COLOR: #4D5359; PADDING-TOP: 10px;}

.bottomline {display: none;}
.bottomlineobalmob {MARGIN-LEFT: auto; WIDTH: 100%; MARGIN-RIGHT: auto; MARGIN-BOTTOM: 10px; POSITION: relative; TEXT-ALIGN: left; BACKGROUND-COLOR: #EDEDED;}
.bottomlineobal {display: none;}

.admob {BACKGROUND-COLOR: #EDEDED;}

/* =====================================================
   VEHICLE LIST (nabidka cards)
   ===================================================== */
.nabidka {WIDTH: 100%; HEIGHT: auto; BACKGROUND-COLOR: #EDEDED; MARGIN-BOTTOM: 3px; overflow: hidden;}
div.nabidka:hover {BACKGROUND-COLOR: #D9E2E7; border-radius:5px; box-shadow: 0px 0px 5px black;}
.nabidkaobr {WIDTH: 37%; float: left;}
.nabidkatext {WIDTH: 63%; float: left; PADDING-TOP: 2px; box-sizing: border-box;}
.obrazeknabidka {border: 5px solid white; margin: 5px 6px 5px 4px; box-shadow: 0px 0px 4px #000000; width: calc(100% - 10px); max-width: 100%; height: auto; display: block;}

/* =====================================================
   IMAGES
   ===================================================== */
.border {border: 8px solid white; box-shadow: 0px 0px 4px #000000;}
.foto {margin: 0px;}

/* =====================================================
   LINKS
   ===================================================== */
a:link {text-decoration: none;}
a:visited {text-decoration: none;}
a:hover {text-decoration: none;}
a:hover p.menupismo {color: #B85042;}
.text a:link   {color: #A01A21; font-weight: bold; text-decoration: none}
.text a:visited   {color: #A01A21; font-weight: bold; text-decoration: none}
.text a:hover   {color: #A01A21; font-weight: bold; text-decoration: underline}
.fototext a:link   {color: #A01A21; font-weight: bold; text-decoration: none}
.fototext a:visited   {color: #A01A21; font-weight: bold; text-decoration: none}
.fototext a:hover   {color: #A01A21; font-weight: bold; text-decoration: underline}
.table a:link   {color: #A01A21; text-decoration: none}
.table a:visited   {color: #A01A21; text-decoration: none}
.table a:hover   {color: #A01A21; text-decoration: underline}
.kapitola a:link   {color: #A01A21; font-weight: bold; text-decoration: none}
.kapitola a:visited   {color: #A01A21; font-weight: bold; text-decoration: none}
.kapitola a:hover   {color: #A01A21; font-weight: bold; text-decoration: underline}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.logo1 {
	font-family: Arial;
	font-size: clamp(14px, 3.5vw, 22px);
	color: #F2F2E8;
	font-weight: normal;
	text-align: center;
	font-style: italic;
	margin-top: 0px;
	margin-bottom: 12px;
}
.menupismo {
	font-family: Arial;
	font-size: clamp(16px, 4vw, 24px);
	line-height: 1.4;
	color: #F2F2E8;
	font-weight: bold;
	text-align: center;
	margin-top: 0px;
	margin-bottom: 0px;
}
.titulekmenu {
	font-family: Arial;
	font-size: clamp(22px, 6.5vw, 42px);
	color: #A01A21;
	font-weight: bold;
	text-align: center;
	margin-left: 8px;
	margin-right: 8px;
	margin-top: 24px;
	margin-bottom: 4px;
}
.titulektext {
	font-family: Arial;
	font-size: clamp(22px, 6.5vw, 42px);
	color: #A01A21;
	font-weight: bold;
	text-align: center;
	margin-left: 8px;
	margin-right: 8px;
	margin-top: 20px;
	margin-bottom: 4px;
}
.podtitulekmenu {
	font-family: Arial;
	font-size: clamp(13px, 3.5vw, 20px);
	color: black;
	font-weight: normal;
	text-align: center;
	font-style: italic;
	margin-top: 0px;
	margin-bottom: 20px;
}
.podtitulektext {
	font-family: Arial;
	font-size: clamp(14px, 3.7vw, 21px);
	color: black;
	font-weight: normal;
	text-align: center;
	font-style: italic;
	margin-top: 0px;
	margin-bottom: 12px;
}
.podtitulektextm {
	font-family: Arial;
	font-size: clamp(13px, 3.5vw, 20px);
	color: black;
	font-weight: normal;
	text-align: center;
	font-style: italic;
	margin-top: 0px;
	margin-bottom: 20px;
}
.book {
	font-family: Arial;
	font-size: clamp(14px, 3.8vw, 20px);
	color: #000000;
}
.kapitola {
	font-family: Arial;
	font-size: clamp(18px, 5vw, 28px);
	color: #A01A21;
	font-weight: bold;
	text-align: center;
	margin-left: 8px;
	margin-right: 8px;
	margin-top: 24px;
	margin-bottom: 11px;
}
.news {
	font-family: Arial;
	font-size: clamp(18px, 5vw, 28px);
	color: #EDEDED;
	font-weight: bold;
	text-align: center;
	margin-top: 8px;
	margin-bottom: 8px;
}
.navigace {
	font-family: Arial;
	font-size: clamp(13px, 3.6vw, 22px);
	line-height: 1.2;
	color: #A01A21;
	font-weight: bold;
	text-align: left;
	margin-left: 6px;
	margin-right: 4px;
	margin-top: 6px;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.subnavigace {
	font-family: Arial;
	font-size: clamp(11px, 3.0vw, 16px);
	line-height: 1.25;
	color: #000000;
	font-weight: normal;
	text-align: left;
	margin-left: 6px;
	margin-right: 4px;
	margin-top: 0px;
	margin-bottom: 2px;
}
.textnovinky {
	font-family: Arial;
	font-size: clamp(12px, 3vw, 16px);
	color: #000000;
	font-weight: normal;
	text-align: center;
	margin-left: 10px;
	margin-right: 10px;
	margin-top: 5px;
	margin-bottom: 5px;
}
.datum {
	font-family: Arial;
	font-size: clamp(13px, 3.2vw, 16px);
	color: #B85042;
	font-weight: bold;
	text-align: center;
	margin-left: 0px;
	margin-right: 0px;
	margin-top: 5px;
	margin-bottom: 5px;
}
.pata {
	font-family: Arial;
	font-size: clamp(13px, 3.2vw, 18px);
	color: #ECECEC;
	font-weight: normal;
	text-align: center;
	font-style: italic;
}
.pata a:link   {color: #ECECEC;}
.pata a:visited   {color: #ECECEC;}
.pata a:hover   {color: #ECECEC;}

/* Main article body text */
.text {
	font-family: Arial;
	font-size: clamp(17px, 4.4vw, 22px);
	line-height: 1.3;
	color: black;
	font-weight: normal;
	text-align: left;
	margin-left: 10px;
	margin-right: 10px;
	margin-top: 12px;
	margin-bottom: 16px;
}

/* Photo captions */
.fototext {
	font-family: Arial;
	font-size: clamp(14px, 3.5vw, 18px);
	line-height: 1.2;
	color: black;
	font-weight: normal;
	text-align: center;
	font-style: italic;
	margin-top: 2px;
	margin-bottom: 14px;
	margin-left: 7px;
	margin-right: 7px;
}

/* Quotes - mobile version */
.citatmobil {
	font-family: Arial;
	font-size: clamp(14px, 3.8vw, 20px);
	color: black;
	font-weight: normal;
	text-align: center;
	font-style: italic;
	margin-top: 0px;
	margin-bottom: 28px;
	margin-left: 10px;
	margin-right: 10px;
}
.citat {display: none;}

/* Technical data table */
.table {
	font-family: Arial;
	font-size: clamp(8px, 2.2vw, 10px);
	color: black;
	font-weight: normal;
	text-align: center;
	margin: 0px;
	padding: 1px 1px;
}

.noborder {
	border: 0px;
	margin-top: 20px;
	padding: 0px;
}

/* =====================================================
   HAMBURGER MENU
   
   #hambac sits inside .fullbleed-top in the DOM.
   We must NOT use transform on .fullbleed-top (see above)
   because transform creates a new stacking context which:
     1. Traps z-index — menu renders behind page content
     2. Breaks position:fixed — button scrolls with page
   
   With margin-based fullbleed (no transform), position:fixed
   works correctly and z-index is global again.
   ===================================================== */

#hambac {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: visible;
  z-index: 9000;
}

#menu__toggle {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

#menu__toggle:checked + .menu__btn > span {
  transform: translateY(-50%) rotate(45deg);
}
#menu__toggle:checked + .menu__btn > span::before {
  top: 0;
  transform: none;
}
#menu__toggle:checked + .menu__btn > span::after {
  top: 0;
  transform: rotate(90deg);
}
#menu__toggle:checked ~ .menu__box {
  left: 0 !important;
}

.menu__btn {
  position: fixed;
  top: 9px;
  left: 7px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #EDEDED;
  border-radius: 4px;
  border: 2px solid #4D5359;
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
  display: block;
  position: absolute;
  width: 28px;
  height: 4px;
  background-color: #A01A21;
  transition-duration: .25s;
  top: 50%;
  transform: translateY(-50%);
  left: 50%;
  margin-left: -14px;
}
.menu__btn > span::before {
  content: '';
  top: -9px;
  transform: none;
}
.menu__btn > span::after {
  content: '';
  top: 9px;
  transform: none;
}

.menu__box {
  display: block;
  position: fixed;
  top: 0;
  left: -100%;
  width: min(80vw, 300px);
  height: 100vh;
  margin: 0;
  padding: 80px 16px 40px 16px;
  list-style: none;
  background-color: #EDEDED;
  box-shadow: 3px 0px 8px rgba(0, 0, 0, .3);
  transition-duration: .25s;
  z-index: 9050;
  overflow-y: auto;
}

.menu__item {
  display: block;
  padding: 5px 5px;
  color: #A01A21;
  font-family: Arial;
  font-size: clamp(19px, 5.0vw, 20px);
  line-height: 1.1;
  font-weight: 600;
  text-decoration: none;
  transition-duration: .25s;
  border-bottom: 1px solid #CCCCCC;
}
.menu__item:hover {
  background-color: #A01A21;
  color: #EDEDED;
}
