body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2vw;
    height: 100vh;
    width: 100%;
    color: var(--text-primary);
    overflow: hidden;
}

html {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.hspacer_05 {
    width: 0.5vw;
}

.hspacer_1 {
    width: 1vw;
}

.hspacer_2 {
    width: 2vw;
}

.vspacer_10 {
    height: 10%;
}

/* ── Shared dropdown styles ──────────────────────────────── */

.head_dropdown,
.ctx_dropdown,
.footer_dropdown,
.status_dropdown,
.lineselect_dropdown,
.fax_server_dropdown,
.ansagen_menu {
    display: none;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5vw;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.head_dropitem,
.ctx_dropitem,
.footer_dropitem {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    z-index: 5;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .head_dropitem:hover,
    .ctx_dropitem:hover,
    .footer_dropitem:hover,
    .ansagen_menu_item:hover {
        background-color: var(--bg-hover);
    }
}

/* ── End shared dropdown styles ─────────────────────────── */

#bgVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    aspect-ratio: 1920/1080;
    z-index: -10;
}

.diffusor {
    position: absolute;
    top:0;
    left:0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-body-overlay);
    z-index: -5;
}

#startanimation {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background-color: #000;
}

#startanimation_text {
    margin-top: 2vh;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2vw;
    font-family: sans-serif;
}

#quickswitch_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-overlay);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
}

#quickswitch_overlay img {
    width: 8vw;
    height: 8vw;
    max-width: 80px;
    max-height: 80px;
}

#quickswitch_overlay span {
    font-size: 1.4vw;
    color: var(--text-muted);
}

#app_loggedout {
    display: none;
}

#app_loggedin {
    display: none;
}

.app_controller {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.app_controller::-webkit-scrollbar {
  display: none;
}

.app_head {
    height: 5vh;
    width: 100%;
    background-color: var(--bg-header);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 0.3vw;
    padding-right: 1vw;
    font-size: 1.1vw;
}

.app_head_left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    gap: 0.3vw;
}

.head_separator {
    width: 1px;
    height: 2.5vh;
    background-color: var(--border-head-sep);
    margin: 0 0.5vw;
}

#app_menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3vw;
}

.app_head_middle {
    display: flex;
    justify-content:left;
    align-items: center;
    flex-direction: row;
    
    color: var(--text-secondary);
    font-size: 1.2vw;
}

.menuitem {
    border: solid 1px;
    border-color: transparent;
    border-radius: 2vw;
    padding: 0.3vw 0.6vw 0.3vw 0.6vw;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.menuitem_active {
    color: var(--text-strong);
}

.counting_bubble {
    background-color: #e74c3c;
    color: white;
    font-size: 0.8vw;
    border-radius: 100%;
    min-width: 1.2vw;
    height: 1.2vw;
    line-height: 1.2vw;
    text-align: center;
    display: inline-block;
    position: relative;
    top: 0.2vw;
}

@media (hover: hover) {
    .menuitem:hover {
        border-color: var(--text-strong);
    }
    .menu_add_icon:hover {
        background-color: var(--bg-subtle-strong);
    }
}

.menu_add_icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.3vw;
    height: 1.3vw;
    margin: -0.1vw 0 -0.1vw 0.1vw;
    font-size: 1.1vw;
    font-weight: 300;
    cursor: pointer;
    vertical-align: middle;
    border-radius: 100%;
    transition: background-color 0.15s;
}

.head_search_input {
    background-color: transparent;
    outline: none;  
    border: none;
    border-bottom: solid 1px;
    border-bottom-color: var(--border-input);
    width: 32vw;
    color: var(--text-strong);
    font-size: 1.2vw;
}


.head_left_menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;

}

.app_head_right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
    border-bottom: solid 2px;
    border-bottom-color: transparent;
}

