/**
 * epcan Infomobil – Frontend Styles
 *
 * Hinweis: Typografie (font-family) wird bewusst nicht überschrieben –
 * Schriftart kommt vom WordPress-Theme.
 */

/* Theme-Wrapper auf der Infomobil-Seite zurücksetzen,
   damit der Slider die volle Breite einnehmen kann.
   Subheader & Section-Padding optional via Page-Settings im Theme.  */
body.epcan-infomobil-page #Content,
body.epcan-infomobil-page .epcan-im-page-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.epcan-infomobil-page .epcan-im-page-wrap .content_wrapper,
body.epcan-infomobil-page .epcan-im-page-wrap .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.epcan-infomobil-page #Subheader {
    display: none !important;
}

.epcan-im {
    --epcan-orange: #F1800E;
    --epcan-orange-dark: #d96d00;
    --epcan-navy: #122538;
    --epcan-bg: #FFFFFF;
    --epcan-bg-soft: #FFF8F0;
    --epcan-border: #e8e0d8;
    --epcan-text: #2c3e50;
    --epcan-muted: #6b7280;
    color: var(--epcan-text);
}

.epcan-im *,
.epcan-im *::before,
.epcan-im *::after {
    box-sizing: border-box;
}

.epcan-im h2,
.epcan-im h3 {
    color: var(--epcan-navy);
}

/* ============================================================
   HERO / SLIDER
   ============================================================ */
.epcan-im-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 560px;
    overflow: hidden;
    background-color: #1a2937;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 65%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epcan-im-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(18,37,56,0.65) 0%, rgba(18,37,56,0.35) 60%, rgba(18,37,56,0.15) 100%);
}

.epcan-im-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 50px 24px;
    max-width: 1100px;
}

.epcan-im-hero-eyebrow {
    display: inline-block;
    background: rgba(241, 128, 14, 0.95);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 600;
}

.epcan-im-hero-title {
    font-size: 48px;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.45);
    font-weight: 400;
}

.epcan-im-hero-title strong {
    font-weight: 700;
}

.epcan-im-hero-sub {
    font-size: 18px;
    line-height: 1.55;
    max-width: 680px;
    margin: 0 auto 28px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.45);
}

.epcan-im-hero-btn {
    display: inline-block;
    background: var(--epcan-orange);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: background 0.2s, transform 0.15s;
}

.epcan-im-hero-btn:hover {
    background: var(--epcan-orange-dark);
    transform: translateY(-1px);
    color: #fff !important;
}

/* ============================================================
   USP-KARTEN
   ============================================================ */
.epcan-im-usp {
    padding: 60px 24px;
    max-width: 1180px;
    margin: 0 auto;
}

.epcan-im-usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.epcan-im-usp-card {
    text-align: center;
    padding: 12px 8px;
}

.epcan-im-usp-icon {
    margin: 0 auto 18px;
    color: var(--epcan-orange);
    line-height: 1;
    font-size: 64px;
}

.epcan-im-usp-icon i {
    color: var(--epcan-orange);
    display: inline-block;
    line-height: 1;
}

.epcan-im-usp-icon svg {
    width: 84px;
    height: 84px;
}

.epcan-im-usp-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--epcan-navy);
}

.epcan-im-usp-card p {
    margin: 0;
    color: var(--epcan-muted);
    line-height: 1.55;
    font-size: 15px;
}

/* ============================================================
   SECTION HEAD (gemeinsam für Standorte / Kontakt)
   ============================================================ */
.epcan-im-section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}

.epcan-im-section-head h2 {
    margin: 0 0 14px;
    font-size: 34px;
    color: var(--epcan-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.epcan-im-section-head p {
    margin: 0;
    color: var(--epcan-muted);
    line-height: 1.6;
    font-size: 16px;
}

/* ============================================================
   STANDORTE
   ============================================================ */
.epcan-im-standorte {
    padding: 70px 24px 40px;
    max-width: 1180px;
    margin: 0 auto;
}

.epcan-im-standorte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.epcan-im-standort {
    background: #fff;
    border: 1px solid var(--epcan-border);
    border-radius: 14px;
    padding: 26px 24px;
    box-shadow: 0 2px 10px rgba(18,37,56,0.04);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.epcan-im-standort-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.epcan-im-standort-pin {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--epcan-bg-soft);
    color: var(--epcan-orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.epcan-im-standort-pin svg {
    width: 24px;
    height: 24px;
}

.epcan-im-standort-title {
    margin: 0 0 4px;
    font-size: 19px;
    color: var(--epcan-navy);
    line-height: 1.3;
}

.epcan-im-standort-adresse {
    color: var(--epcan-muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.15s;
}

.epcan-im-standort-adresse:hover {
    color: var(--epcan-orange);
}

.epcan-im-standort-zeiten {
    background: var(--epcan-bg-soft);
    border-radius: 10px;
    padding: 14px 16px;
}

.epcan-im-zeiten-label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.8px;
    color: var(--epcan-orange);
    font-weight: 700;
    margin-bottom: 8px;
}

.epcan-im-standort-zeiten ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.epcan-im-standort-zeiten li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(241,128,14,0.25);
    font-size: 14px;
}

.epcan-im-standort-zeiten li:last-child {
    border-bottom: none;
}

.epcan-im-zeit-datum {
    font-weight: 600;
    color: var(--epcan-navy);
}

.epcan-im-zeit-uhr {
    color: var(--epcan-muted);
}

.epcan-im-standort-hinweis {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(241,128,14,0.25);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--epcan-muted);
    line-height: 1.5;
}

.epcan-im-standort-hinweis svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--epcan-orange);
    margin-top: 1px;
}

