:root {
    --main: #2d2726;
    --bg-top-raw: 254 63 24;
    --main-box-shadow: rgb(from var(--main) r g b / 0.05);
    --accent: #fe3f18;
    --accent-hover: #c5e300;
    --paddingSite: 40px;
    --card-radius: 20px;
    --card-bg: #ffffff;
    --bg: #FDFDFD;
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --border-subtle: #d4d7e1;
    --text-main: #191919;
    --text-muted: #5e5e5e;
}

/* --- BASE & TYPOGRAPHY --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

b {
    font-weight: 600;
}

body {
    margin: 0;
    width: 100vw;
    background: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    overscroll-behavior: none;
    font-optical-sizing: auto;
}

.bgSection {
    position: relative;
    width: 100vw;
    padding: var(--paddingSite);
    max-width: 1400px;
    margin: auto;
}

.headerAbt {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.headerAbt h2 {
    margin: 0;
    font-weight: 400;
    color: var(--main);
    font-size: 1.5rem;
}

.textInputAbtTitel {
    margin: 0;
    font-weight: 400;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--main);
    font-size: 1.5rem;
    color: #191919;
    background: none;
    width: max-content;
    padding: 4px 8px;
}

/* Sidebar Menu Button Styling */
.header-text-conatiner {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
}

.header-text-conatiner button {
    cursor: auto;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 12px 20px;
    border-radius: 100px;
    background: var(--accent);
    border: 1px solid transparent;
    font-size: 15px;
    color: #000;
    width: 100%;
    box-shadow: 0 4px 6px rgba(207, 239, 0, 0.2);
}

.header-text-conatiner button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(207, 239, 0, 0.3);
}

.header-text-conatiner button:active {
    transform: scale(0.98) translateY(0);
}

.header-text-conatiner label {
    font-weight: 400;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: -5px;
}

.header-text-conatiner input[type="number"] {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}

.header-text-conatiner input[type="number"]:focus {
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(40, 102, 110, 0.1);
}

.geraet-table {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    min-width: 260px;
    overflow: hidden;
    transition: all 0.3s ease;
    border-collapse: separate;
    border-spacing: 0;
}

.geraet-table thead {
    background: var(--main);
}

.geraet-table thead th {
    display: flex;
    justify-content: space-between;
    color: #fff;
    padding: 14px 20px;
    font-weight: 300;
    font-size: 1.05rem;
    text-align: left;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
}

.geraet-table thead th i span {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

.geraet-table tbody {
    display: block;
    padding: 10px;
}

/* Custom Scrollbar for tbody */
.geraet-table tbody::-webkit-scrollbar {
    width: 6px;
}

.geraet-table tbody::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.geraet-table tbody::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.geraet-table tbody::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.turnerin-row {
    cursor: auto;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    display: block;
    border: 1px solid transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.turnerin-row>td {
    padding: 12px 16px;
    border: none;
    display: block;
    width: 100%;
    color: var(--text-main);
    font-weight: 200;
}

/* Grouping Row Styling */
.group-row {
    background: transparent;
    margin-bottom: 12px;
}

.group-row>td {
    padding: 0;
    display: block;
}

.group-header {
    padding: 12px 16px;
    cursor: auto;
    gap: 18px;
    border-radius: 10px;
    font-weight: 200;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 6px;
    display: flex;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    justify-content: space-between;
    align-items: center;
}


.group-inner {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    padding-left: 10px;
}

.group-row .group-inner {
    display: none;
}

.allGeraeteDiv {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: flex-start; 
    gap: 8px;
    margin-top: 24px; 
    margin-bottom: 36px;
}

.buttonsDiv {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 20px;
    position: fixed;
    bottom: 10px;
    right: 20px;
}

.buttonsDiv > button {
    background: var(--main);
    border: 1px solid #fff;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.buttonsDiv > select {
    background: #fff;
    border: 1px solid var(--main);
    color: var(--main);
    padding: 10px 20px;
    border-radius: 10px;
}

.buttonsDiv > button:hover {
    transform: scale(1.02);
}

.buttonsDiv > button:active {
    transform: scale(0.98);
}

.filtered-out {
    opacity: 0.5;
    background: #4d4d4d22 !important;
    color: #4d4d4d !important;
}

.filtered-out-border {
    border: 1px solid #4d4d4d !important;
}

.timeSpan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.9rem;
}

.stickyDivHeader {
    position: sticky;
    top: 0;
    background: var(--bg);
    padding: 10px 0;
    z-index: 10;
}