.head_icon {
    height: 3.5vh;
    width: 3.5vh;
    margin: 0.5vh;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border-radius: 50%;
    border-color: transparent;
    padding: 0.5vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

@media (hover: hover) {
    .head_icon:hover {
        border-color: var(--text-secondary);
        background-color: var(--bg-hover-icon);
        cursor: pointer;
    }
}

.head_statusmsg_wrapper {
    position: relative;
    display: none;
    align-items: center;
    margin-left: 0.5vw;
}

.head_statusmsg_icon {
    height: 2vh;
    width: 2vh;
    cursor: pointer;
}

.head_statusmsg_tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.5vh;
    background-color: var(--bg-tooltip);
    color: var(--text-strong);
    font-size: 1.2vh;
    padding: calc(0.8vh + 10px) calc(1vw + 10px);
    border-radius: 0.5vh;
    white-space: pre-wrap;
    min-width: 20vw;
    max-width: 35vw;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.head_statusmsg_wrapper:hover .head_statusmsg_tooltip {
    display: block;
}

.head_opmode_wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.head_opmode_tooltip {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5vh;
    background-color: var(--bg-tooltip);
    color: var(--text-strong);
    font-size: 1.2vh;
    padding: calc(0.8vh + 10px) calc(1vw + 10px);
    border-radius: 0.5vh;
    white-space: nowrap;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.head_opmode_wrapper:hover .head_opmode_tooltip {
    display: block;
}

.head_viewmode_toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3vh;
    height: 3vh;
    border-radius: 50%;
    border: solid 1px;
    border-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    margin-left: 0.3vw;
}

@media (hover: hover) {
    .head_viewmode_toggle:hover {
        border-color: var(--text-secondary);
        background-color: var(--bg-hover-icon);
    }
}

.head_viewmode_icon {
    width: 2vh;
    height: 2vh;
}

/* Hinweis-Dialog für Opmode-Wechsel */
.msg_switch_opmode {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 1.5vh;
    width: 30vw;
    height: 20vh;
    background-color: #2e7d32;
    color: white;
    border: 1px solid #81c784;
    border-radius: 0.8vh;
    padding: 1.5vh 1.5vw;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    font-size: 1.4vh;
    line-height: 1.6;
}

.msg_switch_opmode::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 1vw;
    border-width: 1vh;
    border-style: solid;
    border-color: transparent transparent #2e7d32 transparent;
}

.msg_switch_opmode_close {
    position: absolute;
    top: 0.8vh;
    right: 0.8vw;
    cursor: pointer;
    font-size: 2vh;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.msg_switch_opmode_close:hover {
    opacity: 1;
}

.msg_switch_opmode_content {
    position: absolute;
    top: 3vh;
    bottom: 5vh;
    left: 1.5vw;
    right: 1.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.6vh;
    line-height: 1.5;
}

.msg_switch_opmode.visible {
    display: block;
}

.msg_switch_opmode_ignore {
    position: absolute;
    bottom: 1.5vh;
    left: 1.5vw;
    right: 1.5vw;
    display: flex;
    align-items: center;
    gap: 0.8vw;
    cursor: pointer;
    user-select: none;
}

.msg_ignore_checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.msg_ignore_mark {
    width: 2vh;
    height: 2vh;
    border-radius: 0.3vh;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.msg_ignore_checkbox:checked + .msg_ignore_mark {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.msg_ignore_checkbox:checked + .msg_ignore_mark::before {
    content: "✓";
    color: white;
    font-size: 1.4vh;
    line-height: 1;
    font-weight: bold;
}

.msg_ignore_label {
    font-size: 1.2vh;
    opacity: 0.9;
}

.tlnmenu {
    display: none;
    position: absolute;
    top: 5vh;
    left: 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5vw;
    padding: 1vh 1vw;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8vh;
    box-shadow: var(--shadow);
}

.statusmsg_input {
    background-color: var(--bg-input);
    border: solid 2px transparent;
    border-radius: 1vh;
    padding: 0.8vh 1vh;
    color: var(--text-strong);
    font-size: 1.1vw;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    width: 18vw;
    resize: none;
}

.statusmsg_input:focus {
    background-color: var(--bg-input-focus);
}

.statusmsg_input::placeholder {
    color: var(--text-placeholder);
}

.statusmsg_bottom_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5vh;
}

.statusmsg_validity_bubble {
    background-color: #2196F3;
    color: white;
    font-size: 0.6vw;
    padding: 0.3vh 0.6vw;
    border-radius: 1vh;
    cursor: pointer;
}

.validity_calendar {
    display: none;
    position: fixed;
    background-color: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: 0.5vw;
    padding: 1vh;
    z-index: 100;
    min-width: 16vw;
    box-shadow: var(--shadow-lg);
}

.validity_calendar_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5vh;
}

.validity_calendar_nav {
    background-color: var(--bg-input);
    border: solid 2px transparent;
    border-radius: 0.5vh;
    color: var(--text-strong);
    padding: 0.3vh 0.6vw;
    cursor: pointer;
    font-size: 0.8vw;
}

.validity_calendar_nav:hover {
    border-color: var(--text-strong);
    background-color: var(--bg-hover);
}

.validity_calendar_month {
    flex: 1;
    text-align: center;
    font-size: 1vh;
    color: var(--text-strong);
    font-weight: bold;
}

.validity_calendar_grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.validity_calendar_day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7vw;
    color: var(--text-strong);
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.3vh;
    background-color: var(--bg-input);
}

