:root,
html.light {
	--bg: #f5f7fa;
	--surface: #ffffff;
	--shadow: rgba(0, 0, 0, 0.08);
	--text: #222222;
	--input-bg: #f5f7fa;
	--input-border: #d0d3d8;
	--result-bg: #fdf0f1;
	--result-border: #f5a0a8;
	--label: #555555;
	--hint: #888888;
	--error-bg: #fdecea;
	--error-border: #d93025;
	--error-text: #a50e0e;
	--border: #dddddd;
}

html.dark {
	--bg: #181a1b;
	--surface: #232527;
	--shadow: rgba(0, 0, 0, 0.25);
	--text: #f5f7fa;
	--input-bg: #2a2d2f;
	--input-border: #444444;
	--result-bg: #2e1a1b;
	--result-border: #7a1520;
	--label: #bbbbbb;
	--hint: #777777;
	--error-bg: #3b1214;
	--error-border: #a52714;
	--error-text: #f5a0a0;
	--border: #444444;
}

@media (prefers-color-scheme: dark) {
	html:not(.light):not(.dark) {
		--bg: #181a1b;
		--surface: #232527;
		--shadow: rgba(0, 0, 0, 0.25);
		--text: #f5f7fa;
		--input-bg: #2a2d2f;
		--input-border: #444444;
		--result-bg: #2e1a1b;
		--result-border: #7a1520;
		--label: #bbbbbb;
		--hint: #777777;
		--error-bg: #3b1214;
		--error-border: #a52714;
		--error-text: #f5a0a0;
		--border: #444444;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-family: 'DB Neo Office', 'Inter', Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	margin: 0;
	padding: 0;
	line-height: 1.5;
	transition:
		background 0.35s,
		color 0.35s;
}

h1,
h2,
h3,
h4 {
	font-family: 'DB Neo Office Head', 'DB Neo Office', 'Inter', sans-serif;
	transition: color 0.35s;
}

.container {
	max-width: 1100px;
	margin: 52px auto;
	background: var(--surface);
	border-radius: 10px;
	box-shadow: 0 2px 8px var(--shadow);
	padding: 36px 40px 32px;
	transition:
		background 0.35s,
		box-shadow 0.35s;
}

h1 {
	color: #ec0016;
	margin: 0 0 4px;
	font-weight: 700;
	letter-spacing: 0.5px;
	font-size: 1.7rem;
}

.subtitle {
	color: var(--hint);
	font-size: 0.88rem;
	margin: 0 0 24px;
	transition: color 0.35s;
}

/* ── Tab-Bar ──────────────────────────────────────── */
.tab-bar {
	display: flex;
	border-bottom: 2px solid var(--input-border);
	margin-bottom: 28px;
	position: relative;
}

/* Animierte Unterstrich-Linie */
.tab-indicator {
	position: absolute;
	bottom: -2px;
	height: 3px;
	background: #ec0016;
	transition:
		left 0.3s ease,
		width 0.3s ease;
	border-radius: 2px;
	pointer-events: none;
}

.tab-btn {
	background: none;
	border: none;
	margin-bottom: -2px;
	padding: 8px 0;
	margin-right: 28px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	color: var(--hint);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	transition:
		color 0.15s,
		border-color 0.15s;
}

.tab-btn .tab-desc {
	font-size: 0.75rem;
	font-weight: 400;
}

.tab-btn:hover {
	color: var(--text);
}

.tab-btn.active {
	color: #ec0016;
}

.tab-panel {
	display: none;
	opacity: 0;
}
.tab-panel.active {
	display: block;
	opacity: 1;
}

/* ── Input-Grid ───────────────────────────────────── */
.input-grid {
	display: grid;
	gap: 16px 24px;
	margin-bottom: 20px;
}

.cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.span-full {
	grid-column: 1 / -1;
}

@media (max-width: 620px) {
	.cols-3,
	.cols-2 {
		grid-template-columns: 1fr;
	}
	.span-full {
		grid-column: span 1;
	}
	.container {
		margin: 16px;
		padding: 24px 20px;
	}
}

/* ── Felder ───────────────────────────────────────── */
.field {
	display: flex;
	flex-direction: column;
}

label {
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--label);
	margin-bottom: 5px;
	transition: color 0.35s;
}

label .sym {
	font-style: italic;
	color: #ec0016;
}

