﻿.main-body {
    height: 100vh;
    width: 100vw;
    padding-bottom: 50px;
}

.root-theme {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --primary-color: #0066cc;
}

[data-theme='dark'] {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --primary-color: #3399ff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.slider-container {
    position: relative;
    width: 100%; /* Set the width to 100% */
    height: 50px; /* Set the height to a rectangular form */
}

    .slider-container .rz-slider {
        width: 100%;
        height: 100%;
        background-color: #f0f0f0; /* Background color of the slider */
        border: 1px solid #ccc; /* Border of the slider */
        border-radius: 10px; /* Rounded corners */
        position: relative;
    }

    .slider-container .ended {
        background-color: #42b236; /* Background color of the slider */
        color: #fff !important;
    }

    .slider-container .started {
        background-color: #377bce; /* Background color of the slider */
        color: #fff !important;
    }

    .slider-container .slider-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1em;
        color: #333; /* Color of the text */
        z-index: 0;
        transition: opacity 0.1s ease, transform 0.3s ease;
    }

    .slider-container .slider-text.hidden {
            opacity: 0;
            transform: translate(-50%, 50px);
        }

.slider-label-clickable {
    cursor: pointer;
}

.rz-slider-handle {
    width: var(--slider-handle-width, 1.5rem) !important;
    margin-inline-start: 0 !important;
    color: #fff !important;
    background-color: #282937;
    border-radius: 10px;
    height: 100% !important;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px; /* Add margin of 5px left and right */
}

    .rz-slider-handle::after {
        content: var(--slider-handle-content, '>');
    }

    .rz-slider-handle:hover {
        background-color: #555773 !important;
    }

.rz-slider-range {
    display: none;
}

.login-button {
    width: 100%;
    background-color: #238550 !important;
    color: white;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 16px;
}

.logout-button {
    width: 100%;
    background-color: #e63232 !important;
    color: white;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 16px;
}

.no-select .started {
    color: #fff !important;
}

.no-select .ended {
    color: #fff !important;
}

.no-select {
    user-select: none;
    -webkit-user-select: none; /* Für Safari */
    -moz-user-select: none; /* Für Firefox */
    -ms-user-select: none; /* Für Internet Explorer/Edge */
}

.full-height-container {
    display: flex;
    flex-direction: column;
}

.bottom-buttons {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    justify-content: center;
}


.container {
    height: 100%;
}

.bottom-buttons {
    display: flex;
    justify-content: space-between;
}

