/* Regnemer Reklamationsformular */
.rrk {
	--rrk-blue: #17468b;
	--rrk-blue-dark: #0f3267;
	--rrk-blue-soft: #eef3fb;
	--rrk-text: #1a2233;
	--rrk-muted: #5b6577;
	--rrk-border: #c5cddb;
	--rrk-red: #b3261e;
	--rrk-red-soft: #fdecea;
	--rrk-amber-soft: #fff5d6;
	--rrk-amber: #8a5a00;
	--rrk-green: #1c7c3c;
	--rrk-progress: 20%;
	max-width: 860px;
	margin: 0 auto;
	color: var(--rrk-text);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}
.rrk *, .rrk *::before, .rrk *::after { box-sizing: border-box; }
.rrk [hidden] { display: none !important; }
.rrk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fortschritt */
.rrk .rrk-progress {
	display: none;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	counter-reset: none;
}
.rrk .rrk-progress__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	position: relative;
	font-size: 14px;
	color: var(--rrk-muted);
	text-align: center;
}
.rrk .rrk-progress__item::before { content: none; }
.rrk .rrk-progress__item + .rrk-progress__item::after {
	content: "";
	position: absolute;
	top: 17px;
	right: calc(50% + 22px);
	width: calc(100% - 44px);
	height: 2px;
	background: var(--rrk-border);
}
.rrk .rrk-progress__item.is-done::after,
.rrk .rrk-progress__item.is-current::after { background: var(--rrk-blue); }
.rrk .rrk-progress__num {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid var(--rrk-border);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--rrk-muted);
}
.rrk .is-current .rrk-progress__num { border-color: var(--rrk-blue); background: var(--rrk-blue); color: #fff; }
.rrk .is-done .rrk-progress__num { border-color: var(--rrk-blue); color: var(--rrk-blue); background: var(--rrk-blue-soft); }
.rrk .is-current .rrk-progress__label { color: var(--rrk-blue); font-weight: 700; }
.rrk .rrk-progress__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: none;
	color: inherit;
	font: inherit;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	opacity: 1;
	cursor: default;
}
.rrk .rrk-progress__btn:hover, .rrk .rrk-progress__btn:focus { background: none; color: inherit; }
.rrk .is-done .rrk-progress__btn { cursor: pointer; }
.rrk .is-done .rrk-progress__btn:hover .rrk-progress__label { color: var(--rrk-blue); text-decoration: underline; }
.rrk .rrk-progress__btn:focus-visible { outline: 3px solid rgba(23, 70, 139, .35); outline-offset: 4px; }
.rrk .rrk-progress__mobile {
	margin: 0 0 16px;
	padding: 0 0 10px;
	font-weight: 700;
	color: var(--rrk-blue);
	background: linear-gradient(var(--rrk-blue), var(--rrk-blue)) left bottom / var(--rrk-progress) 4px no-repeat, linear-gradient(var(--rrk-border), var(--rrk-border)) left bottom / 100% 4px no-repeat;
}

/* Schritte */
.rrk .rrk-form { margin: 0; padding: 0; }
.rrk .rrk-step {
	border: 1px solid var(--rrk-border);
	border-radius: 10px;
	background: #fff;
	margin: 0;
	padding: 20px 16px;
	min-width: 0;
}
.rrk .rrk-step__title {
	float: left;
	width: 100%;
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--rrk-blue);
}
.rrk .rrk-step__title:focus { outline: none; }
.rrk .rrk-step__count { display: none; }
.rrk .rrk-step__intro { clear: both; margin: 0 0 18px; color: var(--rrk-muted); }
.rrk .rrk-reqnote { white-space: nowrap; }
.rrk .rrk-subtitle { margin: 26px 0 10px; font-size: 18px; font-weight: 700; color: var(--rrk-blue); }

