:root {
	--nav-padding: 5px 10px;
	--bs-font-sans-serif: Gotham, 'Helvetica Neue', Helvetica, Arial, 'sans-serif';
	--title-font-size: 75px;
	--section-top-bottom-padding: 100px;
	--slight-border-color: #33333320;
	--light-grey-text-low-opacity: #333333A5;
}

main {
	min-height: calc(100vh - 66px - 56px);
}

header, footer {
	padding: var(--nav-padding);
	background-color: var(--bs-gray-900);
}

.logo {
	width: 30px;
	height: 30px;
}

.logo svg {
	color: var(--bs-white);
	width: 100%;
	height: 100%;
}

.logo-main {
	width: 150px;
	height: 150px;
}

#project-sidebar {
	height: 100%;
	width: 10%;
	max-width: 200px;
}

section {
	width: 75%;
	padding-top: var(--section-top-bottom-padding);
	padding-bottom: var(--section-top-bottom-padding);
}

#content {
	display: flex;
	justify-content: center;
	width: 100%;
}

.fs-title {
	font-size: var(--title-font-size);
}

.text-width {
	width: 66%;
}

.mini-badge {
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
	border: 1px solid var(--slight-border-color);
}

.text-sub {
	color: var(--light-grey-text-low-opacity);
}

#sidebar {
	width: 60px;
	background-color: var(--bs-gray-300);
}

#sidebar.opened {
	width: 30%;
}

#sidebar .icon {
	width: 40px;
	height: 40px;
	justify-self: center; 
	color: var(--bs-gray-500);	
}

#topbox {
	background-color: var(--bs-gray-200);
	max-height: 100px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--bs-gray-400);
}

/* LISTE STATT TABELLE */
.task-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* Kopfzeile (nur ab md sichtbar) */
.task-list-head {
	display: grid;
	grid-template-columns: 2fr 0.5fr 0.7fr 1fr;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--bs-gray-600);
	margin-bottom: 0.25rem;
}

/* einzelne Task-Karte */
.task-item {
	display: grid;
	grid-template-columns: 2fr 0.5fr 0.7fr 1fr;
	align-items: center;
	border-radius: 0.5rem;
	background-color: #fff;
	box-shadow: rgba(149, 157, 165, 0.15) 0px 4px 12px;
	position: relative;
	transform-origin: center;
	transition: transform .2s ease, box-shadow .2s ease;
	z-index: 0;
}

/* farbiger Streifen links (wie vorher) */
.task-front-color {
	border-left: 2px solid var(--bs-primary);
}

.task-cell.status-cell, .task-status-choose, .task-status-choose button {
	height: 100%;
}

/* Zellen innerhalb des Grids */
.task-cell {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.15rem;
	padding: 0.75rem 0;
}

.task-cell.status-cell {
	padding: 0;
}

.task-cell.task-title {
	padding-left: 0.75rem;
}

/* Label für Mobile (Spaltenüberschrift in der Karte) */
.task-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--bs-gray-500);
}

/* Titel kann etwas fetter sein */
.task-title {
	font-weight: 600;
}

/* Hover-Effekt wie vorher bei den Rows */
.task-item:hover,
.task-item:has(.dropdown-menu.show) {
	transform: scale(1.02);
	z-index: 10;
	box-shadow: rgba(149, 157, 165, 0.3) 0px 8px 24px;
}

/* optional: wenn :has() nicht überall unterstützt werden soll */
.task-item.is-open {
	transform: scale(1.02);
	z-index: 10;
	box-shadow: rgba(149, 157, 165, 0.3) 0px 8px 24px;
}

/* Dropdown-Button vertikal zentrieren */
.task-status-choose .btn {
	width: 100%;
	border-radius: 0;
	border: none;
}

.task-status-choose button.done {
	background-color: green;
}

.task-status-choose button.pending {
	background-color: darkgoldenrod;
}

.task-status-choose button.tbd {
	background-color: rebeccapurple;
}

.dropdown-toggle.empty::after {
	border: none;
	margin: 0;
	display:block;
}

.task-item:hover .dropdown-menu {
	z-index: 9999;
}

.task-cell .dropdown {
	padding: 0 4rem;
}

.task-input-card {
	background-color: #fff;
	border-radius: 0;
}

.task-input-grid {
	display: grid;
	grid-template-columns: 2fr 1fr auto;
	column-gap: 1rem;
	row-gap: 0.5rem;
	align-items: end;
}

.task-input-field {
	display: flex;
	flex-direction: column;
}

.add-table-row input {
	border: 1px solid var(--bs-gray-200);
}

.task-input-field .task-status-choose .btn {
	width: 100%;
}

.task-input-submit .btn {
	white-space: nowrap;
}

@media (max-width: 767.98px) {
	.task-input-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767.98px) {
	.task-item {
		grid-template-columns: 1fr;
		align-items: flex-start;
		row-gap: 0.5rem;
	}

	.task-list-head {
		display: none;
	}

	.task-status-choose .btn {
		width: auto;
	}
}
