/* APC Reviews — Frontend
   Farben aus der bestehenden APC-Gestaltung:
   Gold #e9c86a als Rahmen, Magenta #e0007a als Akzent, weiße Kacheln. */

.apc-reviews {
	--apc-gold: #e9c86a;
	--apc-magenta: #e0007a;
	--apc-ink: #1c1c1c;
	--apc-muted: #6b6b6b;
	--apc-line: #ece6d8;
	--apc-surface: #ffffff;

	margin: 2.5rem 0;
	color: var(--apc-ink);
}

/* ---------------------------------------------------------------- Sterne */

.apc-stars {
	position: relative;
	display: inline-block;
	line-height: 1;
	font-size: 1.05rem;
	letter-spacing: 0.12em;
	white-space: nowrap;
}

.apc-stars__empty {
	color: #dcd6c8;
}

.apc-stars__full {
	position: absolute;
	inset: 0;
	overflow: hidden;
	color: var(--apc-gold);
}

/* ---------------------------------------------------------------- Siegel */

.apc-badge {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
	background: var(--apc-surface);
	border: 1px solid var(--apc-gold);
	border-radius: 4px;
	overflow: hidden;
}

.apc-badge__score {
	flex: 0 0 190px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.45rem;
	padding: 1.75rem 1.25rem;
	border-right: 1px solid var(--apc-line);
	background: #fcfaf5;
}

.apc-badge__value {
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.apc-badge__count {
	font-size: 0.8rem;
	color: var(--apc-muted);
}

.apc-badge__body {
	flex: 1 1 320px;
	padding: 1.5rem 1.75rem;
}

.apc-badge__headline {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	line-height: 1.3;
	position: relative;
	padding-left: 0.85rem;
}

.apc-badge__headline::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	bottom: 0.15em;
	width: 3px;
	background: var(--apc-magenta);
}

/* ------------------------------------------------------ Quellen-Aufstellung */

.apc-sources {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.apc-sources__item {
	border-top: 1px solid var(--apc-line);
}

.apc-sources__item:first-child {
	border-top: 0;
}

.apc-sources__row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: baseline;
	gap: 1rem;
	padding: 0.6rem 0;
	text-decoration: none;
	color: inherit;
}

a.apc-sources__row:hover .apc-sources__label {
	color: var(--apc-magenta);
}

.apc-sources__label {
	font-weight: 600;
}

.apc-sources__rating {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.apc-sources__count {
	font-size: 0.8rem;
	color: var(--apc-muted);
	font-variant-numeric: tabular-nums;
	min-width: 3ch;
	text-align: right;
}

.apc-sources__count::after {
	content: " Bew.";
}

.apc-sources__item.is-excluded .apc-sources__rating,
.apc-sources__item.is-excluded .apc-sources__count {
	color: var(--apc-muted);
	font-weight: 400;
}

.apc-sources__note {
	display: block;
	font-size: 0.72rem;
	color: var(--apc-muted);
	font-weight: 400;
	margin-top: 0.1rem;
}

.apc-attribution {
	margin: 0.6rem 0 0;
	font-size: 0.75rem;
	color: var(--apc-muted);
}

/* ------------------------------------------------------------ Kachelliste */

.apc-list {
	list-style: none;
	margin: 1.75rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--apc-columns, 3), minmax(0, 1fr));
	gap: 1.1rem;
}

.apc-card {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	background: var(--apc-surface);
	border: 1px solid var(--apc-line);
	border-top: 3px solid var(--apc-gold);
	border-radius: 3px;
	padding: 1.25rem 1.35rem;
}

.apc-card__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.apc-card__text {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	max-width: 62ch;
}

.apc-card__meta {
	margin-top: auto;
	padding-top: 0.6rem;
	border-top: 1px solid var(--apc-line);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	font-size: 0.8rem;
}

.apc-card__author {
	font-weight: 600;
}

.apc-card__source,
.apc-card__source a {
	color: var(--apc-muted);
	text-decoration: none;
}

