/* ==========================================================================
   custom.css – Gemeinsame Stile für alle Anfrage-Formulare
   (Wärmepumpe, PV-Anlage, Allgemein)
   ========================================================================== */

/* ── Seitenheader: H2 einzeilig ─────────────────────────────────────────── */
.page-header-left h2 {
white-space: nowrap;
}

/* ── Formular-Wrapper ────────────────────────────────────────────────────── */
.wp-form-wrapper {
max-width: 760px;
margin: 0 auto;
}

/* ── Schritt-Anzeige ─────────────────────────────────────────────────────── */
.wp-steps {
display: flex;
align-items: flex-start;
justify-content: center;
margin-bottom: 40px;
}

.wp-step-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
min-width: 80px;
}

.wp-step-dot {
width: 38px;
height: 38px;
border-radius: 50%;
background: #E2E6E7;
color: #777;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 15px;
flex-shrink: 0;
line-height: 1;
transition: background 0.3s, color 0.3s;
}

.wp-step-item.active .wp-step-dot,
.wp-step-item.done .wp-step-dot {
background: #F58321;
color: #fff;
}

.wp-step-label {
font-size: 11px;
color: #999;
text-transform: uppercase;
letter-spacing: 0.5px;
text-align: center;
}

.wp-step-item.active .wp-step-label {
color: #F58321;
font-weight: 700;
}

.wp-step-item.done .wp-step-label {
color: #F58321;
}

.wp-step-divider {
flex: 1;
height: 2px;
background: #E2E6E7;
margin: 19px 8px 0;
max-width: 120px;
transition: background 0.3s;
}

.wp-step-divider.done {
background: #F58321;
}

/* ── Schritt-Inhalt ──────────────────────────────────────────────────────── */
.wp-step-content {
display: none;
}

.wp-step-content.active {
display: block;
}

/* ── Abschnitts-Titel & Hilfstexte ──────────────────────────────────────── */
.wp-section-title {
font-size: 13px;
font-weight: 700;
color: #25282A;
text-transform: uppercase;
letter-spacing: 0.8px;
margin-bottom: 8px;
margin-top: 28px;
display: block;
}

.wp-step-content > .wp-section-title:first-child,
.wp-step-content > fieldset:first-child {
margin-top: 0;
margin-bottom: 20px;
}

.wp-required {
color: #F58321;
margin-left: 2px;
}

.wp-optional {
color: #999;
font-weight: 400;
text-transform: none;
font-size: 12px;
letter-spacing: 0;
}

/* ── Karten-Radio-Buttons ────────────────────────────────────────────────── */
.wp-card-fieldset {
border: none;
padding: 0;
margin: 0;
margin-top: 28px;
}

.wp-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
gap: 10px;
margin-top: 8px;
}

.wp-card-grid--3 {
grid-template-columns: repeat(3, 1fr);
}

.wp-card {
display: flex;
align-items: center;
justify-content: center;
padding: 18px 10px;
border: 2px solid #E2E6E7;
border-radius: 3px;
cursor: pointer;
text-align: center;
font-weight: 600;
font-size: 13px;
color: #25282A;
transition: border-color 0.2s, background 0.2s, color 0.2s;
min-height: 64px;
line-height: 1.3;
position: relative;
/* Kein grauer Hintergrund vom globalen label-Stil */
background: #fff;
}

.wp-card input[type="radio"] {
position: absolute;
opacity: 0;
pointer-events: none;
width: 0;
height: 0;
}

.wp-card:hover {
border-color: #F58321;
color: #F58321;
background: #fff;
}

.wp-card.selected {
border-color: #F58321;
background: #fff8f0;
color: #F58321;
}

.wp-card-fieldset.wp-field--error .wp-card-grid {
outline: 2px solid #c0392b;
border-radius: 3px;
}

/* ── Formularfelder ──────────────────────────────────────────────────────── */
.wp-field {
margin-top: 20px;
}

