/* Camp und Co – Ergänzungen zu theme.json. Farben kommen aus der Palette, damit auch die Variante „Dunkel“ greift. */
:root {
	--cuc-brand: var(--wp--preset--color--gruen);
	--cuc-deep: var(--wp--preset--color--gruen-dunkel);
	--cuc-soft: var(--wp--preset--color--gruen-hell);
	--cuc-line: var(--wp--preset--color--linie);
	--cuc-muted: var(--wp--preset--color--gedaempft);
	--cuc-surface: var(--wp--preset--color--flaeche);
	--cuc-signal: var(--wp--preset--color--signal);
}
h1, h2, h3, .wp-block-heading { text-wrap: balance; font-stretch: 112%; }
:where(p) { max-width: 65ch; }
:focus-visible { outline: 3px solid var(--cuc-signal); outline-offset: 3px; border-radius: 4px; }

/* Kopf */
.cuc-header { border-bottom: 2px solid var(--cuc-brand); }
.cuc-logo { margin: 0; }
.cuc-logo img { width: min(260px, 62vw); height: auto; display: block; }

/* Kleine Überzeile */
.cuc-eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--cuc-brand); margin-bottom: .5rem;
}
.cuc-lead { font-size: 1.25rem; color: var(--cuc-muted); line-height: 1.45; max-width: 40ch; }
.cuc-hero h1 em { font-style: normal; color: var(--cuc-brand); }
.cuc-mark { margin: 0 auto; max-width: 380px; }
.cuc-mark img { width: 100%; height: auto; }
.cuc-where { color: var(--cuc-muted); font-size: .95rem; }
.cuc-where::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cuc-signal); margin-right: 8px; vertical-align: middle; }

/* Abschnitte mit Trennlinie */
.cuc-section { border-top: 1px solid var(--cuc-line); }

/* Karten */
.cuc-card {
	background: var(--cuc-surface); border: 1px solid var(--cuc-line); border-radius: 14px;
	padding: 24px !important; height: 100%;
}
.cuc-card p { color: var(--cuc-muted); }
.cuc-card h3 { font-size: 1.4rem; hyphens: auto; overflow-wrap: break-word; }
.cuc-card ul { color: var(--wp--preset--color--text); padding-left: 1.1em; }
.cuc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--cuc-soft); display: grid; place-items: center; }
.cuc-icon svg { width: 24px; height: 24px; stroke: var(--cuc-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Ablauf: nummerierte Schritte */
ol.cuc-steps { list-style: none; counter-reset: s; padding: 0; margin-left: 0; margin-right: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
ol.cuc-steps > li { counter-increment: s; padding-top: 16px; border-top: 3px solid var(--cuc-brand); color: var(--cuc-muted); }
ol.cuc-steps > li::before { content: counter(s); display: block; font-family: var(--wp--preset--font-family--display); font-weight: 900; font-size: 2rem; line-height: 1; color: var(--cuc-brand); margin-bottom: 8px; }
ol.cuc-steps strong { display: block; color: var(--wp--preset--color--text); }
@media (max-width: 820px) { ol.cuc-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { ol.cuc-steps { grid-template-columns: 1fr; } }

/* Buttons: Kontur-Variante */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--cuc-deep); border: 2px solid var(--cuc-brand); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--cuc-soft); }

/* Kontakt */
.cuc-kv .cuc-val { font-family: var(--wp--preset--font-family--display); font-weight: 750; font-size: 1.25rem; overflow-wrap: anywhere; margin-top: 0; }
.cuc-kv .cuc-val a { color: inherit; text-decoration: none; }

/* Anfrage-Baukasten */
.cuc-req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cuc-panel { background: var(--cuc-surface); border: 1px solid var(--cuc-line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cuc-req fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cuc-req legend { font-weight: 700; margin-bottom: 8px; }
.cuc-chip { position: relative; }
.cuc-chip input { position: absolute; opacity: 0; }
.cuc-chip label { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--cuc-line); cursor: pointer; font-weight: 600; }
.cuc-chip input:checked + label { background: var(--cuc-brand); border-color: var(--cuc-brand); color: var(--wp--preset--color--auf-gruen); }
.cuc-chip input:focus-visible + label { outline: 3px solid var(--cuc-signal); outline-offset: 2px; }
.cuc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cuc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cuc-field label { font-weight: 700; font-size: .95rem; }
.cuc-req input[type=date], .cuc-req input[type=text], .cuc-req textarea { font: inherit; color: inherit; background: var(--wp--preset--color--hintergrund); border: 1.5px solid var(--cuc-line); border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.cuc-req textarea { min-height: 90px; resize: vertical; }
.cuc-out { margin: 0; white-space: pre-wrap; font: 500 .95rem/1.55 var(--wp--preset--font-family--body); background: var(--cuc-soft); border-radius: 10px; padding: 16px; min-height: 160px; }
.cuc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cuc-btn { font: 700 1rem var(--wp--preset--font-family--body); display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--cuc-brand); text-decoration: none; cursor: pointer; background: transparent; color: var(--cuc-deep); }
.cuc-btn.is-primary { background: var(--cuc-brand); color: var(--wp--preset--color--auf-gruen); }
.cuc-note { font-size: .95rem; color: var(--cuc-muted); }
.cuc-panel .cuc-note { margin: 0; }
@media (max-width: 820px) { .cuc-req { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .cuc-row { grid-template-columns: 1fr; } }

/* Fuß */
.cuc-footer { border-top: 2px solid var(--cuc-brand); color: var(--cuc-muted); font-size: .9rem; }
.cuc-footer a { color: inherit; }

/* Handy: Hero-Zeichen klein über dem Text */
@media (max-width: 781px) {
	.cuc-hero .cuc-hero-mark { order: -1; }
	.cuc-hero .cuc-mark { max-width: 200px; margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
	.cuc-mark img { animation: cuc-rise .8s ease-out both; }
	@keyframes cuc-rise { from { transform: translateY(10px); } to { transform: none; } }
}
