/**
 * Kontaktformular.
 *
 * Optik bewusst an smartkram-claims (assets/claims.css) angelehnt - siehe
 * .claude/skills/projekt-scope ("Optik soll sich an claims orientieren").
 * Dasselbe Scoping-Prinzip: alles unter .skk-form, damit nichts anderes auf
 * der Seite beeinflusst wird.
 */

.skk-form {
	max-width: 42rem;
}

.skk-step__title {
	margin-top: 0;
}

.skk-intro {
	margin-top: 0;
	color: #767676;
}

.skk-anfrage {
	margin: 0 0 2em;
	padding: 0;
	border: 0;
}

.skk-anfrage + .skk-anfrage {
	margin-top: 2em;
	padding-top: 2em;
	border-top: 1px solid #ececec;
}

.skk-anfrage-kopf {
	display: flex;
	justify-content: flex-end;
	margin-bottom: .5em;
}

.skk-entfernen {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2em;
	height: 2em;
	margin: 0;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 0;
	background: #fff;
	color: #767676;
	font-size: 1.1em;
	line-height: 1;
	cursor: pointer;
}

.skk-entfernen:hover {
	background: #f7f6f7;
	color: #333;
}

.skk-field {
	display: block;
	margin: 0 0 1.25em;
}

.skk-field-label {
	display: block;
	margin: 0 0 .35em;
	font-weight: 600;
}

.skk-field label,
.skk-field .skk-label {
	display: block;
	margin-bottom: .35em;
	font-weight: 600;
	line-height: 1.4;
}

.skk-form .skk-field input[type="text"],
.skk-form .skk-field input[type="email"],
.skk-form .skk-field select,
.skk-form .skk-field textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: .7em .8em;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	font: inherit;
	line-height: 1.4;
}

.skk-form .skk-field input:focus,
.skk-form .skk-field select:focus,
.skk-form .skk-field textarea:focus {
	border-color: #666;
	outline: 2px solid transparent;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, .12);
}

.skk-required {
	color: #b22222;
	border: 0;
	text-decoration: none;
}

.skk-hint {
	display: block;
	margin-top: .35em;
	font-size: .85em;
	color: #767676;
}

.skk-hint--fehler {
	color: #b22222;
}

/* Hinweis- und Weiterleitungsbloecke (Produktanfrage-Links, Retoure/Reklamation-Redirect, Sendungs-Notiz) in smartkram-Gruen (#9bbc47, Toenung #f0f5e3). */
.skk-notice {
	margin: 0 0 1.25em;
	padding: 1em 1.25em;
	border-left: 4px solid #9bbc47;
	background: #f0f5e3;
}

.skk-notice p:first-child {
	margin-top: 0;
}

.skk-notice p:last-child {
	margin-bottom: 0;
}

.skk-notice ul {
	margin: 0 0 1em;
}

/* Warnhinweis wie die Hersteller-Sonderfaelle bei claims (.skc-special). */
.skk-notice--warnung {
	border-left-color: #d9a406;
	background: #fdf6e3;
}

/* Der Hinweis startet versteckt; das JS blendet ihn ein. */
.skk-storno-hinweis[hidden] {
	display: none;
}

