html, body {
    height: 100%;
    overflow: hidden
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    padding: 0;
    background-color: #f8f8f8;
}

main {
    position: absolute;
    top: 0;
    bottom: 48px;
    left: 0;
    right: 0;
    padding: 1rem;
}

footer {
    height: 48px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1030;
}

.big-icon {
    font-size: 1.1rem;
}

#dropzone-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none; /* 🔥 wichtig */
    opacity: 0;
    transition: opacity 0.2s ease;
}

#dropzone-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.dropzone-box {
    width: 98%;
    height: 98%;
    padding: 10px;
    border: 4px dashed rgb(250 250 250 / .5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25rem;
    font-weight: bold;
    color: rgb(250 250 250 / .5);
    background: #5c636a;
}

#app-info {
    position: fixed;
    height: 300px;
    width: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter:blur(.5px);
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0.95;
    z-index: -1;
}

#app-info h1 {
    color: #0669b2;
    font-weight: 500;
    font-size: 64pt;
}

#app-info span {
    color: #41464b;
    font-size: 22pt;
}


.icon-btn {
    box-sizing: border-box;
    border: none;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.icon-btn em {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.4rem;
    line-height: 1;
}

.icon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.icon-btn:disabled:hover {
    background-color: transparent;
}

.icon-text-btn {
    box-sizing: border-box;
    border: none;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.icon-text-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.icon-text-btn em {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.4rem;
    line-height: 1;
}

.icon-text-btn span {
    white-space: nowrap;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1055;
}

@media print {
    html, body, main, #main_result {
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        overflow: visible !important;
        line-height: normal !important;
        background: none !important;
    }

    #dropzone-overlay {
        display: none !important;
    }

    #page-container {
        all: unset !important;
        display: block !important;
    }

    header, footer, nav {
        display: none !important;
    }

    .tooltip {
        display: none !important;
    }


    .a4-div, .a4-div * {
        visibility: visible;
    }

    .a4-div {
        width: 210mm;
        height: 297mm;
        margin: 0;
        padding: 0;
        position: static;
        border: none;
        box-sizing: border-box !important;
        page-break-after: always;
        break-after: page;
        transform: none;
    }

    .a4-div:last-child {
        page-break-after: auto;
        break-after: auto;
    }
}