* {
  padding: 0;
  margin: 0;
  font-family: "RobotoNormal";
  font-weight: 400;
  font-size: 20px;
}

@font-face {
  font-family: "entypo";
  src:
    url("fonts/entypo.woff") format("woff"),
    url("fonts/entypo.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "RobotoNormal";
  font-style: normal;
  font-weight: 400;
  src:
    url("fonts/roboto-v18-latin-regular.woff2") format("woff2"),
    url("fonts/roboto-v18-latin-regular.woff") format("woff");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src:
    url("fonts/roboto-v18-latin-700.woff2") format("woff2"),
    url("fonts/roboto-v18-latin-700.woff") format("woff");
}

@font-face {
  font-family: "RobotoBlack";
  font-style: normal;
  font-weight: 900;
  src:
    url("fonts/roboto-v18-latin-900.woff2") format("woff2"),
    url("fonts/roboto-v18-latin-900.woff") format("woff");
}

body {
  font-family: Arial, sans-serif;
  color: #666;
  font-size: 14px;
  text-align: center;
  display: inline-block;
  width: 100%;
}

#container {
  max-width: 1400px;
  /* padding: 0 20px; */
  margin: 0 auto;
  text-align: left;
  position: relative;
  display: inline-block;
}

#header {
  height: 108px;
  border-bottom: 1px solid #000;
  font-family: "UniversLTW01-47LightCn";
  position: relative;
  margin: 0 0 30px 0;
  display: inline-block;
  width: 100%;
}

.headline {
  display: inline-block;
  width: 100%;
  margin: 20px 0;
  line-height: normal;
}

.headline h1 {
  font-size: 60px;
  line-height: 1;
  font-family: Roboto;
  font-weight: 700;
  color: #000;
}

@media all and (max-width: 768px) {
  .headline h1 {
    font-size: 30px;
  }
}

@media all and (max-width: 768px) {
  #header {
    padding-top: 120px;
  }
}

#header h1,
#header h2 {
  position: absolute;
  left: 0;
}

@media all and (max-width: 768px) {
  #header h1,
  #header h2 {
    position: static;
    left: 0;
  }
}

#header h1 {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: normal;
  top: 30px;
  letter-spacing: 1px;
}

#header h2 {
  font-size: 18px;
  font-weight: normal;
  top: 60px;
}

a {
  color: #000;
  text-decoration: none;
}

#disclaimer {
  display: inline-block;
  /*    padding-left: 10px;*/
  margin-top: 30px;
}

#disclaimer strong {
  font-family: RobotoBlack;
  font-size: 30px;
  color: #000;
}

#disclaimer p {
  line-height: 1;
  /*	font-family: arial, sans-serif;*/
  font-family: RobotoNormal;
  /*	font-size: 16px;*/
  float: right;
  width: 850px;
  padding: 20px 20px 10px 0;
  margin-bottom: 20px;
  display: inline-block;
  width: auto;
  color: #000;
}

#disclaimer a {
  border-bottom: 1px solid #fab815;
  font-weight: bold;
  display: inline-block;
}

ul.lang li {
  float: left;
  list-style: none;
  padding: 2px;
  display: inline-block;
}

ul.lang {
  position: absolute;
  right: 200px;
  top: 0;
  display: inline-block;
}

@media all and (max-width: 768px) {
  ul.lang {
    position: static;
    right: 200px;
    top: 0;
    display: inline-block;
  }
}

#logo {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 195px;
  height: 105px;
  background: #000 url(../img/olfry-logo.png) no-repeat center center;
  text-indent: -9999px;
}

@media all and (max-width: 768px) {
  #logo {
    left: 0;
  }
}

#left {
  float: none;
  width: 30%;
  /*        padding: 0 40px 0 0;*/
  display: inline-block;
  vertical-align: top;
}
@media screen and (max-width: 1260px) {
  #left {
    float: none;
    width: 100%;
    /*        padding: 0 40px 0 0;*/
    display: inline-block;
    width: 100%;
    margin-bottom: 50px;
    max-width: none;
  }
}

#left > form {
  padding-right: 30px;
}

#right {
  float: none;
  width: 69%;
  height: auto;
  position: relative;
  display: inline-block;
  vertical-align: top;
}

