/* ==========================================================================
   Container Pro DE – Inhaltsseiten (Lot 9)
   ========================================================================== */

.cp-pagehead__lead { max-width: 62ch; margin: .9rem 0 0; font-size: var(--cp-step-1); line-height: 1.5; color: rgba(255, 255, 255, .84); }

/* Layout: Text + Seitenleiste */
.cp-content { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.cp-content__main.cpde-prose { max-width: none; }
.cp-content__main > p, .cp-content__main > ul, .cp-content__main > ol, .cp-content__main > h2, .cp-content__main > h3, .cp-content__main > details { max-width: 72ch; }
.cp-content__side { position: sticky; top: calc(var(--cp-header-h) + 1.5rem); display: grid; gap: 1.25rem; }

/* Fließtext (Ergänzungen zu .cpde-prose) */
.cpde-prose > :first-child { margin-top: 0; }
.cpde-prose h2 { padding-top: .25rem; }
.cpde-prose h2 + h3 { margin-top: 1em; }
.cpde-prose p, .cpde-prose li { color: var(--cp-ink); }
.cpde-prose strong { color: var(--cp-primary); }
.cpde-prose ol { counter-reset: none; }
.cpde-prose ol li::marker { font-weight: 800; color: var(--cp-primary); }
.cpde-prose ul li::marker { color: var(--cp-accent-rib); }
.cpde-prose .wp-block-table { margin: 1.25rem 0 1.75rem; overflow-x: auto; }
.cpde-prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.cpde-prose .wp-block-table th { padding: .65rem .8rem; background: var(--cp-primary); color: var(--cp-white); text-align: left; font-weight: 650; white-space: nowrap; }
.cpde-prose .wp-block-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--cp-line); vertical-align: top; }
.cpde-prose .wp-block-table tbody tr:nth-child(even) td { background: var(--cp-steel); }
.cpde-prose .wp-block-table td:first-child { font-weight: 650; color: var(--cp-primary); }

/* FAQ als Aufklapp-Blöcke */
.cpde-prose .wp-block-details { margin: 0; border-bottom: 1px solid var(--cp-line); }
.cpde-prose h2 + .wp-block-details, .cpde-prose p + .wp-block-details { border-top: 1px solid var(--cp-line); }
.cpde-prose .wp-block-details summary {
	position: relative; padding: 1rem 2.75rem 1rem 0; cursor: pointer; list-style: none;
	font-weight: 650; color: var(--cp-primary);
}
.cpde-prose .wp-block-details summary::-webkit-details-marker { display: none; }
.cpde-prose .wp-block-details summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
	background: var(--cp-steel); color: var(--cp-primary); font-weight: 700;
}
.cpde-prose .wp-block-details[open] summary::after { content: "–"; background: var(--cp-accent); color: var(--cp-on-accent); }
.cpde-prose .wp-block-details > p { margin: 0 0 1.1rem; color: var(--cp-muted); }

/* Eingebettete Bausteine */
.cp-embed { margin: 1rem 0 1.5rem; }

/* Seitenleiste */
.cp-sidecard { padding: 1.25rem 1.35rem; border: 1px solid var(--cp-line); border-radius: var(--cp-radius); background: var(--cp-white); }
.cp-sidecard--contact { border: 2px solid var(--cp-primary); }
.cp-sidecard__title { margin: 0 0 .6rem; font-weight: 750; color: var(--cp-primary); font-size: 1.05rem; }
.cp-sidecard__address { font-style: normal; margin: 0 0 .75rem; line-height: 1.5; font-size: .95rem; }
.cp-sidecard__phone { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; font-weight: 800; text-decoration: none; color: var(--cp-primary); }
.cp-sidecard__phone .cpde-icon { width: 22px; height: 22px; color: var(--cp-accent-rib); }
.cp-sidecard__hours { margin: .15rem 0 .5rem; font-size: .9rem; color: var(--cp-muted); }
.cp-sidecard p { font-size: .95rem; }
.cp-sidecard .cpde-btn { margin-top: .5rem; }
.cp-sidecard__links { margin: 0; padding: 0; list-style: none; }
.cp-sidecard__links a { display: flex; align-items: center; justify-content: space-between; padding: .5rem 0; border-top: 1px solid var(--cp-steel); color: var(--cp-ink); text-decoration: none; font-size: .95rem; }
.cp-sidecard__links li:first-child a { border-top: 0; }
.cp-sidecard__links a:hover { color: var(--cp-primary); }
.cp-sidecard__links .cpde-icon { width: 18px; height: 18px; color: var(--cp-muted); }
.cp-sidecard--trust { padding: 0; border: 0; }
.cp-sidecard--trust .cp-benefits { grid-template-columns: 1fr; }

