@font-face {
    font-family: "Noto Sans";
    src: url("fonts/NotoSans-Regular.ttf");
}

html {
    /** Font **/
    --lumo-font-family: Noto Sans;

    /** Color **/
    --lumo-base-color: white;
    --lumo-primary-text-color: rgb(57, 68, 73);
    --lumo-primary-text-color-85pct: rgba(57, 68, 73, 0.85);
    --lumo-primary-text-color-70pct: rgba(57, 68, 73, 0.7);
    --lumo-primary-text-color-60pct: rgba(57, 68, 73, 0.6);
    --lumo-primary-text-color-50pct: rgba(57, 68, 73, 0.5);
    --lumo-primary-text-color-40pct: rgba(57, 68, 73, 0.4);
    --lumo-primary-text-color-30pct: rgba(57, 68, 73, 0.3);
    --lumo-primary-color: rgb(30, 93, 116);
    --lumo-primary-color-75pct: rgba(30, 93, 116, 0.75);
    --lumo-primary-color-50pct: rgba(30, 93, 116, 0.5);
    --lumo-primary-color-25pct: rgba(30, 93, 116, 0.25);
    --lumo-primary-color-20pct: rgba(30, 93, 116, 0.2);
    --lumo-primary-color-15pct: rgba(30, 93, 116, 0.15);
    --lumo-primary-color-10pct: rgba(30, 93, 116, 0.1);
    --lumo-error-text-color: rgb(223, 70, 87);
    --lumo-error-color-50pct: rgba(223, 70, 87, 0.5);
    --lumo-error-color-10pct: rgba(223, 70, 87, 0.1);
    --lumo-error-color: rgb(223, 70, 87);
    --lumo-success-color: rgb(152, 208, 85);
    --lumo-tint-5pct: rgba(38, 52, 69, 0.05);
    --lumo-tint-10pct: rgba(38, 52, 69, 0.1);
    --lumo-tint-20pct: rgba(38, 52, 69, 0.2);
    --lumo-tint-30pct: rgba(38, 52, 69, 0.3);
    --lumo-tint-40pct: rgba(38, 52, 69, 0.4);
    --lumo-tint-50pct: rgba(38, 52, 69, 0.5);
    --lumo-tint-60pct: rgba(38, 52, 69, 0.6);
    --lumo-tint-70pct: rgba(38, 52, 69, 0.7);
    --lumo-tint-80pct: rgba(38, 52, 69, 0.8);
    --lumo-tint-90pct: rgba(38, 52, 69, 0.9);
    --lumo-tint: #263445;

    /** Special Colors **/
    --background-color-grid-selection: rgb(184, 198, 208);
    --completely: rgb(152, 208, 85);
    --completely-dark: rgb(120, 161, 65);
    --background-color-dialog-content: white;

    /** Border **/
    --lumo-border-radius: 0.5em;

    /** Sizes **/
    --lumo-size-xxxl: 4.0rem;
    --lumo-size-xxl: 3.1rem;
    --lumo-size-xl: 2.8rem;
    --lumo-size-l: 2.35rem;
    --lumo-size-m: 1.85rem;
    --lumo-size-s: 1.65rem;
    --lumo-size-xs: 1.4rem;
    --lumo-space-xl: 1.7rem;
    --lumo-space-l: 1.15rem;
    --lumo-space-m: 0.55rem;
    --lumo-space-s: 0.3rem;
    --lumo-space-xs: 0.16rem;
    --lumo-font-size: 0.9rem;
    --lumo-font-size-xxxl: 1.6rem;
    --lumo-font-size-xxl: 1.25rem;
    --lumo-font-size-xl: 1rem;
    --lumo-font-size-l: 0.9rem;
    --lumo-font-size-m: 0.8125rem;
    --lumo-font-size-s: 0.8rem;
    --lumo-font-size-xs: 0.675rem;
    --lumo-font-size-xxs: 0.6rem;

    --lumo-line-height-m: 1.4;
    --lumo-line-height-s: 1.2;
    --lumo-line-height-xs: 1.1;
}


/*** Login ***/

/*
Vaadin 25 adds a Lumo tint gradient via background-image to the login form.
Remove the gradient to restore the plain white form background.
 */
vaadin-login-form::part(form) {
    background-color: white;
    background-image: none;
}

.login-screen {
    background-image: url("img/login/pills.png");
    background-color: white;
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: auto 100%;
    -webkit-background-size: auto 100%;
    -moz-background-size: auto 100%;
    -o-background-size: auto 100%;
}


.login-layout {
    background-color: white;
    padding: 50px;
    border-radius: 25px;
}

.login-logo {
    padding: 20px;
    border-radius: 10px;
}

.copyright {
    text-align: center;
    font-size: var(--lumo-font-size-xs);
}

/*** Main Layout & Menu ***/