.wp-field > label {
display: block;
font-size: 12px;
font-weight: 700;
color: #25282A;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 6px;
/* Kein grauer Hintergrund / kein Padding vom globalen label-Stil */
background: transparent;
padding: 0;
line-height: 1.4;
}

.wp-field .text-input,
.wp-field select.wp-select,
.wp-field textarea {
width: 100%;
box-sizing: border-box;
}

.wp-field .text-input {
margin: 0;
}

/* ── Natives Select (wp-select) – kein jQuery-UI selectmenu ─────────────── */
#wp-form select.wp-select {
font-family: 'Open Sans';
border: 1px solid #E2E6E7;
font-size: 14px;
line-height: 24px;
padding: 12px 15px;
color: #777;
background: #fff;
cursor: pointer;
appearance: auto;
}

#wp-form select.wp-select:focus {
outline: none;
border-color: #F58321;
}

/* ── Einheit neben Wohnfläche (m²) ──────────────────────────────────────── */
.wp-input-unit {
display: flex;
align-items: stretch;
}

.wp-input-unit .text-input {
flex: 1;
border-right: none;
margin: 0;
}

.wp-unit-label {
padding: 0 14px;
background: #F5F5F5;
border: 1px solid #E2E6E7;
border-left: none;
font-size: 13px;
font-weight: 600;
color: #777;
display: flex;
align-items: center;
white-space: nowrap;
}

/* ── Jahresverbrauch: Zahl + Einheiten-Select ────────────────────────────── */
.wp-consumption-row {
display: flex;
align-items: stretch;
}

.wp-consumption-row .text-input {
flex: 1;
border-right: none;
margin: 0;
}

.wp-consumption-row select.wp-select {
width: 100px;
flex-shrink: 0;
border-left: none;
padding-left: 10px;
padding-right: 10px;
}

/* ── Adresse / Name: Raster-Layouts ──────────────────────────────────────── */
.wp-name-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}

.wp-address-street {
display: grid;
grid-template-columns: 1fr 100px;
gap: 12px;
}

.wp-address-city {
display: grid;
grid-template-columns: 120px 1fr;
gap: 12px;
}

.wp-name-row > .wp-field,
.wp-address-street > .wp-field,
.wp-address-city > .wp-field {
margin-top: 0;
}

/* ── DSGVO-Checkbox ──────────────────────────────────────────────────────── */
.wp-gdpr {
margin-top: 24px;
padding: 16px;
background: #F5F5F5;
border: 1px solid #E2E6E7;
border-radius: 3px;
display: flex;
align-items: flex-start;
gap: 12px;
}

.wp-gdpr input[type="checkbox"] {
margin-top: 3px;
flex-shrink: 0;
width: 18px;
height: 18px;
accent-color: #F58321;
cursor: pointer;
}

/* DSGVO-Label: kein grauer Hintergrundbalken */
.wp-gdpr label {
background: transparent;
padding: 0;
font-size: 13px;
font-weight: 400;
color: #555;
line-height: 1.6;
cursor: pointer;
text-transform: none;
letter-spacing: 0;
}

.wp-gdpr label a {
color: #F58321;
}

.wp-gdpr label a:hover {
text-decoration: underline;
}

.wp-gdpr.wp-field--error {
border-color: #c0392b;
}

/* ── Navigation (Weiter / Zurück) ────────────────────────────────────────── */
.wp-nav {
display: flex;
justify-content: flex-end;
align-items: center;
margin-top: 28px;
gap: 10px;
}

.wp-nav--right {
justify-content: flex-end;
}

/* Zurück-Button: Text weiß beim Hovern */
.wp-nav .more.simple.wp-prev {
color: #F58321;
}

.wp-nav .more.simple.wp-prev:hover {
color: #fff;
}

.wp-nav .wp-submit:disabled {
opacity: 0.7;
cursor: not-allowed;
}

