/**
 * CSS Styles für das Bestellformular
 * Version: 1.0.13
 */
/* Abschnitt 1 */
/* Grundlegende Einstellungen */
.course-order-form-container {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
	line-height: 1.5;
	color: #333;
}

/* Überschriften */
.course-order-form-container h3 {
	margin-top: 30px;
	margin-bottom: 20px;
	font-size: 20px;
	color: #333;
	border-bottom: 1px solid #ddd;
	padding-bottom: 8px;
}

.course-order-form-container h5 {
	margin: 15px 0;
	font-size: 16px;
	font-weight: 600;
}

/* Formularabschnitte */
.form-section {
	margin-bottom: 40px;
	background-color: #f9f9f9;
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Formularzeilen */
.form-row {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 20px;
	gap: 20px;
}

/* Formularfelder */
.form-field {
	flex: 1;
	min-width: 200px;
}

.form-field.anrede {
	flex: 0 0 150px;
}

.form-field.plz {
	flex: 0 0 100px;
}

.form-field.ort {
	flex: 1;
}

/* Eingabefelder */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus {
	outline: none;
	border-color: #4a90e2;
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Abschnitt 2 */
/* Fehler-Styling */
.error {
	border-color: #e74c3c !important;
	background-color: #fef0f0;
	box-shadow: 0 0 3px rgba(231, 76, 60, 0.5);
}

.error:focus {
	border-color: #e74c3c !important;
	outline: none;
	box-shadow: 0 0 5px rgba(231, 76, 60, 0.8);
}

/* Abschnitt 3 */
/* Tabelle */
.order-table-container {
	overflow-x: auto;
	margin-bottom: 20px;
}

.order-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #ddd;
}

.order-table th,
.order-table td {
	padding: 12px;
	border: 1px solid #ddd;
	text-align: left;
}

.order-table th {
	background-color: #f0f0f0;
	font-weight: bold;
}

.order-table thead {
	background-color: #f5f5f5;
}

/* Styling für die Bestelltabelle */
.order-table .quantity {
	width: 70px;
	text-align: center;
}

.order-table .course-select {
	width: 100%;
}

/* Tabellenausrichtung */
.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

/* Preise besonders hervorheben */
.price-column {
	text-align: right !important;
	font-family: monospace;
	letter-spacing: -0.5px;
	padding-right: 15px !important;
	min-width: 100px;
	white-space: nowrap;
}

.price, .total, #subtotal-1, #subtotal-2, #rabatt-betrag, #mwst, #endpreis {
	text-align: right !important;
	font-family: monospace;
	letter-spacing: -0.5px;
	white-space: nowrap;
}

/* Tabellenspalten für Preise */
.order-table th:nth-child(3), 
.order-table th:nth-child(4), 
.order-table td:nth-child(3), 
.order-table td:nth-child(4) {
	text-align: right !important;
	padding-right: 15px !important;
}

.bold {
	font-weight: bold;
}

.red {
	color: #e74c3c;
}

/* Zusammenfassung hervorheben */
.order-table tfoot {
	background-color: #f9f9f9;
}

.order-table .total-row {
	background-color: #eaf7fd;
	font-size: 18px;
}

/* Abschnitt 4 */
/* Button-Styling */
.add-item-button,
.rabatt-button {
	background-color: #4a90e2;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.2s;
}

/* Rabattcode-Styling */
.verified-code {
	background-color: #e8f5e9;
	border-color: #66bb6a;
	color: #2e7d32;
	font-weight: bold;
}

.verified-label {
	color: #2e7d32;
	font-weight: bold;
	display: inline-block;
	padding: 5px 10px;
	border-radius: 4px;
	background-color: #e8f5e9;
}

.invalid-code {
	background-color: #ffebee;
	border-color: #ef5350;
}

.invalid-label {
	color: #c62828;
	font-weight: bold;
	display: inline-block;
	padding: 5px 10px;
	border-radius: 4px;
	background-color: #ffebee;
}

.rabatt-row input[disabled] {
	cursor: not-allowed;
}

/* Rabattcode-Meldungen */
.rabattcode-message {
	margin: 20px 0;
}

.alert {
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
	position: relative;
}

.alert-danger {
	background-color: #ffebee;
	color: #c62828;
	border-left: 4px solid #ef5350;
}

.alert-success {
	background-color: #e8f5e9;
	color: #2e7d32;
	border-left: 4px solid #66bb6a;
}

.new-code-button {
	background-color: #f44336;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 6px 12px;
	cursor: pointer;
	font-size: 14px;
	float: right;
	margin-top: -3px;
	transition: background-color 0.2s;
}

.new-code-button:hover {
	background-color: #d32f2f;
}

.new-code-button:hover {
	background-color: #d32f2f;
}

.submit-button {
	background-color: #27ae60;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	margin-top: 20px;
	transition: background-color 0.2s;
}

.add-item-button:hover,
.rabatt-button:hover {
	background-color: #2c7be5;
}

.submit-button:hover {
	background-color: #219653;
}

/* Abschnitt 5 */
/* Zusätzliche Button-Effekte */
.add-item-button:active,
.rabatt-button:active,
.submit-button:active {
	transform: translateY(1px);
}

/* Freitext-Bereiche */
.freitext-1,
.freitext-2 {
	margin: 20px 0;
	line-height: 1.5;
}

/* Meldungen */
.success-message {
	padding: 15px;
	background-color: #d4edda;
	color: #155724;
	border-radius: 4px;
	margin-bottom: 20px;
	border-left: 4px solid #28a745;
}

.error-message {
	padding: 15px;
	background-color: #f8d7da;
	color: #721c24;
	border-radius: 4px;
	margin-bottom: 20px;
	border-left: 4px solid #dc3545;
}

/* Order Response Container */
.order-response {
	margin-top: 30px;
	padding: 20px;
	border-radius: 5px;
}

/* Responsive-Anpassungen */
@media screen and (max-width: 768px) {
	.form-row {
		flex-direction: column;
		gap: 15px;
	}
	
	.form-field,
	.form-field.anrede,
	.form-field.plz,
	.form-field.ort {
		min-width: 100%;
	}
	
	.order-table th,
	.order-table td {
		padding: 8px;
	}
	
	.submit-button {
		width: 100%;
		margin-top: 15px;
	}
}