.button-same-size {
    flex: 1;
    margin: 5px;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content {
    color: white;
    text-align: center;
}

.timer {
    font-size: 2em;
    margin-bottom: 20px;
}

.root-theme {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --primary-color: #0066cc;
}

[data-theme='dark'] {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --primary-color: #3399ff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.slider-container {
    position: relative;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 3px;
}

.slider-label {
    position: absolute;
    font-size: 16px;
    color: #555;
    font-weight: bold;
    pointer-events: none;
}

.slider {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border-radius: 5px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    left: 10px;
    touch-action: none;
    transition: left 0.2s ease-in-out;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.unlocked {
    background: #2e7d32 !important;
}

.rz-body {
    overflow: inherit;
    scrollbar-width: none; /* Für Firefox */
    -ms-overflow-style: none; /* Für Internet Explorer/Edge */
}

    .rz-body::-webkit-scrollbar {
        display: none; /* Für Chrome, Safari, Edge (neue Versionen) */
    }

.buttonSilderContainerClass_Completed {
    background-color: darkseagreen;
    color: white !important;
}

.buttonSilderClass_Completed {
    background-color: darkseagreen;
}

.buttonSilderContainerClass_NotStarted {
    background-color: #ffffff;
}

.buttonSilderClass_NotStarted {
    background-color: #ffffff40;
}

.buttonSilderClass_Started {
    background-color: #ea580c;
}

.buttonSilderContainerClass_Started {
    background-color: #fed7aa;
    color: #7c2d12 !important;
}

.snackbar-container {
    position: fixed;
    left: 50%;
    bottom: max(1.35rem, env(safe-area-inset-bottom));
    width: min(calc(100vw - 2rem), 34rem);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    pointer-events: none;
    z-index: 9999;
}

.snackbar-item {
    --snackbar-accent: #21b982;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1.15rem 1rem 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(7, 21, 39, 0.08);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.92);
    color: #071527;
    box-shadow: 0 18px 48px rgba(7, 21, 39, 0.16), 0 3px 10px rgba(7, 21, 39, 0.08);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    animation: snackbar-enter 0.28s cubic-bezier(0.22, 1, 0.36, 1), snackbar-exit 0.24s ease 2.76s forwards;
    pointer-events: auto;
    opacity: 1;
}

.snackbar-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.28rem;
    background: var(--snackbar-accent);
}

.snackbar-message {
    display: block;
    font-size: 0.98rem;
    font-weight: 720;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.snackbar-item.info {
    --snackbar-accent: #21b982;
}

.snackbar-item.success {
    --snackbar-accent: #21b982;
}

.snackbar-item.warning {
    --snackbar-accent: #f59e0b;
}

.snackbar-item.error {
    --snackbar-accent: #ef4444;
}

@keyframes snackbar-enter {
    from {
        opacity: 0;
        transform: translateY(0.8rem) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes snackbar-exit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(0.65rem) scale(0.98);
    }
}

@media (max-width: 480px) {
    .snackbar-container {
        bottom: max(1rem, env(safe-area-inset-bottom));
        width: min(calc(100vw - 1.5rem), 28rem);
    }

    .snackbar-item {
        padding: 0.95rem 1rem 0.95rem 1.2rem;
        border-radius: 1rem;
    }

    .snackbar-message {
        font-size: 0.94rem;
    }
}

.page-drop-target {
    background-color: #e0f0ff;
    border: 2px dashed #007acc;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out;
}

.Version {
    position: absolute;
    right: 0;
}

.performanceLigth {
    width: 90px;
    flex-grow: 0 !important;
}

@media (max-width: 576px) {
    .rz-card-group.rz-card-group-responsive {
        flex-direction: row !important;
    }
}

.filter-selector-container {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1200;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    max-height: 240px;
    overflow-y: auto;
}

.dual-list-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.dual-list-column {
    flex: 1 1 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .dual-list-column {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

.dual-list-item {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

    .dual-list-item:hover {
        background-color: #f5f5f5;
        cursor: pointer;
    }

.dual-list-wrapper {
    touch-action: manipulation;
    -ms-touch-action: manipulation; /* für ältere IE/Edge-Versionen */
}

    .dual-list-wrapper * {
        touch-action: manipulation;
    }

.filter-selector-container {
    touch-action: manipulation;
    -ms-touch-action: manipulation; /* für ältere IE/Edge-Versionen */
}

    .filter-selector-container * {
        touch-action: manipulation;
    }

.rz-dialog {
}

.rz-dialog-content {
    flex: 1 1 auto;
}

.rz-dialog-content,
.rz-dialog-side-content {
    padding: 0;
}

.rz-my-4,
.rz-mb-4 {
    padding-bottom: 1rem !important;
}

.stats-container {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-radius: 1rem;
    max-width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-left: 4px solid #007BFF;
    /*margin-left: 20px;*/
    padding: 3px;
}

.stat-label {
    font-weight: 600;
    color: #007BFF;
}

.stat-value {
    font-family: monospace;
    white-space: pre-line;
    color: #333;
}

.multiline {
    white-space: pre-wrap;
}

@media (max-width: 768px) {
}

.traffic-light {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background-color: #333;
    border-radius: 1rem;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 60px;
}

.light {
    width: 70%;
    height: 0;
    padding-bottom: 70%; /* Macht die Kreise responsive */
    border-radius: 50%;
    transition: background-color 0.3s;
}

.task-panel-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.task-panel {
    flex: 1 1 45%; /* Zwei Panels nebeneinander */
    min-width: 300px; /* Fallback für sehr kleine Screens */
}

@media (max-width: 768px) {
    .task-panel {
        flex: 1 1 100%;
    }
}

.theme-switch {
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-button {
    cursor: pointer;
    font-size: 2rem;
    color: var(--text-color);
    transition: color 0.3s;
}

/* Dark mode specific styles */
[data-theme='dark'] .rz-sidebar,
[data-theme='dark'] .rz-header,
[data-theme='dark'] .rz-footer,
[data-theme='dark'] .rz-body,
[data-theme='dark'] .rz-dialog,
[data-theme='dark'] .rz-card,
[data-theme='dark'] .rz-panelmenu,
[data-theme='dark'] .rz-panelmenu-item,
[data-theme='dark'] .rz-inputtext,
[data-theme='dark'] .rz-dropdown,
[data-theme='dark'] .rz-button {
    background-color: #2c2c2c;
    color: var(--text-color);
    border-color: #444;
}

[data-theme='dark'] a {
    color: var(--primary-color);
}

.rezept-container {
    display: flex;
    flex-direction: row;
    border: 1px solid #d6cab7;
    background-color: #f5ede3;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1000px;
    font-family: sans-serif;
    color: #000;
    width: 90%;
}

.rezept-seitenstreifen {
    background-color: #ede1c8;
    padding: 1rem 0.75rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 8.5rem;
    max-width: 11rem;
    flex-shrink: 0;
}

.recipe-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
    width: 100%;
}

.recipe-card-tag,
.recipe-card-tag-empty {
    max-width: 100%;
    min-height: 1.65rem;
    padding: 0.28rem 0.5rem;
    border: 1px solid rgba(120, 94, 58, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    color: #5f4930;
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipe-card-tag__prefix {
    color: #9a7442;
    font-weight: 900;
}

.recipe-card-tag-empty {
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rezept-inhalt {
    padding: 2rem;
    flex: 1;
}

.rezept-kopf h1 {
    font-size: 1.75rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
}

.rezept-kopf h2 {
    font-size: 0.9rem;
    font-weight: normal;
    text-transform: uppercase;
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.rezept-spalten {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
}

.rezept-links,
.rezept-rechts {
    flex: 1;
    min-width: 250px;
    font-size: 0.95rem;
}

    .rezept-links ul,
    .rezept-rechts ol {
        padding: 0.55rem;
        margin: 0;
    }

    .rezept-links li,
    .rezept-rechts li {
        line-height: 1.4;
    }

    .rezept-links h3,
    .rezept-rechts h3 {
        text-transform: uppercase;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .rezept-container {
        flex-direction: column;
    }

    .rezept-seitenstreifen {
        min-width: auto;
        max-width: none;
        padding: 0.65rem 0.75rem;
        justify-content: flex-start;
        border-bottom: 1px solid #d6cab7;
    }

    .recipe-card-tags {
        justify-content: flex-start;
    }

    .rezept-spalten {
        flex-direction: column;
    }

    .rezept-inhalt {
        padding: 1.5rem;
    }
}

/* Smaller confirmation dialog */
.confirm-dialog .rz-dialog {
    min-width: auto !important;
    min-height: auto !important;
    width: auto;
    height: auto;
}

/* Developer mode table styling */
.developer-table {
    border-collapse: collapse;
    width: 100%;
}

    .developer-table th,
    .developer-table td {
        padding: 0.4rem 0.8rem;
        border: 1px solid #ddd;
    }

    .developer-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .developer-table tr:hover {
        background-color: #f1f1f1;
    }

    .developer-table tr.highlight {
        background-color: #ffe0b2;
    }

    .developer-table td.foreign-key {
        cursor: pointer;
        text-decoration: underline;
    }

.site-footer {
    width: 100%;
    margin-top: 3rem;
    background: #0f1115;
    color: #fff;
}

.site-footer a {
    color: #cfd3dc;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(12rem, .85fr) minmax(12rem, .9fr);
    gap: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== RESPONSIVE DESIGN ===== */

.footer-grid h2 {
    margin: 0 0 .75rem;
    color: #ffffff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.footer-grid .main p {
    max-width: 21rem;
    margin: .85rem 0 0;
    color: #cfd3dc;
    line-height: 1.55;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li {
    margin: .3rem 0;
}

.foot-note {
    opacity: .9;
}

/* ===== COOKIE BANNER STYLES ===== */
.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 10000;
    padding: 0 max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    color: #111827;
    pointer-events: none;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    animation: cookieSlideIn .28s ease-out;
}

body:has(.chat-container) .cookie-banner,
body:has(.chat-button) .cookie-banner {
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
}

.cookie-banner-content {
    width: min(100%, 58rem);
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
    backdrop-filter: blur(18px);
    pointer-events: auto;
}

.cookie-banner-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .85rem;
    align-items: start;
}

.cookie-banner-icon {
    display: inline-grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.05rem;
}

.cookie-banner-title h3 {
    margin: 0 0 .25rem;
    color: #111827;
    font-size: clamp(1.05rem, 2.6vw, 1.25rem);
    font-weight: 850;
    letter-spacing: -.02em;
}

.cookie-banner-title p {
    max-width: 48rem;
    margin: 0;
    color: #4b5563;
    font-size: .92rem;
    line-height: 1.5;
}

.cookie-banner-body {
    margin-top: .9rem;
}

.cookie-categories {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.cookie-categories.show {
    display: grid;
}

.cookie-category {
    min-width: 0;
    padding: .85rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}

.cookie-category-header {
    display: grid;
    gap: .75rem;
}

.cookie-category-info {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
}

.cookie-category-icon {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 10px;
    font-size: .92rem;
}

.cookie-category-icon.essential {
    background: #ecfdf5;
    color: #059669;
}

.cookie-category-icon.analytics {
    background: #eff6ff;
    color: #2563eb;
}

.cookie-category-icon.marketing {
    background: #fef3c7;
    color: #b45309;
}

.cookie-category-info h4 {
    margin: 0 0 .15rem;
    color: #111827;
    font-size: .95rem;
    font-weight: 800;
}

.cookie-category-info p,
.cookie-category-details p {
    margin: 0;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.42;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

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

.cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.cookie-switch-slider {
    position: relative;
    width: 2.8rem;
    height: 1.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #e5e7eb;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.cookie-switch-slider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: .18rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .18);
    transform: translateY(-50%);
    transition: transform .18s ease;
}

.cookie-switch input:checked + .cookie-switch-slider {
    border-color: #2563eb;
    background: #2563eb;
}

.cookie-switch input:checked + .cookie-switch-slider::before {
    transform: translate(1.25rem, -50%);
}

.cookie-switch input:focus-visible + .cookie-switch-slider {
    outline: 3px solid rgba(37, 99, 235, .22);
    outline-offset: 2px;
}

.cookie-switch input:disabled + .cookie-switch-slider {
    cursor: not-allowed;
    opacity: .85;
}

.toggle-status {
    color: #64748b;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.cookie-category-details {
    margin-top: .7rem;
    padding-top: .7rem;
    border-top: 1px solid #e5e7eb;
}

.cookie-banner-footer {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.cookie-warning {
    padding: .65rem .85rem;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
    color: #92400e;
    font-size: .86rem;
    line-height: 1.4;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
    justify-content: flex-end;
}

.cookie-btn {
    display: inline-flex;
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .7rem .9rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.cookie-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    color: #475569;
}

.cookie-btn-info,
.cookie-btn-settings,
.cookie-btn-accept {
    background: #f8fafc;
    color: #1e293b;
}

.cookie-btn-accept-all {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
}

.cookie-btn-accept-all:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.cookie-btn i,
.cookie-link i {
    font-size: .8rem;
}

.cookie-banner-links {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1rem;
    align-items: center;
    justify-content: flex-end;
}

.cookie-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.cookie-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.cookie-info-modal {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, .38);
    pointer-events: auto;
}

.cookie-info-modal__content {
    width: min(100%, 28rem);
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
}

.cookie-info-modal__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cookie-info-modal__header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 850;
}

.cookie-info-modal__header p {
    margin: .25rem 0 0;
    color: #64748b;
    font-size: .9rem;
}

.cookie-info-modal__close {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.cookie-info-modal__body ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #334155;
}

.cookie-info-modal__body li {
    margin-bottom: .5rem;
}

/* ===== FLOATING COOKIE SETTINGS BUTTON ===== */
.cookie-settings-button {
    position: fixed;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1500;
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #2563eb;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
    backdrop-filter: blur(14px);
    transition: transform .18s ease, box-shadow .18s ease;
    animation: cookieFadeIn .24s ease-out;
}

.cookie-settings-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .18);
}

@keyframes cookieSlideIn {
    from { transform: translateY(1rem); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes cookieFadeIn {
    from { transform: scale(.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 760px) {
    .cookie-banner {
        padding: 0 .75rem max(.75rem, env(safe-area-inset-bottom));
    }

    body:has(.chat-container) .cookie-banner,
    body:has(.chat-button) .cookie-banner {
        bottom: calc(5.25rem + env(safe-area-inset-bottom));
    }

    .cookie-banner-content {
        max-height: min(82dvh, 39rem);
        overflow-y: auto;
        padding: .9rem;
        border-radius: 16px;
    }

    .cookie-banner-header {
        gap: .7rem;
    }

    .cookie-banner-icon {
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 12px;
    }

    .cookie-banner-title p {
        font-size: .86rem;
    }

    .cookie-categories,
    .cookie-categories.show {
        grid-template-columns: 1fr;
    }

    .cookie-banner-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-btn {
        width: 100%;
        min-height: 2.75rem;
        border-radius: 12px;
    }

    .cookie-btn-info,
    .cookie-btn-settings {
        display: none;
    }

    .cookie-banner-links {
        justify-content: center;
        text-align: center;
    }

    .cookie-settings-button {
        right: .75rem;
        bottom: .75rem;
    }
}

@media (max-width: 420px) {
    .cookie-banner-content {
        padding: .8rem;
    }

    .cookie-banner-header {
        grid-template-columns: 1fr;
    }

    .cookie-banner-icon {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-settings-button,
    .cookie-btn,
    .cookie-switch-slider,
    .cookie-switch-slider::before {
        animation: none;
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .cookie-banner-content,
    .cookie-category,
    .cookie-btn,
    .cookie-info-modal__content {
        border: 2px solid currentColor;
    }
}

@media print {
    .cookie-banner,
    .cookie-settings-button {
        display: none !important;
    }
}

    .phone-button {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .6rem .9rem;
        border: 0;
        border-radius: .75rem;
        background: #0a7;
        color: #fff;
        font: 600 0.95rem/1 system-ui,Segoe UI,Roboto,Arial;
        cursor: pointer;
        transition: transform .05s ease, filter .2s ease;
    }

        .phone-button:hover {
            filter: brightness(1.05);
        }

        .phone-button:active {
            transform: scale(.98);
        }

    .phone-icon {
        display: block;
        fill: currentColor;
    }

    ul.rz-profile-menu {
        background-color: transparent !important;
        border-inline-start: none;
    }
.rz-sidebar-toggle {
    padding: 0;
    padding-left: var(--rz-sidebar-toggle-padding);
    padding-right: var(--rz-sidebar-toggle-padding);
}

.rz-layout .rz-sidebar{
    position: absolute !important;
}
.rz-dialog {
}

.rz-dialog.rz-open {
    width: auto !important;
    max-width: 100%;
    margin: 0;
}

.product-entry {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.unit-missing,
.unit-missing .rz-dropdown {
    background: #fee2e2;
}

    .product-entry > * {
        flex: 1 1 150px;
        min-width: 120px;
    }

    /* Optional: Buttons nicht zu breit werden lassen */
    .product-entry button {
        flex: 0 0 auto;
    }

/* Mobile Ansicht: Eingaben untereinander */
@media (max-width: 768px) {
    .product-entry {
        flex-direction: column;
        align-items: stretch;
    }

        .product-entry > * {
            width: 100%;
            min-width: unset;
        }

        .product-entry button {
        }

    .rz-p-4 {
        padding: 0 !important;
    }

    .rz-body {
        padding: 0.75rem !important;
    }
}


.buttonControl {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
}

.canvas-panel .canvas-card {
    background-color: transparent !important;
    box-shadow: none !important;
}

.btn-menu {
    background-color: transparent;
    width: 100%;
    display: flex;
    border: none;
    padding-top: 8px;
    padding-bottom: 8px;
}

    .btn-menu:hover {
        background-color: var(--rz-profile-menu-item-hover-background-color);
        color: var(--rz-menu-item-hover-color);
        width: 100%;
        border: none;
    }

.settings-group-title {
    margin: 1rem 0 0.5rem;
    color: #0f172a;
}

.system-setting-row {
    background-color: #6b99e8 !important;
    color: #fff;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--input-bg, transparent) inset;
    box-shadow: 0 0 0 1000px var(--input-bg, transparent) inset;
    -webkit-text-fill-color: var(--input-color,#000);
    caret-color: var(--input-color, #000);
    transition: background-color 9999s ease-in-out 0s;
}
