body {
    font-family: Verdana, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f3f5 !important; /* Hintergrundfarbe */
    font-size: 1.0rem;
    line-height: 1.2rem;
}

@media only screen and (min-width: 45em) {
    font-size: 1.2rem;
    line-height: 2rem;
}

.digi-container {
    width: 100%;
    max-width: 38rem;
    margin: 5px auto;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgb(234, 233, 233);
    text-align: left;
}

.content-container {
    text-align: left;
    margin-left: 10px;
    box-shadow: 0 0 10px rgb(234, 233, 233);
}

.content-container img {
    margin-bottom: 10px;
}

/* Ergänzung zu Bootstrap 24.06.03 hvh */
.container, .container-xl, .container-xxl {
    background-color: #ffffff;
    border-radius: 10px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* Kompakte Führanlage-Abteilungen */
.gap-small {
    gap: 0.25rem;
}

.abteilung {
    width: 2.4rem;
    height: 2.0rem;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid grey;
    border-radius: 0.5rem; /* halbe Höhe */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0; /* Verhindert das Schrumpfen */
}

.abteilung.grau {
    background-color: lightgrey;
    color: #282522;
}

.abteilung i {
    font-size: 1.05rem;
    font-weight: bold;
    -webkit-text-stroke: 0.9px currentColor;
}
.dg-rot-bg {
    background-color: #be461e;
}

.abteilung.rot {
    background-color: #be461e;
}

.abteilung.gruen {
    background-color: #407c64;
}

.abteilung.orange {
    background-color: #d17635;
}

/* Kalender Badges */
.badge-orange { background-color: #d17635 !important; color: white !important; border: none !important; font-weight: normal; }
.badge-rot { background-color: #cc0000 !important; color: white !important; border: none !important; font-weight: normal; }
.badge-blau { background-color: #007bff !important; color: white !important; border: none !important; font-weight: normal; }
.badge-gruen { background-color: #407c64 !important; color: white !important; border: none !important; font-weight: normal; }
.badge-hellgruen { background-color: #98d044 !important; color: white !important; border: none !important; font-weight: normal; }
.badge-hellblau { background-color: #abeafd !important; color: white !important; border: none !important; font-weight: normal; }
.badge-lila { background-color: #6f42c1 !important; color: white !important; border: none !important; font-weight: normal; }
.badge-braun { background-color: #8b4513 !important; color: white !important; border: none !important; font-weight: normal; }
.badge-rosa { background-color: #e83e8c !important; color: white !important; border: none !important; font-weight: normal; }
.badge-gelb { background-color: #fff3cd !important; color: #856404 !important; border: 1px solid #ffeeba !important; font-weight: normal; }
.badge { font-weight: bold !important; font-size: 0.95rem !important; padding: 0.4em 0.6em !important; }

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    top: 0;
}

.logo img {
    margin: auto;
}

img.ds-push-icon, img.ds-sound-icon {
    height: 3.0rem;
    width: auto;
    max-width: 100%;
    vertical-align: middle;
    object-fit: contain;
}

i.ds-push-icon, i.ds-sound-icon {
    height: auto;
    width: auto;
}

label {
    display: block;
    margin-bottom: 5px;
}

.date-inputs {
    display: flex;
    flex-direction: row;
}

.date-inputs label {
    margin-right: 10px;
}

.date-inputs input {
    margin-right: 10px;
    font-size: 1.2rem; /* 16 Pixel */
}

a.ds-link {
    color: rgba(58, 29, 11, 0.69);
    font-weight: bold;
    text-align: center;
    transition: color 0.3s;
    text-decoration: none;
}

a:hover {
    color: #407c64;
}

h4 {
    color: rgba(58, 29, 11, 0.69);
    font-size: 1.0rem;
    font-weight: bold;
}

h3 {
    color: rgba(58, 29, 11, 0.69);
    font-size: 1.0rem;
    font-weight: bold;
    text-align: center;
}

h1.ds-top {
    font-size: 1.0rem; /* 16 Pixel */
    font-weight: bold;
}

/* =========================================================
   BUTTONS & AKTIONSELEMENTE (ZENTRALE HARMONISIERUNG)
   ========================================================= */

/* Basis für alle Bootstrap Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Standard Bootstrap-Buttons in burlywood gemäß AGENTS.md */
.btn-primary, 
.btn-outline-primary, 
.btn-secondary, 
.btn-outline-secondary, 
.btn-info, 
.btn-outline-info {
    background-color: burlywood !important;
    color: #000000 !important;
    border-color: burlywood !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active,
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active,
.btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary:active,
.btn-info:hover, .btn-info:focus, .btn-info:active,
.btn-outline-info:hover, .btn-outline-info:focus, .btn-outline-info:active {
    background-color: brown !important;
    border-color: brown !important;
    color: #ffffff !important;
}

/* Kompakter Standard-Button für Listen (z. B. '>') */
.btn-sm, .btn-group-sm > .btn {
    padding: 0.25rem 0.55rem;
    font-size: 0.875rem;
    line-height: 1.2;
    border-radius: 0.4rem !important;
    font-weight: 500;
    min-width: 2rem;
    height: auto;
}

/* Standard-Aktions-Buttons & Absende-Buttons in Formularen */
.send-button, 
button.ds-btn-wide, 
.ds-btn-action {
    background-color: burlywood;
    color: #000000;
    border: 1px solid burlywood;
    border-radius: 0.6rem !important;
    width: 80%;
    max-width: 28rem;
    height: 3.2rem; 
    margin: 0.5rem auto !important;
    text-align: center;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.send-button:hover, 
button.ds-btn-wide:hover, 
.ds-btn-action:hover {
    background-color: brown !important;
    border-color: brown !important;
    color: #ffffff !important;
}

/* Semantische Status-Buttons */
.btn-success, .btn-outline-success {
    background-color: #407c64 !important;
    border-color: #407c64 !important;
    color: #ffffff !important;
}
.btn-success:hover, .btn-outline-success:hover {
    background-color: #2e5948 !important;
    border-color: #2e5948 !important;
    color: #ffffff !important;
}

.btn-warning, .btn-outline-warning {
    background-color: #d17635 !important;
    border-color: #d17635 !important;
    color: #ffffff !important;
}
.btn-warning:hover, .btn-outline-warning:hover {
    background-color: #a85820 !important;
    border-color: #a85820 !important;
    color: #ffffff !important;
}

.btn-danger, .btn-outline-danger {
    background-color: #be461e !important;
    border-color: #be461e !important;
    color: #ffffff !important;
}
.btn-danger:hover, .btn-outline-danger:hover {
    background-color: #8c2e10 !important;
    border-color: #8c2e10 !important;
    color: #ffffff !important;
}

/* Buttons auf der Startseite */
.button {
    background-color: #f2f3f5;
    color: #000000;
    border: none;
    border-radius: 1.0rem;
    height: 2.8rem; 
    padding: 0 0.5rem;
    margin: 0.05rem auto !important;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.0rem;
    box-shadow: 0px 0px 2px 2px rgba(58, 29, 11, 0.69);
    vertical-align: middle;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.button-compact {
    background-color: #f2f3f5;
    color: #000000;
    border: none;
    border-radius: 1.0rem;
    height: 3.2rem; 
    padding: 0 0.5rem;
    margin: 0.05rem auto !important;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.1rem;
    box-shadow: 0px 0px 2px 2px rgba(58, 29, 11, 0.69);
    vertical-align: middle;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.button:hover, .button-compact:hover, .ds-fa-button:hover {
    background-color: brown !important;
    color: #ffffff !important;
}

/* Farbklassen - Unabhängig von der Basisklasse */
.ds-orange {
    background-color: #d17635 !important;
    color: #ffffff !important;
}

.ds-orange-text {
    color: #d17635 !important;
}

.ds-orange:hover {
    background-color: brown !important;
    color: #ffffff !important;
}

.ds-gruen {
    background-color: #407c64 !important;
    color: #ffffff !important;
}

.ds-gruen-text {
    color: #407c64 !important;
}

.ds-arbeit-text {
    color: #000000 !important;
    font-weight: 700 !important;
}

.ds-pause-text {
    color: #ffffff !important;
    font-weight: normal !important;
}

.ds-gruen:hover {
    background-color: brown !important;
    color: #ffffff !important;
}

.ds-rot {
    background-color:#be461e !important;
    color: #ffffff !important;
}

.ds-rot:hover {
    background-color: brown !important;
    color: #ffffff !important;
}

.ds-grau {
    background-color: #cbc9c9 !important;
    color: #000000 !important;
}

.ds-grau:hover {
    background-color: brown !important;
    color: #ffffff !important;
}

.ds-braun {
    background-color: #8b4513 !important;
    color: #ffffff !important;
}

.ds-braun:hover {
    background-color: brown !important;
    color: #ffffff !important;
}

.btn-round {
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-fb-round {
    width: 32px;
    height: 32px;
    padding: 2px 0 0 0;
    font-size: 0.75rem;
    line-height: 28px;
    text-align: center;
}

.ds-hellblau {
    background-color: #abeafd !important;
    color: #ffffff !important;
}

.ds-hellblau:hover {
    background-color: brown !important;
    color: #ffffff !important;
}

.ds-hellgrau {
    background-color: #f2f3f5 !important;
    color: #000000 !important;
}

.ds-weiss {
    box-shadow: 0px 0px 2px 2px rgba(169, 169, 169, 0.54),
    inset 0px 0px 0px 1px rgba(150, 150, 150, 0.75),
    inset 0px 0px 0px 5px rgba(200, 200, 200, 0.5) !important;
    color: #000000 !important;
    background-color: #ffffff !important;
}

/* =========================================================
   GLOBALE LISTEN & TABELLEN
   ========================================================= */

table, .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid burlywood !important;
    border-radius: 0.6rem;
    overflow: hidden;
    background-color: #ffffff;
    margin-bottom: 1rem;
    --bs-table-border-color: burlywood;
}

th, .table th {
    background-color: burlywood !important;
    color: #282522 !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid burlywood !important;
    border-top: none !important;
}

td, .table td {
    padding: 0.5rem 0.65rem;
    vertical-align: middle;
    font-size: 0.95rem;
    color: #282522;
    border-top: 1px solid burlywood !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

table.align-top td,
.table.align-top td,
table tr.align-top td,
.table tr.align-top td,
tr.align-top td,
td.align-top,
th.align-top,
tr.align-top th {
    vertical-align: top !important;
}

tr, .table tr {
    background-color: #ffffff;
    transition: background-color 0.15s ease;
}

/* Grobe 2px-Burlywood-Kante entfernen */
tr + tr {
    border-top: none;
}

/* Dezenter Hover-Effekt bei Tabellenzeilen */
table tbody tr:hover, .table tbody tr:hover {
    background-color: #faf9f7;
}

/* Summen- und Fußzeilen */
table tfoot tr td, table .summary-row td {
    background-color: #f8f7f5;
    font-weight: 600;
    border-top: 1px solid burlywood !important;
}

/* =========================================================
   GLOBALE TRENNLINIEN & RAHMEN (BURLYWOOD)
   ========================================================= */

/* Bootstrap Cards & Header */
.card {
    border: 1px solid burlywood !important;
    border-radius: 0.85rem !important;
    overflow: hidden;
    background-color: #ffffff;
}

.card-header {
    border-bottom: 1px solid burlywood !important;
}

.card-footer {
    border-top: 1px solid burlywood !important;
}

/* List-Groups (z. B. in Übersichten) */
.list-group-item {
    border-color: burlywood !important;
    color: #282522;
}

.list-group-flush > .list-group-item {
    border-width: 0 0 1px !important;
}

.list-group-flush > .list-group-item:last-child {
    border-bottom-width: 0 !important;
}

/* Horizontale Trennlinien (<hr>) */
hr {
    border-top: 1px solid burlywood !important;
    opacity: 0.85 !important;
}

/* Navbar Anpassungen für bessere Zentrierung */
.navbar-collapse {
    justify-content: center;
}

.navbar-toggler {
    border: 1px solid burlywood !important;
    border-radius: 0.5rem;
    padding: 0.3rem 0.6rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.navbar-toggler:hover {
    background-color: #faf9f7;
    border-color: #a0522d !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(222, 184, 135, 0.4);
    outline: none;
}

.navbar-nav {
    width: 100%;
    text-align: center;
}

.navbar-nav .nav-item {
    width: 100%;
}

@media (min-width: 992px) {
    .navbar-nav {
        width: auto;
    }
    .navbar-nav .nav-item {
        width: auto;
    }
}

/* Stilisieren der Select-Box und Inputs */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.navbar-brand {
    font-size: 1.15rem !important;
    font-weight: 500;
    letter-spacing: 0.015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.form-group select, .form-group input {
    width: 100%;
    height: 3.5rem;
    background-color: #ffffff;
    border: 1px solid rgb(100, 100, 100);
    border-radius: 0.5rem;
    font-size: 1.0rem;
    padding: 1rem 0.75rem 0 0.75rem;
}

.form-group input {
    margin-bottom: 0;
    box-sizing: border-box;
}

.form-group label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem 0.75rem;
    pointer-events: none;
    transition: all 0.2s ease-out;
    color: #6c757d;
    margin-bottom: 0;
}

/* Wenn das Feld fokussiert ist oder Text enthält, wandert das Label nach oben */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:not([value=""]):not([value="0"]) ~ label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.85rem;
    color: #495057;
    background: white;
    padding: 0 5px;
    height: auto;
}

/* Anpassung für Date-Inputs, da diese oft einen internen Placeholder haben */
.form-group input[type="date"] {
    padding-top: 1.2rem;
}

/* Führanlage Container & Buttons */
.ds-fa-container {
    display: grid;
    grid-template-columns: repeat(2, 10.5rem);
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    margin-top: 1.25rem;
}

.ds-fa-button {
    width: 10.5rem;
    height: 10.5rem;
    border: none;
    border-radius: 1.5rem !important;
    text-align: center;
    line-height: 1.85rem;
    vertical-align: middle;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    box-shadow: 0px 0px 2px 2px rgba(169, 169, 169, 0.54);
    margin: 0;
    box-sizing: border-box;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ds-fa-button.ds-orange, .ds-fa-button.ds-gruen, .ds-fa-button.ds-rot, .ds-fa-button.ds-grau {
    box-shadow: 0px 0px 3px 1px rgba(169, 169, 169, 0.54),
    inset 0px 0px 0px 2px rgba(255, 255, 255, 0.75),
    inset 0px 0px 0px 5px rgba(255, 255, 255, 0.75) !important;
}

.hidden-info {
    display: none;
    margin-top: 10px;
}

.plus-icon {
    cursor: pointer;
    font-size: 24px;
    color:#407c64;
    margin-right: 10px;
}

#spinner {
    display: none;
    width: 80px;
    height: 80px;
    border: 6px solid rgba(0, 0, 0, .1);
    border-radius: 50%;
    border-top-color: #407c64;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
    position: fixed;
    left: calc(50% - 40px);
    top: calc(50% - 40px);
    z-index: 9999;
}

/* =========================================================
   FULLSCREEN LOADING & SPERR-OVERLAY (Ausgrauen bei Aktionen)
   ========================================================= */
#ds-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(35, 33, 30, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 100000;
    cursor: wait;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: all;
    justify-content: center;
    align-items: center;
}

.ds-loading-box {
    background: #ffffff;
    border: 2px solid burlywood;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    text-align: center;
    max-width: 90%;
    min-width: 270px;
    animation: dsFadeIn 0.2s ease-out;
}

.ds-loading-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px auto;
    border: 5px solid rgba(64, 124, 100, 0.2);
    border-radius: 50%;
    border-top-color: #407c64;
    animation: spin 0.85s linear infinite;
    -webkit-animation: spin 0.85s linear infinite;
}

.ds-loading-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #282522;
    margin-bottom: 6px;
    line-height: 1.3;
}

.ds-loading-subtitle {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.3;
}

@keyframes dsFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}

@media print {
    .no-print { display: none; }
    body, html { width: 100%; margin: 0; padding: 0; }
}

/* =========================================================
   DIGISTABLE STARTSEITE
   ========================================================= */

.ds-main-group {
    width: 100%;
    margin: .65rem auto 0 auto;
    padding: .35rem .25rem .35rem 0;

    background: #ffffff;
    border: 1px solid burlywood;
    border-radius: .9rem;
}

.ds-main-group:last-of-type {
    margin-bottom: 1.5rem;
}


/* etwas Luft zwischen den Spalten */
.ds-main-group .row {
    --bs-gutter-x: .45rem;
    margin-left: 0;
    margin-right: 0;
    flex-wrap: nowrap;
}


/* linke Bereichsbeschriftung */
.ds-main-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 20% !important;
    max-width: 20% !important;
    flex: 0 0 20% !important;

    padding: 0 .35rem 0 .55rem !important;
    margin: -.35rem 0;
    margin-right: .35rem;

    background: #f2f3f5;
    border-radius: .85rem 0 0 .85rem;
    border-right: 1px solid burlywood;

    color: #282522;
    font-size: .95rem;
    font-weight: normal;
    line-height: 1.05;
    text-align: left;
    flex-shrink: 0;
    cursor: pointer;
}


/* alle Bedienbuttons */
.ds-main-group .button {
    background-color: #ebe8e3;
    color: #282522;
    width: 100%;
    min-height: 3.7rem;

    padding: .55rem .35rem !important;

    border: 1px solid #c8c3bd !important;
    border-radius: .7rem !important;

    box-shadow: 0 2px 5px rgba(0,0,0,.12) !important;

    font-size: 1.05rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    white-space: nowrap;
}


/* Bootstrap Icons */
.ds-main-group .button .bi {
    margin-left: .35rem;
    font-size: 1.1em;
    vertical-align: -.08em;
}


/* Info: Abstand zwischen den beiden Buttonzeilen */
.ds-main-group .row + .row {
    margin-top: .35rem;
}


/* auf dem Handy */
@media (max-width: 576px) {

    .container, .container-xl, .container-xxl {
        padding: 0 0.35rem;
    }

    .ds-main-group {
        width: 100%;
        margin-top: .55rem;
        padding: .3rem .2rem .3rem 0;
    }

    .ds-main-group:last-of-type {
        margin-bottom: 1.25rem;
    }

    .ds-main-group .row {
        --bs-gutter-x: .3rem;
        margin-left: 0;
        margin-right: 0;
        flex-wrap: nowrap;
    }

    .ds-main-group .row + .row {
        margin-top: .25rem;
    }

    .ds-main-label {
        width: 20% !important;
        max-width: 20% !important;
        flex: 0 0 20% !important;
        padding: 0 .2rem 0 .35rem !important;
        margin: -.3rem 0;
        margin-right: .25rem;
        font-size: .85rem;
        text-align: left;
    }

    .ds-main-group .button {
        min-height: 3.2rem;
        font-size: .85rem !important;
        padding: .4rem .15rem !important;
        white-space: nowrap;
    }

    .ds-main-group .button .bi {
        margin-left: .2rem;
        font-size: 1em;
    }
}
