:root
{
	--main-c: #4CAF50;
	--main-h-c: #3d8b40;
	
	--accent-c: #ffd374;
	--accent-h-c: #ffbd2e;
	
	--highlight-c: #FFFFE7;

	--body-c: #f1f1ec;
	--form-c: #ffffff;
}

body
{
	font-family: Arial, sans-serif;
	background-color: var( --body-c );
	margin: 0;
	padding: 0px;
}

main
{
	max-width: 80%;
	margin: 20px auto;
	padding: 20px;
	background-color: #fff;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px)
{
	main
	{
		margin: 10px auto;
		padding: 10px;
	}
}

form
{
	background-color: var( --form-c );
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label, input, select
{
	display: block;
	margin-bottom: 10px;
}

table
{
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

th, td
{
	border: 1px solid #ddd;
	padding: 8px;
	text-align: left;
}

th
{
	background-color: var( --main-c );
	color: white;
}

tr:nth-child(even)
{
	background-color: #dfdfdf;
}

tr:hover
{
	background-color: #fdfdce;
}

a
{
	text-decoration: none;
	padding: 5px 10px;
	margin: 5px;
	border-radius: 3px;
}

button, .button
{
	background-color: var( --main-c );
	color: white;
	padding: 10px 15px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: 0.3s all;
}

button:hover, a.button:hover
{
	background-color: var( --main-h-c );
}

button[type='submit']
{
	background-color: var( --main-c );
	color: white;
}

button[type='submit']:hover
{
	background-color: var( --main-h-c );
}

.button.logout
{
	background-color: var( --accent-c );
	color: black;
}

.button.logout:hover
{
	background-color: var( --accent-h-c );
}

.button.edit, .button.yes
{
	background-color: #3498db;
	color: white;
}

.button.edit:hover, .button.yes:hover
{
	background-color: #2b7ca3;
}

.button.delete, .button.no
{
	background-color: #e74c3c;
	color: white;
}

.button.delete:hover, .button.no:hover
{
	background-color: #bf392e;
}

header
{
	background-color: var( --main-c );
	padding: 10px;
	text-align: right;
}

header a
{
	color: white;
	text-decoration: none;
}

header nav ul
{
    list-style-type: none;
    padding: 0;
    display: flex;
	justify-content: center;
}

header nav ul li
{
    display: inline-block;
    position: relative;
}

header nav a
{
    display: flex;
    text-decoration: none;
    color: white;
    border-radius: 5px;
	border: 2px solid rgba(255,255,255,0);
	transition: 0.3s all;
	flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

header nav a:hover
{
	border-color:rgba(255,255,255,1);
}

header>div>nav>ul>li.active>a, header>div>nav>ul>li>ul>li.active>a
{
	border-bottom: 2px solid rgba(255,255,255,1);
}

header nav .submenu ul
{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
	background-color: var( --main-c );
    box-shadow: 0px 0px 10px 0px #0000008a;
    border: 1px solid #000000;
}

header nav .submenu .icon
{
    text-align: center;
}

header nav .submenu:hover ul
{
    display: block;
}

h1
{
	margin-top: 20px;
}

.tabs
{
	display: flex;
	margin-bottom: 10px;
}

.tab
{
	flex: 1;
	padding: 10px;
	text-align: center;
	background-color: #eee;
	cursor: pointer;
}

.tab-content
{
	display: none;
}

.tab-content.active
{
	display: block;
}

#popup-container
{
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000;
}

.popup-content
{
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center; /* Zentriere den Text im Popup */
	border-radius: 20px;
}

.popup-content button
{
    margin: 5px; /* Füge einen kleinen Abstand zwischen den Buttons hinzu */
}

#popup-info
{
	font-weight: bold;
}

#overlay
{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	backdrop-filter: blur(2px);
}

.hidden
{
    display: none;
}

.imageLine
{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.imageLine a
{
    text-decoration: none;
    color: black;
	margin: 0 10px;
	border-radius: 100px;
    transition: 0.3s all;
    box-shadow: inset 0px 0px 20px 12px white;
}

.imageLine a:hover
{
	background-color: bisque;
}

.imageLine img
{
    width: 100px;
}

.imageLine p
{
    margin: 5px 0 0;
}

div.dbInfo
{
	margin-top: 8px;
    text-align: center;
    margin-bottom: 16px;
    padding: 8px;
    color: #ffffff;
    font-weight: bold;
    border-radius: 8px;
	-moz-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
}

div.dbInfo.dbSuccess
{
    background-color: #4caf50;
    box-shadow: 0px 0px 9px #4caf50;
}

div.dbInfo.dbError
{
    background-color: #e74c3c;
    box-shadow: 0px 0px 9px #e74c3c;
}

.scaleToZero
{
    -moz-transform: scale(0);
    -o-transform: scale(0);
    -webkit-transform: scale(0);
    transform: scale(0);
}

.info-icon
{
	width: 16px;
	height: 16px;
}