﻿/* validiertes und modifiziertes CSS nach Benutzeranfrage */

/* ############################################################## SCAN ACTION AREA */
.scan-action-area {
    width: 100%;
    max-width: 550px;
    margin-bottom: 16px; /* Reduziert von 32px */
    box-sizing: border-box;
    flex-shrink: 0; /* Verhindert, dass dieser Bereich schrumpft */
}

.scan-start-button {
    width: 100%;
    padding: 10px 20px;
    font-family: 'Shape', sans-serif;
    font-size: 1.15em;
    font-weight: 700;
    color: white;
    background: #C0AF96;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(192, 175, 150, 0.4), 
                0 0 0 0 rgba(192, 175, 150, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

    .scan-start-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .scan-start-button:hover::before {
        width: 300%;
        height: 300%;
    }

    .scan-start-button:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 40px rgba(192, 175, 150, 0.6),
                    0 0 0 8px rgba(192, 175, 150, 0.2);
        border-color: rgba(255, 255, 255, 0.6);
        animation: none;
    }

    .scan-start-button:active {
        transform: translateY(-2px) scale(0.98);
        box-shadow: 0 6px 24px rgba(192, 175, 150, 0.5);
    }

/* ############################################################## DASHBOARD ACTION AREA */
.dashboard-action-area {
    width: 100%;
    max-width: 550px;
    margin-bottom: 16px; /* Reduziert von 32px */
    box-sizing: border-box;
    flex-shrink: 0; /* Verhindert, dass dieser Bereich schrumpft */
}

.dashboard-start-button {
    width: 100%;
    padding: 10px 20px;
    font-family: 'Shape', sans-serif;
    font-size: 1.15em;
    font-weight: 700;
    color: white;
    background: #C0AF96;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(192, 175, 150, 0.4), 
                0 0 0 0 rgba(192, 175, 150, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

    .dashboard-start-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .dashboard-start-button:hover::before {
        width: 300%;
        height: 300%;
    }

    .dashboard-start-button:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 40px rgba(192, 175, 150, 0.6),
                    0 0 0 8px rgba(192, 175, 150, 0.2);
        border-color: rgba(255, 255, 255, 0.6);
        animation: none;
    }

    .dashboard-start-button:active {
        transform: translateY(-2px) scale(0.98);
        box-shadow: 0 6px 24px rgba(192, 175, 150, 0.5);
    }

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(192, 175, 150, 0.4), 
                    0 0 0 0 rgba(192, 175, 150, 0.5);
    }
    50% {
        box-shadow: 0 8px 32px rgba(192, 175, 150, 0.4), 
                    0 0 0 12px rgba(192, 175, 150, 0);
    }
}

.button-icon {
    font-size: 2em;
    filter: none;
    position: relative;
    z-index: 1;
}