.validity_calendar_day:hover:not(.validity_calendar_day_disabled):not(.validity_calendar_day_header) {
    border-color: var(--text-strong);
    background-color: var(--bg-hover);
}

.validity_calendar_day_disabled {
    color: var(--bg-hover);
    cursor: not-allowed;
    background-color: var(--bg-input-focus);
    opacity: 0.5;
}

.validity_calendar_day_selected {
    border-color: green !important;
    background-color: rgba(0, 136, 0, 0.4) !important;
}

.validity_calendar_day_header {
    font-weight: bold;
    color: var(--text-secondary);
    cursor: default;
    background-color: transparent;
}

.validity_calendar_day_empty {
    background-color: transparent;
    cursor: default;
}

.validity_calendar_day_empty:hover {
    border-color: transparent;
    background-color: transparent;
}

.validity_calendar_footer {
    margin-top: 0.5vh;
    display: flex;
    justify-content: center;
}

.tlnmenu_separator {
    border-top: 1px solid var(--border-separator);
    margin-top: 1vh;
}

.tlnmenu_section_header {
    color: var(--text-placeholder);
    font-size: 0.65vw;
    text-transform: uppercase;
    letter-spacing: 0.05vw;
    margin-top: 1vh;
    margin-bottom: 0.5vh;
}

.tlnmenu_quickswitch {
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

.tlnmenu_quickswitch_item {
    display: flex;
    align-items: center;
    gap: 0.8vw;
    padding: 0.4vh 0.5vw;
    border-radius: 0.5vh;
    cursor: pointer;
}

.tlnmenu_quickswitch_item:hover {
    background-color: var(--bg-subtle-hover);
}

.tlnmenu_quickswitch_pic {
    height: 2.5vh;
    width: 2.5vh;
    border-radius: 50%;
    border: 1px solid var(--text-strong);
    object-fit: cover;
}

.tlnmenu_quickswitch_nr {
    color: var(--text-secondary);
    font-size: 0.7vw;
    min-width: 2vw;
}

.tlnmenu_quickswitch_name {
    color: var(--text-strong);
    font-size: 0.8vw;
    flex: 1;
}

.tlnmenu_quickswitch_menu {
    position: relative;
    width: 1.75vw;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
    opacity: 0.5;
}

.tlnmenu_quickswitch_menu:hover {
    opacity: 1;
}

.tlnmenu_quickswitch_menu img {
    height: 2vh;
    width: 2vh;
}

.quickswitch_dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5vw;
    width: 15vw;
    display: flex;
    flex-direction: column;
    z-index: 100;
    font-size: 0.7vw;
    box-shadow: var(--shadow);
}

.quickswitch_dropdown_item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: 4vh;
    width: 15vw;
    padding-left: 1vw;
    color: var(--text-strong);
    cursor: pointer;
}