.input-wrap {
	display: flex;
	align-items: center;
	border: 1.5px solid var(--input-border);
	border-radius: 6px;
	overflow: hidden;
	background: var(--input-bg);
	transition:
		border-color 0.15s,
		background 0.35s;
}

.input-wrap:focus-within {
	border-color: #ec0016;
}

.input-wrap input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 10px 12px;
	font-size: 1rem;
	color: var(--text);
	font-family: inherit;
	outline: none;
	min-width: 0;
	transition: color 0.35s;
}

.input-wrap input[type='number']::-webkit-inner-spin-button,
.input-wrap input[type='number']::-webkit-outer-spin-button {
	-webkit-appearance: none;
}
.input-wrap input[type='number'] {
	-moz-appearance: textfield;
	appearance: textfield;
}

.input-wrap .unit {
	padding: 10px 12px;
	font-size: 0.85rem;
	color: var(--hint);
	border-left: 1.5px solid var(--input-border);
	background: var(--input-bg);
	white-space: nowrap;
	transition:
		color 0.35s,
		background 0.35s,
		border-color 0.35s;
}

.hint {
	font-size: 0.77rem;
	color: var(--hint);
	margin-top: 4px;
	transition: color 0.35s;
}

/* ── Button ───────────────────────────────────────── */
.btn {
	display: block;
	width: 100%;
	padding: 12px;
	background: #ec0016;
	color: #ffffff;
	font-weight: 600;
	border-radius: 6px;
	font-family: inherit;
	font-size: 1rem;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s;
}

.btn:hover {
	background: #c20013;
	text-decoration: none;
}

/* ── Fehlerbox ────────────────────────────────────── */
.error-box {
	margin-top: 14px;
	background: var(--error-bg);
	border: 1.5px solid var(--error-border);
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 0.88rem;
	color: var(--error-text);
	display: none;
	transition:
		background 0.35s,
		border-color 0.35s,
		color 0.35s;
}

.error-box.visible {
	display: block;
	animation: fadeSlideIn 0.22s ease;
}

.error-box.warn-box {
	background: #fff3cd;
	border-color: #f0ad4e;
	color: #856404;
}

html.dark .error-box.warn-box {
	background: #3d3200;
	border-color: #f0ad4e;
	color: #ffc107;
}

@media (prefers-color-scheme: dark) {
	html:not(.light):not(.dark) .error-box.warn-box {
		background: #3d3200;
		border-color: #f0ad4e;
		color: #ffc107;
	}
}

/* ── Info-Box ────────────────────────────────────── */
.info-box {
	margin-top: 16px;
	background: #e8f4fd;
	border: 1.5px solid #4a9fd4;
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 0.88rem;
	color: #0d4c73;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	transition:
		background 0.35s,
		border-color 0.35s,
		color 0.35s;
}

.info-box .info-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: #4a9fd4;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: bold;
	line-height: 1;
	margin-top: 1px;
}

html.dark .info-box {
	background: #0d2e45;
	border-color: #4a9fd4;
	color: #90cef0;
}

@media (prefers-color-scheme: dark) {
	html:not(.light):not(.dark) .info-box {
		background: #0d2e45;
		border-color: #4a9fd4;
		color: #90cef0;
	}
}

/* ── Ergebnisbox ──────────────────────────────────── */
.result-box {
	margin-top: 20px;
	background: var(--result-bg);
	border: 1.5px solid var(--result-border);
	border-radius: 8px;
	padding: 20px 20px 16px;
	display: none;
	transition:
		background 0.35s,
		border-color 0.35s;
}

