body
{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    margin: 0;
}

    
.toolbox_parkberechtigung_footer
{
    flex: 1;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    font-size: 70%;
    color: gray;
    padding: 5px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.toolbox_parkberechtigung_footer > div
{
    flex: 1;
    flex-grow: 2;
    box-sizing: border-box;
    word-wrap: normal;
}
.toolbox_parkberechtigung_footer > div:last-child
{
    flex-grow: 1;
    text-align: right;
}
.toolbox_parkberechtigung_html
{
    margin: 0;
    font-family: sans-serif;
    font-size: 14pt;
    height: 100%;
    width: 100%;
    background: gray;
    box-sizing: border-box;
}
a
{
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover
{
    color: red;
}
a:active
{
    transition: none;
    filter: invert(50%);
}

@media only screen and (min-width: 500px) 
{
    .toolbox_parkberechtigung_html
    {
        margin-top: 20px;
        padding: 5px;
    }

}

.toolbox_parkberechtigung_kennzeichen_wrapper
{
    flex: 1;
    flex-grow: 1;
    
    display: flex;
    flex-direction: column;
    
    justify-content: flex-start;
    align-items: center;
}
.toolbox_parkberechtigung_kennzeichen_wrapper > div
{
    flex: 1;
    flex-grow: 0;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.toolbox_parkberechtigung_valid
{
    flex: 1;
    flex-grow: 0;
    font-size: 120%;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}
.toolbox_parkberechtigung_kennzeichen
{
    font-size: 120%;
  font-weight: bold;
  background: white;
  flex: 1;
  flex-grow: 0;
  max-width: 50% !important;
  padding: 10px;
  outline: 3px solid black;
  border-radius: 5px;
  letter-spacing: 3px;
  border-left: 20px solid blue;    
}
.toolbox_parkberechtigung_kennzeichen:last-of-type
{
    margin-top: 15px;
}
.toolbox_parkberechtigung_prompt
{
    margin-top: 25px;
    flex: 1;
    flex-grow: 0 !important;
    color: black;
    text-align: center;
}
.toolbox_parkberechtigung_wrapper
{
    display: flex;
    flex-direction: column;
    max-width: 500px;
    outline: 1px solid black;
    border: 2px solid white;
    margin-left:auto;
    margin-right:auto;
    background: #e8f0db;
    align-items: center;
}
.toolbox_parkberechtigung_wrapper[data-valid="0"]
{
    background: #ffcccc;
}


.toolbox_parkberechtigung_wrapper > div
{
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.toolbox_parkberechtigung_title
{
    flex: 1;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    background: whitesmoke;
    padding: 5px;

}
.toolbox_parkberechtigung_title > div
{
    flex: 1;
    box-sizing: border-box;
}
.toolbox_parkberechtigung_title .icon
{
    flex: 1;
    flex-grow: 0;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 5px;
}
.toolbox_parkberechtigung_title .icon >img
{
    height: 50px;
    width: auto;
}



.toolbox_parkberechtigung_title .title
{
    flex: 1;
    flex-grow: 1;
    flex-grow: 1;
    font-size: 85%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    text-transform: uppercase;
    padding-right: 10px;
    color: darkgreen;
}

.toolbox_parkberechtigung_content
{
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 5px;
    font-size: 14pt;
    padding-top: 10px;
}
.toolbox_parkberechtigung_content > div
{
    flex: 1;
    box-sizing: border-box;
}
.toolbox_parkberechtigung_content .contentrow
{
    display: flex;
    flex-direction: row;
}

.toolbox_parkberechtigung_input[data-enabled="0"], .toolbox_parkberechtigung_input[data-enabled="0"] > input
{
    background: whitesmoke;
    pointer-events: none;
    color: dimgray;
}

.toolbox_parkberechtigung_inputwrapper
{
    flex: 1;
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 5px;
    align-items: center;
    margin-top: 40px;
}
.toolbox_parkberechtigung_inputwrapper > div
{
    flex: 1;
    box-sizing: border-box;
    
}
.toolbox_parkberechtigung_inputwrapper > div:first-child
{
    margin-right: 25px;
}

.toolbox_parkberechtigung_input
{
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  font-size: 16px;
  letter-spacing: 2px;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  background-color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.toolbox_parkberechtigung_input:focus 
{
  border-color: #007bff;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.toolbox_parkberechtigung_input::placeholder {
  color: #aaa;
}

/* Mobile-Friendly Enhancements */
@media (max-width: 600px) {
  .toolbox_parkberechtigung_input {
    font-size: 18px;
    padding: 14px 18px;
  }
}

.toolbox_parkberechtigung_status
{
    font-size: 120%;
    line-height: 40px;
    font-weight: bold;
    padding: 0px;
    border: 1px solid black;
    border-radius: 5px;
    min-width: 150px;
    display:flex;
    justify-content:center;
    align-items:center;
    color: black;
    box-shadow: 0px 0px 4px black;

}

.parkberechtigung_expired
{
    background: rgb(254,204,177);
    background: -moz-linear-gradient(top, rgba(254,204,177,1) 0%, rgba(241,116,50,1) 50%, rgba(234,85,7,1) 51%, rgba(251,149,94,1) 100%);
    background: -webkit-linear-gradient(top, rgba(254,204,177,1) 0%,rgba(241,116,50,1) 50%,rgba(234,85,7,1) 51%,rgba(251,149,94,1) 100%);
    background: linear-gradient(to bottom, rgba(254,204,177,1) 0%,rgba(241,116,50,1) 50%,rgba(234,85,7,1) 51%,rgba(251,149,94,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#feccb1', endColorstr='#fb955e',GradientType=0 );
}
.parkberechtigung_valid
{
    background: rgb(226,254,178);
    background: -moz-linear-gradient(top, rgba(226,254,178,1) 0%, rgba(173,246,46,1) 50%, rgba(152,238,4,1) 51%, rgba(194,253,93,1) 100%);
    background: -webkit-linear-gradient(top, rgba(226,254,178,1) 0%,rgba(173,246,46,1) 50%,rgba(152,238,4,1) 51%,rgba(194,253,93,1) 100%);
    background: linear-gradient(to bottom, rgba(226,254,178,1) 0%,rgba(173,246,46,1) 50%,rgba(152,238,4,1) 51%,rgba(194,253,93,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e2feb2', endColorstr='#c2fd5d',GradientType=0 );
}

.parkberechtigung_table
{
    border-collapse: collapse;
    table-layout: fixed;
    border: none;
    box-sizing: border-box;
    width: 100%;
}
.parkberechtigung_table tr
{
    
}
.parkberechtigung_table td
{
    vertical-align: middle;
    white-space: nowrap;
}

.toolbox_parkberechtigung_loading
{
    width: 100%;
    height: 50px;
    text-align: center;
    
    
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.toolbox_parkberechtigung_loading[visible="0"]
{
    display: none;
}
.toolbox_parkberechtigung_loading img
{
    width: 40px;
}
.toolbox_parkberechtigung_loading > div
{
    flex: 1;
    flex-grow: 1;
}
.toolbox_parkberechtigung_loading > div:first-child
{
    flex-grow: 0;
}


.toolbox_parkberechtigung_inputdiv
{
    display: flex; 
    align-items: center;
    flex-direction: column;
    padding-left: 25px;
    padding-right: 25px;
    box-sizing: border-box;
}

.fade {
  animation-name: fade;
  animation-duration: 0.3s;
}

@keyframes fade {
  from {opacity: 0.1}
  to {opacity: 1}
}



.fadeout {
  animation-name: fadeout;
  animation-duration: 0.3s;
}

@keyframes fadeout {
  from { opacity: 1; }
  to { opacity: 0; }
}

.parkberechtigung_msgwrapper
{
    flex: 1;
    flex-grow: 0 !important;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.parkberechtigung_msgwrapper > div
{
    flex: 1;
    box-sizing: border-box;
}
.parkberechtigung_msgwrapper .msgicon
{
    flex-grow: 0;
    padding: 5px;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
.parkberechtigung_msgwrapper .msgicon > img
{
    width: 40px;
    height: auto;
}
.parkberechtigung_msgwrapper .msgtitle
{
    flex: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}

.parkberechtigung_button
{
    transition: all 0.3s ease;
    padding: 10px;
    font-size: 110%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: #999966;
    color: white;
    user-select: none;
    text-align: center;
    vertical-align: center;
}
.parkberechtigung_button[data-enabled="0"]
{
    filter: grayscale(100%);
    pointer-events: none;
    opacity: 0.5;
}

.parkberechtigung_button:hover
{
    filter: brightness(110%);
}
.parkberechtigung_button:active
{
    transition: none;
    filter: invert(100%);
}
.parkberechtigung_button img
{
    width: 20px;
    height: 20px;
    float: right;
}
.parkberechtigung_button img[data-visible="0"]
{
    display: none;
}

@media only screen and (max-width: 800px) 
{
    body
    {
        margin: 0;
        padding: 0;
    }
    .toolbox_parkberechtigung_title .icon >img
    {
        height: 50px;
    }
    .toolbox_parkberechtigung_wrapper
    {
        margin: 0px;
        border: none;
        outline: none;
    }
    
    .toolbox_parkberechtigung_footer
    {
        font-size: 75%;
    }
    .toolbox_parkberechtigung_kennzeichen
    {
        max-width: 70% !important;
    }
}

