
@font-face {
    font-family: "montserrat";
    font-style: normal;
    font-weight: 300;
    src: url("../fonts/Montserrat-Light.woff2");
}

@font-face {
    font-family: "montserrat";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/Montserrat-Regular.woff2");
}

@font-face {
    font-family: "montserrat";
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/Montserrat-Medium.woff2");
}

@font-face {
    font-family: "montserrat";
    font-style: normal;
    font-weight: 600;
    src: url("../fonts/Montserrat-SemiBold.woff2");
}

@font-face {
    font-family: "montserrat";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/Montserrat-Bold.woff2");
}

:root {
    /* layout + typography */
    --container: 1200px;
    --gap: 0.5rem;
    --radius: 0.25rem;
    --shadow: 0 0px 1rem rgb(0 0 0 / 5%);
    --font: "montserrat", sans-serif;

    /* root colors (overridden per theme) */
    --back: #f1f1f1;  /* page background (neutral) */
    --box: #ffffff;   /* boxes, cards, table headers */
    --input: #f1f1f1; /* input backgrounds */
    --table: #e6e7e9; /* borders, list items, dividers (neutral gray) */
    --text: #222326;  /* body text (strong neutral) */
    --gray: #6f7376; /* muted text / secondary info (neutral) */
    --primary: #629cd9;
    --hover: #91aecc;
    --red: #dc3545;
    --green: #28a745;
    --yellow: #ffc107;
}

html[theme=dark] {
    /* softened neutral dark theme (less blue, less contrast) */
    --back: #111111;   /* slightly lighter than pure black */
    --box: #222222;    /* card surface ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â gentle, neutral */
    --input: #111111;  /* input background */
    --table: #3a3a3a;  /* dividers / row hover (subtle) */
    --text: #dfe1e2;   /* readable neutral text (softer) */
    --gray: #9aa0a6;   /* muted/secondary text */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*[lang]:not(html) {
    display: none;
}
html:lang(en) *[lang="en"]:not(html), html:lang(de) *[lang="de"]:not(html), html:lang(fr) *[lang="fr"]:not(html), html:lang(it) *[lang="it"]:not(html) {
    display: revert;
}

html {
    margin: 0;
    padding: 0;
    font-size: 16px;
    overflow-y: scroll;
    background-color: var(--back);
}

body {
    font-size: 1rem;
    line-height: 1.6;
    font-family: var(--font);
    font-weight: 400;
    max-width: var(--container);
    margin: auto;
    color: var(--text);
    background-color: transparent;
    padding: var(--gap);
}
.container {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-wrap: balance;
    margin-top: 0rem;
    margin-bottom: 1rem;
    hyphens: auto;
    overflow-wrap: break-word;
}
h1 { font-size: 2.5rem; } /* 40px */
h2 { font-size: 2rem; }   /* 32px */
h3 { font-size: 1.75rem; }/* 28px */
h4 { font-size: 1.5rem; } /* 24px */
h5 { font-size: 1.25rem; }/* 20px */
h6 { font-size: 1rem; }   /* 16px */
p {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.bold {
    font-weight: 700;
}
a:not(.btn), a:not(.btn):visited {
    color: var(--text);
}
a:not(.btn):hover {
    color: var(--hover);
    /* text-decoration: underline; */
    cursor: pointer;
}
small, .small {
    font-size: 0.7rem;
}
hr {
    border: none;
    height: 1px;
    background-color: var(--text);
    margin: 1.5rem 0;
}
ul {
    padding-left: 1.5rem;
}
li {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
ol {
    margin-left: 1rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: var(--box);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}
td, th {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--table);
    vertical-align: middle;
}
th {
    font-weight: 600;
    background-color: var(--box);
    white-space: nowrap;
}
tr:last-child td {
    border-bottom: none;
}
tr:hover {
    background-color: var(--table);
}
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead {
        display: none;
    }
    tr {
        margin-bottom: 1rem;
        padding: 0.5rem;
    }
    td::before {
        font-weight: bold;
        content: attr(data-label);
        padding-right: 1rem;
    }
}