/* Positions-Tabelle. */
.skk-table {
	width: 100%;
	margin: 1em 0 1.5em;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.skk-table th,
.skk-table td {
	padding: .75em;
	text-align: left;
	border-bottom: 1px solid #ececec;
	vertical-align: middle;
}

.skk-table thead th {
	background: #f7f7f7;
	font-weight: 600;
}

.skk-table tbody tr:last-child td {
	border-bottom: 0;
}

.skk-col-select {
	width: 3em;
}

.skk-col-qty,
.skk-col-status {
	white-space: nowrap;
	color: #767676;
}

/* Mengenfeld: erscheint erst, wenn die Position angehakt ist. */
.skk-col-menge {
	white-space: nowrap;
}

.skk-menge-wrap[hidden] {
	display: none;
}

.skk-menge-wrap .skk-hint {
	margin-top: .2em;
}

.skk-form .skk-menge {
	box-sizing: border-box;
	width: 5em;
	margin: 0;
	padding: .4em .5em;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	font: inherit;
}

/* Notiz zu Sendungen ohne Position: die Links stehen im Satz, nicht untereinander. */
.skk-zusatzsendung .skk-sendungslink {
	display: inline;
	margin-top: 0;
}

/* Sendungsverfolgung unter dem Lieferstatus, je Sendung eine Zeile. */
.skk-sendungslink {
	display: block;
	margin-top: .25em;
	font-weight: 600;
}

.skk-form .skk-select-item {
	width: auto;
	margin: 0;
}

.skk-item-name {
	display: block;
	margin: 0;
	font-weight: 600;
	cursor: pointer;
}

.skk-item-sku {
	display: block;
	color: #767676;
	font-size: .85em;
}

/* Cloudflare Turnstile rendert sein eigenes iframe - nur Abstand zur Aktionsleiste. */
.cf-turnstile {
	margin-top: 1.5em;
}

.skk-actions {
	margin-top: 1.5em;
}

/*
 * Buttons: smartkram-Gruen #9bbc47 (Hover #89a83c, wie im Retouren-Prototyp
 * und im Logo) und eckig - anders als der Rest, der sich an claims
 * orientiert. Bewusst nur schlichte Werte, keine CSS-Variablen: claims.css
 * kommt auch ohne aus, und Cache-/Optimierungs-Plugins der Seite muessen sich
 * nicht mit Neuem herumschlagen.
 */
.skk-button {
	display: inline-block;
	margin: 0;
	padding: .7em 1.4em;
	border: 1px solid transparent;
	border-radius: 0;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

/* Die Selektoren tragen .skk-form mit, damit weder Theme-Linkfarben (der Weiterleitungs-Button ist ein Link) noch Theme-Buttonstile durchschlagen. */
.skk-form .skk-button--primary,
.skk-form .skk-button--primary:visited {
	background: #9bbc47;
	border-color: #9bbc47;
	color: #fff;
}

.skk-form .skk-button--primary:hover,
.skk-form .skk-button--primary:focus {
	background: #89a83c;
	border-color: #89a83c;
	color: #fff;
}

.skk-button--secondary {
	margin-right: .75em;
	background: #fff;
	border-color: #ccc;
	color: #333;
}

/* Meldungen wie die woocommerce-error der Schwesterformulare. */
.skk-messages:not([hidden]) {
	margin: 0 0 1.5em;
	padding: 1em 1.25em;
	border-top: 3px solid #b81c23;
	border-radius: 3px;
	background-color: #f7f6f7;
}

.skk-ergebnis:not([hidden]) {
	margin-top: 1.5em;
}

.skk-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Versanddaten-Diagnose - nur im Dev-Paket, wie die Mailvorschau. */
.skk-diagnose {
	margin: 1.5em 0;
	padding: .75em 1em;
	border: 2px dashed #d9a406;
	background: #fdf6e3;
	font-size: .85em;
}

.skk-diagnose summary {
	cursor: pointer;
	font-weight: 600;
}

.skk-diagnose .skk-table {
	background: #fff;
}

/* Mailvorschau - nur im Dev-Paket (SKK_MAILVORSCHAU), siehe
   .claude/skills/entwicklungsumgebung. */
.skk-mailvorschau {
	margin-top: 2.5em;
	padding: 1em 1.25em;
	border: 2px dashed #d9a406;
	background: #fdf6e3;
}

.skk-mailvorschau h3 {
	margin-top: 0;
}

.skk-mailvorschau__mail {
	margin: 1em 0;
	border: 1px solid #e3d5a8;
	background: #fff;
}

.skk-mailvorschau__mail summary {
	padding: .75em 1em;
	cursor: pointer;
	background: #faf3dc;
}

.skk-mailvorschau__anhaenge {
	margin: .75em 1em 0;
	font-size: .85em;
	color: #767676;
}

/* So wie in der Mail: dieselbe Schrift wie SKK_Email::wrap(). */
.skk-mailvorschau__rumpf {
	padding: 1em;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #333;
}
