/**
 * Gutschein-Shop Frontend – Design 1:1 aus der Online-Anmeldung (Doc 09 §4 + §8).
 * Tokens und Basisklassen verbatim übernommen; am Ende wenige token-konsistente
 * Ergänzungen für Shop-spezifische Elemente (Tile-Innenteile, Loading).
 */

/* ----------------------------------------------------------------------------
 * §4.1 Design-Tokens
 * ------------------------------------------------------------------------- */
.oa-konfigurator {
	--oa-primary: #2563eb;  --oa-primary-hover: #1d4ed8;  --oa-primary-light: #eff6ff;
	/* RGB-Triple der Primärfarbe für rgba()-Schatten/Fokus-Ringe/Glows —
	   Betriebsart-Overrides (GS_Modus) müssen nur diese Token tauschen. */
	--oa-primary-rgb: 37,99,235;
	/* Verlaufs-Ende der Progress-Bar-Füllung + Hintergrund gewählter
	   Radio-Karten (FSZ: Gelb-Töne statt Hellblau). */
	--oa-pbar-fill-end: #6b8cff;
	--oa-selected-bg: #f0f3ff;
	--oa-success: #16a34a;  --oa-success-light: #f0fdf4;
	--oa-error: #dc2626;    --oa-error-light: #fef2f2;    --oa-warning: #d97706;
	--oa-text: #1f2937;     --oa-text-muted: #6b7280;
	--oa-border: #d1d5db;   --oa-border-focus: var(--oa-primary);
	--oa-bg: #ffffff;       --oa-bg-muted: #f9fafb;
	--oa-highlight: var(--oa-primary); --oa-highlight-bg: var(--oa-primary-light);
	--oa-gap: 1rem; --oa-gap-sm: .5rem; --oa-gap-lg: 1.5rem;
	--oa-radius: .5rem; --oa-radius-lg: .75rem; --oa-touch-min: 48px;
}

/* ----------------------------------------------------------------------------
 * §4.2 Container + Typo
 * ------------------------------------------------------------------------- */
/* width:100% zusätzlich zu max-width: Manche Themes (z.B. Wiesing) legen
   Shortcode-Inhalte in einen Flex-/Grid-Container — ohne feste Breite
   schrumpfen Mount-Div und Wrapper auf Inhaltsbreite und „springen" pro
   Schritt. Im normalen Block-Flow ändert width:100% nichts. */
.gs-shop { width: 100%; }
.oa-konfigurator { width: 100%; max-width: 820px; margin: 0 auto; padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--oa-text); line-height: 1.5; }
.oa-shop { width: 100%; }
.oa-konfigurator *, .oa-konfigurator *::before, .oa-konfigurator *::after { box-sizing: border-box; }

.oa-step__heading { font-size: 1.75rem; font-weight: 800; margin: 0 0 6px; color: var(--oa-text); }
.oa-step__subheading { font-size: .9375rem; color: var(--oa-text-muted); margin: 0 0 28px; }
.oa-section-label { font-size: .75rem; font-weight: 700; letter-spacing: .05em;
	text-transform: uppercase; color: var(--oa-text-muted); margin-bottom: 14px; }
@media (max-width: 540px) { .oa-step__heading { font-size: 1.5rem; } }

/* ----------------------------------------------------------------------------
 * §4.3 Auswahlkarten (Typ / Paket / Anlass)
 * ------------------------------------------------------------------------- */
.oa-tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 540px) { .oa-tile-grid { grid-template-columns: repeat(3, 1fr); } }
.oa-tile { background: var(--oa-bg); border: 2px solid #e8eaef; border-radius: 16px;
	padding: 24px 16px 20px; display: flex; flex-direction: column; align-items: center;
	gap: 10px; cursor: pointer; transition: all .2s ease; position: relative; text-align: center; }
.oa-tile:hover { border-color: #c0c8e0; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.oa-tile--selected { border-color: var(--oa-primary); background: var(--oa-primary-light);
	box-shadow: 0 0 0 3px rgba(var(--oa-primary-rgb, 37,99,235), .15); }

/* ----------------------------------------------------------------------------
 * §4.4 Buttons + Navigation
 * ------------------------------------------------------------------------- */
.oa-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.oa-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
	font-family: inherit; cursor: pointer; transition: all .2s; }