/* Empty State */
.epcan-im-empty {
    text-align: center;
    padding: 50px 24px;
    background: var(--epcan-bg-soft);
    border-radius: 14px;
    border: 1px dashed var(--epcan-border);
}

.epcan-im-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--epcan-orange);
    opacity: 0.6;
}

.epcan-im-empty-icon svg {
    width: 100%;
    height: 100%;
}

.epcan-im-empty h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--epcan-navy);
}

.epcan-im-empty p {
    margin: 0;
    color: var(--epcan-muted);
}

/* ============================================================
   KONTAKTFORMULAR
   ============================================================ */
.epcan-im-kontakt {
    padding: 70px 24px 90px;
    max-width: 900px;
    margin: 0 auto;
}

.epcan-im-form {
    background: #fff;
    border: 1px solid var(--epcan-border);
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 4px 18px rgba(18,37,56,0.05);
}

.epcan-im-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.epcan-im-field {
    margin-bottom: 18px;
}

.epcan-im-form-row .epcan-im-field {
    margin-bottom: 0;
}

.epcan-im-field--third {
    /* füllt nur 1 von 3 */
}

.epcan-im-form-row:has(.epcan-im-field--third) {
    grid-template-columns: 1fr 2fr;
}

.epcan-im-form-row:has(.epcan-im-field--twothirds:last-child) {
    grid-template-columns: 1fr 2fr;
}

.epcan-im-form-row:has(.epcan-im-field--twothirds:first-child) {
    grid-template-columns: 2fr 1fr;
}

.epcan-im-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--epcan-navy);
    margin-bottom: 6px;
}

.epcan-im-field input[type="text"],
.epcan-im-field input[type="email"],
.epcan-im-field input[type="tel"],
.epcan-im-field select,
.epcan-im-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    color: var(--epcan-text);
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.epcan-im-field textarea {
    resize: vertical;
    min-height: 110px;
}

.epcan-im-field input:focus,
.epcan-im-field select:focus,
.epcan-im-field textarea:focus {
    outline: none;
    border-color: var(--epcan-orange);
    box-shadow: 0 0 0 3px rgba(241,128,14,0.15);
}

.epcan-im-field input.is-invalid,
.epcan-im-field select.is-invalid,
.epcan-im-field textarea.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.12);
}

/* Custom Checkbox */
.epcan-im-checkbox-row {
    margin: 6px 0 22px;
}

.epcan-im-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: var(--epcan-text);
    line-height: 1.5;
}

.epcan-im-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.epcan-im-check-mark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #c0c4cc;
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: all 0.15s;
    margin-top: 1px;
}

.epcan-im-checkbox input:checked + .epcan-im-check-mark {
    border-color: var(--epcan-orange);
    background: var(--epcan-orange);
}

.epcan-im-checkbox input:checked + .epcan-im-check-mark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.epcan-im-checkbox a {
    color: var(--epcan-orange);
    text-decoration: underline;
}

/* Submit-Bereich */
.epcan-im-form-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.epcan-im-submit {
    background: var(--epcan-orange);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
    font-family: inherit;
}

.epcan-im-submit:hover:not(:disabled) {
    background: var(--epcan-orange-dark);
    transform: translateY(-1px);
}

.epcan-im-submit:disabled {
    background: #c8cdd4;
    cursor: not-allowed;
    transform: none;
}

.epcan-im-submit.is-loading {
    position: relative;
    color: transparent;
}

.epcan-im-submit.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: epcanImSpin 0.8s linear infinite;
}

@keyframes epcanImSpin {
    to { transform: rotate(360deg); }
}

.epcan-im-required-hint {
    margin: 0;
    font-size: 12px;
    color: var(--epcan-muted);
}

.epcan-im-feedback {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.epcan-im-feedback.is-success {
    display: block;
    background: #e7f6ec;
    border: 1px solid #b7dfc4;
    color: #1e6b3a;
}

.epcan-im-feedback.is-error {
    display: block;
    background: #fde8e8;
    border: 1px solid #f5b6b6;
    color: #9b2424;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .epcan-im-usp-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .epcan-im-hero-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .epcan-im-hero {
        height: 420px;
    }

    .epcan-im-hero-content {
        padding: 30px 18px;
    }

    .epcan-im-hero-title {
        font-size: 30px;
    }

    .epcan-im-hero-sub {
        font-size: 16px;
    }

    .epcan-im-section-head h2 {
        font-size: 26px;
    }

    .epcan-im-usp,
    .epcan-im-standorte,
    .epcan-im-kontakt {
        padding-left: 18px;
        padding-right: 18px;
    }

    .epcan-im-usp {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .epcan-im-standorte {
        padding-top: 50px;
    }

    .epcan-im-kontakt {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .epcan-im-form {
        padding: 24px 20px;
    }

    .epcan-im-form-row,
    .epcan-im-form-row:has(.epcan-im-field--third),
    .epcan-im-form-row:has(.epcan-im-field--twothirds:last-child),
    .epcan-im-form-row:has(.epcan-im-field--twothirds:first-child) {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .epcan-im-form-row .epcan-im-field {
        margin-bottom: 18px;
    }

    .epcan-im-standort-zeiten li {
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 480px) {
    .epcan-im-hero-eyebrow {
        font-size: 11px;
        padding: 5px 12px;
    }

    .epcan-im-hero-title {
        font-size: 26px;
    }

    .epcan-im-hero-btn {
        padding: 12px 22px;
        font-size: 15px;
    }

    .epcan-im-section-head h2 {
        font-size: 22px;
    }

    .epcan-im-standort {
        padding: 22px 18px;
    }
}