.apc-card__source a:hover {
	color: var(--apc-magenta);
	text-decoration: underline;
}

.apc-reviews a:focus-visible {
	outline: 2px solid var(--apc-magenta);
	outline-offset: 2px;
}

/* ----------------------------------------------------------------- Mobil */

@media (max-width: 860px) {
	.apc-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.apc-badge__score {
		flex-basis: 100%;
		border-right: 0;
		border-bottom: 1px solid var(--apc-line);
	}

	.apc-badge__body {
		padding: 1.25rem;
	}

	.apc-list {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------ Aufklapp-Schalter */

.apc-card__toggle {
	align-self: flex-start;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 0.82rem;
	color: var(--apc-magenta, #e0007a);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.apc-card__toggle:hover {
	text-decoration: none;
}

/* ------------------------------------------------------------- Formular */

.apc-form {
	--apc-gold: #e9c86a;
	--apc-magenta: #e0007a;
	--apc-ink: #1c1c1c;
	--apc-muted: #6b6b6b;
	--apc-line: #ece6d8;

	max-width: 640px;
	margin: 2rem 0;
	color: var(--apc-ink);
}

.apc-form__subject {
	margin: 0 0 1.5rem;
	padding-left: 0.85rem;
	border-left: 3px solid var(--apc-magenta);
	font-size: 1.05rem;
}

.apc-form__error {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	border-left: 3px solid #c0392b;
	background: #fdf3f2;
	font-size: 0.92rem;
}

.apc-form--done p {
	margin: 0;
	padding: 1.25rem 1.5rem;
	background: #fff;
	border: 1px solid var(--apc-gold);
	border-radius: 4px;
}

/* Kriterien */

.apc-form__criteria {
	display: grid;
	gap: 0;
	margin-bottom: 1.75rem;
	border-top: 1px solid var(--apc-line);
}

.apc-form__criterion {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0;
	padding: 0.85rem 0;
	border: 0;
	border-bottom: 1px solid var(--apc-line);
}

.apc-form__criterion legend {
	float: left;
	padding: 0;
	font-weight: 600;
	color: var(--apc-ink);
}

/* Das Theme soll Beschriftungen im Widget nicht einfaerben. */
.apc-form label,
.apc-form legend,
.apc-form p,
.apc-reviews p,
.apc-reviews blockquote,
.apc-reviews li {
	color: var(--apc-ink);
}

/* Sterne: in umgekehrter Reihenfolge im DOM, damit ~ den Hover nach links füllt */

.apc-rate {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-start;
}

.apc-rate input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.apc-rate label {
	cursor: pointer;
	padding: 0.3rem 0.18em;
	font-size: 2.1rem;
	line-height: 1;
	color: #b9ae94;
	transition: color 0.12s, transform 0.08s;
}

.apc-rate label:active {
	transform: scale(0.92);
}

.apc-rate label:hover,
.apc-rate label:hover ~ label,
.apc-rate input:checked ~ label {
	color: var(--apc-gold);
}

.apc-rate input:focus-visible + label {
	outline: 2px solid var(--apc-magenta);
	outline-offset: 2px;
}

/* Felder */

.apc-form__block {
	margin: 0 0 1.5rem;
	padding: 0;
	border: 0;
}

.apc-form__block legend {
	padding: 0;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.apc-form__block--privacy {
	padding: 1.1rem 1.25rem;
	background: #fcfaf5;
	border: 1px solid var(--apc-line);
	border-left: 3px solid var(--apc-gold);
	border-radius: 3px;
}

.apc-form__hint {
	margin: 0 0 0.7rem;
	font-size: 0.85rem;
	color: var(--apc-muted);
}

.apc-form__inline {
	display: block;
	margin-bottom: 0.4rem;
	cursor: pointer;
}

.apc-form__block:not(.apc-form__block--privacy) .apc-form__inline {
	display: inline-block;
	margin-right: 1.5rem;
}

.apc-form__field {
	margin: 0 0 1.25rem;
}

.apc-form__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.apc-form__optional {
	font-weight: 400;
	font-size: 0.82rem;
	color: var(--apc-muted);
}

.apc-form input[type="text"],
.apc-form input[type="email"],
.apc-form input[type="number"],
.apc-form textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid #cfc7b5;
	border-radius: 3px;
}

.apc-form input:focus,
.apc-form textarea:focus {
	outline: 2px solid var(--apc-magenta);
	outline-offset: 1px;
	border-color: var(--apc-magenta);
}

.apc-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1rem;
}

.apc-form__field--consent label {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-weight: 400;
	font-size: 0.9rem;
	line-height: 1.5;
	cursor: pointer;
}

.apc-form__field--consent input {
	margin-top: 0.25rem;
	flex: 0 0 auto;
}

/* Honeypot: für Menschen unsichtbar, aber nicht display:none,
   damit Bots das Feld ausfüllen. */
.apc-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.apc-form__submit button {
	padding: 0.85rem 2rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--apc-magenta);
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}

.apc-form__submit button:hover {
	background: #c30069;
}

@media (max-width: 600px) {
	.apc-form__grid {
		grid-template-columns: 1fr;
	}

	/* Label und Sterne bleiben nebeneinander: sechs Kriterien passen so
	   auf einen Bildschirm statt auf drei. */
	.apc-form__criterion {
		padding: 0.5rem 0;
		gap: 0.5rem;
	}

	.apc-form__criterion legend {
		font-size: 0.95rem;
	}

	.apc-rate label {
		font-size: 1.85rem;
		padding: 0.25rem 0.1em;
	}
}

@media (max-width: 360px) {
	.apc-rate label {
		font-size: 1.6rem;
	}
}

/* Auswahlfeld "Was möchtest du bewerten?" */

.apc-form__field--what select {
	width: 100%;
	padding: 0.65rem 0.75rem;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid #cfc7b5;
	border-radius: 3px;
}

.apc-form__field--what select:focus {
	outline: 2px solid var(--apc-magenta);
	outline-offset: 1px;
	border-color: var(--apc-magenta);
}

.apc-form__criteria[hidden] {
	display: none;
}

/* ================================================================ Siegel
   Kompaktes Siegel im Stil der Bewertungsportale: Name, dunkles Titelband,
   verbale Einordnung, Note, Anzahl, Fusszeile mit Datum und Foto.
   Rueckseite per 3D-Drehung, schwebend mit ausfahrender Kundenstimme. */

.apc-seal {
	--apc-gold: #e9c86a;
	--apc-magenta: #e0007a;
	--apc-ink: #1c1c1c;
	--apc-muted: #6b6b6b;
	--apc-line: #ece6d8;
	--apc-dark: #1a0d1f;

	position: relative;
	width: 250px;
	max-width: 100%;
	margin: 2rem 0;
	color: var(--apc-ink);
	text-align: center;
	perspective: 1200px;
}

.apc-reviews--float {
	margin: 0 !important;
	height: 0;
}

/* Theme-Buttons zuruecksetzen: sonst Grossbuchstaben, Sperrung, Schatten */
.apc-seal button {
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	min-height: 0;
	min-width: 0;
	width: auto;
	line-height: 1.3;
}

/* --------------------------------------------------------- 3D-Drehung */

.apc-seal__inner {
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.65s cubic-bezier(0.4, 0.15, 0.2, 1), height 0.35s ease;
}

.apc-seal.is-flipped .apc-seal__inner {
	transform: rotateY(180deg);
}

.apc-seal__face {
	overflow: hidden;
	background: #fff;
	border: 1px solid #ddd3bd;
	border-radius: 6px;
	box-shadow: 0 4px 22px rgba(0, 0, 0, 0.12);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

/* rotateY(0) gibt der Vorderseite eine eigene 3D-Ebene - sonst ignoriert
   Safari backface-visibility. */
.apc-seal__face--front {
	position: relative;
	transform: rotateY(0deg);
}

.apc-seal__face--back {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	text-align: left;
	transform: rotateY(180deg);
}

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

/* ------------------------------------------------------------ Vorderseite */

.apc-seal .apc-seal__person {
	margin: 0;
	padding: 0.6rem 0.8rem 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.25;
}

.apc-seal__band {
	padding: 0.55rem 0.7rem 0.5rem;
	background: var(--apc-dark);
	border-bottom: 3px solid var(--apc-gold);
	text-align: center;
}

.apc-seal__band-title {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.apc-seal__band-sub {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--apc-gold);
}

.apc-seal__band--small {
	padding: 0.6rem 0.8rem;
}

.apc-seal__band--small .apc-seal__band-title {
	font-size: 0.76rem;
}

.apc-seal__body {
	padding: 0.85rem 0.9rem 0.8rem;
}

.apc-seal__verdict {
	margin: 0 0 0.3rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--apc-ink);
}

.apc-seal .apc-stars {
	font-size: 1.15rem;
}

.apc-seal__value {
	margin: 0.3rem 0 0;
	font-size: 1.85rem;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.apc-seal__value span {
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: normal;
	color: var(--apc-muted);
}

.apc-seal .apc-seal__count {
	display: block;
	margin: 0.2rem 0 0;
	font-size: 0.78rem;
	color: var(--apc-muted);
	text-decoration: none;
}

.apc-seal a.apc-seal__count {
	color: var(--apc-ink);
	text-decoration: underline;
	text-decoration-color: var(--apc-gold);
	text-underline-offset: 3px;
}

.apc-seal a.apc-seal__count:hover {
	color: var(--apc-magenta);
}

.apc-seal__rec {
	margin: 0.65rem 0 0;
	padding: 0.35rem 0.4rem;
	background: #fcfaf5;
	border-radius: 3px;
	font-size: 0.74rem;
}

.apc-seal__rec strong {
	color: var(--apc-magenta);
	font-size: 0.86rem;
}

/* ------------------------------------------------------------- Fusszeile */

.apc-seal__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: auto;
	padding: 0.5rem 0.75rem;
	background: #faf7f0;
	border-top: 1px solid var(--apc-line);
	text-align: left;
}

.apc-seal__foot-text {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	min-width: 0;
}

.apc-seal__date {
	font-size: 0.62rem;
	line-height: 1.3;
	color: var(--apc-muted);
}

.apc-seal__flip {
	align-self: flex-start;
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--apc-magenta);
	text-decoration: none;
	cursor: pointer;
}