.oa-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.oa-btn--back { background: none; border: 2px solid #e4e6eb; padding: 12px 28px;
	font-size: .9375rem; font-weight: 600; color: #6a6a8a; }
.oa-btn--back:hover:not(:disabled) { border-color: #c0c8e0; color: var(--oa-text); }
.oa-btn--next { background: var(--oa-primary); color: #fff; border: none; padding: 14px 36px;
	font-size: 1rem; font-weight: 700; box-shadow: 0 4px 14px rgba(var(--oa-primary-rgb, 37,99,235), .25); }
.oa-btn--next:hover:not(:disabled) { background: var(--oa-primary-hover); transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(var(--oa-primary-rgb, 37,99,235), .35); }
.oa-btn--next:disabled { background: #c0c8e0; box-shadow: none; }

/* ----------------------------------------------------------------------------
 * §4.5 Hinweis-Boxen
 * ------------------------------------------------------------------------- */
.oa-hint { display: flex; align-items: flex-start; gap: 12px; border-radius: 12px;
	padding: 16px 20px; font-size: 14px; line-height: 1.6; margin-bottom: var(--oa-gap); }
.oa-hint__icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.oa-hint--info    { background: #f0f3ff; border: 1px solid #d8dfff; color: #2a3a6a; }
.oa-hint--warning { background: #fffbf0; border: 1px solid #f5e6b8; color: #6a5a2a; }
.oa-hint--error   { background: #fff5f5; border: 1px solid #fdd;     color: #6a2a2a; }
.oa-hint--success { background: #f0faf0; border: 1px solid #c8e6c8;  color: #2a5a2a; }
.oa-hint p { margin: 0; }

/* ----------------------------------------------------------------------------
 * §8.1 Formularfelder
 * ------------------------------------------------------------------------- */
.oa-field { margin-bottom: .75rem; }
.oa-field__label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 4px; }
.oa-field__required { color: var(--oa-error); margin-left: 2px; }

.oa-konfigurator .oa-field__input,
.oa-konfigurator .oa-field__select {
	display: block; width: 100%; padding: 12px 16px; border: 2px solid #e4e6eb;
	border-radius: 12px; font-size: .9375rem; font-family: inherit; min-height: 48px;
	background: var(--oa-bg); color: #111; transition: border-color .15s; text-align: left; }
.oa-konfigurator .oa-field__input::placeholder,
.oa-konfigurator .oa-field__select::placeholder { color: #b0b3c0; opacity: 1; }
.oa-konfigurator .oa-field__input:not(:placeholder-shown) {
	background-color: #f8f9ff; border-color: #a8b4e0; }
.oa-konfigurator .oa-field__input:focus,
.oa-konfigurator .oa-field__select:focus {
	outline: none; border-color: var(--oa-border-focus);
	box-shadow: 0 0 0 3px rgba(var(--oa-primary-rgb, 37,99,235), .1); background-color: var(--oa-bg); }
.oa-konfigurator .oa-field__select {
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236a6a8a' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.oa-konfigurator .oa-field--error .oa-field__input { border-color: var(--oa-error); }
.oa-field__error { color: var(--oa-error); font-size: .8125rem; margin: 4px 0 0; }
.oa-field__hint  { color: var(--oa-text-muted); font-size: .8125rem; margin: 4px 0 0; }

.oa-form-grid { display: grid; grid-template-columns: 1fr; gap: 0 var(--oa-gap); }
@media (min-width: 480px) { .oa-form-grid { grid-template-columns: 1fr 1fr; } }

/* ----------------------------------------------------------------------------
 * §8.2 Radio-Karten + Checkbox
 * ------------------------------------------------------------------------- */
.oa-radio-group { display: flex; gap: 12px; }
.oa-radio-card { display: flex; align-items: center; gap: 10px; background: #f5f6f8;
	border: 2px solid transparent; border-radius: 12px; padding: 12px 16px; cursor: pointer;
	transition: background .15s, border-color .15s; flex: 1; }
.oa-radio-card:hover { background: #eef0f5; }
.oa-radio-card--selected { background: var(--oa-selected-bg, #f0f3ff); border-color: var(--oa-primary); }
.oa-radio-card__circle { width: 20px; height: 20px; border: 2px solid #c0c8e0; border-radius: 50%;
	flex-shrink: 0; display: flex; align-items: center; justify-content: center;
	transition: border-color .15s, background .15s; }
.oa-radio-card--selected .oa-radio-card__circle { border-color: var(--oa-primary); background: var(--oa-primary); }
.oa-radio-card--selected .oa-radio-card__circle::after { content: ''; width: 8px; height: 8px;
	border-radius: 50%; background: #fff; }
.oa-radio-card__label { font-size: .9375rem; font-weight: 500; color: var(--oa-text); }

.oa-checkbox { display: flex; align-items: center; gap: 6px; cursor: pointer; min-height: var(--oa-touch-min); }
.oa-checkbox input { width: 20px; height: 20px; margin: 0; accent-color: var(--oa-primary); }

/* ----------------------------------------------------------------------------
 * §8.4 Progress-Bar
 * ------------------------------------------------------------------------- */
.oa-pbar { margin-bottom: 32px; }
.oa-pbar__labels { display: flex; margin-bottom: 8px; }
.oa-pbar__label { text-align: right; font-size: .75rem; font-weight: 600; color: #b0b3c0;
	background: none; border: none; padding: 0; font-family: inherit; cursor: default;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.oa-pbar__label { cursor: pointer; }
button.oa-pbar__label:hover { color: var(--oa-primary); }
.oa-pbar__label--active { color: var(--oa-primary); }
.oa-pbar__label--done { color: var(--oa-success); }
.oa-pbar__mobile-label { display: none; }
.oa-pbar__track-wrap { position: relative; padding: 12px 0; min-height: 30px; }
.oa-pbar__track { width: 100%; height: 6px; background: #e4e6eb; border-radius: 3px; position: relative; }
.oa-pbar__fill { height: 100%; background: linear-gradient(90deg, var(--oa-primary), var(--oa-pbar-fill-end, #6b8cff));
	border-radius: 3px; transition: width .3s ease; }
.oa-pbar__segments { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; z-index: 2; }
.oa-pbar__segment { height: 100%; }
.oa-pbar__segment--clickable { cursor: pointer; }
.oa-pbar__dots { position: absolute; top: 12px; left: 0; right: 0; height: 6px; z-index: 1; pointer-events: none; }
.oa-pbar__dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #d1d5db;
	top: 50%; transform: translate(-50%, -50%); transition: all .3s ease; }
.oa-pbar__dot--done { background: var(--oa-primary); }
.oa-pbar__dot--active { background: #fff; border: 2px solid var(--oa-primary); width: 12px; height: 12px;
	box-shadow: 0 0 0 3px rgba(var(--oa-primary-rgb, 37,99,235), .15); }
@media (max-width: 540px) {
	.oa-pbar__labels { display: none; }
	.oa-pbar__mobile-label { display: block; text-align: center; font-size: .8125rem;
		font-weight: 600; color: var(--oa-primary); margin-bottom: 8px; }
}

/* ----------------------------------------------------------------------------
 * §8.5 Zusammenfassung
 * ------------------------------------------------------------------------- */
.oa-zs-card { background: var(--oa-bg); border: 1px solid var(--oa-border);
	border-radius: var(--oa-radius-lg); padding: var(--oa-gap); margin-bottom: var(--oa-gap); }
.oa-zs-card__label { font-size: .75rem; font-weight: 600; text-transform: uppercase;
	letter-spacing: .06em; color: var(--oa-text-muted); margin-bottom: 12px;
	display: flex; align-items: center; justify-content: space-between; }
.oa-zs-edit-link { background: none; border: none; color: var(--oa-primary); font-size: .8125rem;
	font-weight: 500; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 0; }
.oa-zs-edit-link:hover { text-decoration: underline; }

.oa-zs-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oa-zs-data-item { display: flex; flex-direction: column; gap: 2px; }
.oa-zs-data-item--full { grid-column: 1 / -1; }
.oa-zs-data-label { font-size: .75rem; color: var(--oa-text-muted); text-transform: uppercase; letter-spacing: .03em; }
.oa-zs-data-value { font-size: .9375rem; font-weight: 500; }

.oa-zs-preis-summary { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--oa-border); }
.oa-zs-preis-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: .9rem; }
.oa-zs-preis-row--total { border-top: 2px solid var(--oa-text); margin-top: 6px; padding-top: 8px;
	font-weight: 700; font-size: 1rem; }

.oa-zs-legal { display: flex; flex-direction: column; gap: 4px; }
.oa-zs-legal a { color: var(--oa-primary); text-decoration: underline; }
.oa-zs-legal .oa-checkbox { align-items: flex-start; min-height: 0; }
.oa-zs-legal .oa-checkbox input { margin-top: 2px; flex-shrink: 0; }

.oa-zs-error { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; margin-top: 16px;
	background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid #dc2626;
	border-radius: 8px; color: #991b1b; }

.oa-zs-turnstile { display: flex; justify-content: center; margin-top: 16px; }

/* Shop: Die Preis-Zusammenfassung enthält nur die Gesamt-Zeile — die dünne
   Trennlinie des Blocks entfällt (sonst doppelte Linie über dem Gesamtbetrag). */
.oa-zs-preis-summary { border-top: none; padding-top: 0; }

/* ----------------------------------------------------------------------------
 * Gutschein-Aktion (Bonus-Guthaben)
 * ------------------------------------------------------------------------- */
/* Live-Zeile unter dem Betragsfeld: "Du zahlst € 100 → Gutscheinwert € 110".
   Gleiche Optik/Position wie .oa-field__error (der Abstand kommt wie dort per
   Inline-Style aus der Komponente — Theme-Regeln können ihn nicht überstimmen). */
.gs-aktion-live { color: #2a5a2a; font-size: .8125rem; margin: 4px 0 0; }
.gs-aktion-live strong { font-weight: 700; }

/* Bonus-Zeile in der Zusammenfassung (über der Zu-zahlen-Zeile) */
.gs-aktion-row { color: #2a5a2a; font-weight: 600; }

/* ----------------------------------------------------------------------------
 * Tooltip (Tippy.js, Theme "oa") — 1:1 aus der Online-Anmeldung.
 * Basis-Styles (tippy.css) kommen über den JS-Build (build/index.css).
 * ------------------------------------------------------------------------- */
.tippy-box[data-theme~='oa'] {
	background: var(--oa-text);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 400;
	border-radius: var(--oa-radius);
	max-width: 280px;
}

.tippy-box[data-theme~='oa'] .tippy-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px 12px;
}

.tippy-box[data-theme~='oa'] .tippy-arrow {
	color: var(--oa-text);
}

.tippy-box[data-theme~='oa'] a {
	color: #93c5fd;
	text-decoration: underline;
}

/* Tooltip Wrapper + ⓘ-Icon */
.oa-tooltip-wrapper {
	cursor: help;
}

.oa-tooltip-mobile-icon {
	display: inline;
	margin-left: 4px;
	font-size: 0.8em;
	vertical-align: baseline;
	color: var(--oa-text-muted);
	opacity: 0.5;
	transition: opacity 0.2s, color 0.2s;
}

.oa-tooltip-wrapper:hover .oa-tooltip-mobile-icon {
	opacity: 1;
	color: var(--oa-primary);
}

/* Mobile: ⓘ volle Sichtbarkeit, Tap statt Hover */
@media (max-width: 600px) {
	.oa-tooltip-wrapper {
		cursor: default;
	}

	.oa-tooltip-mobile-icon {
		opacity: 1;
		color: var(--oa-primary);
		font-size: 0.85em;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
}

/* ----------------------------------------------------------------------------
 * §8.6 Betrags-Chips
 * ------------------------------------------------------------------------- */
.oa-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.oa-chip { flex: 1 1 auto; min-width: 84px; text-align: center; padding: 14px 18px;
	border: 2px solid #e8eaef; border-radius: 12px; background: var(--oa-bg);
	font-size: 1rem; font-weight: 700; color: var(--oa-text); cursor: pointer;
	transition: all .15s; font-family: inherit; }
.oa-chip:hover { border-color: #c0c8e0; }
.oa-chip--selected { border-color: var(--oa-primary); background: var(--oa-primary-light);
	color: var(--oa-primary); box-shadow: 0 0 0 3px rgba(var(--oa-primary-rgb, 37,99,235), .15); }

/* ----------------------------------------------------------------------------
 * Token-konsistente Ergänzungen (Shop-spezifisch)
 * ------------------------------------------------------------------------- */
.oa-tile { font-family: inherit; }
.oa-tile__icon { font-size: 2rem; line-height: 1; }
.oa-tile__img { width: 100%; max-height: 90px; object-fit: cover; border-radius: 10px; }
.oa-tile__title { font-size: .9375rem; font-weight: 700; color: var(--oa-text); }
.oa-tile__sub { font-size: .8125rem; color: var(--oa-text-muted); }
.oa-tile__price { font-size: 1.0625rem; font-weight: 800; color: var(--oa-primary); }
.oa-tile__check { position: absolute; top: 8px; right: 10px; color: var(--oa-primary); font-weight: 800; }

/* Anlass-Karte + „Vorschau"-Link darunter (alle Karten bleiben gleich hoch) */
.oa-tile-wrap { display: flex; flex-direction: column; }
.oa-tile-wrap > .oa-tile { flex: 1 1 auto; justify-content: center; }
.oa-konfigurator .oa-tile__preview-link {
	appearance: none; -webkit-appearance: none;
	background: none; border: none; box-shadow: none; border-radius: 0;
	margin: 8px 0 0; padding: 0; width: 100%; cursor: pointer;
	font-family: inherit; font-size: .8125rem; font-weight: 600; line-height: 1.3;
	color: var(--oa-primary); text-align: center; text-decoration: underline; }
.oa-konfigurator .oa-tile__preview-link:hover { color: var(--oa-primary-hover); }

/* Vorschau-Lightbox — via Portal an <body> gerendert (eigener Layer über allem).
   Bewusst OHNE --oa-*-Tokens (außerhalb von .oa-konfigurator) → feste Farben. */
.oa-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex;
	align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .72); }
.oa-modal__box { position: relative; max-width: 92vw; max-height: 92vh; }
.oa-modal__img { display: block; width: auto; height: auto; max-width: 92vw; max-height: 88vh;
	border-radius: 10px; box-shadow: 0 12px 48px rgba(0, 0, 0, .45); background: #fff; }
.oa-modal__close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%;
	background: #fff; border: none; cursor: pointer; font-size: 22px; line-height: 1; color: #1f2937;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }

/* Lightbox-Variante mit Caption (WhatsApp-Nachricht-Vorschau). Läuft wie
   .oa-modal außerhalb des Token-Scopes → feste Werte statt var(--oa-*). */
.gs-lightbox__inner { position: relative; display: flex; flex-direction: column; align-items: center;
	gap: 10px; max-width: min(92vw, 480px); }
.gs-lightbox__img { max-width: 100%; max-height: calc(90vh - 70px); /* Platz für Caption */
	border-radius: .75rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
.gs-lightbox__caption { color: #fff; font-size: .9375rem; text-align: center;
	margin: 0; line-height: 1.5; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
	padding: 0 36px; /* lässt den Schließen-Button (×) oben rechts frei */ }

.oa-shop__loading { color: var(--oa-text-muted); text-align: center; padding: 32px 0; }
.gs-shop textarea.oa-field__input { min-height: 92px; resize: vertical; }
.oa-spinner { display: inline-block; width: 16px; height: 16px; margin-right: 8px;
	border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%;
	animation: oa-spin .7s linear infinite; vertical-align: -2px; }
@keyframes oa-spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------------------
 * Telefon-Eingabe: Länder-Vorwahl mit Fahnen (1:1 aus der Anmeldung)
 * Feld-Basis (.oa-field*) siehe §8.1; hier nur die Telefon-Spezifik.
 * ------------------------------------------------------------------------- */
.oa-phone-input { display: flex; align-items: stretch; }
.oa-phone-input__country {
	display: flex; align-items: center; padding: 0 20px 0 12px;
	background: #f8f9ff; border: 2px solid #e4e6eb; border-right: none;
	border-radius: 12px 0 0 12px; font-size: .9375rem; min-height: var(--oa-touch-min);
	cursor: pointer; appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 6px center;
}
.oa-phone-input__field { border-radius: 0 12px 12px 0 !important; }

/* ----------------------------------------------------------------------------
 * Erfolgs-/Danke-Seite (1:1 aus der Anmeldung). Nutzt die --oa-*-Tokens.
 * ------------------------------------------------------------------------- */
.oa-success { text-align: center; padding: var(--oa-gap-lg) 0; }
.oa-success__title { font-size: 1.5rem; color: var(--oa-success); margin: 0 0 var(--oa-gap-lg); }
.oa-success__content { text-align: left; max-width: 560px; margin: 0 auto; }
.oa-success__subtitle { font-size: 1.15rem; margin: 0 0 var(--oa-gap); color: var(--oa-text); text-align: center; }
.oa-success__steps { display: flex; flex-direction: column; gap: var(--oa-gap); margin-bottom: var(--oa-gap-lg); }
.oa-success__step { display: flex; align-items: flex-start; gap: 14px; }
.oa-success__step-num { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center;
	justify-content: center; border-radius: 50%; background: var(--oa-primary); color: #fff; font-weight: 700; font-size: .9rem; }
.oa-success__step p { margin: 0; line-height: 1.6; padding-top: 4px; color: var(--oa-text); }
.oa-success__closing { text-align: center; color: var(--oa-text); margin: 0; line-height: 1.8; }
