/* Caspersosteo Gutscheine */
.ccg {
	--ccg-ink: #1d2b2f;
	--ccg-muted: #5b6466;
	--ccg-teal: #2f7f86;
	--ccg-teal-dark: #245f66;
	--ccg-beige: #f6ddb4;
	--ccg-cream: #fbfaf7;
	--ccg-line: #e4dccb;
	--ccg-dark: #18191b;
	color: var(--ccg-ink);
	font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	max-width: 1100px;
	margin: 0 auto;
	text-align: left;
	scroll-margin-top: 120px;
	container-type: inline-size;
	container-name: ccg;
}
.ccg *, .ccg *::before, .ccg *::after { box-sizing: border-box; }
.ccg [hidden] { display: none !important; }

.ccg-notice { border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
.ccg-notice--test { background: #fff6e0; border: 1px solid #f0d48a; }
.ccg-notice--info { background: #eaf2ef; border: 1px solid #c9ddd5; }
.ccg-notice--error { background: #fdecec; border: 1px solid #f2b8b5; color: #8a1f1b; }

.ccg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }

/* Formular */
.ccg-form { background: #fff; border: 1px solid var(--ccg-line); border-radius: 18px; padding: 28px; box-shadow: 0 12px 36px rgba(24, 25, 27, .07); }
.ccg-step + .ccg-step { margin-top: 28px; padding-top: 24px; border-top: 1px solid #efe9dd; }
.ccg .ccg-step__title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; margin: 0 0 16px; color: var(--ccg-ink); text-transform: none; letter-spacing: 0; }
.ccg-step__title span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ccg-beige); color: var(--ccg-ink); font-size: 14px; font-weight: 700; flex: none; }

.ccg-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ccg-option { position: relative; margin: 0; cursor: pointer; display: block; }
.ccg-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ccg-option__body { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--ccg-line); border-radius: 14px; background: var(--ccg-cream); transition: border-color .15s, box-shadow .15s, background .15s; }
.ccg-option:hover .ccg-option__body { border-color: #cdbfa6; }
.ccg-option input:checked + .ccg-option__body { border-color: var(--ccg-teal); background: #fff; box-shadow: 0 0 0 3px rgba(47, 127, 134, .15); }
.ccg-option input:focus-visible + .ccg-option__body { outline: 2px solid var(--ccg-teal); outline-offset: 2px; }
.ccg-option__title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.ccg-option__sub { font-size: 13px; color: var(--ccg-muted); }
.ccg-option__price { margin-left: auto; font-size: 18px; font-weight: 700; color: var(--ccg-teal-dark); white-space: nowrap; }
.ccg-option input[value="frei"] + .ccg-option__body .ccg-option__price { font-size: 15px; font-weight: 600; }

.ccg-free { margin-top: 16px; }
.ccg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ccg .ccg-chip { appearance: none; border: 1px solid var(--ccg-line); background: var(--ccg-cream); color: var(--ccg-ink); border-radius: 999px; padding: 6px 14px; font-size: 14px; line-height: 1.4; min-height: 0; margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 500; }
.ccg .ccg-chip:hover, .ccg .ccg-chip.is-active { border-color: var(--ccg-teal); color: var(--ccg-teal-dark); background: #fff; }

.ccg-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.ccg-field { display: block; margin: 0 0 14px; }
.ccg-field__label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ccg-muted); margin-bottom: 6px; }
.ccg-field__label small { font-weight: 400; }
.ccg .ccg-field input, .ccg .ccg-field textarea { width: 100%; max-width: none; margin: 0; border: 1.5px solid var(--ccg-line); border-radius: 10px; background: #fff; padding: 11px 13px; font-size: 16px; line-height: 1.4; height: auto; color: var(--ccg-ink); box-shadow: none; font-family: inherit; }
.ccg .ccg-field input:focus, .ccg .ccg-field textarea:focus { border-color: var(--ccg-teal); outline: none; box-shadow: 0 0 0 3px rgba(47, 127, 134, .15); }
.ccg .ccg-field textarea { min-height: 76px; resize: vertical; }
.ccg .ccg-field.is-invalid input { border-color: #c4413b; }
.ccg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ccg-pay { font-size: 14px; color: var(--ccg-muted); margin: 0 0 14px; }
.ccg .ccg-submit { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: 12px; padding: 16px 20px; margin: 0; background: var(--ccg-teal); color: #fff; font-size: 17px; font-weight: 600; line-height: 1.3; cursor: pointer; text-transform: none; letter-spacing: 0; min-height: 0; transition: background .15s, transform .05s; }
.ccg .ccg-submit:hover { background: var(--ccg-teal-dark); }
.ccg .ccg-submit:active { transform: translateY(1px); }
.ccg .ccg-submit[disabled] { opacity: .7; cursor: wait; }
.ccg-submit__total:not(:empty)::before { content: "·"; margin-right: 8px; opacity: .7; }
.ccg-legal { font-size: 13px; line-height: 1.55; color: var(--ccg-muted); margin: 12px 0 0; }
.ccg-legal a, .ccg-faq a { color: var(--ccg-teal-dark); text-decoration: underline; }

/* Vorschau */
.ccg-preview { position: static; width: 100%; max-width: 440px; margin: 0 auto; }
.ccg-card { container-type: inline-size; display: flex; border-radius: 16px; overflow: hidden; background: var(--ccg-cream); border: 1px solid #d9cbb0; box-shadow: 0 18px 44px rgba(24, 25, 27, .14); aspect-ratio: 297 / 210; }
.ccg-card__side { width: 30%; background: var(--ccg-dark); display: flex; align-items: flex-start; justify-content: center; padding: 9% 4%; }
.ccg-card__side img { width: 78%; height: auto; }
.ccg-card__main { flex: 1; position: relative; padding: 7% 7% 6%; display: flex; flex-direction: column; min-width: 0; }
.ccg-card__amount { position: absolute; top: 7%; right: 7%; font-weight: 700; font-size: 5.2cqw; line-height: 1.1; color: var(--ccg-ink); }
.ccg-card__title { font-family: 'Dancing Script', cursive; font-weight: 600; color: var(--ccg-teal); font-size: 10cqw; line-height: 1; margin-top: 4cqw; }
.ccg-card__subtitle { font-size: 2.6cqw; color: var(--ccg-muted); margin-top: 4px; }
.ccg-card__label { font-size: 1.9cqw; letter-spacing: .14em; text-transform: uppercase; color: #8a7a5c; margin-top: auto; }
.ccg-card__name { font-size: 3.4cqw; border-bottom: 1px solid #cdbfa6; padding-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccg-card__msg { font-family: 'Dancing Script', cursive; font-size: 3.4cqw; color: var(--ccg-ink); margin-top: 6px; min-height: 1.3em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ccg-card__code { font-size: 2.2cqw; color: var(--ccg-muted); margin-top: 8px; text-align: right; }
.ccg-card__code span { font-weight: 700; letter-spacing: .12em; border: 1px dashed var(--ccg-teal); border-radius: 4px; padding: 1px 5px; color: var(--ccg-ink); }

.ccg-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.ccg-points li { position: relative; padding-left: 28px; font-size: 15px; margin: 0; }
.ccg-points li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ccg-beige) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231d2b2f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Ergebnis */
.ccg-result { background: #fff; border: 1px solid var(--ccg-line); border-radius: 18px; padding: 32px; margin-bottom: 32px; text-align: center; box-shadow: 0 12px 36px rgba(24, 25, 27, .07); }
.ccg-result__title { font-family: 'Dancing Script', cursive; color: var(--ccg-teal); font-size: 44px; line-height: 1.1; margin: 0 0 8px; }
.ccg-result__code { display: inline-block; font-size: 24px; font-weight: 700; letter-spacing: .18em; border: 2px dashed var(--ccg-teal); border-radius: 10px; padding: 6px 16px; margin: 14px 0; }
.ccg-result p { margin: 6px 0; font-size: 16px; }
.ccg .ccg-result__btn { display: inline-block; margin-top: 16px; background: var(--ccg-teal); color: #fff; border-radius: 12px; padding: 14px 26px; font-weight: 600; font-size: 17px; text-decoration: none; }
.ccg .ccg-result__btn:hover { background: var(--ccg-teal-dark); color: #fff; }
.ccg-result__again { display: block; margin-top: 18px; font-size: 14px; color: var(--ccg-muted); }

/* FAQ */
.ccg-faq { margin-top: 48px; border-top: 1px solid var(--ccg-line); }
.ccg-faq details { border-bottom: 1px solid var(--ccg-line); padding: 0; }
.ccg-faq summary { cursor: pointer; padding: 16px 4px; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ccg-faq summary::-webkit-details-marker { display: none; }
.ccg-faq summary::after { content: "+"; font-size: 22px; color: var(--ccg-teal); font-weight: 400; }
.ccg-faq details[open] summary::after { content: "–"; }
.ccg-faq details > p, .ccg-faq details > div { padding: 0 4px 18px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--ccg-muted); }
.ccg-widerruf p { margin: 0 0 10px; font-size: 14px; }

.ccg-hint { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--ccg-muted); }
.ccg .ccg-field.is-invalid textarea { border-color: #c4413b; }

/* Online-Widerruf */
.ccg-wr p { margin: 0 0 14px; }
.ccg-wr .ccg-field__label { color: var(--ccg-muted); }
.ccg .ccg-submit--wr { width: auto; padding: 13px 22px; font-size: 16px; }
.ccg-wr-cta { margin: 22px 0 0; text-align: center; }
.ccg .ccg-wr-btn { display: inline-block; border: 1.5px solid var(--ccg-teal); color: var(--ccg-teal-dark); background: #fff; border-radius: 10px; padding: 9px 18px; font-size: 15px; font-weight: 600; text-decoration: none; }
.ccg .ccg-wr-btn:hover { background: var(--ccg-teal); color: #fff; }

@container ccg (min-width: 560px) {
	.ccg-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ccg-option__body { flex-direction: column; flex-wrap: nowrap; align-items: stretch; padding: 16px 14px; }
	.ccg-option__price { margin: auto 0 0; padding-top: 12px; font-size: 20px; }
	.ccg-row { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@container ccg (min-width: 900px) {
	.ccg-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; }
	.ccg-preview { position: sticky; top: 110px; max-width: none; }
	.ccg-points { grid-template-columns: 1fr; }
}
@container ccg (max-width: 899px) {
	.ccg-preview { order: -1; }
}
@container ccg (max-width: 480px) {
	.ccg-form { padding: 20px 16px; border-radius: 14px; }
	.ccg-points { grid-template-columns: 1fr; }
	.ccg-result { padding: 24px 16px; }
	.ccg-result__code { font-size: 20px; }
}