@media (hover: hover) {
    .quickswitch_dropdown_item:hover {
        background-color: var(--bg-hover);
    }
}

.tlnmenu_quickswitch_add {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.75vw;
    height: 1.75vw;
    border: 1px solid;
    border-radius: 100%;
    margin-top: 0.5vh;
    margin-left: auto;
    cursor: pointer;
}

@media (hover: hover) {
    .tlnmenu_quickswitch_add:hover {
        background-color: var(--bg-hover-icon);
    }
}

.statusmsg_btn_row {
    display: flex;
    justify-content: flex-end;
    gap: 0.5vw;
}

.button-50 {
    font-size: 0.6vw;
    padding: 0.4vh 0.8vw;
    min-width: 4vw;
    border: solid 1px var(--text-strong);
    border-radius: 1vh;
}

.user_icon {
    height: 3vh;
    width: 3vh;
    border-radius: 4vh;
    border: 0.2vh solid;
    border-color: var(--text-secondary);
    padding: 0.2vh;
    cursor: pointer;
}

#head_left_name {
    cursor: pointer;
}

.user_icon_green {
    border-color: green;
}

.user_icon_red {
    border-color: red;
}

.user_icon_ring {
    animation: user_icon_flash_ani 1s infinite;
}

@keyframes user_icon_flash_ani {
    from,
    49.9% {
          border-color: red;
    }
    50%,
    to {
          border-color: transparent;
    }
}


.app_footer {
    height: 5vh;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 0.3vw;
    padding-right: 0.3vw;
    background-color: var(--bg-footer);
}

