/**
 * Delotek — Kontakt & Karriere sections + Gravity Forms skin.
 *
 * Presentation only. The Gravity Forms overrides are scoped to `.delotek-gforms`
 * (the wrapper around every embedded form) and target GF's stable structural
 * classes, so they hold across GF themes.
 */

/* =====================================================================
   Kontakt form card
   ===================================================================== */
.delotek-kontakt__formcard {
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(30, 27, 24, 0.1);
	border-radius: 4px;
	padding: clamp(22px, 4vw, 34px);
	box-shadow: 0 1px 2px rgba(30, 27, 24, 0.04), 0 12px 32px -24px rgba(30, 27, 24, 0.25);
}

.delotek-kontakt__formtitle {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: 28px;
	line-height: 1.05;
	color: var(--wp--preset--color--secondary);
	margin: 0 0 4px;
}

.delotek-kontakt__formhint {
	margin: 0 0 22px;
	font-size: 13.5px;
	color: var(--wp--preset--color--muted);
}

/* =====================================================================
   Kontakt section
   ===================================================================== */
.delotek-kontakt {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: clamp(28px, 5vw, 56px);
	align-items: start;
}

.delotek-kontakt__title {
	margin: 14px 0 0;
}

.delotek-kontakt__lead {
	margin: 16px 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 16px;
	line-height: 1.6;
	max-width: 38ch;
}

.delotek-kontakt__card {
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(30, 27, 24, 0.1);
	border-radius: 4px;
	overflow: hidden;
}

.delotek-kontakt__row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease;
}

.delotek-kontakt__row + .delotek-kontakt__row {
	border-top: 1px solid rgba(30, 27, 24, 0.08);
}

.delotek-kontakt__row:hover {
	background: rgba(82, 192, 52, 0.05);
}

.delotek-kontakt__tile {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background: rgba(82, 192, 52, 0.1);
	color: var(--wp--preset--color--primary);
}

.delotek-kontakt__rowbody {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.delotek-kontakt__rowlabel {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

.delotek-kontakt__rowvalue {
	margin-top: 3px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--wp--preset--color--contrast);
	word-break: break-word;
}

.delotek-kontakt__row:hover .delotek-kontakt__rowvalue {
	color: var(--wp--preset--color--primary);
}

.delotek-kontakt__rowsub {
	margin-top: 4px;
	font-size: 13.5px;
	color: var(--wp--preset--color--muted);
}

.delotek-kontakt__map {
	margin-top: 16px;
	border: 1px solid rgba(30, 27, 24, 0.1);
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	min-height: 220px;
}

.delotek-kontakt__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* =====================================================================
   Karriere — section header meta
   ===================================================================== */
.delotek-karriere-head {
	align-items: end;
}

.delotek-karriere-meta {
	margin: 0;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
	text-align: right;
	align-self: end;
	white-space: nowrap;
}

/* =====================================================================
   Karriere — job grid (3 columns, always expanded)
   ===================================================================== */
.delotek-jobs {
	margin-top: 28px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.delotek-job {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(30, 27, 24, 0.1);
	border-radius: 4px;
	padding: clamp(20px, 2.2vw, 26px);
}

.delotek-job__tag {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	background: transparent;
	border: 1px solid rgba(30, 27, 24, 0.18);
	border-radius: 999px;
	padding: 4px 12px;
}

.delotek-job__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: 23px;
	line-height: 1.1;
	color: var(--wp--preset--color--secondary);
	margin: 14px 0 0;
}

.delotek-job__kurz {
	margin: 10px 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 14.5px;
	line-height: 1.55;
}

.delotek-job__loc {
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid rgba(30, 27, 24, 0.08);
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.delotek-job__group {
	margin-top: 16px;
}

.delotek-job__colhead {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 9px;
}

.delotek-job__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.delotek-job__list li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast);
}

.delotek-job__list li svg {
	flex: 0 0 auto;
	margin-top: 2px;
}