.button-text {
    line-height: 1.3;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ############################################################## VALIDIERUNGSKLASSEN */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI26My4xNDIgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI26Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNGAwMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA9NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzAuNzY5OSAxMDYuMzY5IDIzNi4wODkgMTczLjAwMDIgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA9NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzUgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2Ni4wMTgzIDI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* Shape Font */
@font-face {
    font-family: 'Shape';
    src: url('../fonts/Shape-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Shape';
    src: url('../fonts/Shape-LightItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Shape';
    src: url('../fonts/Shape-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Shape';
    src: url('../fonts/Shape-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Shape';
    src: url('../fonts/Shape-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

/* Shape Font Ende */

html, body {
    font-family: 'Shape', sans-serif;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

/*  ############################################################## START SCREEN */
.start-screen {
    
    background-image: url('../images/backgrounds/home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8vh;
    color: white;
}

    .start-screen p {
        width: 70%;
        max-width: 400px;
        text-align: center;
        margin: 0 auto;
        padding: 0 16px;
        line-height: 1.5;
    }

.start-screen-logo {
    width: 80%;
    max-width: 770px;
    margin-bottom: 324px;
}

/* start-button */
.start-text {
    margin-bottom: 32px;
}

.start-button {
    margin-top: 16px;
    padding: 14px 38px;
    font-family: 'Shape', sans-serif;
    color: black;
    background: white;
    border: none;
    border-radius: 32px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .start-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    }

    .start-button:active {
        transform: translateY(0);
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    }

/* Language switch */
.language-switch {
    position: absolute;
    bottom: 60px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

    .language-switch button {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

        .language-switch button:hover {
            transform: scale(1.1);
        }

    .language-switch img {
        width: 50px;
        max-width: 50px;
        height: auto;
        opacity: 0.6;
        transition: opacity 0.2s ease;
    }

    .language-switch button.active img {
        opacity: 1;
    }

    /*  ############################################################## REGISTER SCREEN */


.register-screen {
    background-image: url('../images/backgrounds/home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8vh;
    color: white;
}

    .register-screen p {
        width: 90%;
        max-width: 320px;
        text-align: center;
        margin: 0 auto;
        padding: 0 16px;
        line-height: 1.5;
    }

.register-logo {
    width: 80%;
    max-width: 770px;
    margin-bottom: 0px;
}

.register-logout-button {
    position: absolute;
    bottom: 24px;
}

    .register-logout-button button {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .register-logout-button img {
        width: 50px;
        height: auto;
        opacity: 1;
        transform: scaleX(-1);
    }

    .register-logout-button button:hover img {
        opacity: 1;
    }

.start-qrscanbutton {
    margin-top: 16px;
    padding: 14px 38px;
    font-family: 'Shape', sans-serif;
    color: black;
    background: white;
    border: none;
    border-radius: 32px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.start-qrscanbutton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.start-qrscanbutton:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.stop-qrscanbutton {
    margin-top: 1px;
    padding: 14px 38px;
    font-family: 'Shape', sans-serif;
    color: black;
    background: white;
    border: none;
    border-radius: 32px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stop-qrscanbutton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.stop-qrscanbutton:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.qr-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

#qr-reader {
    width: 300px; /* ✅ Breiter: von 180px auf 320px */
    max-width: 90%; /* ✅ Von 50% auf 90% */
    max-height: 330px; /* ✅ Maximale Höhe begrenzen */
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* ✅ Video im Container auf die Höhe beschränken */
#qr-reader video,
#qr-reader #scanner-video {
    width: 100%;
    height: 100%;
    max-height: 330px; /* ✅ Gleiche Höhe wie Container */
    object-fit: cover; /* ✅ Beschneidet das Video statt zu stauchen */
}

/*  ############################################################## SCAN SCREEN */
.scan-screen {
    background-image: url('../images/backgrounds/home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #102541; /* Fallback-Farbe, falls Bild nicht lädt */




    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Geändert von flex-start zu space-between */
    padding: 2vh 20px 0 20px; /* Bottom padding entfernt, da Navigation jetzt fixed ist */
    padding-top: calc(2vh + 7px); /* Zusätzliche 7px nach unten verschoben */
    padding-bottom: max(20px, env(safe-area-inset-bottom)); /* Platz für System-Navigationsleiste */
    color: white;
    overflow-y: auto;
    box-sizing: border-box;
}

    .scan-screen p {
        width: 70%;
        max-width: 400px;
        text-align: center;
        margin: 0 auto;
        padding: 0 16px;
        line-height: 1.5;
    }

.scan-logo {
    width: 80%;
    max-width: 500px;
    margin-bottom: 20px;
}

.scan-epos-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 10px 14px;
    margin: 15px auto;
    max-width: 300px;
    border: 2px solid #28a745;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.scan-epos-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.scan-epos-number {
    font-weight: 700;
    color: #28a745;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.scan-instruction {
    margin-bottom: 16px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.scan-qr-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

    .scan-qr-wrapper #qr-reader {
        width: 250px;
        max-width: 90%;
        overflow: hidden;
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }

.scan-status {
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

/*  ############################################################## DASHBOARD SCREEN */
.dashboard-screen {
    background-image: url('../images/backgrounds/home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #102541; /* Fallback-Farbe, falls Bild nicht lädt */

    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Geändert von flex-start zu space-between */
    padding: 2vh 20px 0 20px; /* Bottom padding entfernt, da Navigation jetzt fixed ist */
    padding-top: calc(2vh + 7px); /* Zusätzliche 7px nach unten verschoben */
    padding-bottom: max(20px, env(safe-area-inset-bottom)); /* Platz für System-Navigationsleiste */
    color: white;
    overflow-y: auto;
    box-sizing: border-box;
}

    .dashboard-screen p {
        width: 70%;
        max-width: 400px;
        text-align: center;
        margin: 0 auto;
        padding: 0 16px;
        line-height: 1.5;
    }

.dashboard-logo {
    width: 80%;
    max-width: 500px;
    margin-bottom: 20px;
}

.dashboard-epos-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 10px 14px;
    margin: 15px auto;
    max-width: 300px;
    border: 2px solid #28a745;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.dashboard-epos-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.scan-epos-number {
    font-weight: 700;
    color: #28a745;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.dashboard-instruction {
    margin-bottom: 16px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.dashboard-qr-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

    .dashboard-qr-wrapper #qr-reader {
        width: 250px;
        max-width: 90%;
        overflow: hidden;
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }

.dashboard-status {
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}



/* ############################################################## VERSION DISPLAY */
.version-display {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    z-index: 150;
    user-select: none;
    pointer-events: none;
    text-align: center;
}

/* Für dunklere Seiten */
.version-display-dark {
    color: rgba(255, 255, 255, 0.5);
}

/* Für hellere Seiten (falls benötigt) */
.version-display-light {
    color: rgba(0, 0, 0, 0.4);
}

/* ############################################################## WETTER SCREEN */
.wetter-screen {
    height: 100vh;
    background: #102541;
    color: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .wetter-screen h2 {
        text-align: center;
        margin: 20px 0;
        padding: 0 20px;
        flex-shrink: 0;
    }

.weather-info {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    overflow-y: auto;
    width: 100%;
}

    .weather-info > p {
        text-align: center;
        margin-bottom: 15px;
    }

    .weather-info h3 {
        margin-top: 20px;
        margin-bottom: 15px;
        text-align: center;
    }

.temperature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}

.temperature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

    .temperature-item:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .temperature-item .time {
        font-weight: 400;
    }

    .temperature-item .temp {
        font-weight: 700;
        font-size: 1.1em;
    }

.reload-button {
    display: block;
    margin: 15px auto 20px;
    padding: 14px 38px;
    font-family: 'Shape', sans-serif;
    color: black;
    background: white;
    border: none;
    border-radius: 32px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

    .reload-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    }

    .reload-button:active {
        transform: translateY(0);
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    }

.error {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
}

/* Loading-State für Wetter-Screen */
.wetter-screen > p {
    text-align: center;
    padding: 40px 20px;
}

/* ############################################################## CUSTOMER INFO CARD */
.customer-info-card {
    width: 100%;
    max-width: 550px;
    min-height: auto; /* Geändert von 400px zu auto für kompaktere Darstellung */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-bottom: 24px; /* Reduziert von 32px */
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.customer-info-header {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 24px; /* Reduziert von 16px */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .customer-info-header h3 {
        margin: 0;
        font-size: 1.2em;
        font-weight: 700;
        color: white;
        text-align: center;
    }

.brand-logo {
    max-width: 100%;
    max-height: 50px; /* Reduziert von 60px */
    height: auto;
    object-fit: contain;
}

.customer-info-order-number {
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 24px; /* Reduziert von 12px */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .customer-info-order-number span {
        font-size: 1.1em;
        font-weight: 700;
        color: white;
        letter-spacing: 1px;
    }

.customer-info-content {
    padding: 16px 16px 20px 16px; /* Reduziert von 22px/40px */
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0; /* Reduziert von 10px */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .info-row:last-child {
        border-bottom: none;
    }

    /* Gestapelte Variante für lange Werte */
    .info-row.info-row-stacked {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px; /* Reduziert von 10px */
    }

        .info-row.info-row-stacked .info-value {
            text-align: left;
            width: 100%;
        }

.info-label {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.info-value {
    font-weight: 400;
    color: white;
    font-size: 1em;
    text-align: right;
}

/* ############################################################## SCAN ACTION AREA */
.scan-action-area {
    width: 100%;
    max-width: 550px;
    margin-bottom: 16px; /* Reduziert von 32px */
    box-sizing: border-box;
    flex-shrink: 0; /* Verhindert, dass dieser Bereich schrumpft */
}

.scan-start-button {
    width: 100%;
    padding: 10px 20px;
    font-family: 'Shape', sans-serif;
    font-size: 1.15em;
    font-weight: 700;
    color: white;
    background: #C0AF96;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(192, 175, 150, 0.4), 
                0 0 0 0 rgba(192, 175, 150, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

    .scan-start-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .scan-start-button:hover::before {
        width: 300%;
        height: 300%;
    }

    .scan-start-button:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 40px rgba(192, 175, 150, 0.6),
                    0 0 0 8px rgba(192, 175, 150, 0.2);
        border-color: rgba(255, 255, 255, 0.6);
        animation: none;
    }

    .scan-start-button:active {
        transform: translateY(-2px) scale(0.98);
        box-shadow: 0 6px 24px rgba(192, 175, 150, 0.5);
    }

/* ############################################################## DASHBOARD ACTION AREA */
.dashboard-action-area {
    width: 100%;
    max-width: 550px;
    margin-bottom: 16px; /* Reduziert von 32px */
    box-sizing: border-box;
    flex-shrink: 0; /* Verhindert, dass dieser Bereich schrumpft */
}

.dashboard-start-button {
    width: 100%;
    padding: 10px 20px;
    font-family: 'Shape', sans-serif;
    font-size: 1.15em;
    font-weight: 700;
    color: white;
    background: #C0AF96;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(192, 175, 150, 0.4), 
                0 0 0 0 rgba(192, 175, 150, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

    .dashboard-start-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .dashboard-start-button:hover::before {
        width: 300%;
        height: 300%;
    }

    .dashboard-start-button:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 40px rgba(192, 175, 150, 0.6),
                    0 0 0 8px rgba(192, 175, 150, 0.2);
        border-color: rgba(255, 255, 255, 0.6);
        animation: none;
    }

    .dashboard-start-button:active {
        transform: translateY(-2px) scale(0.98);
        box-shadow: 0 6px 24px rgba(192, 175, 150, 0.5);
    }

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(192, 175, 150, 0.4), 
                    0 0 0 0 rgba(192, 175, 150, 0.5);
    }
    50% {
        box-shadow: 0 8px 32px rgba(192, 175, 150, 0.4), 
                    0 0 0 12px rgba(192, 175, 150, 0);
    }
}

.button-icon {
    font-size: 2em;
    filter: none;
    position: relative;
    z-index: 1;
}

.button-text {
    line-height: 1.3;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ############################################################## NAVIGATION BUTTONS */
.navigation-buttons {
    position: relative; /* Geändert von fixed zu relative für bessere Flexibilität */
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 20px calc(30px + env(safe-area-inset-bottom)) 20px; /* Zusätzlicher Platz unten für System-Navigation */
    background: transparent; /* Geändert von #102541 zu transparent */
    box-sizing: border-box;
    z-index: 50;
    flex-shrink: 0; /* Verhindert, dass dieser Bereich schrumpft */
    margin-top: auto; /* Drückt die Buttons nach unten, wenn Platz vorhanden ist */
}

.back-button {
    padding: 14px 48px;
    font-family: 'Shape', sans-serif;
    font-size: 1em;
    font-weight: 400;
    color: black;
    background: white;
    border: none;
    border-radius: 32px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    top: -25px;
}

    .back-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    }

    .back-button:active {
        transform: translateY(0);
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    }

/* Media Query für kleinere Bildschirme / Browser-Ansicht */
@media (max-height: 700px) {
    .customer-info-card {
        margin-bottom: 16px;
        min-height: auto;
    }
    
    .customer-info-content {
        padding: 12px 16px 16px 16px;
    }
    
    .info-row {
        padding: 4px 0;
    }
    
    .info-row.info-row-stacked {
        gap: 2px;
    }
    
    .scan-action-area {
        margin-bottom: 12px;
    }
    
    .navigation-buttons {
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom)) 20px; /* Auch hier safe-area berücksichtigen */
    }
    
    .scan-screen {
        padding: 1vh 20px 0 20px;
        padding-top: calc(1vh + 7px); 
        padding-bottom: max(20px, env(safe-area-inset-bottom)); /* Auch in der mobilen Ansicht */
    }
}