:root {
  --a-missing-color: #ecbd34;
  --a-missing-bg-color: rgb(251, 218, 117);
}

button,input,select,textarea {
  font-family:inherit;
  font-size:100%;
  line-height:1.15;
  margin:0
} 
textarea {
  height: auto;
  min-height: 50px;
}
select {
  box-sizing: border-box;
  width: 100%;
}
select {
  height: 2.4375rem;
  margin: 0 0 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;        
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #cacaca;
  border-radius: 0;
  background-color: #fefefe;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #0a0a0a;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: rgb%28138, 138, 138%29'></polygon></svg>");
  background-origin: content-box;
  background-position: left -1rem center;
  background-repeat: no-repeat;
  background-size: 9px 6px;  
  -webkit-transition: border-color .25s ease-in-out,-webkit-box-shadow .5s;
  transition: border-color .25s ease-in-out,-webkit-box-shadow .5s;
  transition: box-shadow .5s,border-color .25s ease-in-out;
  transition: box-shadow .5s,border-color .25s ease-in-out,-webkit-box-shadow .5s;
}
select * {
  font-family: "EuclidCircularB", "Arial", Sans-Serif !important; /*will not take EuclidCircularB for some reason */
}

#res_form, #res_form p, #res_form label {
  color: black;
  font-weight: normal;
  margin-bottom: 1em;
}
.titlebar{ 
  color: white;
  font-weight: bold;
  padding: var(--a-gap-small);
  margin-top: var(--a-gap-normal);
  margin-bottom: var(--a-gap-small);
  background: var(--a-primary-color);
} 
@media only screen and (min-width: 40em){
  .notice_type_close, .notice, .notice_elite{
     border: 3px solid #353535; width:50%; min-height:300px; margin:0 auto; background: var(--a-primary-color); color: white;  position:fixed; left:50%; top:50%; margin-left:-25%; margin-top:-250px; z-index: 999;
  }
}

/*Progress bar begin*/
#progress {
overflow: hidden; 
  padding: 0;
  list-style-type: none; 
  cursor:  default; 
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 0 5px;
}
#progress li { 
  background: white; 
  color: #353535;
  padding: var(--a-gap-small) var(--a-gap-small) var(--a-gap-normal) var(--a-gap-small);
  text-align: left;
}
#progress li:before {
  content: '';
}
#progress li {
  background: var(--a-grey5);
  color: white;    
}
#progress li.active {
  background: var(--a-primary-color);
  color: white;    
}

#progress span{
  display: inline !important;
}  

@media only screen and (min-width: 40em) and (max-width: 45em){
  #progress li svg{
    margin-left: 20px;
  }
}
@media only screen and (min-width: 40em){
  .notice_type_close, .notice, .notice_elite{
     border: 3px solid #353535; width:50%; min-height:300px; margin:0 auto; background:var(--a-primary-color); color: white;  position:fixed; left:50%; top:50%; margin-left:-25%; margin-top:-250px; z-index: 999;
  }
}
@media only screen and (max-width: 60em){
  #progress span{
    display: none !important;
  }
  #progress {
    line-height: 28px;
     margin-bottom: 30px;
  }
}
@media only screen and (max-width: 700px) {
  #progress{
    grid-gap: 1px;
  }
  #progress svg{
    max-width: 30px;
  }
  #progress h4{
    font-size: var(--a-font-size-small);
  }
}
/*Progress bar end*/


input.shapeshifter[type="radio"],  
input.shapeshifter[type="checkbox"]{
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

input.shapeshifter[type="radio"] + label,
input.shapeshifter[type="checkbox"] + label {
    cursor: pointer;
    padding-left: 35px !important;
    position: relative; /* set positioning context */
    min-height: 17px;
    min-width: 17px;
    margin-top: 5px;
    line-height: 22px; 
} 

input.shapeshifter[type="radio"] + label::before {
    content: "";
    position: absolute; /* absolutely position this pseudo-element */
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    width: 22px;
    height: 18px;
    background-size: 17px 17px;
    background-repeat: no-repeat;
    background-image: url("/application/themes/bicycle2020/images/icons/radiobutton.svg");
    background-position: 5px 1px;
}

input.shapeshifter[type="radio"]:checked + label::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 10px; 
    transform: translateY(-50%);
}