/* ── Feldfehlermeldungen ─────────────────────────────────────────────────── */
.wp-field-error {
display: block;
color: #c0392b;
font-size: 12px;
margin-top: 5px;
background: transparent;
padding: 0;
font-weight: 400;
}

.wp-field--error input.text-input,
.wp-field--error select,
.wp-field--error textarea,
input.wp-field--error,
select.wp-field--error,
textarea.wp-field--error {
border-color: #c0392b !important;
}

/* ── Erfolgsmeldung ──────────────────────────────────────────────────────── */
.wp-success-box {
text-align: center;
padding: 50px 30px;
background: #f0faf3;
border: 2px solid #27ae60;
border-radius: 4px;
margin-top: 20px;
}

.wp-success-box h3 {
color: #27ae60;
font-size: 22px;
margin-bottom: 14px;
font-weight: 700;
}

.wp-success-box p {
color: #555;
font-size: 15px;
line-height: 1.7;
}

.wp-success-box a {
color: #F58321;
}

/* ── Sende-Fehlerbox ─────────────────────────────────────────────────────── */
.wp-error-box {
padding: 14px 18px;
background: #fdf0ef;
border: 1px solid #e74c3c;
border-radius: 3px;
color: #c0392b;
font-size: 13px;
margin-top: 16px;
line-height: 1.5;
}

.wp-error-box a {
color: #c0392b;
font-weight: 600;
}

/* ── Notfall-Hinweisbox ──────────────────────────────────────────────────── */
.wp-alert-box {
padding: 14px 18px;
background: #fff8e1;
border: 1px solid #f9a825;
border-radius: 3px;
color: #795000;
font-size: 14px;
margin-top: 16px;
line-height: 1.6;
}

.wp-alert-box a {
color: #795000;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
.wp-card-grid {
grid-template-columns: 1fr 1fr;
}

.wp-card-grid--3 {
grid-template-columns: 1fr;
}

.wp-name-row,
.wp-address-street,
.wp-address-city {
grid-template-columns: 1fr;
}

.wp-name-row > .wp-field,
.wp-address-street > .wp-field,
.wp-address-city > .wp-field {
margin-top: 12px;
}

.wp-step-divider {
max-width: 40px;
margin: 19px 4px 0;
}

.wp-step-item {
min-width: 60px;
}

.wp-nav {
flex-wrap: wrap;
}

.wp-nav .more {
width: 100%;
text-align: center;
}
}

/* ==========================================================================
   Stellenausschreibungen (Jobs-Seite)
   ========================================================================== */

/* ── Stellenkarten-Raster ────────────────────────────────────────────────── */
.job-card-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 24px;
margin-top: 30px;
margin-bottom: 60px;
}

@media (max-width: 1024px) {
.job-card-grid {
grid-template-columns: 1fr 1fr;
}
}

.job-card {
border: 2px solid #E2E6E7;
border-radius: 4px;
padding: 28px 24px;
background: #fff;
}

.job-card__tag {
display: inline-block;
background: #F58321;
color: #fff;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.8px;
padding: 3px 10px;
border-radius: 2px;
margin-bottom: 14px;
}

.job-card__title {
font-size: 17px;
font-weight: 700;
color: #25282A;
margin-bottom: 6px;
line-height: 1.3;
}

.job-card__meta {
font-size: 13px;
color: #777;
margin-bottom: 18px;
}

.job-card__section-label {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.7px;
color: #25282A;
margin-top: 18px;
margin-bottom: 6px;
display: block;
}

.job-card ul {
list-style: none;
padding: 0;
margin: 0;
}

.job-card ul li {
font-size: 13px;
color: #555;
padding: 3px 0 3px 16px;
position: relative;
line-height: 1.5;
}

.job-card ul li::before {
content: '–';
position: absolute;
left: 0;
color: #F58321;
font-weight: 700;
}

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

select.text-input {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 14px center;
padding-right: 36px;
cursor: pointer;
}