.result-box.visible {
	display: block;
	animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Banddiagramm (Canvas) ────────────────────────── */
.band-canvas {
	display: block;
	width: 100%;
	margin-top: 14px;
	border-radius: 4px;
}

.result-main {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.result-label {
	font-size: 0.9rem;
	color: var(--label);
	font-weight: 600;
	transition: color 0.35s;
}

.result-value {
	font-size: 2rem;
	font-weight: 700;
	color: #ec0016;
	letter-spacing: 0.5px;
}

.result-unit {
	font-size: 1rem;
	color: var(--hint);
	transition: color 0.35s;
}

.result-details {
	font-size: 0.83rem;
	color: var(--hint);
	border-top: 1px solid var(--result-border);
	padding-top: 10px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px 20px;
	transition:
		color 0.35s,
		border-color 0.35s;
}

.result-details span {
	font-weight: 600;
	color: var(--label);
}
.detail-full {
	grid-column: 1 / -1;
}
.kb-details-single-col {
	grid-template-columns: 1fr;
}

/* ── Bewertung Rampenneigung ──────────────────────── */
.ub-bewertung {
	grid-column: 1 / -1;
	font-size: 0.83rem;
	font-weight: 600;
	padding: 4px 0;
}
.ub-bew-ok {
	color: #2e7d32;
}
.ub-bew-warn {
	color: #e65100;
}
.ub-bew-err {
	color: #c62828;
}
.ub-bew-info {
	color: #1565c0;
}
html.dark .ub-bew-ok {
	color: #66bb6a;
}
html.dark .ub-bew-warn {
	color: #ffb74d;
}
html.dark .ub-bew-err {
	color: #ef5350;
}
html.dark .ub-bew-info {
	color: #64b5f6;
}
@media (prefers-color-scheme: dark) {
	html:not(.light) .ub-bew-ok {
		color: #66bb6a;
	}
	html:not(.light) .ub-bew-warn {
		color: #ffb74d;
	}
	html:not(.light) .ub-bew-err {
		color: #ef5350;
	}
	html:not(.light) .ub-bew-info {
		color: #64b5f6;
	}
}

/* ── Custom Select (Bogentyp) ─────────────────────── */
.custom-select {
	position: relative;
	width: 100%;
}

.custom-select-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	font-size: 1rem;
	font-family: inherit;
	font-weight: 400;
	color: var(--text);
	background: var(--input-bg);
	border: 1.5px solid var(--input-border);
	border-radius: 6px;
	cursor: pointer;
	transition:
		border-color 0.15s,
		background 0.35s,
		color 0.35s;
	outline: none;
}

.custom-select-text {
	font-size: 0.85rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
	border-color: #ec0016;
}

.custom-select-arrow {
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--hint);
	border-bottom: 2px solid var(--hint);
	transform: rotate(45deg);
	transition:
		transform 0.25s ease,
		border-color 0.35s;
	margin-top: -3px;
	flex-shrink: 0;
}

.custom-select.open .custom-select-arrow {
	transform: rotate(-135deg);
	margin-top: 3px;
}

.custom-select-options {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: var(--surface);
	border: 1.5px solid var(--input-border);
	border-radius: 6px;
	box-shadow: 0 4px 16px var(--shadow);
	z-index: 100;
	opacity: 0;
	transform: translateY(-6px) scaleY(0.96);
	transform-origin: top center;
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		background 0.35s;
}

.custom-select.open .custom-select-options {
	opacity: 1;
	transform: translateY(0) scaleY(1);
	pointer-events: auto;
}

.custom-select-options li {
	padding: 9px 14px;
	font-size: 0.85rem;
	color: var(--text);
	cursor: pointer;
	transition:
		background 0.12s,
		color 0.12s;
	border-radius: 3px;
	margin: 0 4px;
	white-space: nowrap;
}

.custom-select-options li:hover {
	background: var(--input-bg);
}

.custom-select-options li.selected {
	color: #ec0016;
	font-weight: 600;
}

.custom-select-options li.selected::before {
	content: '✓ ';
	font-weight: 700;
}

/* ── Button-Reihe ─────────────────────────────────── */
.btn-row {
	display: flex;
	gap: 12px;
}

.btn-row .btn {
	flex: 1;
}

.btn-secondary {
	background: var(--input-bg);
	color: var(--text);
	border: 1.5px solid var(--input-border);
}

.btn-secondary:hover {
	background: var(--input-border);
}

/* ── Kreisbogen Modus-Toggle ───────────────────────── */
.kb-mode-toggle {
	display: flex;
	gap: 0;
	margin-bottom: 18px;
	border: 1.5px solid var(--input-border);
	border-radius: 6px;
	overflow: hidden;
	width: fit-content;
	transition: border-color 0.35s;
}

.kb-mode-btn {
	padding: 7px 16px;
	font-size: 0.88rem;
	font-family: inherit;
	font-weight: 500;
	border: none;
	background: var(--input-bg);
	color: var(--hint);
	cursor: pointer;
	transition:
		background 0.25s,
		color 0.25s;
}