/* Kontaktformular */
.cp-contact { margin-top: 1.5rem; }
.cp-contact__form { padding: 1.5rem; border: 1px solid var(--cp-line); border-radius: var(--cp-radius); background: var(--cp-white); }
.cp-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.cp-field--full { grid-column: 1 / -1; }
.cp-contact__form .cp-field { margin: 0 0 1rem; }
.cp-contact__form .cp-field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .92rem; color: var(--cp-ink); }
.cp-contact__form .cp-field label span, .cp-contact__form .cp-field label abbr { font-weight: 400; color: var(--cp-muted); text-decoration: none; }
.cp-contact__form .cp-field input, .cp-contact__form .cp-field select, .cp-contact__form .cp-field textarea {
	width: 100%; min-height: 48px; padding: .6rem .85rem; font: inherit; color: var(--cp-ink);
	border: 1px solid var(--cp-line); border-radius: var(--cp-radius-s); background: var(--cp-white);
}
.cp-contact__form .cp-field input:focus, .cp-contact__form .cp-field select:focus, .cp-contact__form .cp-field textarea:focus { border-color: var(--cp-primary); outline: 2px solid var(--cp-primary-soft); }
.cp-contact__form .cp-field [aria-invalid="true"] { border-color: #a3322a; }
.cp-field__error { display: block; margin-top: .3rem; font-size: .85rem; color: #a3322a; }
.cp-contact__form .cp-field--check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--cp-muted); }
.cp-contact__form .cp-field--check input { width: 18px; min-height: 0; height: 18px; margin-top: .15rem; flex: none; accent-color: var(--cp-primary); }
.cp-contact__submit { min-width: 220px; min-height: 54px; }
.cp-hp { position: absolute !important; left: -9999px; }
.cp-contact__success { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; border-radius: var(--cp-radius); background: #e3f1ea; }
.cp-contact__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--cp-ok); color: var(--cp-white); }
.cp-contact__success-title { margin: 0 0 .25rem; font-weight: 750; color: var(--cp-ok); }
.cp-contact__success p { margin: 0; }
.cp-alert { margin: 0 0 1.25rem; padding: .85rem 1rem; border-radius: var(--cp-radius-s); font-size: .95rem; }
.cp-alert--error { background: #f8e4e2; color: #7d2620; }
.cp-alert--info { background: var(--cp-steel); color: var(--cp-ink); }

@media (max-width: 1024px) {
	.cp-content { grid-template-columns: 1fr; }
	.cp-content__side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 640px) {
	.cp-contact__grid { grid-template-columns: 1fr; }
	.cp-contact__form { padding: 1.1rem; }
	.cp-contact__submit { width: 100%; }
}

/* Widerrufsfunktion und Rechtstexte */
.cp-kv { margin: 0 0 1.25rem; }
.cp-kv > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--cp-line); }
.cp-kv dt { color: var(--cp-muted); }
.cp-kv dd { margin: 0; font-weight: 700; text-align: right; }
.cp-withdraw { max-width: 760px; margin-top: 1.25rem; }
.cp-withdraw__title { font-size: var(--cp-step-2); margin-top: 0; }
.cp-withdraw__note { color: var(--cp-muted); font-size: .92rem; }
.cp-withdraw-bar { background: var(--cp-primary-deep); border-top: 1px solid rgba(255, 255, 255, .08); }
.cp-withdraw-bar .cpde-wrap { padding-block: .6rem; text-align: center; }
.cp-withdraw-link { display: inline-block; padding: .35rem .9rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--cp-radius-s); color: var(--cp-white); font-size: .85rem; font-weight: 600; text-decoration: none; }
.cp-withdraw-link:hover { background: var(--cp-white); color: var(--cp-primary); }
.cpde-prose .cp-widerruf-muster { padding: 1.25rem; border: 1px dashed var(--cp-line); border-radius: var(--cp-radius); }

/* Formulare in normalen Seiten (Fließtext-Breite) */
.cpde-prose .cp-contact__form { margin-top: 1.25rem; }
.cpde-prose .cp-contact__form p { margin: 0 0 1rem; }
.cp-contact__form .cp-field label { line-height: 1.35; }
.cp-contact__form .cp-field input:not([type="checkbox"]), .cp-contact__form .cp-field select, .cp-contact__form .cp-field textarea { display: block; }
.cp-contact__form .cp-field textarea { min-height: 110px; resize: vertical; }
.cp-contact__form .cp-field abbr { text-decoration: none; border: 0; }
.cp-withdraw .cp-kv { margin-bottom: 1rem; }
