/* DC Interim-Vorschlag 0.1.0
 * Farben und Schriften wie im Theme: Gold #c9ab69 / #c5a059, Text #1a1b1c, Rahmen #E3E3E3,
 * Schrift "DM Sans" (Fließtext) und transat-text (Überschriften, Schaltflächen). */

/* ===================== Formular ===================== */
.dciv { margin: 3rem 0 1rem; color: #1a1b1c; font-family: "DM Sans", sans-serif; font-size: 17px; line-height: 1.6; }
.dciv *, .dciv *::before, .dciv *::after { box-sizing: border-box; }
.dciv-title { margin: 0 0 .6rem; font-family: var(--theme-font-h5_font-family, transat-text, sans-serif); font-weight: 600; color: #1a1b1c; }
.dciv-lead { margin: 0 0 1.5rem; max-width: 52rem; }
.dciv-card { margin: 0 0 1.5rem; padding: 1.4rem 1.6rem 1.2rem; background: #fff; border: 1px solid #E3E3E3; border-left: 4px solid #c9ab69; border-radius: 6px; min-width: 0; }
.dciv-card > legend { float: left; width: 100%; padding: 0; margin: 0 0 1rem; font-family: var(--theme-font-h5_font-family, transat-text, sans-serif); font-weight: 600; font-size: 1.15em; color: #1a1b1c; }
.dciv-card > legend + * { clear: both; }
.dciv-grid { display: grid; grid-template-columns: 1fr; gap: 0 1.4rem; }
@media (min-width: 720px) { .dciv-grid { grid-template-columns: 1fr 1fr; } }
.dciv-field { margin: 0 0 1rem; }
.dciv-field label { display: block; margin: 0 0 .3rem; font-weight: 600; font-size: .95em; }
.dciv-field input[type="text"], .dciv-field input[type="email"], .dciv-field input[type="url"], .dciv-field textarea {
	display: block; width: 100%; padding: .7rem .85rem; font: inherit; color: #1a1b1c; background: #fff;
	border: 1px solid #C3C3C3; border-radius: 4px; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.dciv-field textarea { min-height: 9rem; resize: vertical; }
.dciv-field input:hover, .dciv-field textarea:hover { border-color: #9d9d9d; }
.dciv-field input:focus, .dciv-field textarea:focus { outline: none; border-color: #c5a059; box-shadow: 0 0 0 3px rgba(201, 171, 105, .35); }
.dciv-field input[type="file"] { display: block; width: 100%; padding: .6rem; font: inherit; background: #faf7ef; border: 1px dashed #c9ab69; border-radius: 4px; }
.dciv-hint { display: block; margin-top: .25rem; color: #5b5b5b; font-size: .85em; }
.dciv-note { margin: 0 0 1rem; }
.dciv-err { display: none; margin-top: .3rem; color: #b32d2e; font-size: .9em; font-weight: 600; }
.dciv-field.has-error .dciv-err { display: block; }
.dciv-field.has-error input, .dciv-field.has-error textarea { border-color: #b32d2e; }
.dciv-check label { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .95em; }
.dciv-check input[type="checkbox"] { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: #c5a059; }
.dciv-check a { color: #8a6d2f; text-decoration: underline; }
.dciv-check a:hover { color: #a88440; }
.dciv-req { margin: 0 0 1rem; color: #5b5b5b; font-size: .9em; }
.dciv-actions { text-align: center; margin-top: .5rem; }
.dciv-submit {
	min-width: 260px; padding: 16px 48px; font-family: var(--theme-font-button_font-family, transat-text, sans-serif); font-size: 1.15em; font-weight: 700; letter-spacing: .5px;
	color: #fff; background: #c5a059; border: none; border-radius: 4px; box-shadow: 0 4px 10px rgba(197, 160, 89, .35); cursor: pointer; transition: background-color .15s;
}
.dciv-submit:hover, .dciv-submit:focus { background: #a88440; color: #fff; }
.dciv-submit:focus-visible { outline: 3px solid #1a1b1c; outline-offset: 2px; }
.dciv-submit[disabled] { opacity: .65; cursor: wait; }
.dciv-status:empty { display: none; }
.dciv-msg { margin: 0 0 1.2rem; padding: 1rem 1.2rem; border-radius: 4px; font-weight: 600; }
.dciv-msg-ok { background: #f3ecdc; border-left: 4px solid #c9ab69; }
.dciv-msg-err { background: #fbeaea; border-left: 4px solid #b32d2e; color: #7d1f20; }
/* Honeypot: für Menschen unsichtbar, nicht per display:none (Bots erkennen das) */
.dciv-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 600px) {
	.dciv-card { padding: 1.1rem 1rem .8rem; }
	.dciv-submit { width: 100%; min-width: 0; padding: 16px 20px; }
}

/* ===== Aufklappbare Punkte (nur Seite /topinterimmanager/, Klasse dc-iv-page) ===== */
body.dc-iv-page .entry-content details.wp-block-details {
	margin: 0 0 12px; padding: 0; background: #fff; border: 1px solid #E3E3E3; border-left: 4px solid #c9ab69; border-radius: 6px; overflow: hidden;
	transition: box-shadow .15s, border-color .15s;
}
body.dc-iv-page .entry-content details.wp-block-details:hover { border-color: #c9ab69; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
body.dc-iv-page .entry-content details.wp-block-details > summary {
	position: relative; display: block; margin: 0; padding: 16px 64px 16px 20px; list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none;
	font-family: var(--theme-font-h5_font-family, transat-text, sans-serif); font-weight: 600; font-size: 1.05em; line-height: 1.4; color: #1a1b1c; background: #faf7ef; transition: background-color .15s;
}
body.dc-iv-page .entry-content details.wp-block-details > summary::-webkit-details-marker { display: none; }
body.dc-iv-page .entry-content details.wp-block-details > summary::marker { content: ""; }
body.dc-iv-page .entry-content details.wp-block-details > summary:hover { background: #f3ecdc; }
body.dc-iv-page .entry-content details.wp-block-details > summary:focus-visible { outline: 3px solid #1a1b1c; outline-offset: -3px; }
/* Pfeil im goldenen Kreis, dreht sich beim Öffnen */
body.dc-iv-page .entry-content details.wp-block-details > summary::before {
	content: ""; position: absolute; right: 16px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: #c9ab69;
	transition: background-color .15s;
}
body.dc-iv-page .entry-content details.wp-block-details > summary::after {
	content: ""; position: absolute; right: 27px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
	border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg); transition: transform .25s ease, margin-top .25s ease;
}
body.dc-iv-page .entry-content details.wp-block-details > summary:hover::before { background: #a88440; }
body.dc-iv-page .entry-content details.wp-block-details[open] > summary { background: #f3ecdc; border-bottom: 1px solid #e3d6b4; }
body.dc-iv-page .entry-content details.wp-block-details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
/* Inhalt: Innenabstand, ohne den Text zu verändern */
body.dc-iv-page .entry-content details.wp-block-details > :not(summary) { margin-left: 24px; margin-right: 24px; }
body.dc-iv-page .entry-content details.wp-block-details > summary + * { margin-top: 18px; }
body.dc-iv-page .entry-content details.wp-block-details > :last-child { margin-bottom: 20px; }
@media (prefers-reduced-motion: reduce) {
	body.dc-iv-page .entry-content details.wp-block-details,
	body.dc-iv-page .entry-content details.wp-block-details > summary,
	body.dc-iv-page .entry-content details.wp-block-details > summary::after { transition: none; }
}
@media (max-width: 600px) {
	body.dc-iv-page .entry-content details.wp-block-details > summary { padding: 14px 58px 14px 14px; }
	body.dc-iv-page .entry-content details.wp-block-details > :not(summary) { margin-left: 16px; margin-right: 16px; }
}
body.dc-iv-page .entry-content details.wp-block-details:first-of-type { margin-top: 24px; }