.app_footer_left {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.app_footer_separator {
    width: 1vw;
    background-color: white;
    height: 98%;
    margin-top: 1%;
    margin-bottom: 1%;
}

.app_footer_item {
    height: 3vh;
    width: 5vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    border-radius: 1vw;
}

.app_state_icon {
    height: 1.25vw;
    width: 1.25vw;
    pointer-events: none;
} 

.footer_cloud {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 3.5vw;
    height: 1.75vw;
    border: solid 1px;
    border-radius: 1.75vw;
    font-size: 0.7vw;
    padding: 0.3vw;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

#f_cloud_ok {
    display: none;
}

.footer_cloud_wrapper {
    position: relative;
}

.footer_cloud_connected {
    background-color: green;
    border-color: green;
    display: none;
}

.footer_cloud_problem {
    background-color: red;
    border-color: red;
}

.status_dropdown {
    position: absolute;
    min-width: 18vw;
    bottom: 3.5vh;
    left: 0;
    align-items: stretch;
    padding: 0.5vh 0;
    z-index: 20;
}

.status_dropitem {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1vw;
    padding: 1vh 1vw;
    color: var(--text-strong);
    font-size: 1vw;
}

.status_icon {
    width: 1.5vw;
    height: 1.5vw;
}

.status_info_icon {
    width: 1.2vw;
    height: 1.2vw;
    margin-left: auto;
    cursor: pointer;
}

.dlg_fax_server_wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fax_server_dropdown {
    position: fixed;
    min-width: 18vw;
    align-items: stretch;
    padding: 0.5vh 0;
    z-index: 1000;
}

.fax_server_dropitem {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 1vh 1vw;
    color: var(--text-strong);
    font-size: 1vw;
    cursor: pointer;
}

.fax_server_dropitem:hover {
    background-color: var(--bg-subtle-hover);
}

.fax_server_dropitem_disabled {
    color: var(--text-placeholder);
    cursor: default;
}

.fax_server_dropitem_disabled:hover {
    background-color: transparent;
}

.footer_tooltip {
    display: none;
    position: fixed;
    background-color: var(--bg-surface);
    color: var(--text-strong);
    padding: 0.4vw 0.8vw;
    border-radius: 4px;
    font-size: 0.9vw;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    border: 1px solid var(--border-separator);
    transform: none;
}

.footer_lineselect_wrapper,
.footer_lineselect_spacer {
    display: none;
}

.footer_lineselect_wrapper.visible {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.footer_lineselect_spacer.visible {
    display: block;
}

.lineselect_dropdown {
    position: absolute;
    min-width: 10vw;
    bottom: 3.5vh;
    left: 0;
    align-items: stretch;
    padding: 0.5vh 0;
    z-index: 20;
}

.lineselect_dropitem {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 1vh 1vw;
    color: var(--text-strong);
    font-size: 1vw;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.lineselect_dropitem:hover {
    background-color: var(--bg-subtle-hover);
}

.lineselect_dropitem.active {
    background-color: rgba(100, 150, 255, 0.2);
}

.lineselect_dropcheck {
    width: 1.2vw;
    height: 1.2vw;
    margin-left: auto;
}

.footer_badge {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: 3.5vw;
    height: 1.75vw;
    border: solid 1px;
    border-radius: 1.75vw;
    font-size: 0.7vw;
    padding: 0.3vw;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .footer_badge:hover {
        background-color: var(--bg-hover-icon);
        cursor: pointer;
    }
}

.footer_badge_uml {
    min-width: 7vw;
} 

.footer_badge_txt {
    display: flex;
    justify-content:flex-start;
    align-items: center;
}

.footer_badge_cmd {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.25vw;
    height: 100%;
    /* border: solid 1px;
    border-radius: 100%; */
}

.footer_badge_icon {
    height: 1.25vw;
    width: 1.25vw;
}

.footer_badge_red {
    border-color: red;
    background-color: rgba(255,0,0,0.3);
    color: red;
}

.footer_badge_green {
    border-color: green;
    background-color: rgba(0,255,0,0.3);
    color: green;
}

.footer_badge_orange {
    border-color: orange;
    background-color: rgba(255,165,0,0.3);
    color: orange;
}

.footer_spacer_1 {
    width: 0.5vw;
    flex-shrink: 0;
}

.footer_badge_add {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.75vw;
    height: 1.75vw;
    border: 1px solid;
    border-radius: 100%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .footer_badge_add:hover {
        background-color: var(--bg-hover-icon);
        cursor: pointer;
    }
}

.antilo_logo {
    font-weight: 500;
    margin-left: 0.5vw;
}

#dialog_head .antilo_logo {
    margin-left: 0;
}

.antilo_clamp {
    color: red;
}

.dlg_login_0 {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.dlg_login_left {
    width: 49%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
}

.dlg_login_mid {
    width: 2px;
    height: 100%;
    background-color: var(--border-divider);
}

.dlg_login_right {
    width: 49%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
}

.dlg_login_qr {
    height: 100%;
}

.qr_progress_wrapper {
    position: relative;
    display: inline-block;
    height: 100%;
}

.qr_progress_svg {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    z-index: 0;
}

.qr_progress_rect {
    stroke-dasharray: 384;
    stroke-dashoffset: 384;
}

.qr_progress_wrapper.qr_animating .qr_progress_rect {
    animation: qr_rect_anim 60s linear forwards;
}

@keyframes qr_rect_anim {
    from { stroke-dashoffset: 384; }
    to { stroke-dashoffset: 0; }
}

.qr_progress_wrapper .dlg_login_qr {
    position: relative;
    z-index: 1;
}

.dlg_login_inputfield {
    height: 20%;
    align-items: center;
    display: flex;
    margin: 1vh 0vh 1vh 0vh;

}

.dlg_txt {
    text-align: center;
    font-size: 1.5vw;
}

#dlg_anltxt {
    height: 25%;
}

#dlg_footertxt {
    height: 25%;
}

.dlg_headline {
    text-align: center;
    font-size: 1.7vw;
    height: 15%;
}

.dlg_login_col {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.dlg_login_col_head {
    height: 15%;
}

.dlg_login_col_cont {
    height: 85%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
}

.glink {
    text-decoration: none;
    color: var(--text-link);
    padding: 0.5vw;
    border: 1px solid;
    border-color: rgba(0,0,0,0);
    border-radius: 1vw;
}

@media (hover: hover) {
    .glink:hover {
        border: 1px solid;
        border-color: var(--text-link);
        color: var(--text-link);
    }
}

.app_content {
    height: 90vh;
    flex: 1;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.app_content::-webkit-scrollbar {
  display: none;
}

.app_wide_content {
    width: 100%;
    height: 90vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.display_phone {
    width: 30vw;
    height: 90vh;
    transition: width 0.3s ease, opacity 0.3s ease;
    overflow: visible;
    position: relative;
    box-sizing: border-box;
    margin-right: 6px;
}

.display_phone:focus {
    outline: 3px solid rgba(59, 130, 246, 0.8);
    outline-offset: 3px;
}

#display_buddylist {
    width: 15vw;
    height: 90vh;
    opacity: 100%;
    background-color: transparent;
    overflow: visible;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    display: flex;
    flex-direction: column;
}

#display_buddylist.sliding-out {
    transform: translateX(-100%);
    opacity: 0;
}

#display_buddylist.sliding-in {
    transform: translateX(-100%);
    opacity: 0;
}

.head_dropdown {
    position: absolute;
    width: 20vw;
    top: 5vh;
    right: 0;
    align-items: center;
    justify-content: left;
    opacity: 100%;
    cursor: pointer;
    z-index: 10;
}

.head_dd_separator {
    border-bottom: solid 2px;
}

.head_dropitem {
    height: 5vh;
    width: 20vw;
}

.head_dropitem_disabled {
    opacity: 0.3;
    pointer-events: none;
}

.ansagen_menu {
    position: fixed;
    width: 20vw;
    align-items: center;
    justify-content: left;
    cursor: pointer;
    z-index: 200;
    max-height: 50vh;
    overflow-y: auto;
}

.ansagen_menu_item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: 5vh;
    width: 20vw;
}