/* Style for checked state */
input.shapeshifter[type="radio"]:checked + label::before {
   background-image: url("/application/themes/bicycle2020/images/icons/radiobutton_checked.svg");
}

input.shapeshifter[type="checkbox"] + label::before {
    content: "";
    position: absolute; /* absolutely position this pseudo-element */
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    width: 22px;
    height: 18px;
    background-size: 17px 17px;
    background-repeat: no-repeat;
    background-image: url("/application/themes/bicycle2020/images/icons/checkbox.svg");
    background-position: 5px 1px;
}

input.shapeshifter[type="checkbox"]:checked + label::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 10px; 
    transform: translateY(-50%);
}

/* Style for checked state */
input.shapeshifter[type="checkbox"]:checked + label::before {
   background-image: url("/application/themes/bicycle2020/images/icons/checkbox_checked.svg");
}

.grid_buttons{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--a-gap-normal); 
}
.grid_buttons > :nth-child(1) {
  text-align: left;
}

.grid_buttons > :nth-child(2) {
  text-align: right;
}

a.add_bicycle.active,a.add_bicycle.active:focus,a.add_bicycle.active:hover,
a.remove_bicycle.active,a.remove_bicycle.active:focus,a.remove_bicycle.active:hover,
a.forward,a.forward:focus,a.forward:hover,
a.backward,a.backward:focus,a.backward:hover
 {
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: right 20% center;
  padding: 12px calc( 20% + 40px) 12px 20% !important;
  max-width: 100%;
  background-color: var(--a-primary-color);
  cursor: pointer;
  text-align: center;
  color: white;
  display: inline-block;
  margin-top: 20px;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  font-style: normal; 
  text-decoration: none;

}

a.add_bicycle.active,a.add_bicycle.active:focus,a.add_bicycle.active:hover {
  background-image: url("/application/themes/bicycle2020/images/icons/icon-circle-plus.svg");
}
a.remove_bicycle.active,a.remove_bicycle.active:focus,a.remove_bicycle.active:hover {
  background-image: url("/application/themes/bicycle2020/images/icons/icon-circle-minus.svg");
}
a.forward,a.forward:focus,a.forward:hover {
  background-image: url("/application/themes/bicycle2020/images/icons/icon-circle-right_white.svg");
}
a.backward,a.backward:focus,a.backward:hover {
  background-image: url("/application/themes/bicycle2020/images/icons/icon-circle-left_white.svg");
  background-color: #353535;
}
#res_form a.add_bicycle:not(.active), #res_form a.remove_bicycle:not(.active){
  display: none;
} 



a.forward.locked, a.choose_bicycle.nextbutton_small.locked{
  background: #ddd !important;
  cursor: default !important;  
}

a.nextbutton_small {
  background-image: url("/application/themes/bicycle2020/images/icons/icon-circle-right_white.svg");
  background-size: 16px;
  background-repeat: no-repeat;
  padding-right: 30px !important;
  background-position: right 20px center;
  padding: 6px 65px !important;
  background-color: var(--a-primary-color);
  cursor: pointer;
  display: inline-block;
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  font-style: normal; 
  text-decoration: none;
}
a.nextbutton_small:hover{
   color: white;
}