.apc-seal__flip:hover,
.apc-seal__flip:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.apc-seal__photo {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
}

/* ------------------------------------------------------------- Rueckseite */

.apc-seal__thead {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 2.2rem 2.9rem;
	gap: 0.45rem;
	padding: 0.55rem 0.8rem 0.3rem;
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--apc-muted);
}

.apc-seal__thead span:nth-child(n+2) {
	text-align: right;
}

.apc-seal__sources {
	list-style: none;
	margin: 0;
	padding: 0 0.8rem 0.5rem;
}

.apc-seal__sources li {
	margin: 0;
	border-top: 1px solid var(--apc-line);
}

.apc-seal__sources li:first-child {
	border-top: 0;
}

/* Feste Spaltenbreiten: jede Zeile ist ein eigenes Raster, mit "auto"
   wuerde "159 Bew." die Note weiter nach links schieben als "29 Bew." */
.apc-seal__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 2.2rem 2.9rem;
	gap: 0.45rem;
	align-items: start;
	padding: 0.45rem 0;
	color: inherit;
	text-decoration: none;
	font-size: 0.74rem;
	line-height: 1.3;
}

a.apc-seal__row:hover .apc-seal__src-label {
	color: var(--apc-magenta);
}

.apc-seal__src-val,
.apc-seal__src-cnt {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.apc-seal__src-val {
	font-weight: 700;
}

.apc-seal__src-cnt {
	color: var(--apc-muted);
}

/* Plattformnamen an Wortgrenzen umbrechen, lange Woerter silbentrennen
   statt sie mitten im Wort zu zerhacken. */
.apc-seal__src-label {
	overflow-wrap: normal;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* -------------------------------------------------------------- Schwebend */

.apc-seal--float {
	position: fixed;
	bottom: calc(var(--apc-seal-offset, 20px) + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	width: 220px;
	margin: 0;
}

.apc-seal--right {
	right: 1rem;
}

.apc-seal--left {
	left: 1rem;
}

.apc-seal .apc-seal__min {
	position: absolute;
	top: -0.65rem;
	right: -0.65rem;
	z-index: 3;
	width: 1.7rem;
	height: 1.7rem;
	padding: 0;
	line-height: 1;
	background: #fff;
	color: var(--apc-muted);
	border: 1px solid var(--apc-line);
	border-radius: 50%;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.14);
	cursor: pointer;
}

.apc-seal--left .apc-seal__min {
	right: auto;
	left: -0.65rem;
}

.apc-seal .apc-seal__min:hover {
	color: var(--apc-ink);
}

.apc-seal.is-minimized .apc-seal__inner {
	display: none;
}

.apc-seal.is-minimized .apc-seal__min {
	top: auto;
	bottom: 0;
	right: 0;
	left: auto;
	width: 3rem;
	height: 3rem;
	font-size: 1.3rem;
	color: var(--apc-gold);
	background: var(--apc-dark);
	border-color: var(--apc-gold);
}

.apc-seal--left.is-minimized .apc-seal__min {
	right: auto;
	left: 0;
}

/* ------------------------------------------- Ausfahrende Kundenstimme */

.apc-seal__peek {
	display: none;
}

@media (hover: hover) and (min-width: 760px) {
	.apc-seal__peek {
		display: block;
		position: absolute;
		bottom: 0;
		z-index: 1;
		width: 290px;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
	}

	/* Das Innenpolster ueberbrueckt den Spalt zum Siegel: Die Maus verlaesst
	   den Hover-Bereich nicht, wenn sie hinueberwandert. */
	.apc-seal--right .apc-seal__peek {
		right: 100%;
		padding-right: 12px;
		transform: translateX(12px);
	}

	.apc-seal--left .apc-seal__peek {
		left: 100%;
		padding-left: 12px;
		transform: translateX(-12px);
	}

	.apc-seal--float:hover .apc-seal__peek,
	.apc-seal--float:focus-within .apc-seal__peek {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
		transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
	}

	.apc-seal.is-flipped .apc-seal__peek,
	.apc-seal.is-minimized .apc-seal__peek {
		display: none;
	}
}

.apc-seal__peek-box {
	overflow: hidden;
	background: #fff;
	border: 1px solid #ddd3bd;
	border-radius: 6px;
	box-shadow: 0 6px 26px rgba(0, 0, 0, 0.16);
	text-align: left;
}

.apc-seal .apc-seal__peek-head {
	margin: 0;
	padding: 0.55rem 0.95rem;
	background: var(--apc-dark);
	border-bottom: 3px solid var(--apc-gold);
	font-size: 0.78rem;
	font-weight: 700;
	color: #fff;
}

.apc-seal__quote {
	display: none;
	margin: 0;
	padding: 0.85rem 0.95rem 0.25rem;
}

.apc-seal__quote.is-current {
	display: block;
}

.apc-seal__quote .apc-stars {
	font-size: 0.85rem;
}

.apc-seal__quote blockquote {
	margin: 0.4rem 0 0.6rem;
	padding: 0;
	border: 0;
	background: none;
	quotes: none;
	font-size: 0.86rem;
	font-style: italic;
	line-height: 1.5;
	color: var(--apc-ink);
}

.apc-seal__quote blockquote::before {
	content: "„";
}

.apc-seal__quote blockquote::after {
	content: "“";
}

.apc-seal__quote figcaption {
	font-size: 0.74rem;
	line-height: 1.35;
}

.apc-seal__quote figcaption strong {
	display: block;
	font-weight: 600;
}

.apc-seal__quote figcaption span {
	color: var(--apc-muted);
}

.apc-seal__peek-more {
	display: block;
	padding: 0.5rem 0.95rem 0.75rem;
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--apc-magenta);
	text-align: right;
	text-decoration: none;
}

.apc-seal__peek-more:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------ Mobil */

@media (max-width: 600px) {
	.apc-seal--float {
		width: 200px;
	}

	.apc-seal--right {
		right: 0.75rem;
	}

	.apc-seal--left {
		left: 0.75rem;
	}
}

/* Für Screenreader — falls das Theme die Klasse nicht selbst definiert,
   stünde sonst neben jedem Stern der Text "5 von 5". */

.apc-form .screen-reader-text,
.apc-reviews .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Angebot und Datum auf den Bewertungskacheln */

.apc-card__group {
	margin: 0;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--apc-muted);
}

