@font-face {
    font-family: 'roboto';
    src:url('../fonts/roboto.ttf') format('truetype');
}
:root {
  --bg: #f8f9fa; /* Lighter gray background */
  --bg2: #f0f0f0; /* Slightly darker gray */
  --white: #ffffff;
  --primary: #ff0d01; /* Keep primary red */
  --gray: #a9a9a9; /* Softer gray */
  --text: #2b2b2b; /* Darker text for better contrast */
  --error: #ff0d01; /* Standard error red */
  --success: #198754; /* Standard success green */
  --warning: #ffc107; /* Standard warning yellow */
  --container: 1600px;
  --radius: 0.3rem; /* Slightly larger radius */
  --gap: 1rem; /* Increased base gap */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Softer shadow */
  --font: "roboto", sans-serif;
  --font-size-desktop: 18px;
  --font-size-mobile: 16px;
}

* {
    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: var(--font-size-desktop);
    overflow-y: scroll;
    background-color: var(--bg);
}
@media (max-width: 768px) {
    html {
        font-size: var(--font-size-mobile);
    }
}
body {
    line-height: 1.5;
    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.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
    margin-top: 2rem;
    margin-bottom: 1rem;
    hyphens: auto;
    overflow-wrap: break-word;
}
h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.5rem;
}
h4 {
    font-size: 1.1rem;
}
.bold {
    font-weight: 700;
}
a:not(.btn), a:not(.btn):visited {
    color: var(--text);
}
a:not(.btn):hover {
    text-decoration: underline;
    cursor: pointer;
}
small, .small {
    font-size: 0.7rem;
}
hr {
    border-top: 1px solid var(--primary);
    margin: 0.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(--white);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}
td, th {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--bg2);
    vertical-align: middle;
}
th {
    font-weight: 600;
    background-color: var(--bg);
    white-space: nowrap;
}
tr:last-child td {
    border-bottom: none;
}
tr:hover {
    background-color: var(--bg);
}
@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, button, input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::file-selector-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    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;
}
button.mini, .btn.mini{
  padding: 0.2rem 0.7rem 0.25rem 0.7rem;
}
select.mini{
    padding: 0.05rem 0.7rem 0.078rem 0.7rem;
}
.btn:hover, button:hover, input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover, input[type="file"]::file-selector-button:hover {
    opacity: 0.65;
    color: var(--white);
    text-decoration: none;
}
.btn[disabled], button[disabled], input[disabled] {
    opacity: 0.65;
    cursor: default;
}
select, textarea, input:not([type="checkbox" i],[type="radio" i],[type="submit" i]) {
    width:100%;
}
.btn.confirm {
    background-color: var(--success);
}
.btn.cancel {
    background-color: var(--error);
}
.confirm:not(.btn) {
    color: var(--success);
}
label {
    position: absolute;
    margin-top: -1.2em; /* -0.7*/
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    margin-left: 0.5rem;
    z-index: 1;
}
/*label:not(.checkbox)::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: -2px;
    right: -2px;
    height: 1px;
    background: #fff;
    z-index: -1;
}*/
input, textarea, select {
    padding: 0.45rem;
    color: var(--text);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    background-color: var(--white);
    width: 100%;
}
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 30px var(--white) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    transition: background-color 5000s ease-in-out 0s;
}
textarea {
    width: 100%;
    height: auto;
    min-height: 5rem;
    font-family: inherit;
}
.checkbox {
    cursor: pointer;
    position: relative;
    display: inline-block;
    line-height: 1;
    margin: 0;
}
.checkbox input {
    display: none;
}
.checkbox span {
    display: inline-block;
}
.checkbox span::before {
    content: "\f0c8";
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    font-size: 1rem;
    color: var(--text);
}
.checkbox input:checked + span::before {
    content: "\f14a";
}
.checkbox-helper {
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
}
@media (max-width: 768px) {
    .checkbox-helper {
        padding-left: 0.2rem;
        border: 1px solid transparent;
        border-radius: var(--radius);
        font-size: 0.7rem;
    }
}


/* Flexbox */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    width: 100%;
}
.row > * {
    display: flex;
}
.full {
    flex: 0 0 100%;
    width:100%;
}
.half {
    flex: 0 0 calc(50% - calc(var(--gap) / 2));
}
.third {
    flex: 0 0 calc(calc(100% / 3) - calc(var(--gap) * 2 / 3));
}
.quarter {
    flex: 0 0 calc(25% - calc(var(--gap) * 3 / 4));
}
.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;
}
.middle {
    align-items: center;
}
.bottom {
    align-items: flex-end;
}
@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%;
    }
    .checkbox {
        scale: 1.5;
    }
    .edit-price{
        scale: 1.5;
        padding-left:0.5rem;
    }
}


/* Helper */
.box {
    padding: 0.5rem;
    border: 1px solid var(--gray);
    border-radius: var(--radius);
}
.box h1:first-child, .box h2:first-child, .box h3:first-child {
    margin-top: 0;
}
.card {
    padding: var(--gap);
    background-color: var(--bg2);
    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;
}
.ml1 {
    margin-left: 0.5rem;
}
.meta {
    font-size: 0.75rem;
}
.underline {
    text-decoration: underline;
}
.hidden, .hide{
    display: none !important;
}
.primary {
    color: var(--primary)!important;
}
.error, .warn {
    color: var(--error)!important;
}
.success {
    color: var(--success);
}
.transparent {
    opacity: 0 !important;
}

/* Margin Bottom */
.mb0 {
    margin-bottom: 0;
}
.mb05 {
    margin-bottom: 0.5rem;
}
.mb1 {
    margin-bottom: 1rem;
}
.mb2 {
    margin-bottom: 2rem;
}
.mb3 {
    margin-bottom: 3rem;
}

/* Margin Bottom children */
.mbc05 > * {
    margin-bottom: 0.5rem;
}
.mbc1 > * {
    margin-bottom: 1rem;
}


.mt0 {
    margin-top: 0;
}
.mt1 {
    margin-top: 1rem;
}
.mt2 {
    margin-top: 2rem;
}
.mt3 {
    margin-top: 3rem;
}

.pc0 > * {
    padding: 0;
}
.pclr0 > * {
    padding-left: 0;
    padding-right: 0;
}
.mtc0 > * {
    margin-top: 0;
}

.p3 {
    padding: 3rem;
}
