/* Ruckzuck-Seiten – Generator und Kunden-Dashboard (Hauptseite) */

.rz-app {
	--rz-ink: #17211D;
	--rz-muted: #4A5651;
	--rz-green: #1F5E4A;
	--rz-green-dark: #154434;
	--rz-green-tint: #E7F0EC;
	--rz-ochre: #E3A13B;
	--rz-ochre-tint: #FBF1DF;
	--rz-ochre-ink: #6B4510;
	--rz-line: #DCE3DF;
	--rz-field: #B9C6C0;
	--rz-bg: #F6F8F7;
	color: var(--rz-ink);
	font-size: 16px;
	line-height: 1.5;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}
.rz-app *, .rz-app *::before, .rz-app *::after { box-sizing: inherit; }
.rz-app h2 { font-size: 30px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.02em; }
.rz-app h3 { font-size: 20px; margin: 0 0 8px; }
.rz-muted { color: var(--rz-muted); }
.rz-card { background: #fff; border: 1px solid var(--rz-line); border-radius: 20px; padding: 32px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.rz-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 0;
	background: var(--rz-green); color: #fff; font: inherit; font-weight: 700;
	text-decoration: none; cursor: pointer;
}
.rz-btn:hover { background: var(--rz-green-dark); color: #fff; }
.rz-btn--ghost { background: #fff; color: var(--rz-ink); border: 1.5px solid var(--rz-field); }
.rz-btn--ghost:hover { background: var(--rz-bg); color: var(--rz-ink); }
.rz-btn--text { background: transparent; color: var(--rz-muted); }
.rz-btn--text:hover { background: transparent; color: var(--rz-ink); }
.rz-btn--small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.rz-btn--warn { background: var(--rz-ochre-tint); color: var(--rz-ochre-ink); }
.rz-btn--warn:hover { background: #f5e2bf; color: var(--rz-ochre-ink); }
.rz-btn[disabled] { opacity: .6; cursor: progress; }
.rz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Schritte */
.rz-steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rz-steps li { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--rz-bg); color: var(--rz-muted); }
.rz-steps li.is-done { background: var(--rz-green-tint); color: var(--rz-green-dark); }
.rz-steps li.is-current { background: var(--rz-green); color: #fff; }

/* Formular */
.rz-gen__grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.rz-gen__form { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.rz-pane { display: flex; flex-direction: column; gap: 18px; }
.rz-pane[hidden] { display: none; }
.rz-field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; border: 0; margin: 0; padding: 0; }
.rz-field legend { margin-bottom: 10px; padding: 0; }
.rz-field input, .rz-field textarea {
	font: inherit; font-weight: 400; padding: 13px 15px; border: 1.5px solid var(--rz-field); border-radius: 12px; background: #fff; color: var(--rz-ink); width: 100%;
}
.rz-field input:focus, .rz-field textarea:focus { outline: 3px solid var(--rz-green-tint); border-color: var(--rz-green); }
.rz-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.rz-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.rz-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rz-green); flex: none; }
.rz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rz-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.rz-pill input, .rz-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rz-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--rz-field); background: #fff; font-weight: 600; cursor: pointer; }
.rz-pill input:checked + span { border-color: var(--rz-green); background: var(--rz-green-tint); color: var(--rz-green-dark); }
.rz-pill input:focus-visible + span, .rz-swatch input:focus-visible + span { outline: 3px solid var(--rz-ochre); outline-offset: 2px; }
.rz-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.rz-swatch span:first-of-type { display: block; width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--rz-field); cursor: pointer; }
.rz-swatch input:checked + span { box-shadow: 0 0 0 3px var(--rz-ink); }

.rz-nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rz-line); padding-top: 20px; }
.rz-nav [hidden] { display: none; }
.rz-error { background: #FBE7E3; color: #8E2B1C; border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.rz-error a { color: #8E2B1C; }
.rz-success { background: var(--rz-green-tint); color: var(--rz-green-dark); border-radius: 12px; padding: 12px 16px; font-weight: 600; }

.rz-loading { text-align: center; padding: 40px 0; }
.rz-loading__text { font-size: 20px; font-weight: 700; margin: 16px 0 4px; }
.rz-spinner { display: inline-block; width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--rz-green-tint); border-top-color: var(--rz-green); animation: rz-spin 1s linear infinite; }
@keyframes rz-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rz-spinner { animation-duration: 3s; } }

/* Vorschau */
.rz-preview { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rz-preview__label { font-size: 14px; font-weight: 600; }
.rz-browser { background: #fff; border: 1px solid var(--rz-line); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(23, 33, 29, .08); }
.rz-browser__bar { display: flex; gap: 6px; align-items: center; padding: 12px 16px; background: var(--rz-bg); border-bottom: 1px solid var(--rz-line); }
.rz-browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #C9D3CE; }
.rz-browser__bar em { margin-left: 12px; font-size: 12px; font-style: normal; color: var(--rz-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz-preview__hero { background: var(--rz-green); color: #fff; padding: 40px 28px; display: flex; flex-direction: column; gap: 10px; transition: background .2s, border-radius .2s; }
.rz-preview__branche { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.rz-preview__title { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rz-preview__hero.is-serif .rz-preview__title { font-family: Georgia, 'Times New Roman', serif; }
.rz-preview__blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 24px 28px; }
.rz-preview__blocks span { height: 88px; border: 1px solid var(--rz-line); border-radius: 12px; background: linear-gradient(var(--rz-dot, #1F5E4A), var(--rz-dot, #1F5E4A)) 14px 14px / 24px 24px no-repeat; }

/* Dashboard */
.rz-dash { display: flex; flex-direction: column; gap: 24px; }
.rz-dash__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.rz-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--rz-bg); color: var(--rz-muted); }
.rz-status--live { background: var(--rz-green-tint); color: var(--rz-green-dark); }
.rz-status--pending, .rz-status--approved { background: var(--rz-ochre-tint); color: var(--rz-ochre-ink); }
.rz-status--rejected, .rz-status--suspended { background: #FBE7E3; color: #8E2B1C; }
.rz-site { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.rz-site__url { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.rz-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.rz-cols > .rz-col-main { flex: 2 1 460px; min-width: 0; }
.rz-cols > .rz-col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.rz-proposal { border: 1.5px solid var(--rz-ochre); background: #FFFBF3; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.rz-proposal__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--rz-ochre-ink); }
.rz-log { list-style: none; margin: 12px 0 0; padding: 0; }
.rz-log li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 0; border-top: 1px solid var(--rz-line); font-size: 15px; }
.rz-module { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rz-line); }
.rz-module small { display: block; color: var(--rz-muted); }
.rz-switch { position: relative; width: 52px; height: 30px; flex: none; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: var(--rz-field); }
.rz-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .15s; }
.rz-switch[aria-checked="true"] { background: var(--rz-green); }
.rz-switch[aria-checked="true"]::after { left: 25px; }
.rz-switch[disabled] { opacity: .5; cursor: not-allowed; }
.rz-inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 10px; }
.rz-inline-form .rz-field { flex: 1 1 220px; }
.rz-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--rz-ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; z-index: 9999; }