.schriftzug {
    font-weight: bold;
    font-style: oblique;
    font-variant: small-caps;
    color: white;
    font-size: var(--lumo-font-size-xl);
    margin-left: 15px;
}

.menu-left {
    background: rgb(75, 68, 73);
    color: white;
}

.menu-top {
    background: rgb(75, 68, 73);
    color: white;
}

/*** StatusBar ***/

.status-bar {
    background-color: rgb(81, 75, 81);
    border-radius: 5px;
}

/*** ??? ***/

.info-icon {
    cursor: auto;
}

.my-grid {
    overflow: hidden;
}


.media-form {
    border-radius: 10px;
    box-shadow: 10px 10px 15px silver;
    opacity: 1;
}


.filter-textfield-filled {
    color: var(--lumo-error-color);
}

.locationAccordionWrapper {
    margin-left: 15px;
    margin-bottom: 15px;
}


.button-shortcut {
    font-size: var(--lumo-font-size-xs);
}

.routerlink {
    color: white;
    font-variant: small-caps;
    font-size: var(--lumo-font-size-l);
}

.routerlink:hover {
    color: #610b4f;
    text-decoration: none;
}


.device-view {
    box-shadow: rgba(55, 97, 134, 0.2) 0 0 3px 5px inset;
}

.device-media-grid-footer {
    font-size: var(--lumo-font-size-xs);
    font-weight: bold;
    padding: 0;
}

.sprichwort {
    font-style: italic;
    font-variant: small-caps;
    color: #610b4f;
    text-align: justify;
    font-size: var(--lumo-font-size-l);
}

.bold {
    font-weight: bold;
}

.v-dragged.card {
    outline: 1px dotted hotpink;
    opacity: 0.5;
}

/* Stack login-screen vertically on narrow screen */
@media ( max-width: 800px) {
    .login-screen {
        flex-direction: column;
    }

    .login-information {
        display: block;
    }
}

#map {
    height: 100%;
    background-color: red;
}


.drawer-toggle {
    background: #021526;
    color: white;
    padding: 0;
}


.dot-label {
    height: 25px;
    width: 25px;
    border-radius: 50%;
    display: inline-block;
    color: white;
    text-align: center;
    font-weight: bold;
    vertical-align: middle;
    font-size: var(--lumo-font-size-l);
}

.dot-label-text {
    text-align: center;
    line-height: 25px;
    width: 25px;
    height: 25px;
}

.function-icon {
    /*color: var(--lumo-primary-text-color);*/
    padding: 0;
}

.grid-header-media-parent {
    border-radius: 10px;
    min-width: 26px;
    height: auto;
    padding: 4px;
    border-width: 4px;
    border-style: solid;
}

.grid-header-media-text-parent {
    text-orientation: mixed;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    text-align: left;
    font-weight: bold;
    height: 80px;
    min-height: 80px;
    font-size: var(--lumo-font-size-xs);
    overflow-y: hidden;
    transition: height 0.3s ease;
    /* Glatte Übergangseffekte */
}

.grid-header-media-text-parent:hover {
    height: auto;
    /* Setzt die Höhe auf den benötigten Compartment für den gesamten Text */
    overflow-y: auto;
    /* Erlaubt Scrollen, wenn nötig */
}

.grid-header-media-parent-text-small {
    text-orientation: mixed;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    text-align: left;
    color: white;
    font-weight: normal;
    font-size: var(--lumo-font-size-xxs);
}

.grid-header-media-child {
    text-orientation: mixed;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    text-align: left;
    min-height: 200px;
}


.banned-timer {
    color: var(--lumo-error-color);
    font-size: 2.5rem;
    font-weight: bold;
}

.report-form {
    overflow: scroll;
}

/* 
 * Special rules for narrow screens (responsive design rules)
 */
@media ( max-width: 800px) , ( max-height: 600px) {
    /*
     * Make menu toggle visible, and smaller
     */
    .menu-toggle {
        display: block;
        height: var(--lumo-button-size);
        width: var(--lumo-button-size);
    }

    .menu-header {
        padding-left: 0;
    }
}

@media ( max-width: 550px) {
    .product-form {
        width: 100%;
        /* Prevent text-fields from overflowing on narrow screens */
        --vaadin-text-field-default-width: 6em;
    }
}

/* Color codes for the availability statuses of the products */
.green {
    color: var(--lumo-success-color);
}

.orange {
    color: rgb(234, 189, 75);
}

.red {
    color: var(--lumo-error-color);
}

.label-bold-text {
    font-weight: bold;
}

.label-warning {
    color: white;
    background-color: var(--lumo-error-color);
    padding: 10px;
    border-radius: 5px;
}

.label-header {
    font-weight: bold;
    font-size: var(--lumo-font-size-xxl);
    font-variant: small-caps;
    white-space: nowrap;
}