.kb-mode-btn + .kb-mode-btn {
	border-left: 1.5px solid var(--input-border);
}

.kb-mode-btn.active {
	background: #ec0016;
	color: #fff;
}

.kb-mode-btn:not(.active):hover {
	background: var(--surface);
	color: var(--text);
}

/* ── Kreisbogen Modus-Zeile (Toggle + Checkboxen) ──── */
.kb-mode-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	gap: 12px;
	flex-wrap: wrap;
}

.kb-mode-row .kb-mode-toggle {
	margin-bottom: 0;
}

.kb-check-toggle {
	display: flex;
	gap: 0;
	border: 1.5px solid var(--input-border);
	border-radius: 6px;
	overflow: hidden;
	transition: border-color 0.35s;
}

.kb-check-btn {
	display: flex;
	align-items: center;
	padding: 7px 14px;
	margin-bottom: 0;
	font-size: 0.88rem;
	font-family: inherit;
	font-weight: 500;
	background: var(--input-bg);
	color: var(--hint);
	cursor: pointer;
	transition:
		background 0.25s,
		color 0.25s;
	user-select: none;
}

.kb-check-btn + .kb-check-btn {
	border-left: 1.5px solid var(--input-border);
}

.kb-check-btn:hover {
	background: var(--surface);
	color: var(--text);
}

.kb-check-btn input[type='checkbox'] {
	display: none;
}

.kb-check-btn:has(input:checked),
.kb-check-btn.active {
	background: #ec0016;
	color: #fff;
}

#kb-uf-field,
#kb-v-field {
	grid-column: 3;
	grid-row: 1;
}

#kb-uf-field,
#kb-v-field {
	transition: opacity 0.25s ease;
}

.field.kb-hidden {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

/* ── Tab-Bar: Icons rechts ─────────────────────────── */
.tab-bar-right {
	display: flex;
	align-items: flex-start;
	margin-left: auto;
	gap: 12px;
	padding-top: 14px; /* ← Abstand von oben: höherer Wert = weiter unten */
}

.tab-btn-right {
	margin-right: 0;
	font-size: 1.55rem;
	align-self: auto;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
}

/* ── Einstellungen ────────────────────────────────── */
.settings-section {
	margin-bottom: 28px;
}

.settings-section h2 {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--label);
	margin: 0 0 8px;
}

.toggle-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 400;
	font-size: 0.92rem;
	color: var(--text);
	cursor: pointer;
}

.toggle-label input[type='checkbox'] {
	width: 18px;
	height: 18px;
	accent-color: #ec0016;
	cursor: pointer;
}

.about-info {
	font-size: 0.88rem;
	color: var(--hint);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.about-info strong {
	color: var(--text);
}

/* ── Theme-Toggle (Sonne/Mond) ────────────────────── */
.theme-toggle {
	position: fixed;
	top: 16px;
	right: 16px;
	background: var(--surface);
	border: 1.5px solid var(--input-border);
	border-radius: 6px;
	cursor: pointer;
	font-size: 1.2rem;
	padding: 6px 8px;
	line-height: 1;
	box-shadow: 0 2px 4px var(--shadow);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		background 0.35s,
		border-color 0.35s,
		box-shadow 0.35s;
}

.theme-toggle:hover {
	background: var(--input-bg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
	display: inline-block;
	transition:
		transform 0.4s ease,
		opacity 0.3s ease;
}

.theme-toggle .icon-sun {
	opacity: 1;
	transform: rotate(0deg);
}
.theme-toggle .icon-moon {
	opacity: 0;
	transform: rotate(-90deg);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

html.dark .theme-toggle .icon-sun {
	opacity: 0;
	transform: rotate(90deg);
}
html.dark .theme-toggle .icon-moon {
	opacity: 1;
	transform: rotate(0deg);
}

/* Auto-Dark: wenn System dunkel + kein manueller Override */
@media (prefers-color-scheme: dark) {
	html:not(.light):not(.dark) .theme-toggle .icon-sun {
		opacity: 0;
		transform: rotate(90deg);
	}
	html:not(.light):not(.dark) .theme-toggle .icon-moon {
		opacity: 1;
		transform: rotate(0deg);
	}
}
@media (prefers-color-scheme: light) {
	html:not(.light):not(.dark) .theme-toggle .icon-sun {
		opacity: 1;
		transform: rotate(0deg);
	}
	html:not(.light):not(.dark) .theme-toggle .icon-moon {
		opacity: 0;
		transform: rotate(-90deg);
	}
}

/* ── Settings: Spacing für mehrere Checkboxen ─────── */
.settings-section .toggle-label + .toggle-label {
	margin-top: 10px;
}

.setting-group {
	margin-bottom: 14px;
}

.setting-label {
	display: block;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--label);
	margin-bottom: 6px;
}

.radio-group {
	display: flex;
	gap: 18px;
}

.radio-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
	font-size: 0.92rem;
	color: var(--text);
	cursor: pointer;
}

.radio-label input[type='radio'] {
	width: 18px;
	height: 18px;
	accent-color: #ec0016;
	cursor: pointer;
}

/* ── Tab Slide-Animation ─────────────────────── */
@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(40px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}
@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-40px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}
.tab-panel.slide-right {
	animation: slideInRight 0.28s ease;
}
.tab-panel.slide-left {
	animation: slideInLeft 0.28s ease;
}