[type="date"], [type="email"], [type="number"], [type="tel"], [type="text"], textarea {
  display: block;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  height: 2.4375rem;
  margin: 0 0 1rem;
  padding: .5rem;
  border: 1px solid #cacaca;
  border-radius: 0;
  background-color: #fefefe;
  -webkit-box-shadow: inset 0 1px 2px rgba(10,10,10,.1);
  box-shadow: inset 0 1px 2px rgba(10,10,10,.1);
  font-family: inherit;
  font-weight: 400;
  line-height: 1.5;
  color: #0a0a0a;
  -webkit-transition: border-color .25s ease-in-out,-webkit-box-shadow .5s;
  transition: border-color .25s ease-in-out,-webkit-box-shadow .5s;
  transition: box-shadow .5s,border-color .25s ease-in-out;
  transition: box-shadow .5s,border-color .25s ease-in-out,-webkit-box-shadow .5s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
[type="date"]:focus, [type="email"]:focus, [type="number"]:focus, [type="tel"]:focus, [type="text"]:focus, textarea:focus {
  outline: 0;
  border: 1px solid #8a8a8a;
  background-color: #fefefe;
  -webkit-box-shadow: 0 0 5px #cacaca;
  box-shadow: 0 0 5px #cacaca;
  -webkit-transition: border-color .25s ease-in-out,-webkit-box-shadow .5s;
  transition: border-color .25s ease-in-out,-webkit-box-shadow .5s;
  transition: box-shadow .5s,border-color .25s ease-in-out;
  transition: box-shadow .5s,border-color .25s ease-in-out,-webkit-box-shadow .5s;
}

.grid_rechnungsinfo{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0.2vw 2vw; 
}

.grid_teilnehmer{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 2vw; 
}

@media only screen and (max-width: 64.2em) {
  .grid_teilnehmer, .grid_rechnungsinfo{
    grid-template-columns: 1fr;
  }
}

/*begin error display*/
#res_form .field_error{
  background-color: var(--a-missing-bg-color);
}
#res_form .field_error_box{
  background-color: var(--a-missing-bg-color);
  padding: 10px;
  margin-bottom: 15px;
}
#res_form .error_report{
  margin-top: -15px;
  font-size: 11px; 
  color: var(--a-missing-color);
  text-align: center;
  position: relative;  /* Allows positioning of the pseudo-element relative to this element */
}
#res_form .error_report::before {
  content: "⚠ ";  /* UTF-8 warning triangle */
  font-size:  14px;
  /* Optional: You can adjust the position, size, color etc. of the triangle here if needed */
}
/*end error display*/

/*begin agb alert*/
.alertbg .agbs{
  color: red !important;
  transition: color ease-in 1s;
}
.alertbg2 .agbs{
  color: #353535 !important;
  transition: color ease-in 1s;
}
/*end agb alert*/

.flexbox_container {
  display: flex;
  justify-content: space-between; /* This will push the 'Edit' text to the right */
  align-items: center; /* This will vertically align the items */
}
#step4 .flexbox_container h4{
  margin-top: 0;
}
.greyarea{
    background: var(--a-grey1);
    padding: var(--a-gap-small) calc(4*var(--a-gap-big)) var(--a-gap-normal) calc(4*var(--a-gap-big));
  }
@media only screen and (max-width: 700px) {
  .greyarea{
    background: var(--a-grey1);
    padding: var(--a-gap-normal) 4%;
    margin-left: -4%;
    margin-right: -4%;
  }
}


#step4 h4{
  margin: var(--a-gap-normal) 0 var(--a-gap-small) 0;
}



.radrundfahrt_box:hover, .radrundfahrt_box.active{  
  cursor: pointer;
  background: black;
}
.radrundfahrt_box:hover img, .radrundfahrt_box.active img{
  opacity: 0.9;  
}

/* Additional styles for modern overhaul */
.specialgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .specialgrid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.item-special {
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.item-special:hover {
  transform: translateY(-5px);
}

.item-special img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.item-special .itemtext {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
}

.room-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.counter {
  display: flex;
  align-items: center;
}

.counter button {
  background: #e2001a;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
}

.counter input {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1rem;
  margin: 0 0.5rem;
  -moz-appearance: textfield;
}

.counter input::-webkit-outer-spin-button,
.counter input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cyclerotator {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.grid_teilnehmer {
  gap: 1rem;
}

.greyarea {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.edit-text {
  color: var(--a-primary-color);
  text-decoration: underline;
  cursor: pointer;
}