/* Grundlayout */
body {
	font-family: system-ui, sans-serif;
	background: #0f0f12;
	color: #eceff4;
	padding: 20px;
	margin: 0;
}

/* Fehlermeldungen */
.error {
	color: #ff6b6b;
	margin-bottom: 12px;
}

/* Formular */
form {
	background: #fff;
	padding: 20px;
	border-radius: 16px;
	margin-bottom: 20px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 15px 20px;
	align-items: center;
	color:black;
}

form label {
	font-weight: bold;
	margin-bottom: 4px;
	display: block;
	flex: 0 0 180px; /* feste Breite für Beschriftung links */
}

.form-row {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
}


.form-input {
	flex: 1; /* Slider nimmt restlichen Platz ein */
}

textarea, input[type="text"], input[type="number"], input[type="datetime-local"], select {
	width: 100%;
	background: #0e0e14;
	color: #eceff4;
	border-radius: 12px;
	border: 1px solid #2a2a33;
	padding: 8px;
	box-sizing: border-box;
}

textarea {
	grid-column: 1 / -1;
	height: 80px;
	resize: vertical;
}

/* Buttons */
button {
	padding: 12px 20px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	margin-top: 8px;
	font-weight: bold;
	transition: background 0.3s;
}

button[type="submit"] {
	background: red;
	color: #0c0c0e;
}

button[name="delete"] {
	background: lightgrey;
	color: #0c0c0e;
}

button:hover {
	opacity: 0.85;
}

/* Range-Slider Styles */
.range-slider {
	grid-column: 1 / -1;
	position: relative;
	height: 6px;
	margin-bottom: 12px;
}

.range-slider input[type=range] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	pointer-events: none;
	-webkit-appearance: none;
	background: transparent;
}

.range-slider input[type=range]::-webkit-slider-thumb {
	pointer-events: all;
	width: 16px;
	height: 16px;
	background: #ff4081;
	border-radius: 50%;
	border: none;
	-webkit-appearance: none;
}

.range-slider input[type=range]::-moz-range-thumb {
	pointer-events: all;
	width: 16px;
	height: 16px;
	background: #ff4081;
	border-radius: 50%;
	border: none;
}

.range-slider input[type=range]::-webkit-slider-runnable-track {
	height: 6px;
	background: #2a2a33;
	border-radius: 3px;
}

.range-slider input[type=range]::-moz-range-track {
	height: 6px;
	background: #2a2a33;
	border-radius: 3px;
}

/* Ad-Container */
.ausgabe-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	gap: 20px;
}

.ad-container {
	display: flex;
	flex-direction: column;
	background: #1a1a24;
	border-radius: 16px;
	overflow: hidden;
	max-width: 300px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.ad-image img {
	width: 100%;
	display: block;
}

.ad-content {
	padding: 16px;
}

.ad-content h2 {
	margin-top: 0;
	color: #e48bb4;
	font-size: 16px;
}

.ad-text {
	margin: 12px 0;
	line-height: 1.5;
	font-size: 14px;
}

/* Call-to-Action Button */
.cta-button {
	display: inline-block;
	padding: 10px 16px;
	background: #6aa9ff;
	color: #0c0c0e;
	border-radius: 12px;
	text-decoration: none;
	font-weight: bold;
	text-align: center;
	transition: background 0.3s;
}

.cta-button:hover {
	background: #5590e6;
}

/* Fokus-Effekte */
input:focus, textarea:focus, select:focus {
	outline: 2px solid #e48bb4;
	outline-offset: 2px;
}

/* Responsive Layout */
@media screen and (max-width: 900px) {
	form {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 650px) {
	.ad-container {
		max-width: 100%;
	}
}

.rabatt-container {
	display:flex;
}

.editable-text {
	width: 100%;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 10px 12px;
	resize: none; /* kein manuelles Ziehen nötig, da autoResize */
	overflow: hidden; /* keine Scrollleiste */
	transition: height 0.2s ease;
	min-height: 120px;
	box-sizing: border-box;
}

.ad-actions {
	margin-top: 6px;
}

.image-gallery {
	display:none;
	flex-wrap:wrap;
	height: 200px;
	overflow: auto;
	cursor: pointer;
	border: 2px solid transparent;
}
.gallery-image {

}
.gallery-image.selected {
	border: 3px solid black;
}


.top-menu {
	display: flex;
	gap: 20px;
	background: #f7f7f7;
	padding: 12px 20px;
	border-bottom: 1px solid #ddd;
	margin-bottom: 20px;
	border-radius: 0 0 6px 6px;
}

.top-menu .menu-item {
	font-size: 15px;
	text-decoration: none;
	color: #333;
	padding: 8px 14px;
	border-radius: 6px;
	transition: 0.2s ease;
}

.top-menu .menu-item:hover {
	background: #ff69b4;
	color: white;
}

.top-menu .menu-item.active {
	background: #ff69b4;
	color: white;
	font-weight: bold;
}
.top-menu {
	position: sticky;
	top: 0;
	z-index: 999;
}
.aura-fullwidth {
	width: 100%;
	max-width: none;
	padding: 0 24px;
	box-sizing: border-box;
}

.formular-autotaks {
	display: flex;
	flex-direction: column;
}

.formular-autotaks-zeitsteuerung, .formular-autotaks-eingabe, .formular-autotaks-absenden {
	width:100%;
}