/* ── Kreisbogen Modus-Wechsel-Animation ──────── */
@keyframes kbFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.kb-mode-fade {
	animation: kbFadeIn 0.25s ease;
}

/* ── Footer ───────────────────────────────────────── */
footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 16px;
	font-size: 0.78rem;
	color: var(--text);
	opacity: 0.55;
	transition: color 0.35s;
}

footer a {
	color: var(--text);
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}
/* ── Hinweis-Modal (Disclaimer) ────────────────────── */
.disclaimer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
}

.disclaimer-overlay.visible {
	opacity: 1;
	pointer-events: auto;
}

.disclaimer-modal {
	background: var(--surface);
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
	padding: 28px 32px 24px;
	max-width: 480px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
	opacity: 0;
	transform: scale(0.88) translateY(20px);
	transition:
		background 0.35s,
		opacity 0.28s ease,
		transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.disclaimer-overlay.visible .disclaimer-modal {
	opacity: 1;
	transform: scale(1) translateY(0);
}

.disclaimer-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.disclaimer-header h2 {
	margin: 0;
	font-size: 1.1rem;
	color: var(--text);
	transition: color 0.35s;
}

.disclaimer-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	background: #4a9fd4;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	font-weight: bold;
	line-height: 1;
}

.disclaimer-body {
	margin: 0;
	font-size: 0.92rem;
	color: var(--text);
	line-height: 1.6;
	transition: color 0.35s;
}

/* ── Passwort-Modal Eingabefeld ─────────────────────── */
.disclaimer-modal input[type='password'] {
	width: 100%;
	border: 1.5px solid var(--input-border);
	border-radius: 6px;
	background: var(--input-bg);
	color: var(--text);
	padding: 10px 12px;
	font-family: inherit;
	font-size: 1rem;
	outline: none;
	transition:
		border-color 0.15s,
		background 0.35s,
		color 0.35s;
}

.disclaimer-modal input[type='password']:focus {
	border-color: #ec0016;
}

.disclaimer-modal input[type='password']::placeholder {
	color: var(--hint);
	transition: color 0.35s;
}

.disclaimer-pw-err {
	margin: 0;
	color: var(--error-text);
	font-size: 0.88rem;
	display: none;
	transition: color 0.35s;
}

.disclaimer-check-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.88rem;
	color: var(--hint);
	cursor: pointer;
	user-select: none;
}

.disclaimer-check-label input[type='checkbox'] {
	width: 16px;
	height: 16px;
	accent-color: #ec0016;
	cursor: pointer;
	flex-shrink: 0;
}

.disclaimer-btn {
	align-self: flex-end;
	padding: 10px 24px;
	background: #ec0016;
	color: #fff;
	font-weight: 600;
	border-radius: 6px;
	font-family: inherit;
	font-size: 0.95rem;
	border: none;
	cursor: pointer;
	transition: background 0.15s;
}

.disclaimer-btn:hover {
	background: #c20013;
}

/* ══ Markdown-Content (Hilfe-Tab) ══════════════════════════ */
.markdown-content {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 16px;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--text);
	transition: color 0.35s;
}

.markdown-content h1 {
	color: #ec0016;
	font-size: 1.8rem;
	font-weight: 700;
	margin: 32px 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--input-border);
	transition: border-color 0.35s;
}