@media all and (max-width: 1260px) {
  #right {
    float: none;
    width: auto;
    max-height: 500px;
    position: relative;
  }
}

@media all and (min-width: 1024px) and (max-width: 1260px) {
  .type_picker {
    display: inline-block;
    width: 49%;
  }
}

#canvas {
  max-width: 100%;
  aspect-ratio: 87 / 50;
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
}

#canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  background: #333;
}

#canvas_file,
#canvas_width,
#canvas_height,
#brick_rows,
#resolution {
  display: none;
}

#left h3,
#download-overlay h3,
#disclaimer h3 {
  /*	font-family:'UniversLTW01-47LightCn';*/
  font-family: "RobotoBlack";
  font-size: 19px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 20px 0;
  color: #000;
}

#download-overlay h3 {
  color: #fff;
}

#left h4 {
  /*	font-weight: normal;*/
  font-size: 16px;
  clear: both;
  margin: 10px 0 10px 0;
  font-family: RobotoBlack;
  color: #000;
}

#download-overlay p {
  font-size: 13px;
  line-height: 20px;
}

#form_type_container {
  /*	margin: 20px 0;*/
  display: inline-block;
  width: 100%;
}

@media all and (min-width: 1024px) and (max-width: 1260px) {
  #form_type_container {
    display: inline-block;
    width: 67%;
    vertical-align: top;
  }
}

.type_picker {
  padding: 15px 0 0 0;
  border-bottom: 1px solid #eee;
  position: relative;
}

.type_picker_brick {
  margin: 0 0 15px 0;
  height: 35px;
  display: inline-block;
  max-width: none;
  width: 100%;
}

#left select {
  max-width: 290px;
  height: 25px;
}

.type_picker_ratio {
  position: relative;
  height: 40px;
  max-width: 300px;
}

.type_picker_ratio label {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
}

.type_picker_ratio input[type="range"] {
  display: block;
  position: absolute;
  top: 0;
  left: 70px;
  width: 150px;
  margin: 0;
  cursor: pointer;
  accent-color: #333;
}

.type_picker_ratio input {
  display: none;
}

.type_picker_ratio .percent {
  position: absolute;
  top: 0;
  right: 0;
  /*	width: 40px;*/
  border: none;
}

#jointcolor_picker,
#jointtype_picker {
  margin: 0 0 15px 0;
  padding: 0 0 15px 0;
  border-bottom: 1px solid #eee;
}

@media all and (min-width: 1024px) and (max-width: 1260px) {
  #jointcolor_picker {
    display: inline-block;
    width: 32%;
    vertical-align: top;
    height: 128px;
    padding-bottom: 0;
    padding-top: 15px;
  }
}

.preview {
  float: left;
  margin: 0 10px 0 0;
  width: 50px;
  height: 25px;
  background: #eee;
}

.btn {
  padding: 12px 21px;
  border: 1px solid #fff;
  border-radius: 0px;
  background: #fab815;
  color: #000;
  text-decoration: none;
  font-size: 16px;
  display: block;
  text-align: center;
  margin: 8px 0 0 0;
  cursor: pointer;
  font-weight: bold;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: normal;
}

footer {
  clear: both;
  background: #fab815;
  height: 80px;
  margin: 30px 0 0 0;
}

/* General dropdown styles */
.dropdown dd,
.dropdown dt,
.dropdown ul {
  margin: 0px;
  padding: 0px;
}

.dropdown dd {
  position: relative;
}

.dropdown a {
  color: #333;
  text-decoration: none;
}

/* DT styles for sliding doors */
.dropdown dt a {
  /*	background:#eee;*/
  display: block;
  padding-right: 20px;
  border: 1px solid #ccc;
  /*    width:265px;*/
  position: relative;
  /*    box-shadow: 0 0 3px #ccc inset;*/
}

.dropdown dt a:after {
  font-family: "entypo";
  content: "\24";
  font-size: 24px;
  position: absolute;
  top: 0;
  right: 5px;
}

.dropdown dt a span {
  cursor: pointer;
  display: block;
  padding: 5px;
}

