/* static/styles.css */

body {
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif !important;
    margin: 0;
    padding: 0;
    overflow-y: scroll; /* Immer eine vertikale Scrollbar anzeigen */
}

.main-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.main-body-div {
    height: auto;
    overflow: hidden;
    margin: 0px;
    padding: 0px 5px;
    max-width: 850px;
    transition: max-height 0.5s ease 0s;
    width: 100%;
}

a {
    color: #2082C0;
    text-decoration: none;
}
  
a:hover {
    color: #378CC5;
    text-decoration: none;
}

.rotated-text {
    transform: rotate(90deg);
    transform-origin: left bottom; /* Ursprungspunkt für die Drehung */
    position: absolute; /* Positionierung am linken Rand */
    left: 0; /* Am linken Rand */
    top: 50%; /* Vertikale Zentrierung */
    white-space: nowrap; /* Verhindert Zeilenumbruch */
}

.form-group {
    margin-bottom: 10px;
    display: grid;
    justify-content: center;
    gap: 5px;
}


.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.logo-container img {
    height: 120px;
    margin-right: 10px;
}

.logo-divider {
    height: 50px;
    width: 2px;
    background-color: #ffffff;
    margin: 0 10px;
}


.center-image-container img {
    width: 100%;
    height: auto;
    display: block;
    /* Remove the gap below the image */
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}



.background-color-class {
    background-color: #2082C0 !important;
    border-color: #fff !important;
    color: #fff !important;
    width: 100%; /*FhGenie */
} 

.back-container{
    background-color: #2082C0 !important;
    border-color: #fff !important;
    color: #fff !important;
    height: 50px;
}




.imprint {
    max-width: 850px;
    text-align: left;
    border: 1px solid #ddd;
    margin-top:10px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

address {
    line-height: 1.2rem;
    font-style: normal;
    font-weight: 500;
    padding: 20px;
}

button, label {
    margin: 10px;
    padding: 8px 8px;
    background-color: #2082C0;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 3px;
}

button:hover, label:hover {
    background-color: #378CC5;
    
}
button:disabled, .radio-label-disabled, .radio-label-disabled:hover {
    background-color: #ccc; /* Graue Hintergrundfarbe */
    color: #666;            /* Graue Schriftfarbe */
    cursor: not-allowed;    /* Zeiger zeigt an, dass der Button nicht klickbar ist */
    opacity: 0.5;          /* Halbtransparente Darstellung */
}

.radio-input{
    background-color: #2082C0;
}
.radio-input:hover{
    background-color: #378CC5;
}
.radio-input:checked{
    background-color: #2082C0;
}
.radio-label{
    display: flex;
    font-weight: 700;
}
.radio-container{
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: left;
}

.back-button {
    background-color: #fff;
    color: #2082C0;
    border-radius: 20px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    
  }

  .back-button svg {
    margin-right: 8px; /* Abstand zwischen SVG und Text */
}
  
.back-button:hover {
    background-color: #f5f5f5;
    color: #378CC5;
  }

  .back-button:active {
    background-color: #fff;
    color: #378CC5;
    border: 2px inset #2082C0;
  }

.dropdown-menu {
    position: absolute; /* Damit das Dropdown über anderen Inhalten schwebt */
    margin: 0px 10px; /* oben rechts unten links */
    border-radius: 3px;
    z-index: 1000; /* Stellt sicher, dass das Dropdown über anderen Elementen angezeigt wird */
    width: 100%; /* Damit das Dropdown die gleiche Breite wie der Button hat */
    background-color: #fff;
    color: #2082C0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Optional, für einen Schatteneffekt */
}
.dropdown-li{
    border-radius: 3px;
    padding: 0px 10px 0px 0px;
    margin: 10px 10px;
}

.dropdown-item {
    border-radius: 3px;
    color: #2082C0;
    padding: 5px;
    width: 100%;
    display: block;
}
.dropdown-item:hover {
    color: #378CC5;
    background-color: #f5f5f5;
}


.smallWidth {
    width: 700px;
}

.v-application .text-h1,
.v-application .text-h2 {
    font-weight: 200;
    letter-spacing: .025em !important;
}



/* Media queries for responsive design */

/* For screens with a maximum width of 768px (tablets and mobile devices) */
@media screen and (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        align-items: center;
    }

    .logo-divider {
        display: none;
    }

    .footer {
        flex-direction: column;
        align-items: center;
    }

    .footer a {
        margin: 10px;
    }

    .center-image-container img {
        max-width: 90%;
        /* Reduce the image size for smaller screens */
    }

    .start-button {
        font-size: 14px;
    }
}

