/* Rudolph Terminkalender – Frontend
   Farben zentral über CSS-Variablen. An dein Theme anpassbar. */
.rtk {
	--rtk-accent: #1e8e3e;      /* Akzent / Buttons (WhatsApp-Grün) */
	--rtk-accent-ink: #ffffff;
	--rtk-ink: #1b1714;         /* Text */
	--rtk-muted: #6b6560;       /* gedämpfter Text */
	--rtk-line: #e4ded7;        /* Rahmen */
	--rtk-surface: #ffffff;     /* Kartenfläche */
	--rtk-surface-2: #f7f4ef;   /* Flächen-Hintergrund */
	--rtk-radius: 14px;
	--rtk-gold: #b98a2e;        /* Preis-/Dauerakzent */

	max-width: 720px;
	margin: 0 auto;
	color: var(--rtk-ink);
	font-family: inherit;
	line-height: 1.5;
}
.rtk *, .rtk *::before, .rtk *::after { box-sizing: border-box; }

.rtk-step { animation: rtk-fade .25s ease; }
@keyframes rtk-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.rtk-step__title {
	display: flex; align-items: center; gap: .6rem;
	font-size: 1.25rem; margin: 0 0 1rem;
}
.rtk-step__num {
	display: inline-grid; place-content: center;
	width: 1.7em; height: 1.7em; border-radius: 50%;
	background: var(--rtk-accent); color: var(--rtk-accent-ink);
	font-size: .85rem; font-weight: 700;
}

/* Kategorien + Leistungen */
.rtk-cat { margin-bottom: 1.4rem; }
.rtk-cat__title {
	font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
	color: var(--rtk-muted); margin: 0 0 .5rem; font-weight: 700;
}
.rtk-service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rtk-service {
	width: 100%; text-align: left; cursor: pointer;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .85rem 1rem; border: 1px solid var(--rtk-line);
	border-radius: var(--rtk-radius); background: var(--rtk-surface);
	transition: border-color .15s, box-shadow .15s, transform .15s;
	font: inherit; color: inherit;
}
.rtk-service:hover, .rtk-service:focus-visible {
	border-color: var(--rtk-accent);
	box-shadow: 0 2px 10px rgba(0,0,0,.06); outline: none;
}
.rtk-service__name { display: block; font-weight: 600; }
.rtk-service__desc { display: block; font-size: .82rem; color: var(--rtk-muted); margin-top: .15rem; }
.rtk-service__meta { flex: none; text-align: right; white-space: nowrap; }
.rtk-service__dur { display: block; font-size: .82rem; color: var(--rtk-muted); }
.rtk-service__price { display: block; font-weight: 700; color: var(--rtk-gold); }

/* Felder */
.rtk-field { margin-bottom: 1rem; }
.rtk-field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }
.rtk-field input[type="text"],
.rtk-field input[type="tel"],
.rtk-field input[type="email"],
.rtk-field input[type="date"] {
	width: 100%; padding: .7rem .8rem; font: inherit;
	border: 1px solid var(--rtk-line); border-radius: 10px; background: var(--rtk-surface);
	color: var(--rtk-ink);
}
.rtk-field input:focus { outline: 2px solid var(--rtk-accent); outline-offset: 1px; border-color: var(--rtk-accent); }
.rtk-field--check label { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; font-size: .88rem; }
.rtk-field--check input { margin-top: .2rem; flex: none; }
.rtk-field--check a { color: var(--rtk-accent); }

/* Slots */
.rtk-slots { margin-top: 1rem; }
.rtk-hint { color: var(--rtk-muted); margin: .3rem 0; }
.rtk-hint--warn { color: #b3391f; }
.rtk-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; margin-top: .5rem; }
.rtk-slot {
	padding: .6rem .4rem; border: 1px solid var(--rtk-line); border-radius: 10px;
	background: var(--rtk-surface); cursor: pointer; font: inherit; font-weight: 600;
	transition: background .15s, border-color .15s, color .15s;
}
.rtk-slot:hover, .rtk-slot:focus-visible {
	background: var(--rtk-accent); color: var(--rtk-accent-ink); border-color: var(--rtk-accent); outline: none;
}

/* Buttons */
.rtk-submit {
	width: 100%; padding: .9rem 1rem; border: 0; border-radius: 12px;
	background: var(--rtk-accent); color: var(--rtk-accent-ink);
	font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer;
	transition: filter .15s;
}
.rtk-submit:hover { filter: brightness(1.05); }
.rtk-submit:disabled { opacity: .7; cursor: default; }
.rtk-back, .rtk-restart {
	background: none; border: 0; color: var(--rtk-muted); cursor: pointer;
	font: inherit; padding: .2rem 0; margin-bottom: .8rem; text-decoration: underline;
}
.rtk-restart { margin-top: 1rem; text-decoration: none; border: 1px solid var(--rtk-line); border-radius: 10px; padding: .6rem 1rem; }

.rtk-chosen {
	background: var(--rtk-surface-2); border: 1px solid var(--rtk-line);
	border-radius: 10px; padding: .6rem .8rem; font-weight: 600; margin: 0 0 1rem;
}
.rtk-error {
	margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px;
	background: #fdecea; color: #b3391f; border: 1px solid #f5c6c0;
}
.rtk-empty { color: var(--rtk-muted); }

/* Bestätigung */
.rtk-done { text-align: center; padding: 1.5rem 1rem; }
.rtk-done__icon {
	width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
	background: var(--rtk-accent); color: #fff; font-size: 2rem;
	display: grid; place-content: center;
}
.rtk-done h3 { font-size: 1.4rem; margin: 0 0 .5rem; }

@media (max-width: 480px) {
	.rtk-service { flex-direction: column; align-items: flex-start; gap: .4rem; }
	.rtk-service__meta { text-align: left; display: flex; gap: .8rem; }
}

/* Dunkles Theme (optional aktivierbar durch Body-Klasse oder prefers-color-scheme) */
@media (prefers-color-scheme: dark) {
	.rtk {
		--rtk-ink: #f3efe9; --rtk-muted: #a9a29a; --rtk-line: #34302b;
		--rtk-surface: #1e1b18; --rtk-surface-2: #26221e;
	}
}