/* UL styles */
.dropdown dd ul {
  background: #fff none repeat scroll 0 0;
  display: none;
  list-style: none;
  padding: 5px 0px;
  position: absolute;
  left: 0px;
  top: 2px;
  width: 285px;
  height: auto;
  overflow: scroll;
  max-height: 320px;
  border: 1px solid #ccc;
  border-radius: 2px;
  width: 100%;
}

.dropdown dd ul li a {
  padding: 5px 5px 5px 60px;
  line-height: 30px;
  display: block;
  border-bottom: 1px solid #ccc;
  background-repeat: no-repeat;
  background-position: 5px center;
}

.dropdown dd ul li a:hover {
  background-color: #ccc;
}

.heading {
  color: #fff;
  padding: 10px;
}

#heading_bunt {
  background: #000;
}
#heading_rot {
  background: #cf060b;
}
#heading_braun {
  background: #a9835f;
}
#heading_blau {
  background: #15355a;
}
#heading_grau {
  background: #333;
}

.disable_overlay {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.7);
}

#type02_container .disable_overlay,
#type03_container .disable_overlay,
#type04_container .disable_overlay {
  top: 0;
  bottom: 0;
}

.active .disable_overlay {
  top: 95px !important;
  bottom: 0 !important;
}

.filled .disable_overlay {
  display: none;
}

.disable_overlay {
  z-index: 10;
}

.dropdown dd ul {
  z-index: 11;
}

#download {
  display: none;
  position: absolute;
  bottom: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  line-height: 35px;
  height: 40px;
  text-decoration: none;
  text-align: right;
  padding: 0 15px;
  right: 0;
  border-radius: 5px 0 0 0;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  -webkit-appearance: none;
  appearance: none;
}

#download:hover {
  background: rgb(0, 0, 0);
}

#download:before {
  content: "\25";
  font-family: "entypo";
  margin-right: 10px;
  font-size: 20px;
}

#download-overlay {
  position: absolute;
  bottom: 50px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 20px;
  border-radius: 5px;
  width: 370px;
  display: none;
}

#download-overlay li {
  display: inline-block;
  height: 100px;
  width: 140px;
  position: relative;
}

#download-overlay li:first-child {
  width: 80px;
}

#download-overlay li button {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

#download-overlay li button:hover {
  border: 2px solid #fff;
}

.http-download {
  width: 270px;
  height: 40px;
  margin: -25px 0 0 -40px;
  background: #fab815 !important;
  color: #000 !important;
  border: none !important;
  font-size: 16px !important;
  text-align: center;
  padding: 5px;
  margin: 25px 50px 30px 50px !important;
  display: block;
  line-height: 40px;
  border-radius: 5px;
  text-decoration: none;
}

#download-overlay li button span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  margin: -8px 0 0 0;
  font-size: 11px;
}

#download-overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

#download-overlay-close span {
  display: none;
}

#download-overlay-close:before {
  content: "\27";
  font-family: "entypo";
  font-size: 20px;
}

#download_small {
  width: 70px;
  height: 42px;
  margin: -21px 0 0 -35px;
}

#download_medium {
  width: 100px;
  height: 60px;
  margin: -30px 0 0 -50px;
}

#download_big {
  width: 130px;
  height: 78px;
  margin: -39px 0 0 -65px;
}

/* Development */

#development_info select,
#development_info input {
  display: block;
}

#development_info {
  position: absolute;
  top: 20px;
  left: 350px;
}

#development_info .col {
  width: 150px;
  float: left;
}

#development_info input {
  padding: 5px;
  margin: 0 0 5px 0;
  width: 100px;
}

#development_info select {
  width: 100px;
}

@media (max-width: 480px) {
  #download-overlay {
    width: 80%;
    z-index: 10;
    right: 50%;
    transform: translateX(50%);
  }
}

/* Ladeindikatoren (CSS-Spinner, ersetzt spin.js) */
@keyframes olfry-spin {
  to {
    transform: rotate(360deg);
  }
}

#canvas.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid rgba(0, 0, 0, 0.15);
  border-top-color: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  animation: olfry-spin 0.8s linear infinite;
}

.download-button.loading span {
  visibility: hidden;
}

.download-button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: olfry-spin 0.8s linear infinite;
}