.ansagen_menu_name {
    margin-left: 1vw;
    font-size: min(1vw, 14px);
    color: var(--text-strong);
}

.ctx_dropdown {
    position: fixed;
    width: 15vw;
    align-items: center;
    justify-content: left;
    opacity: 100%;
    cursor: pointer;
    z-index: 20;
    font-size: 0.7vw;
}

.ctx_dd_separator {
    border-bottom: solid 2px;
}

.ctx_dropitem {
    height: 4vh;
    width: 15vw;
}

.ctx_dropitem_disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

.dropdown_icon {
    height: 2vh;
    margin-left: 1vw;
    margin-right: 1vw;
}

.app_footer_right {
    position: relative;
}

.footer_dropdown {
    position: absolute;
    width: 15vw;
    bottom: 5vh;
    right: 0;
    align-items: center;
    justify-content: left;
    opacity: 100%;
    cursor: pointer;
    z-index: 20;
}

.footer_dropitem {
    height: 5vh;
    width: 15vw;
}

.footer_extrabuttons_wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 2.5vw;
    flex: 1;
    min-width: 0;
    position: relative;
}

.footer_extrabuttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: 2.5vw;
    z-index: 5;
    overflow: hidden;
    scroll-behavior: smooth;
    flex: 1;
    min-width: 0;
}

.footer_scroll_btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.75vw;
    height: 1.75vw;
    border: 1px solid;
    border-radius: 100%;
    flex-shrink: 0;
}

@media (hover: hover) {
    .footer_scroll_btn:hover {
        background-color: var(--bg-hover-icon);
        cursor: pointer;
    }
}

.footer_scroll_icon {
    width: 1vw;
    height: 1vw;
}

.footer_scroll_left_icon {
    transform: rotate(-90deg);
}

.footer_scroll_right_icon {
    transform: rotate(90deg);
}



.footer_dropitem_disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Portrait-Hinweis für Tablets */
.rotate_hint {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3vh;
}

.rotate_icon {
    width: 20vw;
    height: 20vw;
    animation: rotate_animation 2s ease-in-out infinite;
}

.rotate_text {
    font-size: 4vw;
    text-align: center;
    color: var(--text-strong);
    padding: 0 5vw;
}

@keyframes rotate_animation {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-90deg);
    }
}

@media screen and (orientation: portrait) {
    .rotate_hint {
        display: flex;
    }
}


