/* =============================================================
   Kontaktseite (jundo/kontakt-formular Pattern)
   Mobile First | Breakpoint: lg 1025px
   ============================================================= */

.jundo-kontakt-inner {
	width: 100%;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

/* Mobile First — Basis: 1 Spalte (Formular, dann Sidebar darunter)
   lg (1025px+): Formular breiter, Sidebar schmaler daneben
   ============================================================= */
.jundo-kontakt-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: start;
}

@media (min-width: 1025px) {
	.jundo-kontakt-grid {
		grid-template-columns: 1.6fr 1fr;
		gap: 56px;
	}
}

.jundo-kontakt-form-col,
.jundo-kontakt-side-col {
	margin: 0;
}

.jundo-kontakt-side-col {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* =============================================================
   CF7-Formular – eigene Zeilen-Wrapper, analog zum Footer-
   Angebotsformular (css/footer-contact.css), aber Light-Theme.
   ============================================================= */
.jundo-kontakt-row {
	margin-bottom: 20px;
}

.jundo-kontakt-row label {
	display: block;
	font-size: .9em;
	font-weight: 600;
	color: var(--wp--preset--color--heading);
	margin-bottom: 6px;
}

.jundo-kontakt-optional {
	font-weight: 400;
	color: var(--wp--preset--color--foreground-light);
}

.jundo-kontakt-form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-bottom: 20px;
}
.jundo-kontakt-form-grid .jundo-kontakt-row {
	margin-bottom: 0;
}

@media (min-width: 640px) {
	.jundo-kontakt-form-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-select,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-file {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
	font-family: inherit;
	font-size: 1em;
}

.wpcf7-form-control.wpcf7-textarea {
	min-height: 140px;
	resize: vertical;
}

.wpcf7-form-control.wpcf7-file {
	padding: 10px 14px;
	background: var(--wp--preset--color--background-alt);
}

.wpcf7-form-control:focus-visible {
	outline: 2px solid var(--wp--preset--color--secondary);
	outline-offset: 1px;
}

/* Dringend-Checkbox: eigene Zeile, etwas Luft, damit sie nicht wie
   ein normales Formularfeld untergeht – sie steuert das inhaltliche
   Gewicht der Anfrage (Priorisierung im Postfach). */
.jundo-kontakt-urgent-row .wpcf7-list-item {
	margin: 0;
}
.jundo-kontakt-urgent-row label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
}
.jundo-kontakt-urgent-row input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: var(--wp--preset--color--primary);
	flex-shrink: 0;
}

.jundo-kontakt-consent-row .wpcf7-list-item {
	margin: 0;
}
.jundo-kontakt-consent-row label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: .9em;
	color: var(--wp--preset--color--foreground-light);
}
.jundo-kontakt-consent-row input[type="checkbox"] {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
.jundo-kontakt-consent-row a {
	color: var(--wp--preset--color--secondary);
}

/* Eigenständiger Submit-Button – übernimmt den EINEN Primär-Button-
   Stil des Themes (Rot, 8px Radius, kein Pill). */
.wpcf7-form-control.wpcf7-submit {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 16px;
	border: none;
	border-radius: 8px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-contrast);
	font-family: inherit;
	font-size: 1.05em;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}
.wpcf7-form-control.wpcf7-submit:hover {
	background: #C10101;
}

.wpcf7-response-output {
	border-radius: 8px;
	margin-top: 16px !important;
}

.jundo-kontakt-form-note {
	font-size: .85em;
	color: var(--wp--preset--color--foreground-light);
	margin-top: 16px;
}

/* =============================================================
   "Direkter Kontakt"-Card – Light-Theme-Pendant zur dunklen
   Footer-Card (css/footer-contact.css), gleiches Icon-Farbsystem.
   ============================================================= */
.jundo-kontakt-card {
	background: var(--wp--preset--color--background-alt);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	padding: 28px;
}

.jundo-kontakt-card .jundo-contact-item {
	align-items: flex-start;
	padding: 14px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.jundo-kontakt-card .jundo-contact-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.jundo-kontakt-card .jundo-contact-item:first-of-type {
	padding-top: 4px;
}

.jundo-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	flex-shrink: 0;
}

.jundo-contact-icon--phone   { background: #F97316; }
.jundo-contact-icon--email   { background: #2563EB; }
.jundo-contact-icon--adresse { background: #16A34A; }
.jundo-contact-icon--zeiten  { background: #9333EA; }

.jundo-contact-item-title {
	font-weight: 700;
	color: var(--wp--preset--color--heading);
	margin: 0 0 2px;
}

.jundo-contact-item-value {
	font-size: .9em;
	color: var(--wp--preset--color--foreground-light);
	line-height: 1.6;
	margin: 0;
}

.jundo-contact-item-value a {
	color: inherit;
	text-decoration: none;
}
.jundo-contact-item-value a:hover,
.jundo-contact-item-value a:focus-visible {
	color: var(--wp--preset--color--secondary);
}

.jundo-contact-highlight {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* =============================================================
   Sturmschaden-Sofort-Hilfe-Box – bewusst eigenständiger, dringlicher
   Akzent (Primärfarbe als Rahmen + sehr helle Tönung als Fläche),
   kein zweiter, konkurrierender Button-Stil.
   ============================================================= */
.jundo-kontakt-urgent {
	background: rgba(223, 1, 1, .04);
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 16px;
	padding: 28px;
}

.jundo-kontakt-urgent h2 {
	color: var(--wp--preset--color--primary);
	margin-top: 0;
}

.jundo-kontakt-urgent-phone {
	margin: 16px 0 4px;
}
.jundo-kontakt-urgent-phone a {
	font-size: 1.5em;
	font-weight: 700;
	color: var(--wp--preset--color--heading);
	text-decoration: none;
}
.jundo-kontakt-urgent-phone a:hover,
.jundo-kontakt-urgent-phone a:focus-visible {
	color: var(--wp--preset--color--primary);
}

.jundo-kontakt-urgent-note {
	margin: 0;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	font-size: .85em;
	text-transform: uppercase;
	letter-spacing: .04em;
}