.delotek-job__apply {
	margin-top: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	border-radius: 999px;
	padding: 13px 20px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.delotek-job__apply:hover {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* Pin the button to the bottom so cards of different heights align.
   The minimum gap lives on the preceding element — margin-top: auto
   collapses to zero on the tallest card, and padding inside the pill
   would skew the label. */
.delotek-job__group + .delotek-job__apply,
.delotek-job__loc + .delotek-job__apply {
	margin-top: auto;
}

.delotek-job__group:has(+ .delotek-job__apply),
.delotek-job__loc:has(+ .delotek-job__apply) {
	margin-bottom: 22px;
}

/* =====================================================================
   Karriere — Bewerbung block (blue aside + form)
   ===================================================================== */
.delotek-bewerbung {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	border: 1px solid rgba(30, 27, 24, 0.1);
	border-radius: 4px;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
}

.delotek-bewerbung__aside {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	padding: clamp(26px, 3.5vw, 44px);
}

.delotek-eyebrow--onblue {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
}

.delotek-eyebrow--onblue::before {
	content: "";
	width: 24px;
	height: 2px;
	background: var(--wp--preset--color--primary);
}

.delotek-eyebrow--onblue p {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

.delotek-bewerbung__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: clamp(28px, 3.4vw, 38px);
	line-height: 1.02;
	color: #fff;
	margin: 0;
}

.delotek-bewerbung__soft {
	color: rgba(255, 255, 255, 0.5);
}

.delotek-bewerbung__lead {
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 15.5px;
	line-height: 1.6;
}

.delotek-bewerbung__map {
	margin-top: 26px;
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	min-height: 200px;
	background: rgba(255, 255, 255, 0.06);
}

.delotek-bewerbung__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.delotek-bewerbung__contact {
	list-style: none;
	margin: auto 0 0;
	padding: 26px 0 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.delotek-bewerbung__contact li {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.85);
}

.delotek-bewerbung__contact li svg {
	flex: 0 0 auto;
	color: var(--wp--preset--color--primary);
}

.delotek-bewerbung__contact a {
	color: inherit;
	text-decoration: none;
}

.delotek-bewerbung__contact a:hover {
	color: #fff;
}

.delotek-bewerbung__form {
	padding: clamp(24px, 3.5vw, 40px);
	background: var(--wp--preset--color--surface);
}

/* =====================================================================
   Gravity Forms skin (scoped to .delotek-gforms)
   ===================================================================== */
.delotek-gforms .gform_wrapper,
.delotek-gforms .gform_wrapper form {
	margin: 0;
}

/* We render our own heading/description above the form. */
.delotek-gforms .gform_heading {
	display: none;
}

/* Single-column field stack. */
.delotek-gforms .gform_fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
	grid-template-columns: none;
}

.delotek-gforms .gfield {
	margin: 0;
	min-width: 0;
}

/* Collapse hidden fields (e.g. the Paket field) so they don't add a flex gap. */
.delotek-gforms .gfield--type-hidden {
	display: none;
}

.delotek-gforms .gfield_label {
	display: block;
	margin: 0 0 6px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.delotek-gforms .gfield_required {
	color: var(--wp--preset--color--primary);
	margin-left: 3px;
}

.delotek-gforms .ginput_container input[type="text"],
.delotek-gforms .ginput_container input[type="email"],
.delotek-gforms .ginput_container input[type="tel"],
.delotek-gforms .ginput_container input[type="number"],
.delotek-gforms .ginput_container input[type="url"],
.delotek-gforms .ginput_container textarea,
.delotek-gforms .ginput_container select {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--surface-2);
	border: 1px solid transparent;
	border-radius: 4px;
	/* height:auto overrides Gravity Forms' fixed control height, which clipped
	   the text against our padding + line-height. */
	height: auto;
	padding: 12px 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	appearance: none;
}

.delotek-gforms .ginput_container select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6660' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
	cursor: pointer;
}

.delotek-gforms .ginput_container textarea {
	min-height: 120px;
	resize: vertical;
}

.delotek-gforms .ginput_container input::placeholder,
.delotek-gforms .ginput_container textarea::placeholder {
	color: rgba(30, 27, 24, 0.4);
}

.delotek-gforms .ginput_container input:focus,
.delotek-gforms .ginput_container textarea:focus,
.delotek-gforms .ginput_container select:focus {
	outline: none;
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(82, 192, 52, 0.16);
}

.delotek-gforms .gfield_description {
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--wp--preset--color--muted);
}

/* Hide GF's auto-generated (English, locale en_US) file-rules line; our own
   German field description already states the accepted types and size. */
.delotek-gforms .gform_fileupload_rules {
	display: none;
}

/* File upload */
.delotek-gforms .ginput_container_fileupload input[type="file"] {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--surface-2);
	border: 1px dashed rgba(30, 27, 24, 0.25);
	border-radius: 4px;
	/* height:auto + min-height stop GF's fixed control height from clipping the
	   browser's native "Choose File" button. */
	height: auto;
	min-height: 48px;
	padding: 12px 14px;
	cursor: pointer;
}

/* Style the native file-select button to match (where the browser supports it). */
.delotek-gforms .ginput_container_fileupload input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.delotek-gforms .ginput_container_fileupload input[type="file"]::file-selector-button:hover {
	background: var(--wp--preset--color--primary);
}

