/* TZ Digital Core – Formulare, Preisrechner, Projekt-Detail. Nutzt die Farben des Themes. */
.tzc-calc, .tzc-form {
	--c-bg: var(--wp--preset--color--nacht, #171512);
	--c-card: var(--wp--preset--color--karte, #1F1C18);
	--c-line: var(--wp--preset--color--linie, #2E2A24);
	--c-sand: var(--wp--preset--color--sand, #D9C4A3);
	--c-bronze: var(--wp--preset--color--bronze, #B08551);
	--c-text: var(--wp--preset--color--elfenbein, #F2EDE4);
	--c-muted: var(--wp--preset--color--grau, #A39B8E);
	--c-black: var(--wp--preset--color--schwarz, #0E0D0B);
}

/* Felder */
.tzc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.tzc-full { grid-column: 1 / -1; }
.tzc-field { margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.tzc-field label { font-size: .9375rem; color: var(--c-muted); font-weight: 500; }
.tzc-req { color: var(--c-sand); }
.tzc-field input, .tzc-field textarea, .tzc-field select {
	width: 100%; box-sizing: border-box;
	background: var(--c-black); color: var(--c-text);
	border: 0; border-bottom: 3px solid transparent; border-radius: 0;
	background: var(--c-card);
	padding: .95rem 1rem; font: inherit; font-size: 1rem;
	transition: border-color 200ms ease, background-color 200ms ease;
}
.tzc-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23D9C4A3' stroke-width='2'/%3E%3C/svg%3E"); background-position: calc(100% - 16px) 50%; background-size: 12px 8px; background-repeat: no-repeat; padding-right: 2.5rem; }
.tzc-field input:focus, .tzc-field textarea:focus, .tzc-field select:focus { outline: none; border-bottom-color: var(--c-sand); background: #26221d; }
.tzc-field [aria-invalid="true"] { border-bottom-color: #e4a08d !important; } .tzc-consent [aria-invalid="true"] { outline: 2px solid #e4a08d; }
.tzc-consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .9375rem; color: var(--c-muted); line-height: 1.5; margin: .3rem 0 0; }
.tzc-consent input { flex: none; width: 24px; height: 24px; margin-top: .1rem; accent-color: var(--c-sand); }
.tzc-consent a { color: var(--c-sand); }
.tzc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: unsichtbares Spam-Feld */
.tzc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.6rem; }
.tzc-small { font-size: .9375rem; color: var(--c-muted); margin: 0; }
.tzc-submit, .tzc-next { cursor: pointer; border: 0; }
.tzc-submit.is-loading { opacity: .6; cursor: progress; }
.tzc-status { margin-top: 1rem; font-size: .95rem; }
.tzc-status:empty { display: none; }
.tzc-status.is-error { color: #e4a08d; }
.tzc-status.is-ok { color: var(--c-sand); }
.tzc-form.is-sent .tzc-status { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; font-size: 1.15rem; color: var(--c-text); padding: 1rem 0; }
.tzc-check { width: 56px; height: 56px; display: grid; place-items: center; background: var(--c-sand); color: var(--c-black); font-size: 1.6rem; font-weight: 700; animation: tzc-pop 400ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes tzc-pop { from { transform: scale(.9); opacity: 0; } }
@media (max-width: 640px) { .tzc-fields { grid-template-columns: 1fr; } }

/* Preisrechner */
.tzc-calc { position: relative; }
.tzc-progress { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; counter-reset: s; }
.tzc-progress li { position: relative; }
.tzc-progress button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: .5rem; width: 100%; padding-top: .9rem; border-top: 4px solid var(--c-card); color: var(--c-muted); font-size: .9375rem; transition: color 200ms ease, border-color 200ms ease; }
.tzc-progress button:disabled { cursor: not-allowed; opacity: .5; }
.tzc-progress button span { font-family: var(--wp--preset--font-family--bricolage, sans-serif); font-weight: 600; }
.tzc-progress button em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzc-progress .is-done button { border-top-color: var(--c-bronze); color: var(--c-text); }
.tzc-progress .is-current button { border-top-color: var(--c-sand); color: var(--c-sand); }
.tzc-progress button:focus-visible { outline: 2px solid var(--c-sand); outline-offset: 4px; }
.tzc-calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: start; }
.tzc-calc-main { min-width: 0; }
.tzc-step-count { font-size: .9375rem; color: var(--c-bronze); font-weight: 600; margin: 0 0 .6rem; font-family: var(--wp--preset--font-family--bricolage, sans-serif); }
.tzc-step-title { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem) !important; letter-spacing: -.02em; margin: 0 0 .5rem !important; outline: none; }
.tzc-step-hint { color: var(--c-muted); margin: 0 0 1.6rem; }
.tzc-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .8rem; }
.tzc-opt {
	all: unset; box-sizing: border-box; cursor: pointer; position: relative;
	display: flex; flex-direction: column; gap: .35rem;
	padding: 1.2rem 1.2rem 1.1rem 3.2rem;
	background: var(--c-bg); border: 0; border-radius: 0;
	transition: background-color 200ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
	color: var(--c-text);
}
@media (hover: hover) and (pointer: fine) { .tzc-opt:hover { background: var(--c-card); } }
.tzc-opt:active { transform: scale(.97); }
.tzc-opt:focus-visible { outline: 2px solid var(--c-sand); outline-offset: 3px; }
.tzc-opt strong { font-family: var(--wp--preset--font-family--bricolage, sans-serif); font-weight: 600; font-size: 1.05rem; }
.tzc-opt small { color: var(--c-muted); font-size: .9375rem; line-height: 1.4; }
.tzc-opt-price { margin-top: .35rem; font-size: .9375rem; color: var(--c-sand); }
.tzc-opt-check { position: absolute; left: 1.15rem; top: 1.35rem; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c-muted); box-sizing: border-box; transition: background-color 200ms ease, border-color 200ms ease; }
.is-multi .tzc-opt-check { border-radius: 0; }
.tzc-opt.is-on { background: var(--c-sand); color: var(--c-black); }
.tzc-opt.is-on small, .tzc-opt.is-on .tzc-opt-price { color: #3a332a; }
.tzc-opt.is-on .tzc-opt-check { background: var(--c-black); border-color: var(--c-black); }
.tzc-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.tzc-nav .tzc-next { margin-left: auto; }
.tzc-next:disabled { opacity: .35; cursor: not-allowed; }
.tzc-back { all: unset; cursor: pointer; color: var(--c-muted); font-size: .95rem; padding: .6rem 0; }
.tzc-back:hover { color: var(--c-text); }
.tzc-back:focus-visible { outline: 2px solid var(--c-sand); }
.tzc-summary {
	position: sticky; top: 100px;
	background: var(--c-bg);
	border: 0; border-radius: 0; padding: 1.8rem;
}
.tzc-sum-label { font-size: .9375rem; color: var(--c-sand); font-weight: 600; margin: 0 0 .8rem; font-family: var(--wp--preset--font-family--bricolage, sans-serif); }
.tzc-sum-empty { color: var(--c-muted); font-size: .95rem; }
.tzc-sum-price { font-family: var(--wp--preset--font-family--bricolage, sans-serif); font-size: clamp(2.25rem, 1.4rem + 1.6vw, 3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin: 0; color: var(--c-text); }
.tzc-sum-sub { color: var(--c-muted); font-size: .9375rem; margin: .3rem 0 0; }
.tzc-sum-month { color: var(--c-sand); font-size: .95rem; margin: .8rem 0 0; }
.tzc-sum-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .35rem; }
.tzc-sum-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0; font-size: .9375rem; color: var(--c-muted); }
.tzc-sum-list li b { font-weight: 500; text-align: right; color: var(--c-muted); }
.tzc-sum-list li.is-set b { color: var(--c-text); }
.tzc-sum-note { font-size: .9375rem; color: var(--c-muted); margin: 1rem 0 0; line-height: 1.5; }
.tzc-contact-slot .tzc-form { margin: 0; }
.tzc-done { text-align: left; padding: 2rem 0; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.tzc-done h3 { outline: none; margin: .6rem 0 0; }
/* Drücken */
.tzc-submit, .tzc-next { transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.tzc-submit:active, .tzc-next:active { transform: scale(.97); }

@media (max-width: 960px) {
	.tzc-calc-grid { grid-template-columns: 1fr; }
	.tzc-summary { position: relative; top: 0; order: -1; padding: 1.3rem 1.4rem; }
	.tzc-summary .tzc-sum-list, .tzc-summary .tzc-sum-note { display: none; }
	.tzc-progress em { display: none; }
}

/* Projekt-Einzelseite */
.tz-project-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.tz-project-facts div { background: var(--wp--preset--color--nacht, #171512); padding: 1rem 1.2rem; }
.tz-project-facts div { display: flex; flex-direction: column; gap: .3rem; font-size: 1rem; }
.tz-project-facts span { font-size: .9375rem; color: var(--wp--preset--color--grau, #A39B8E); }
.tz-project-hero-img { overflow: hidden; margin-bottom: 3rem; }
.tz-project-hero-img img { width: 100%; display: block; }
.tz-project-body { max-width: 60ch; margin-left: 42%; color: rgba(242,237,228,.86); }
@media (max-width: 781px) { .tz-project-body { margin-left: 0; } }
.tz-project-back { margin-top: 3rem; }
.tz-project-back { margin-top: 2.5rem !important; } .tz-project-back a { font-family: var(--wp--preset--font-family--bricolage, sans-serif); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: .35em; }

/* Weitere Projekte */
.tz-more-title { margin-top: clamp(5rem, 10vw, 8rem) !important; }
.tz-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.tz-more-item { display: grid; gap: .8rem; text-decoration: none; color: inherit; }
.tz-more-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wp--preset--color--nacht, #171512); }
.tz-more-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms cubic-bezier(0.23, 1, 0.32, 1); }
.tz-more-name { font-family: var(--wp--preset--font-family--bricolage, sans-serif); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .tz-more-item:hover img { transform: scale(1.03); } .tz-more-item:hover .tz-more-name { text-decoration: underline; text-decoration-thickness: 2px; } }
@media (max-width: 700px) { .tz-more { grid-template-columns: 1fr; } }

.tz-legal-hint { padding: 1rem 1.2rem; background: var(--wp--preset--color--sand, #D9C4A3); color: var(--wp--preset--color--schwarz, #0E0D0B); font-size: .9375rem; }
.tz-prose .tz-legal-hint, .tz-legal-hint { color: #0E0D0B !important; }
.tz-legal-hint *, .tz-legal-hint a { color: inherit !important; font-style: normal; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	.tzc-opt, .tzc-check { transition: none !important; animation: none !important; }
}

/* Fallstudie: Ausgangslage, Lösung, Ergebnis an der Achse */
.tz-case { display: grid; gap: clamp(2rem, 4vw, 3.5rem); margin: clamp(3.5rem, 7vw, 6rem) 0; }
.tz-case-title { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem) !important; letter-spacing: -.02em; margin: 0 !important; color: var(--wp--preset--color--bronze, #B08551) !important; }
.tz-case-text { margin: 0; font-size: clamp(1.0625rem, .95rem + .35vw, 1.25rem); max-width: 46ch; color: var(--wp--preset--color--elfenbein, #F2EDE4); }
.tz-project-detail-img { overflow: hidden; margin-bottom: 3rem; }
.tz-project-detail-img img { width: 100%; display: block; height: auto; }