.context-menu-label-header {
    font-weight: bold;
    font-size: var(--lumo-font-size-xxl);
    font-variant: small-caps;
    white-space: nowrap;
    color: white;
    background-color: var(--lumo-primary-color);
    border-radius: 3px;
    align-content: center;
    text-align: center;
    padding-top: 3px;
    margin-left: 8px;
    margin-right: 8px;
}

.label-small-text {
    font-size: var(--lumo-font-size-xxs);
}

.label-small-text-bold {
    font-size: var(--lumo-font-size-xxs);
    font-weight: bold;
}

.label-small-text-ellipsis {
    font-size: var(--lumo-font-size-xxs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.label-todo-count {
    font-size: var(--lumo-font-size-xs);
    padding: 0;
    margin: 0;
}

.label-nowrap {
    white-space: nowrap;
}

.overflow-scroll {
    overflow: auto;
}

.overflow-y-scroll {
    overflow-y: auto;
}

.userpoint-available-icon {
    padding: 0;
    margin: 0;
    position: fixed;
    top: 3px;
}

.align-right {
    text-align: right;
}

.dot {
    height: 25px;
    width: 25px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
}

.circle {
    border-radius: 50%;
    height: 25px;
    width: 25px;
    border: 2px #bbb;
    display: inline-block;
}

.identifiablev2form {
    border: 1px;
    border-style: solid;
    border-radius: 0;
    border-color: var(--lumo-primary-color-20pct);
}

.news-header {
    font-family: Chomsky;
    font-size: 36px;
    white-space: nowrap;
}

.news-tab-header {
    font-size: var(--lumo-font-size-l);
    white-space: nowrap;
    font-style: italic;
    text-transform: uppercase;
}

.news-release-date {
    font-size: var(--lumo-font-size-xs);
    white-space: nowrap;
    text-transform: uppercase;
    border-bottom: 2px solid var(--lumo-primary-text-color);
    border-top: 2px solid var(--lumo-primary-text-color);
    padding: 10px 0 9px 0;
}

.news-image {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.countSubscrptionsBellLabel {
    font-size: var(--lumo-font-size-xxs);
}

.speedtest-percentage {
    font-size: var(--lumo-font-size-xxl);
}

.notification-dialog-message {
    font-size: var(--lumo-font-size-xl);
}

.how-sure-layout {
    color: var(--lumo-error-color);
    font-size: var(--lumo-font-size-l);
    align-content: center;
    text-align: center;
}

.red-text {
    color: var(--lumo-error-color);
}

.title-delete-dialog {
    text-align: left;
    font-weight: bold;
    font-size: var(--lumo-font-size-xxl);
    font-variant: small-caps;
    white-space: nowrap;
}

.label-mediaitem-systemcode {
    padding: 0;
}

.label-mediaitem-name {
    font-size: var(--lumo-font-size-xxs);
    padding: 0;
    margin: 0;
}

.dialog-header-title {
    background-color: var(--lumo-primary-color);
    color: white;
    border-radius: 3px;
    font-size: var(--lumo-font-size-m);
    padding-top: 3px;
    padding-left: 8px;
    padding-right: 8px;
    font-weight: bold;
}

/*
.v-loading-indicator.first { background-color: #d2539f !important ; }

.v-loading-indicator.second:before { background-color: #d2539f !important; }

.v-loading-indicator.third:before { background-color: #d2539f !important; }

.v-loading-indicator:before { background-color: #d2539f !important; }

.v-loading-indicator[style*="none"]{background-color: #d2539f !important;}
*/
.v-loading-indicator {
    /* background: rgb(172,41,119) !important; */
    background: -moz-linear-gradient(90deg, rgba(172, 41, 119, 1) 0%,
    rgba(255, 255, 255, 1) 100%);
    background: -webkit-linear-gradient(90deg, rgba(172, 41, 119, 1) 0%,
    rgba(255, 255, 255, 1) 100%);
    background: linear-gradient(90deg, rgba(172, 41, 119, 1) 0%,
    rgba(255, 255, 255, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ac2977",
    endColorstr="#ffffff", GradientType=1);
}

.static-preview-image {
    transition: transform 0.3s ease;
    /* Animation für die Skalierung */
    transform-origin: center center;
    /* Skalierung erfolgt aus der Mitte */
}

.static-preview-image:hover {
    transform: scale(5);
    z-index: 10;
}

.fast-edit-field {
    /*
    position: absolute;
    overflow: visible;
    z-index: 1000;
    min-width: 400px;
    */

}

.media-item-checkbox-group > vaadin-checkbox {
    opacity: 0.4;
    transition: opacity 150ms ease-in-out;
}

.media-item-checkbox-group > vaadin-checkbox[checked] {
    opacity: 1;
}