/* Consent / GDPR checkbox */
.delotek-gforms .ginput_container_consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.delotek-gforms .ginput_container_consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	accent-color: var(--wp--preset--color--primary);
}

.delotek-gforms .ginput_container_consent label {
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
}

.delotek-gforms .ginput_container_consent label a {
	color: var(--wp--preset--color--secondary);
	text-decoration: underline;
}

.delotek-gforms .gfield--type-consent .gfield_label {
	display: none;
}

/* The Orbital theme renders the consent description as a bordered,
   scrollable box that looks like an input — flatten it to plain text. */
.delotek-gforms .gfield_consent_description {
	border: 0 !important;
	padding: 6px 0 0 !important;
	max-height: none !important;
	overflow: visible !important;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

/* Submit button — blue pill, green on hover. */
.delotek-gforms .gform_footer {
	margin: 22px 0 0;
	padding: 0;
}

.delotek-gforms .gform_wrapper .gform_footer .gform_button,
.delotek-gforms .gform_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	/* !important to beat Gravity Forms' Orbital theme button colours,
	   radius (3px) and padding. */
	background: var(--wp--preset--color--secondary) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 14px 30px !important;
	height: auto !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.delotek-gforms .gform_wrapper .gform_footer .gform_button:hover,
.delotek-gforms .gform_button:hover {
	background: var(--wp--preset--color--primary) !important;
	color: #fff !important;
}

.delotek-gforms .gform_ajax_spinner {
	margin-left: 12px;
}

/* Validation */
.delotek-gforms .gfield_error .ginput_container input,
.delotek-gforms .gfield_error .ginput_container textarea,
.delotek-gforms .gfield_error .ginput_container select {
	border-color: #c0392b;
	background: var(--wp--preset--color--surface);
}

.delotek-gforms .validation_message {
	margin-top: 6px;
	font-size: 12.5px;
	color: #c0392b;
}

.delotek-gforms .gform_validation_errors {
	margin: 0 0 18px;
	padding: 12px 16px;
	border: 1px solid rgba(192, 57, 43, 0.3);
	background: rgba(192, 57, 43, 0.06);
	border-radius: 4px;
	box-shadow: none;
}

.delotek-gforms .gform_validation_errors .gform_submission_error {
	font-size: 14px;
	font-weight: 600;
	color: #c0392b;
}

/* Confirmation (after AJAX submit) */
.delotek-gforms .gform_confirmation_message {
	padding: 22px 24px;
	border: 1px solid rgba(82, 192, 52, 0.35);
	background: rgba(82, 192, 52, 0.08);
	border-radius: 4px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast);
}

/* =====================================================================
   Paket inquiry modal + trigger buttons
   ===================================================================== */
.dl-paket-modal {
	position: relative;
	width: min(520px, 92vw);
	max-width: 520px;
	max-height: 90vh;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 30px 80px -30px rgba(30, 27, 24, 0.55);
	overflow: auto;
}

.dl-paket-modal::backdrop {
	background: rgba(29, 27, 24, 0.55);
}

.dl-paket-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.dl-paket-modal__close:hover {
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--contrast);
}

.dl-paket-modal__head {
	padding: 28px 28px 0;
}

.dl-paket-modal__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: 30px;
	line-height: 1.04;
	color: var(--wp--preset--color--secondary);
	margin: 0;
	padding-right: 40px;
}

.dl-paket-modal__paketline {
	margin: 10px 0 0;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
}

.dl-paket-modal__paket {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.dl-paket-modal__body {
	padding: 22px 28px 28px;
}

/* Inquiry trigger buttons (single paket hero). */
.delotek-anfrage-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.delotek-anfrage-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 14px 28px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.delotek-anfrage-btn:hover {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* Outline variant (phone link next to the primary trigger). */
.delotek-anfrage-btn--ghost {
	background: transparent;
	color: var(--wp--preset--color--secondary);
	border: 1px solid var(--wp--preset--color--secondary);
	padding: 13px 27px;
}

.delotek-anfrage-btn--ghost:hover {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}

/* Reset for existing pill classes when rendered as <button> triggers. */
button.delotek-sec-cta__btn,
button.delotek-pak-card__btn {
	border: 0;
	cursor: pointer;
	font: inherit;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1023px) {
	.delotek-jobs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.delotek-kontakt {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.delotek-bewerbung {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.delotek-jobs {
		grid-template-columns: 1fr;
	}

	.delotek-karriere-head {
		align-items: start;
	}

	.delotek-karriere-meta {
		text-align: left;
		white-space: normal;
		margin-top: 8px;
	}
}