.apc-card__date {
	display: block;
	margin-top: 0.1rem;
	font-weight: 400;
	font-size: 0.75rem;
	color: var(--apc-muted);
}

.apc-badge__rec {
	margin-top: 0.35rem;
	font-size: 0.78rem;
	color: var(--apc-muted);
}

.apc-badge__rec strong {
	color: var(--apc-magenta);
	font-size: 0.9rem;
}

/* Zweite Absicherung, falls der pre-Rahmen nicht serverseitig entfernt
   werden konnte (z. B. bei Page-Buildern mit eigener Ausgabe). */

.apc-reviews,
.apc-form,
.apc-seal {
	white-space: normal;
	overflow-wrap: break-word;
}


/* ------------------------------------------------ Schrift absichern
   Unabhaengig davon, in welchem Block der Shortcode steckt: Die Schrift
   kommt aus dem body der Seite (per JS gesetzt), mit einer serifenlosen
   Systemschrift als Rueckfall. Monospace aus einem Code-Block kann so
   nicht mehr durchschlagen. */

.apc-reviews,
.apc-form,
.apc-seal {
	font-family: var(--apc-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

.apc-reviews *,
.apc-form *,
.apc-seal * {
	font-family: inherit;
}

/* ------------------------------------------------ legend zuruecksetzen
   Browser setzen <legend> auf die Rahmenlinie des Kastens, Themes geben
   ihm oft grosse Schrift und eine Linie. Float nimmt es aus dieser
   Sonderbehandlung heraus - danach verhaelt es sich wie ein normales
   Element. */

.apc-form legend {
	float: left;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: normal;
	text-transform: none;
	color: var(--apc-ink);
	background: none;
}

.apc-form__block legend {
	width: 100%;
	margin-bottom: 0.6rem;
}

.apc-form__block legend + * {
	clear: both;
}

/* Kriterien: Label links, Sterne rechts in einer Zeile */
.apc-form__criterion {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
}

.apc-form__criterion legend {
	width: auto;
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.98rem;
}

.apc-form__criterion .apc-rate {
	flex: 0 0 auto;
}


/* Browser ohne :has(): Das Script schaltet per Klasse um. */
/* "div" erhoeht die Spezifitaet: Der Inline-Style im Formular steht im
   Dokument spaeter und wuerde sonst bei Gleichstand gewinnen. */
@supports not selector(:has(*)) {
	.apc-form div.apc-form__criteria.is-active {
		display: grid;
	}

	.apc-form div.apc-form__criteria.is-preset:not(.is-active) {
		display: none;
	}

	.apc-form span.apc-form__prompt.is-active {
		display: block;
	}

	.apc-form span.apc-form__prompt.is-preset:not(.is-active) {
		display: none;
	}
}


/* Leitfrage ueber dem Textfeld */
.apc-form__prompt {
	display: block;
	margin: 0 0 0.6rem;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--apc-muted);
}
