/* Form Styles */
.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	color: #F5F5F5;
	font-weight: bold;
	margin-bottom: 0.5rem;
}

.form-input {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 8px;
	background: rgba(30, 26, 23, 0.8);
	color: #F5F5F5;
	font-size: 1rem;
	transition: all 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: #F4C066;
	box-shadow: 0 0 12px rgba(244, 192, 102, 0.3);
}

.form-textarea {
	min-height: 100px;
	resize: vertical;
}

.form-select {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 8px;
	background: rgba(30, 26, 23, 0.8);
	color: #F5F5F5;
	font-size: 1rem;
	cursor: pointer;
}

.form-select option {
	background: #1E1A17;
	color: #F5F5F5;
}

.antrag-selector {
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	background: rgba(203, 131, 88, 0.1);
}

.antrag-title {
	color: #F4C066;
	font-weight: bold;
	font-size: 1.2rem;
	margin-bottom: 1rem;
	text-align: left;
}

.dynamic-form {
	display: none;
	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.05);
}

.dynamic-form.active {
	display: block;
	animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.form-subtitle {
	color: #D8C5B0;
	font-weight: bold;
	font-size: 1.1rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid #CB8358;
	padding-bottom: 0.5rem;
}

.generate-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%;
}

.generate-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(244, 192, 102, 0.3);
}

.generate-button:disabled {
	background: linear-gradient(135deg, #F4C066 0%, #D99C45 100%);
	cursor: not-allowed;
	opacity: 0.6;
	transform: none;
	box-shadow: none;
}

/* ZURÜCK ZU URSPRÜNGLICHER PREVIEW-KONFIGURATION */
.preview-output {
	background: rgba(30, 26, 23, 0.8);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 8px;
	padding: 1.5rem;
	font-family: 'Courier New', monospace;
	color: #D8C5B0;
	white-space: pre-wrap;
	min-height: 600px;
	line-height: 1.6;
	overflow-x: auto;
	overflow-y: auto;
	word-break: break-all;
	max-width: 100%;
}

/* EINFACHE UND KOMPATIBLE LÖSUNG FÜR LEEREN ZUSTAND */
.preview-output.empty-state {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.preview-output.empty-state > div {
	padding: 2rem;
}

.preview-section {
	background: linear-gradient(135deg, #2C2623 0%, #1E1A17 100%);
	padding: 2rem;
	border-radius: 15px;
	border: 1px solid rgba(255,255,255,0.1);
	box-shadow: inset 0 4px 12px rgba(0,0,0,0.3);
	height: 820px;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 2rem;
}

.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;
}

.copy-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(244, 192, 102, 0.3);
}

/* Form */
.form-section {
	background: linear-gradient(135deg, #2C2623 0%, #1E1A17 100%);
	padding: 2rem;
	border-radius: 15px;
	border: 1px solid rgba(255,255,255,0.1);
	box-shadow: inset 0 4px 12px rgba(0,0,0,0.3);
}

.section-title {
	font-size: 1.8rem;
	color: #F4C066;
	margin-bottom: 1.5rem;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
	text-align: center;
}

/* Import Section */
.import-section {
	margin-bottom: 2rem;
}

.import-header {
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 10px;
	padding: 1rem 1.5rem;
	background: rgba(203, 131, 88, 0.1);
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.import-header:hover {
	background: rgba(203, 131, 88, 0.2);
	border-color: #F4C066;
}

/* KORRIGIERT: Entfernt untere Border-Radien wenn aufgeklappt */
.import-header.expanded {
	border-radius: 10px 10px 0 0 !important;
	border-bottom: none !important;
}

/* KORRIGIERT: Hover-Effekt für gesamte Import-Sektion wenn aufgeklappt */
.import-section:hover .import-header.expanded {
	background: rgba(203, 131, 88, 0.2) !important;
	border-color: #F4C066 !important;
}

.import-section:hover .import-content.expanded {
	background: rgba(203, 131, 88, 0.08) !important;
	border-color: #F4C066 !important;
}

.import-title {
	color: #F4C066;
	font-weight: bold;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.import-toggle {
	color: #F4C066;
	font-size: 1.5rem;
	transition: transform 0.3s ease;
}

.import-toggle.expanded {
	transform: rotate(180deg);
}

.import-content {
	border: 1px solid rgba(255,255,255,0.1);
	border-top: none;
	border-radius: 0 0 10px 10px;
	padding: 1.5rem;
	background: rgba(203, 131, 88, 0.05);
	display: none;
	animation: slideDown 0.3s ease;
	transition: all 0.3s ease;
}

.import-content.expanded {
	display: block;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.import-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%;
}

.import-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(244, 192, 102, 0.3);
}

.import-button:disabled {
	background: linear-gradient(135deg, #F4C066 0%, #D99C45 100%);
	cursor: not-allowed;
	opacity: 0.6;
	transform: none;
	box-shadow: none;
}

.import-button:disabled:hover {
	transform: none;
	box-shadow: none;
	border-color: transparent;
}

.checkbox-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;
}

.checkbox-group:hover {
	border-color: #F4C066;
	background: rgba(244, 192, 102, 0.1);
}

.checkbox-group input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #F4C066;
}

.checkbox-group label {
	color: #F5F5F5;
	font-weight: 500;
	cursor: pointer;
	margin: 0;
}

.beta-tag {
  background-color: #f0ad4e; /* orange */
  color: white;
  font-size: 0.5em;
  padding: 2px 4px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: bold;
  text-transform: uppercase;
}

.form-input.error {
	border-color: #FF8232 !important;
	box-shadow: 0 0 8px rgba(255, 130, 50, 0.3) !important;
}

.form-select.error {
	border-color: #FF8232 !important;
	box-shadow: 0 0 8px rgba(255, 130, 50, 0.3) !important;
}