.table-container {
    display: none;
}


input[type=range]:focus {
    outline: none;
}

input[type=range] {
    width: 100%;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    /*animate: 0.2s;*/
    background: #2082C0;
    border-radius: 25px;
}

input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 1);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -8px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #2082C0;
}

.range-wrap {
    position: relative;
    width: 100%;
    margin-top: 1rem;
}

.range-value {
    position: absolute;
    top: -110%;
}

.range-value span {
    width: 30px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #2082C0;
    color: #fff;
    font-size: 12px;
    display: block;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    border-radius: 6px;
}

.range-value span:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid #2082C0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    margin-top: -1px;
}

.message-popup {
    position: fixed;
    /* transform: translate(+50%, +20%); */
    background-color: #ffffff;


}

.message-content {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, +50%);
}

.message-popup .close-button {
    position: relative;
    left: 50%;
    transform: translateX(-50%);

}



/* options page result table */

p.MsoNormal,
div.MsoNormal {
    margin: 0pt;
    font-size: 13.0px;
}

p.MsoNoSpacing,
div.MsoNoSpacing {
    margin: 0pt;
    font-size: 13.0px;
}

p.bold{
    font-weight: 700;
}

td,
th,
tr {
    border: none;
    overflow: hidden;
}

table.ergtabelle {
    table-layout: fixed;
    border-collapse: collapse;
    border: 3pt solid black;
}

td.flow {
    width: 120.0pt;
    border: none;
    padding: 1pt 1.4pt 0pt 1.4pt;
    height: 35pt;
}

td.ergzellen {
    width: 30.0pt;
    border-bottom: solid black 1.0pt;
    border-right: solid black 1.0pt;
    padding: 2.85pt 1.4pt 0pt 1.4pt;
    /* Top | Right | Bottom | Left */
    height: 20.0pt;
}

td.zeilennr {
    width: 20.0pt;
    border-bottom: solid black 1.5pt;
    border-right: solid black 1.5pt;
    padding: 2.85pt 2.85pt 2.85pt 2.85pt;
    height: 40.0pt;
}

td.raum {
    width: 120.0pt;
    border-bottom: solid black 1.0pt;
    border-right: solid black 1.5pt;
    padding: 2.85pt 0pt 0pt 0pt;
    height: 20.0pt;
}

td.untenmittel {
    border-bottom: solid black 1.5pt;
}

td.untendick {
    border-bottom: solid black 2.25pt;
}

td.obendick {
    border-top: solid black 2.25pt;
}
td.rechtsnormal {
    border-right: solid black 1.0pt;
}


/* FhGenie */

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.2em;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: none;
}

.lang-btn .flag-icon {
  width: 32px;
  height: 22px;
  display: block;
  border-radius: 3px;
  transition: box-shadow 0.2s;
}

.lang-btn:hover .flag-icon,
.lang-btn.active .flag-icon {
  box-shadow: 0 0 0 3px #2082C0;
  background: #e6f2fa;
}
.lang-btn.active {
  background: #e6f2fa;
}

/* Sprachumschalter im Header */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

/* Hauptbild */
.header-img {
     width: 100%;
    height: auto;
    display: block;
    border-radius: 0px;
    margin-bottom: 0rem;  
    max-height: 250px;
}

/* Inhalt */
.content-section {
  max-width: 900px;
  margin: 0 auto 1rem auto;
  padding: 0.5rem;
  background: transparent;
  border-radius: 10px;
}

/* Startbox (Button-Container) */
.start-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border: 1px solid #2082C0;
  border-radius: 10px;
  background: #fff;
  margin: 1.5rem 0;
  padding: 1rem;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.start-box:hover {
  box-shadow: 0 2px 12px rgba(32,130,192,0.15);
  border-color: #378CC5;
}
.start-img img {
  width: 80px;
  height: auto;
  display: block;
}

/* Start-Button */
.start-btn {
  background: #2082C0;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.8em 1.5em;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.start-btn:hover {
  background: #378CC5;
}

/* Responsive Anpassungen */
@media (max-width: 900px) {
  .content-section {
    max-width: 98vw;
    padding: 0.7rem;
  }
}
@media (max-width: 600px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .header-img {
    height: 120px;
  }
  .start-box {
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.7rem;
  }
  .start-img img {
    width: 60px;
  }
  .start-btn {
    width: 100%;
    font-size: 1em;
    padding: 0.7em 1em;
  }
  .content-section {
    padding: 0.5rem;
  }
}

