* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Roboto', serif;
	background: linear-gradient(135deg, #1E1A17 0%, #2C2623 50%, #1E1A17 100%);
	background-size: 400% 400%;
	animation: gradientShift 8s ease-in-out infinite;
	min-height: 100vh;
	color: #F5F5F5;
	position: relative;
	overflow-x: hidden;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* GENERATOR LAYOUT - 2 SPALTEN */
.main-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 2rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

.copy-button {
	background: linear-gradient(135deg, #F4C066 0%, #D99C45 100%);
	color: #2C2623;
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.3s ease;
	margin-top: 1rem;
	width: 100%;
	flex-shrink: 0;
}

/* Form Tabs */
.form-tabs {
	display: flex;
	gap: 10px;
	width: 100%;
	margin-bottom: 20px;
}

.tab-button {
	background: linear-gradient(135deg, #F4C066 0%, #D99C45 100%);
	color: #2C2623;
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.3s ease;
	margin-top: 1rem;
	width: 100%;
	text-align: left;
	box-sizing: border-box;
	transition: transform 0.2s ease, font-size 0.2s ease;
}

.tab-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(244, 192, 102, 0.3);
}

.tab-button.active {
	background: linear-gradient(135deg, #F4C066 0%, #D99C45 100%);
	color: #2C2623;
	font-weight: bold;
	transform: scale(1.075);
	z-index: 1;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

/* Mitarbeiter Section */
.mitarbeiter-section {
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 10px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	background: rgba(203, 131, 88, 0.1);
}

.mitarbeiter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.mitarbeiter-title {
	color: #D8C5B0;
	font-weight: bold;
	font-size: 1.1rem;
}

.delete-button {
	background: #C8491D;
	color: #F5F5F5;
	border: none;
	padding: 0.4rem 0.8rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.8rem;
	transition: all 0.3s ease;
}

.delete-button:hover {
	background: #FF8232;
	transform: scale(1.05);
}

.mitarbeiter-fields {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;
}

.add-button {
	background: linear-gradient(135deg, #F4C066 0%, #D99C45 100%);
	color: #2C2623;
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.3s ease;
	margin-top: 1rem;
	width: 100%;
}

.add-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(244, 192, 102, 0.3);
}

.generate-button {
	background: linear-gradient(135deg, #C8491D 0%, #FF8232 100%);
	color: #F5F5F5;
	border: none;
	padding: 1rem 2rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	width: 100%;
	font-size: 1.1rem;
	margin-top: 2rem;
}

.generate-button:hover {
	border-color: #F4C066;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(255, 130, 50, 0.4);
}

/* Prüfungsergebnis Styles */
.ergebnis-section {
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 10px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	background: rgba(203, 131, 88, 0.1);
}

.ergebnis-title {
	color: #F4C066;
	font-weight: bold;
	font-size: 1.1rem;
	margin-bottom: 1rem;
	text-align: left;
}

.ergebnis-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
	margin-bottom: 1rem;
}

.radio-group {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 8px;
	background: rgba(30, 26, 23, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
}

.radio-group:hover {
	border-color: #F4C066;
	background: rgba(244, 192, 102, 0.1);
}

.radio-group.selected {
	border-color: #F4C066;
	background: rgba(244, 192, 102, 0.2);
	transform: translateY(-2px);
}

.radio-group:not(.selected) {
	opacity: 0.8;
}

.radio-group.selected:not(.ausstehend-group) {
	box-shadow: 0 4px 12px rgba(244, 192, 102, 0.3);
}

/* Special styling for ausstehend to indicate it's the "pending" state */
.radio-group.ausstehend-group {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(168, 95, 61, 0.1);
}

.radio-group.ausstehend-group.selected {
	border-color: #A85F3D;
	background: rgba(168, 95, 61, 0.2);
}

.radio-group input[type="radio"] {
	margin: 0;
	width: 18px;
	height: 18px;
	accent-color: #F4C066;
}

.radio-group label {
	color: #F5F5F5;
	font-weight: 500;
	cursor: pointer;
	margin: 0;
}

/* Conditional Fields Animation */
.conditional-fields {
	display: none;
	opacity: 0;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	margin-top: 1.5rem;
	padding: 1.5rem 0;
	/* border: 1px solid rgba(255,255,255,0.1); - ENTFERNT */
	/* border-radius: 10px; - ENTFERNT */
	/* background: rgba(244, 192, 102, 0.05); - ENTFERNT */
}

.conditional-fields.show {
	display: block;
	opacity: 1;
	transform: translateY(0);
	animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.conditional-fields-title {
	color: #F4C066;
	font-weight: bold;
	font-size: 1rem;
	margin-bottom: 1.5rem !important;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(244, 192, 102, 0.3);
}

/* Spezifische Spacing-Regeln für conditional fields */
.conditional-fields .form-group {
	margin-bottom: 1.5rem !important;
}

.conditional-fields .form-group:last-child {
	margin-bottom: 0 !important;
}

.conditional-fields .form-label {
	margin-bottom: 0.5rem !important;
}

.conditional-fields .form-input {
	margin-bottom: 0 !important;
}

/* Bessere Abstände zwischen Radio-Gruppen und conditional fields */
.ergebnis-options {
	margin-bottom: 1rem !important;
}

/* Abstand zwischen den Radio-Button Bereichen */
.radio-group.ausstehend-group {
	margin-bottom: 1rem !important;
}

/* Responsive */
@media (max-width: 1024px) {
	.main-container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.mitarbeiter-fields {
		grid-template-columns: 1fr;
	}
	.ergebnis-options {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.nav-menu {
		flex-direction: column;
		gap: 1rem;
	}
	.nav-container {
		flex-direction: column;
		gap: 1rem;
	}
	.main-container {
		padding: 2rem 1rem;
	}
	.form-tabs {
		flex-direction: column;
	}
}