.btn {
    display: inline-block;
    height: 1.8rem;
    background-color: var(--primary);
    color: var(--text);
    border: none;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    padding: 0 0.75rem;
}
.btn.mini {
    height: 1.5rem;
}
.btn:hover {
    border: 1px solid var(--button-hover-minimalist);   
    background-color: var(--button-hover-minimalist);
    color: var(--text);
}
.btn[disabled] {
    opacity: 0.65;
    cursor: default;
}

.btn.confirm {
    background-color: var(--green);
}
.btn.cancel, .btn.red {
    background-color: var(--red);
}


input, textarea, select {
    padding: 0 0.5rem;
    color: var(--text);
    border: 1px solid #828282;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--input);
    width: 100%;
    height: 1.8rem;
    /* -webkit-box-shadow: 0 0 0 1px #f00 inset !important; */
}
input:focus, textarea:focus, select:focus {
    outline: 0;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 2rem var(--input) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    /* transition: background-color 5000s ease-in-out 0s; */
}

 label {
    position: absolute;
    margin-top: -1.6em; /* -0.7*/
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    margin-left: 0.5rem;
    z-index: 1;
}



/* Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    padding: 0;
    /* background: var(--table); */
    border: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 21px;
    height: 21px;
    background:  var(--primary);
    cursor: pointer;
    border-radius: 50%;
}

input[type="checkbox"]{
  /* hide native appearance but keep it focusable / accessible */
  -webkit-appearance: none;
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  flex: 0 0 auto;
}

/* checked state: filled primary color */
input[type="checkbox"]:checked{
  background: var(--primary);
  border-color: var(--primary);
}

/* draw the check mark using a pseudo-element */
/*input[type="checkbox"]:checked::after{
  FONT-VARIANT: JIS04;
  content: "";
  position: absolute;
  top: 0.1rem;
  left: 0.45rem;
  width: 0.3rem;
  height: 0.7rem;
  border: solid var(--text);
  border-width: 0 0.2rem 0.2rem 0;
  transform: rotate(45deg);
  pointer-events: none;
}*/

/* disabled state */
input[type="checkbox"][disabled]{
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

input:disabled, select:disabled, textarea:disabled {
    color: var(--gray);
}

input.invisible {
    padding: 0px;
    border: 0px;
    background: transparent;
    height: 1.5rem;
}
/* Textarea */
textarea {
    width: 100%;
    height: auto;
    min-height: 5rem;
    font-family: inherit;
}
/* Flexbox */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    width: 100%;
    justify-content: flex-start;
    min-height: 2.4rem;
    align-items: center;
}



.row > * {
    flex: 1 1 0;
    min-width: 0;
}

.w10 { flex: 0 0 calc((100% - (9 * var(--gap))) * 0.10); }
.w20 { flex: 0 0 calc((100% - (4 * var(--gap))) * 0.20); }
.w25 { flex: 0 0 calc((100% - (3 * var(--gap))) * 0.25); }
.w30 { flex: 0 0 calc((100% - (2.3333333333 * var(--gap))) * 0.30); }
.w40 { flex: 0 0 calc((100% - (1.5 * var(--gap))) * 0.40); }
.w50 { flex: 0 0 calc((100% - (1 * var(--gap))) * 0.50); }
.w60 { flex: 0 0 calc((100% - (0.6666666667 * var(--gap))) * 0.60); }
.w70 { flex: 0 0 calc((100% - (0.4285714286 * var(--gap))) * 0.70); }
.w75 { flex: 0 0 calc((100% - (0.3333333333 * var(--gap))) * 0.75); }
.w80 { flex: 0 0 calc((100% - (0.25 * var(--gap))) * 0.80); }
.w90 { flex: 0 0 calc((100% - (0.1111111111 * var(--gap))) * 0.90); }
.w100 { flex: 0 0 calc((100% - (0 * var(--gap))) * 1); width: 100%;}