.markdown-content h1:first-child {
	margin-top: 0;
}

.markdown-content h2 {
	color: #ec0016;
	font-size: 1.4rem;
	font-weight: 700;
	margin: 28px 0 12px;
	padding-bottom: 6px;
	border-bottom: 1.5px solid var(--input-border);
	transition: border-color 0.35s;
}

.markdown-content h3 {
	color: var(--label);
	font-size: 1.15rem;
	font-weight: 600;
	margin: 20px 0 10px;
	transition: color 0.35s;
}

.markdown-content h4 {
	color: var(--label);
	font-size: 1rem;
	font-weight: 600;
	margin: 16px 0 8px;
	transition: color 0.35s;
}

.markdown-content p {
	margin: 0 0 14px;
	color: var(--text);
	transition: color 0.35s;
}

.markdown-content a {
	color: #ec0016;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s;
}

.markdown-content a:hover {
	border-bottom-color: #ec0016;
}

.markdown-content ul,
.markdown-content ol {
	margin: 0 0 16px;
	padding-left: 24px;
	color: var(--text);
	transition: color 0.35s;
}

.markdown-content li {
	margin: 6px 0;
}

.markdown-content ul ul,
.markdown-content ol ol,
.markdown-content ul ol,
.markdown-content ol ul {
	margin: 6px 0;
}

.markdown-content code {
	background: var(--input-bg);
	border: 1px solid var(--input-border);
	border-radius: 4px;
	padding: 2px 6px;
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	font-size: 0.88em;
	color: var(--text);
	transition:
		background 0.35s,
		border-color 0.35s,
		color 0.35s;
}

.markdown-content pre {
	background: var(--input-bg);
	border: 1.5px solid var(--input-border);
	border-radius: 6px;
	padding: 14px 16px;
	margin: 0 0 16px;
	overflow-x: auto;
	transition:
		background 0.35s,
		border-color 0.35s;
}

.markdown-content pre code {
	background: none;
	border: none;
	padding: 0;
	font-size: 0.9em;
}

.markdown-content blockquote {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-left: 4px solid #ec0016;
	background: var(--input-bg);
	color: var(--hint);
	font-style: italic;
	transition:
		background 0.35s,
		color 0.35s;
}

.markdown-content blockquote strong {
	color: var(--text);
	transition: color 0.35s;
}

.markdown-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 20px;
	font-size: 0.9rem;
	overflow: hidden;
	border-radius: 6px;
	border: 1.5px solid var(--input-border);
	transition: border-color 0.35s;
}

.markdown-content thead {
	background: var(--input-bg);
	transition: background 0.35s;
}

.markdown-content th {
	padding: 10px 12px;
	text-align: left;
	font-weight: 600;
	color: var(--label);
	border-bottom: 2px solid var(--input-border);
	transition:
		color 0.35s,
		border-color 0.35s;
}

.markdown-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--input-border);
	color: var(--text);
	transition:
		color 0.35s,
		border-color 0.35s;
}

.markdown-content tbody tr:last-child td {
	border-bottom: none;
}

.markdown-content tbody tr:hover {
	background: var(--input-bg);
	transition: background 0.15s;
}

.markdown-content hr {
	border: none;
	border-top: 2px solid var(--input-border);
	margin: 24px 0;
	transition: border-color 0.35s;
}

.markdown-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 16px 0;
}

.markdown-content .loading-indicator {
	text-align: center;
	padding: 40px 20px;
	color: var(--hint);
	font-size: 1rem;
	transition: color 0.35s;
}

.markdown-content .error-text {
	color: var(--error-text);
	padding: 20px;
	text-align: center;
	transition: color 0.35s;
}

/* Responsive Anpassungen für Markdown */
@media (max-width: 620px) {
	.markdown-content {
		padding: 0 8px;
		font-size: 0.9rem;
	}

	.markdown-content h1 {
		font-size: 1.5rem;
	}

	.markdown-content h2 {
		font-size: 1.25rem;
	}

	.markdown-content h3 {
		font-size: 1.1rem;
	}

	.markdown-content table {
		font-size: 0.85rem;
		display: block;
		overflow-x: auto;
	}

	.markdown-content th,
	.markdown-content td {
		padding: 8px 10px;
	}
}