/* Felder */
.rrk .rrk-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 0 16px; }
.rrk .rrk-field { margin: 0; min-width: 0; }
.rrk .rrk-label { display: block; margin: 0 0 6px; padding: 0; font-size: 15px; font-weight: 600; color: var(--rrk-text); }
.rrk .rrk-req { color: var(--rrk-red); font-weight: 700; }
.rrk .rrk-opt { font-weight: 400; font-size: 13px; color: var(--rrk-muted); }
.rrk .rrk-input {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--rrk-border);
	border-radius: 6px;
	background: #fff;
	color: var(--rrk-text);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.rrk textarea.rrk-input { min-height: 140px; resize: vertical; }
.rrk .rrk-input:focus { outline: 3px solid rgba(23, 70, 139, .28); outline-offset: 0; border-color: var(--rrk-blue); }
.rrk .rrk-hint { margin: 6px 0 0; font-size: 13px; color: var(--rrk-muted); }
.rrk .rrk-deadline { margin: 8px 0 0; }
.rrk .rrk-error { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--rrk-red); }
.rrk .rrk-error:empty { display: none; }
.rrk .rrk-invalid .rrk-input { border-color: var(--rrk-red); background: var(--rrk-red-soft); }

/* Hinweise */
.rrk .rrk-note {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-left: 4px solid var(--rrk-blue);
	border-radius: 6px;
	background: var(--rrk-blue-soft);
	font-size: 14px;
}
.rrk .rrk-note--warn { border-left-color: #d99a00; background: var(--rrk-amber-soft); }

/* Ja / Nein */
.rrk .rrk-choice { margin: 22px 0 14px; padding-top: 18px; border-top: 1px solid #e3e8f0; }
.rrk .rrk-step__intro + .rrk-choice { border-top: 0; padding-top: 0; margin-top: 0; }
.rrk .rrk-choice .rrk-label { font-size: 17px; }
.rrk .rrk-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 320px; }
.rrk .rrk-seg__opt { position: relative; display: block; margin: 0; cursor: pointer; }
.rrk .rrk-seg__opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rrk .rrk-seg__opt span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border: 2px solid var(--rrk-border);
	border-radius: 6px;
	background: #fff;
	font-weight: 700;
	color: var(--rrk-text);
}
.rrk .rrk-seg__opt input:checked + span { border-color: var(--rrk-blue); background: var(--rrk-blue); color: #fff; }
.rrk .rrk-seg__opt input:focus-visible + span { outline: 3px solid rgba(23, 70, 139, .35); outline-offset: 2px; }
.rrk .rrk-invalid .rrk-seg__opt span { border-color: var(--rrk-red); }
.rrk .rrk-cond { margin: 0 0 8px; padding: 16px 14px 2px; border: 1px solid #dbe3f0; border-radius: 8px; background: #f8fafd; }

/* Uploads */
.rrk .rrk-upload { padding: 14px; border: 2px dashed var(--rrk-border); border-radius: 8px; background: #fff; }
.rrk .rrk-upload--done { border-style: solid; border-color: var(--rrk-green); }
.rrk .rrk-upload.rrk-invalid { border-color: var(--rrk-red); background: var(--rrk-red-soft); }
.rrk .rrk-upload .rrk-hint { margin: 0 0 10px; }
.rrk .rrk-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.rrk .rrk-files { list-style: none; margin: 10px 0 0; padding: 0; }
.rrk .rrk-files:empty { display: none; }
.rrk .rrk-files li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0 0 6px;
	padding: 8px 10px;
	border-radius: 6px;
	background: #edf7f0;
	font-size: 14px;
}
.rrk .rrk-files li::before { content: none; }
.rrk .rrk-files__name { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.rrk .rrk-files__size { color: var(--rrk-muted); }
.rrk .rrk-files__remove,
.rrk .rrk-summary__edit {
	min-height: 44px;
	margin: 0;
	padding: 8px 12px;
	border: 0;
	border-radius: 4px;
	background: none;
	color: var(--rrk-blue);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	box-shadow: none;
}
.rrk .rrk-files__remove { color: var(--rrk-red); }

/* Buttons */
.rrk .rrk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 10px 26px;
	border: 2px solid var(--rrk-blue);
	border-radius: 6px;
	background: var(--rrk-blue);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none;
}
.rrk .rrk-btn:hover, .rrk .rrk-btn:focus { background: var(--rrk-blue-dark); border-color: var(--rrk-blue-dark); color: #fff; }
.rrk .rrk-btn:focus-visible, .rrk .rrk-btn--upload:focus-within { outline: 3px solid rgba(23, 70, 139, .35); outline-offset: 2px; }
.rrk .rrk-btn[disabled] { opacity: .55; cursor: not-allowed; }
.rrk .rrk-btn--ghost, .rrk .rrk-btn--upload { background: #fff; color: var(--rrk-blue); }
.rrk .rrk-btn--ghost:hover, .rrk .rrk-btn--ghost:focus, .rrk .rrk-btn--upload:hover { background: var(--rrk-blue-soft); color: var(--rrk-blue-dark); border-color: var(--rrk-blue-dark); }
.rrk .rrk-btn--upload { width: 100%; position: relative; }
.rrk .rrk-nav { display: flex; flex-direction: column-reverse; gap: 10px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #e3e8f0; }
.rrk .rrk-nav > span { display: none; }

/* Zusammenfassung */
.rrk .rrk-summary__sec { margin: 0 0 12px; padding: 12px 14px; border: 1px solid #dbe3f0; border-radius: 8px; background: #f8fafd; }
.rrk .rrk-summary__head h5 { margin: 0; font-size: 16px; font-weight: 700; color: var(--rrk-blue); }
.rrk .rrk-summary dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; font-size: 14px; }
.rrk .rrk-summary dt { margin: 6px 0 0; font-weight: 400; color: var(--rrk-muted); }
.rrk .rrk-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }

/* Zustimmung, Versand, Erfolg */
.rrk .rrk-consent { margin: 20px 0 0; padding: 14px; border: 1px solid var(--rrk-border); border-radius: 8px; }
.rrk .rrk-consent.rrk-invalid { border-color: var(--rrk-red); background: var(--rrk-red-soft); }
.rrk .rrk-check { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 15px; font-weight: 400; cursor: pointer; }
.rrk .rrk-check input { flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--rrk-blue); }
.rrk .rrk-check a { color: var(--rrk-blue); text-decoration: underline; }
.rrk .rrk-sending { margin: 18px 0 0; font-weight: 600; color: var(--rrk-blue); }
.rrk .rrk-sending p { margin: 8px 0 0; }
.rrk .rrk-bar { height: 10px; border-radius: 5px; background: #dbe3f0; overflow: hidden; }
.rrk .rrk-bar__fill { height: 100%; width: 0; background: var(--rrk-blue); transition: width .2s ease; }
.rrk .rrk-formerror { margin: 18px 0 0; padding: 12px 14px; border-left: 4px solid var(--rrk-red); border-radius: 6px; background: var(--rrk-red-soft); color: var(--rrk-red); font-weight: 600; }
.rrk .rrk-success { padding: 24px 18px; border: 2px solid var(--rrk-green); border-radius: 10px; background: #edf7f0; }
.rrk .rrk-success:focus { outline: none; }
.rrk .rrk-success h3 { margin: 0 0 12px; font-size: 22px; color: var(--rrk-green); }
.rrk .rrk-success p { margin: 0 0 10px; }
.rrk .rrk-success strong { font-size: 20px; letter-spacing: .5px; }
.rrk .rrk-idline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.rrk .rrk-idline span { flex: 1 0 100%; }
.rrk .rrk-idline strong { white-space: nowrap; font-size: 22px; }
.rrk .rrk-copy { min-height: 44px; padding: 6px 16px; font-size: 15px; }

.rrk .rrk-teaser { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--rrk-border); border-radius: 8px; background: #f8fafd; }
.rrk .rrk-teaser p { margin: 0; font-size: 15px; }
.rrk .rrk-appeal .rrk-subtitle { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e3e8f0; }
.rrk .rrk-appeal .rrk-consent { margin-top: 12px; }
.rrk .rrk-label-box { margin: 16px 0; padding: 16px; border: 2px solid var(--rrk-blue); border-radius: 8px; background: #fff; }
.rrk .rrk-label-box h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--rrk-blue); }
.rrk .rrk-label-box strong { font-size: inherit; letter-spacing: 0; }
.rrk .rrk-label-box__btns { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.rrk .rrk-consent + .rrk-sending, .rrk .rrk-choice + .rrk-consent { margin-top: 16px; }

/* Rot markierte Auswahl, wenn die gewählte Antwort das Absenden verhindert */
.rrk .rrk-choice--blocked .rrk-seg__opt span { border-color: var(--rrk-border); }
.rrk .rrk-choice--blocked .rrk-seg__opt input:checked + span { border-color: var(--rrk-red); background: var(--rrk-red); color: #fff; }

/* Aufklappbare Bereiche */
.rrk .rrk-details { margin: 0 0 16px; border: 1px solid #dbe3f0; border-radius: 8px; background: #f8fafd; }
.rrk .rrk-details > summary,
.rrk .rrk-summary__head {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	font-weight: 700;
	color: var(--rrk-blue);
	cursor: pointer;
	list-style: none;
}
.rrk .rrk-details > summary::-webkit-details-marker,
.rrk .rrk-summary__head::-webkit-details-marker { display: none; }
.rrk .rrk-details > summary::before,
.rrk .rrk-summary__head::before {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
}
.rrk .rrk-details[open] > summary::before,
.rrk .rrk-summary__sec[open] > .rrk-summary__head::before { transform: rotate(45deg); }
.rrk .rrk-details > summary:focus-visible,
.rrk .rrk-summary__head:focus-visible { outline: 3px solid rgba(23, 70, 139, .35); outline-offset: 2px; border-radius: 8px; }
.rrk .rrk-details > .rrk-hint { margin: 0; padding: 0 14px 10px; }
.rrk .rrk-details > .rrk-grid { margin: 0; padding: 0 14px 14px; }
.rrk .rrk-details--inline { margin: 6px 0 0; border: 0; background: none; }
.rrk .rrk-details--inline > summary { min-height: 44px; padding: 8px 0; font-weight: 600; color: var(--rrk-text); text-decoration: underline; }
.rrk .rrk-details--inline > p { margin: 0 0 4px; }
.rrk .rrk-summary__sec { padding: 0; }
.rrk .rrk-summary__title { flex: 0 0 auto; }
.rrk .rrk-summary__preview { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 400; color: var(--rrk-muted); }
.rrk .rrk-summary__sec[open] .rrk-summary__preview { visibility: hidden; }
.rrk .rrk-summary__sec > dl { padding: 0 14px 6px; }
.rrk .rrk-summary__sec > .rrk-summary__edit { margin: 0 2px 6px; }

/* Textschaltflächen */
.rrk .rrk-linkbtn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 8px 4px;
	border: 0;
	background: none;
	color: var(--rrk-blue);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}
.rrk .rrk-linkbtn:hover, .rrk .rrk-linkbtn:focus { background: none; color: var(--rrk-blue-dark); }
.rrk .rrk-linkbtn:focus-visible { outline: 3px solid rgba(23, 70, 139, .35); outline-offset: 2px; border-radius: 4px; }
.rrk .rrk-backlink { margin: 0 0 8px; }

@media (min-width: 640px) {
	.rrk .rrk-label-box__btns { flex-direction: row; }
	.rrk .rrk-teaser { flex-direction: row; align-items: center; justify-content: space-between; }
	.rrk .rrk-teaser .rrk-btn { flex: 0 0 auto; }
	.rrk .rrk-progress { display: flex; }
	.rrk .rrk-progress__mobile { display: none; }
	.rrk .rrk-step { padding: 28px; }
	.rrk .rrk-grid { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
	.rrk .rrk-field--wide { grid-column: 1 / -1; }
	.rrk .rrk-nav { flex-direction: row; justify-content: space-between; }
	.rrk .rrk-nav > span { display: block; }
	.rrk .rrk-btn--upload { width: auto; }
	.rrk .rrk-summary dl { grid-template-columns: minmax(160px, 38%) 1fr; gap: 4px 14px; }
	.rrk .rrk-summary dt { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.rrk .rrk-bar__fill { transition: none; }
}