.min {
    flex: 0 0 auto;
}
.auto {
    flex: 1 1 0;
}
.center {
    justify-content: center;
    text-align: center;
}
.right {
    justify-content: flex-end;
    /* text-align: right; */
}
.full {
    align-items: initial;
}
.bottom {
    align-items: flex-end;
}




/* Helper */
.box {
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--box);
    box-shadow: var(--shadow);
}
.box h1:first-child, .box h2:first-child, .box h3:first-child {
    margin-top: 0;
}
.card {
    padding: var(--gap);
    background-color: var(--box);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: var(--gap);
}
.card h1:first-child, .card h2:first-child, .card h3:first-child {
    margin-top: 0;
}
.round {
    border-radius: var(--radius);
}
.right {
    text-align: right;
}
.left {
    text-align: left;
}
.uppercase {
    text-transform: uppercase;
}
.bold {
    font-weight: 700;
}
.italic {
    font-style: italic;
}
.meta {
    font-size: 0.75rem;
}
.monospace {
    font-family: monospace;
}
.underline {
    text-decoration: underline;
}
.hidden{
    display: none !important;
}
.primary {
    color: var(--primary)!important;
}
.transparent {
    opacity: 0 !important;
}

.mb0 {
    margin-bottom: 0rem;
}
.mb1 {
    margin-bottom: 0.5rem;
}
.mb2 {
    margin-bottom: 1rem;
}
.mb3 {
    margin-bottom: 2rem;
}
.mt0 {
    margin-top: 0rem;
}
.mt1 {
    margin-top: 0.5rem;
}
.mt2 {
    margin-top: 1rem;
}
.mt3 {
    margin-top: 2rem;
}
.ml0 {
    margin-left: 0rem;
}
.ml1 {
    margin-left: 0.5rem;
}
.ml2 {
    margin-left: 1rem;
}
.ml3 {
    margin-left: 2rem;
}
.mr0 {
    margin-right: 0rem;
}
.mr1 {
    margin-right: 0.5rem;
}
.mr2 {
    margin-right: 1rem;
}
.mr3 {
    margin-right: 2rem;
}

.login-box {
    max-width: 320px;
    margin: auto;
    padding: 2rem;
}
.login-container {
    width: 100%;
}
.login-box input {
    height: 2.2rem;
    border-radius: 0;
}

.login-box .btn {
    height: 2.2rem;
}

/* Panel visibility controlled by .active on section elements */
section { display: none; }
section.active { display: block; }

.title {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Modal styles */
modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

modal .content {
    background-color: var(--box);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 1000px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Dropdown menu for header hamburger */
.hamburger {
    width: 30px;
    height: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
    margin-left: auto;
    margin: 0 0 0 auto;
    font-size: 23px;
    position: relative;
    top: -16px;
}
.hamburger span {
    display: block;
    height: 1px;
    background-color: var(--primary);
    transition: all 0.3s ease-in-out;
}

.dropdown-menu-wrap {
  position: relative;
  display: inline-block;
}
.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 140px;
    background: var(--box);
    border: 1px solid var(--table);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 100;
  border-radius: var(--radius);
  padding: 0.5em 0;
}
.dropdown-menu a {
  display: block;
  padding: 0.5em 1.2em;
    color: var(--text);
  text-decoration: none;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.15s;
}
.dropdown-menu a:hover, .dropdown-menu a:focus {
    background: var(--table);
  text-decoration: none;
}

.header {
    height: var(--header-height);
    padding: 0.5rem 0.5rem 0px 0.5rem;
}

@media (max-width: 768px) {
    .row:not(.nostack) > * {
        flex: 0 0 100%;
    }
    .center_on_mobile, .com{
        justify-content: center;
        text-align: center;
        ;
    }
    .full_on_mobile, .fom {
        width: 100%;
    }
    .row.reverse {
        flex-direction: column-reverse;
    }
    .box {
        padding: 0.5rem;
    }
}


body.modal-open {
    overflow: hidden;
}