/*
 * Login-CSS
 * Formulare, Dashboards, Meldungen + Bright-Mode-Landingpage (.erbel-hero).
 * Text Domain: divi-erbel-child
 * Version: 1.0.7 – Bright Mode referenzgetreu rekonstruiert
 */

/* ==========================================================================
   Messages / Notices
   ========================================================================== */
.erbel-message{padding:1em 1.25em;margin-bottom:1.5em;border-radius:4px;border-left:4px solid;font-size:.95em;line-height:1.5}
.erbel-message--success{background:#edf7ed;border-left-color:#4caf50;color:#2e7d32}
.erbel-message--error{background:#fdeded;border-left-color:#f44336;color:#c62828}
.erbel-message--error ul{margin:0;padding-left:1.25em;list-style:disc}
.erbel-message--info{background:#e3f2fd;border-left-color:#2196f3;color:#1565c0}

/* ==========================================================================
   Forms (separate Login-Seiten)
   ========================================================================== */
.erbel-form{max-width:480px;margin:0 auto}
.erbel-form-field{margin-bottom:1.25em}
.erbel-form-field label{display:block;margin-bottom:.4em;font-weight:600;font-size:.95em;color:#333}
.erbel-form-field .required{color:#f44336}
.erbel-form-field input[type=text],.erbel-form-field input[type=email],.erbel-form-field input[type=password]{width:100%;padding:.7em .9em;border:1px solid #ccc;border-radius:4px;font-size:1em;font-family:inherit;box-sizing:border-box;transition:border-color .2s,box-shadow .2s}
.erbel-form-field input:focus{border-color:#1976d2;box-shadow:0 0 0 2px rgba(25,118,210,.2);outline:none}
.erbel-form-field input:invalid:not(:placeholder-shown){border-color:#f44336}
.erbel-form-links{text-align:center;margin-top:1em;font-size:.9em}
.erbel-form-links a{color:#1976d2;text-decoration:none}
.erbel-form-links a:hover{text-decoration:underline}

/* ==========================================================================
   Buttons
   ========================================================================== */
.erbel-button{display:inline-block;padding:.7em 1.5em;border:none;border-radius:4px;font-size:1em;font-family:inherit;font-weight:600;cursor:pointer;text-decoration:none;text-align:center;transition:background .2s,opacity .2s}
.erbel-button--primary{background:#1976d2;color:#fff}
.erbel-button--primary:focus,.erbel-button--primary:hover{background:#1565c0;color:#fff;text-decoration:none}
.erbel-button--secondary{background:#f5f5f5;color:#333;border:1px solid #ccc}
.erbel-button--secondary:focus,.erbel-button--secondary:hover{background:#e0e0e0;color:#333;text-decoration:none}

/* ==========================================================================
   Dashboard
   ========================================================================== */
.erbel-dashboard{max-width:960px;margin:0 auto;padding:2em 1.5em}
.erbel-dashboard-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;margin-bottom:2em;padding-bottom:1em;border-bottom:2px solid #eee}
.erbel-dashboard-header h1{margin:0;font-size:1.75em;color:#222}
.erbel-dashboard-user-info{text-align:right}
.erbel-dashboard-user-info p{margin:0 0 .5em;font-size:.95em;color:#555}
.erbel-dashboard-actions{margin-top:.5em!important}
.erbel-dashboard-content{min-height:400px}
.erbel-dashboard-footer{margin-top:3em;padding-top:1em;border-top:1px solid #eee;text-align:center;font-size:.85em;color:#999}

/* Login-Seiten Fullwidth */
body.erbel-dp-fullwidth .erbel-form{margin:2em auto}
body.erbel-dp-fullwidth.page-id .entry-title{text-align:center}

/* Dashboard-Responsive */
@media(max-width:600px){.erbel-form{max-width:100%}.erbel-dashboard{padding:1em}.erbel-dashboard-header{flex-direction:column}.erbel-dashboard-header h1{margin-bottom:.5em}.erbel-dashboard-user-info{text-align:left}}

/* ==========================================================================
   LANDINGPAGE – HOMEPAGE-CONTAINER-FIXES (body.home)
   ========================================================================== */

/* Seitentitel ausblenden */
body.home .entry-title{display:none}

/* Divi-Container auf Fullwidth – kein globaler Eingriff */
body.home #main-content>.container,
body.home #content-area,
body.home #left-area,
body.home article,
body.home .entry-content{width:100%!important;max-width:100%!important;padding-left:0!important;padding-right:0!important}

/* Divi-Abstand oberhalb des Inhalts entfernen */
body.home #main-content>.container:before{display:none}
body.home #main-content>.container{padding-top:0!important}
body.home #left-area{padding-top:0!important}

/* Leerer Footer-Widget-Bereich ausblenden (Startseite) */
body.home #footer-widgets{display:none!important}

/* ==========================================================================
   HERO – DESKTOP (≥1025px, default)
   ========================================================================== */
body.home .erbel-hero{
    position:relative;background:#f8f8f8 url('../img/hero-pc-both.jpg') center/cover no-repeat;
    padding:80px 20px 60px;text-align:center;min-height:460px;
    display:flex;align-items:center;justify-content:center;
}
body.home .erbel-hero-body{position:relative;z-index:1;max-width:960px;width:100%}

/* Desktop-Text: weiß/hell (dunkler Hintergrund) */
body.home .erbel-hero-title{font-size:2.8em;font-weight:700;margin:0 0 10px;line-height:1.15}
body.home .erbel-hero-title-line1{display:block;font-size:.55em;font-weight:300;color:#fff;letter-spacing:.04em;margin-bottom:4px}
body.home .erbel-hero-title-line2{display:block;font-size:1em;font-weight:700;color:#fff}
body.home .erbel-hero-subtitle{font-size:1.1em;color:rgba(255,255,255,.9);margin:0 auto 20px;line-height:1.5;max-width:600px}
body.home .erbel-hero-divider{margin:16px auto 32px;text-align:center;line-height:1}
body.home .erbel-hero-divider svg{display:inline-block;vertical-align:middle}

/* ==========================================================================
   LOGIN-KARTEN – DESKTOP/TABLET (hell/creme, horizontal)
   ========================================================================== */
body.home .erbel-hero-cards{display:flex;gap:24px;justify-content:center;max-width:700px;margin:0 auto;flex-wrap:wrap}

body.home .erbel-hc{
    display:flex;flex-direction:row;align-items:center;gap:16px;
    flex:1;min-width:280px;max-width:330px;padding:22px 24px;
    border-radius:10px;text-decoration:none;color:inherit;
    transition:transform .2s,box-shadow .2s;
}
body.home .erbel-hc:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,.12)}

/* Desktop/Tablet: beide Karten hell/creme */
body.home .erbel-hc--kunde,
body.home .erbel-hc--mitarbeiter{background:#f0ede8;box-shadow:0 2px 10px rgba(0,0,0,.06)}
body.home .erbel-hc--kunde .erbel-hc-title,
body.home .erbel-hc--mitarbeiter .erbel-hc-title{color:#3a2f28}
body.home .erbel-hc--kunde .erbel-hc-sub,
body.home .erbel-hc--mitarbeiter .erbel-hc-sub{color:#666}
body.home .erbel-hc--kunde .erbel-hc-icon,
body.home .erbel-hc--mitarbeiter .erbel-hc-icon{color:#bb8238}
body.home .erbel-hc--kunde .erbel-hc-arrow,
body.home .erbel-hc--mitarbeiter .erbel-hc-arrow{color:#bb8238}

body.home .erbel-hc-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:44px;height:44px}
body.home .erbel-hc-text{flex:1;display:flex;flex-direction:column;gap:4px}
body.home .erbel-hc-title{font-size:1.1em;font-weight:700}
body.home .erbel-hc-sub{font-size:.85em}
body.home .erbel-hc-arrow{flex-shrink:0;display:flex;align-items:center}

/* ==========================================================================
   HERO-TABLET (769–1024px)
   ========================================================================== */
@media(min-width:769px) and (max-width:1024px){
    body.home .erbel-hero{
        background-image:url('../img/hero-tablet-bright.jpg');
        min-height:400px;padding:60px 20px 50px;
    }
    /* Tablet: dunkle Texte (heller Hintergrund), goldene Akzente */
    body.home .erbel-hero-title-line1{color:#bb8238;font-weight:500}
    body.home .erbel-hero-title-line2{color:#2a1f18}
    body.home .erbel-hero-subtitle{color:#4a3a30}
    body.home .erbel-hero-title{font-size:2.2em}
}

/* ==========================================================================
   HERO-MOBILE (≤768px)
   ========================================================================== */
@media(max-width:768px){
    body.home .erbel-hero{
        background-image:url('../img/hero-mobile-bright.jpg');
        min-height:360px;padding:44px 16px 36px;
    }
    /* Mobile: gold + dunkle Texte */
    body.home .erbel-hero-title{font-size:1.6em}
    body.home .erbel-hero-title-line1{color:#bb8238;font-weight:500;font-size:.65em}
    body.home .erbel-hero-title-line2{color:#2a1f18;font-size:.85em}
    body.home .erbel-hero-subtitle{color:#4a3a30;font-size:.95em}

    /* Mobile-Karten: untereinander */
    body.home .erbel-hero-cards{flex-direction:column;align-items:stretch;max-width:400px}
    body.home .erbel-hc{max-width:100%;min-width:0;flex-direction:row;align-items:center;gap:14px}

    /* Kundenkarte: gold */
    body.home .erbel-hc--kunde{background:#bb8238!important;color:#fff}
    body.home .erbel-hc--kunde .erbel-hc-title{color:#fff}
    body.home .erbel-hc--kunde .erbel-hc-sub{color:rgba(255,255,255,.8)}
    body.home .erbel-hc--kunde .erbel-hc-icon{color:#fff}
    body.home .erbel-hc--kunde .erbel-hc-arrow{color:rgba(255,255,255,.7)}

    /* Mitarbeiterkarte: dunkelbraun */
    body.home .erbel-hc--mitarbeiter{background:#3a2f28!important;color:#e0d8cf}
    body.home .erbel-hc--mitarbeiter .erbel-hc-title{color:#e0d8cf}
    body.home .erbel-hc--mitarbeiter .erbel-hc-sub{color:rgba(224,216,207,.7)}
    body.home .erbel-hc--mitarbeiter .erbel-hc-icon{color:#e0d8cf}
    body.home .erbel-hc--mitarbeiter .erbel-hc-arrow{color:rgba(224,216,207,.6)}
}

/* ==========================================================================
   INFO-SPALTEN
   ========================================================================== */
.erbel-info{background:#faf8f5;padding:48px 20px}
.erbel-info-inner{display:flex;gap:0;max-width:1080px;margin:0 auto}
.erbel-info-col{flex:1;text-align:center;padding:0 24px;position:relative}
/* Vertikale Trennlinien zwischen Spalten */
.erbel-info-col+.erbel-info-col{border-left:1px solid #e0dbd2}
.erbel-info-icon{display:block;margin:0 auto 12px;line-height:1}
.erbel-info-col h3{font-size:1.15em;font-weight:700;color:#3a2f28;margin:0 0 8px}
.erbel-info-col p{font-size:.92em;color:#666;line-height:1.5;margin:0}

/* ==========================================================================
   INFO-SPALTEN MOBILE (≤768px) – 3 KOMPAKTE SPALTEN
   ========================================================================== */
@media(max-width:768px){
    .erbel-info{padding:32px 8px}
    .erbel-info-inner{flex-direction:row;gap:0;flex-wrap:nowrap}
    .erbel-info-col{padding:0 6px;min-width:0}
    .erbel-info-col+.erbel-info-col{border-left:1px solid #e0dbd2}
    .erbel-info-icon svg{width:24px;height:24px}
    .erbel-info-col h3{font-size:.8em;margin:0 0 4px}
    .erbel-info-col p{font-size:.7em;line-height:1.35}
}

/* ==========================================================================
   EINGELOGGTE STATUSLEISTE
   ========================================================================== */
.erbel-logged-in-bar{background:#3a2f28;color:#e0d8cf;font-size:13px;text-align:center;padding:8px 20px;display:flex;justify-content:center;gap:18px;flex-wrap:wrap}
.erbel-logged-in-bar a{color:#f0c060;text-decoration:none;font-weight:600}
.erbel-logged-in-bar a:hover{text-decoration:underline}
