/* ── Haruby Loyalty System – Frontend CSS ── */
.hls-container {
    max-width: 700px !important;
    margin: 20px auto !important;
    font-family: Arial, sans-serif !important;
    color: #222 !important;
    background: transparent !important;
}

/* Tabs */
.hls-tabs {
    display: flex !important;
    gap: 4px !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #e0b400 !important;
}
.hls-tab-btn {
    background: #f5f5f5 !important;
    border: none !important;
    padding: 10px 24px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: bold !important;
    color: #555 !important;
    border-radius: 6px 6px 0 0 !important;
    transition: all .2s !important;
    -webkit-text-fill-color: #555 !important;
}
.hls-tab-btn.active,
.hls-tab-btn:hover {
    background: #e0b400 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
.hls-tab-content { display: none !important; }
.hls-tab-content.active { display: block !important; }

/* Formulare */
.hls-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 400px !important;
}
.hls-form input[type="text"],
.hls-form input[type="email"],
.hls-form input[type="password"] {
    padding: 10px 14px !important;
    border: 2px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    background: #fff !important;
    color: #222 !important;
    -webkit-text-fill-color: #222 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.hls-form input:focus {
    border-color: #e0b400 !important;
    outline: none !important;
}

/* Buttons */
.hls-btn {
    background: #e0b400 !important;
    background-color: #e0b400 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none !important;
    padding: 10px 22px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: bold !important;
    transition: background .2s !important;
    display: inline-block !important;
}
.hls-btn:hover {
    background: #c9a200 !important;
    background-color: #c9a200 !important;
}
.hls-btn-sm {
    padding: 6px 14px !important;
    font-size: 13px !important;
}

/* Consent */
.hls-consent {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #555 !important;
    -webkit-text-fill-color: #555 !important;
    line-height: 1.5 !important;
}
.hls-consent a { color: #e0b400 !important; -webkit-text-fill-color: #e0b400 !important; }

/* Nachrichten */
.hls-msg { margin: 8px 0 !important; font-size: 14px !important; min-height: 20px !important; }
.hls-notice {
    padding: 12px 16px !important;
    border-radius: 6px !important;
    margin-bottom: 16px !important;
    font-weight: bold !important;
}
.hls-success {
    background: #e6f9e6 !important;
    background-color: #e6f9e6 !important;
    color: #2a7a2a !important;
    -webkit-text-fill-color: #2a7a2a !important;
    border: 1px solid #a3d9a3 !important;
}
.hls-error {
    background: #fdecea !important;
    background-color: #fdecea !important;
    color: #b00020 !important;
    -webkit-text-fill-color: #b00020 !important;
    border: 1px solid #f5b8b8 !important;
}

/* Dashboard Header */
.hls-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #e0b400 !important;
    background-color: #e0b400 !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
}
.hls-welcome {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
.hls-avatar {
    font-size: 32px !important;
}
.hls-welcome strong {
    display: block !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 16px !important;
}
.hls-pts-big {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 22px !important;
    font-weight: bold !important;
}

/* Fortschrittsbalken */
.hls-next-rewards,
.hls-unlocks,
.hls-history,
.hls-how {
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    margin-bottom: 16px !important;
}
.hls-next-rewards h4,
.hls-unlocks h4,
.hls-history h4,
.hls-how h4 {
    margin: 0 0 14px !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
    font-size: 16px !important;
}
.hls-reward-progress { margin-bottom: 14px !important; }
.hls-reward-info {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 13px !important;
    color: #555 !important;
    -webkit-text-fill-color: #555 !important;
    margin-bottom: 6px !important;
}
.hls-progress-bar {
    height: 10px !important;
    background: #eee !important;
    background-color: #eee !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}
.hls-progress-fill {
    height: 100% !important;
    background: #e0b400 !important;
    background-color: #e0b400 !important;
    border-radius: 10px !important;
    transition: width .5s !important;
}
.hls-reward-progress small {
    font-size: 12px !important;
    color: #888 !important;
    -webkit-text-fill-color: #888 !important;
}

/* Unlock-Items */
.hls-unlock-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
}
.hls-unlock-item:last-child { border-bottom: none !important; }

/* Tabelle */
.hls-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13px !important;
}
.hls-table th {
    text-align: left !important;
    padding: 8px !important;
    border-bottom: 2px solid #eee !important;
    color: #555 !important;
    -webkit-text-fill-color: #555 !important;
    background: transparent !important;
}
.hls-table td {
    padding: 7px 8px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
    background: transparent !important;
}
.hls-pts-col {
    color: #e0b400 !important;
    -webkit-text-fill-color: #e0b400 !important;
    font-weight: bold !important;
}

/* How-Grid */
.hls-how-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
}
.hls-how-item {
    background: #f9f9f9 !important;
    background-color: #f9f9f9 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    text-align: center !important;
    font-size: 13px !important;
    color: #444 !important;
    -webkit-text-fill-color: #444 !important;
}
.hls-how-item strong {
    display: block !important;
    margin-top: 4px !important;
    color: #e0b400 !important;
    -webkit-text-fill-color: #e0b400 !important;
    font-size: 15px !important;
}

/* Modal */
.hls-modal {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,.5) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.hls-modal-inner {
    background: #fff !important;
    background-color: #fff !important;
    border-radius: 12px !important;
    padding: 28px !important;
    max-width: 500px !important;
    width: 90% !important;
    color: #222 !important;
    -webkit-text-fill-color: #222 !important;
}
.hls-modal-inner h4 {
    margin: 0 0 12px !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
}

/* Punktetoast */
.hls-toast {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    background: #e0b400 !important;
    background-color: #e0b400 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    z-index: 99998 !important;
    animation: hlsFadeIn .3s ease !important;
}
@keyframes hlsFadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* Sub-Text */
.hls-sub {
    color: #666 !important;
    -webkit-text-fill-color: #666 !important;
    font-size: 14px !important;
    margin-bottom: 16px !important;
}

/* Responsive */
@media (max-width: 600px) {
    .hls-how-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .hls-header { flex-direction: column !important; gap: 12px !important; }
}

/* ── Account löschen ── */
.hls-delete-zone {
    background: #fff5f5 !important;
    background-color: #fff5f5 !important;
    border: 1px solid #f5b8b8 !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    margin-bottom: 16px !important;
}
.hls-delete-zone h4 {
    margin: 0 0 8px !important;
    color: #b00020 !important;
    -webkit-text-fill-color: #b00020 !important;
    font-size: 15px !important;
}
.hls-delete-zone p {
    color: #555 !important;
    -webkit-text-fill-color: #555 !important;
    font-size: 13px !important;
    margin-bottom: 12px !important;
}
.hls-delete-confirm-box {
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid #f5b8b8 !important;
    border-radius: 8px !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
}
.hls-delete-confirm-box p {
    margin-bottom: 8px !important;
    font-size: 13px !important;
    color: #444 !important;
    -webkit-text-fill-color: #444 !important;
}
.hls-delete-confirm-box input[type="password"] {
    padding: 8px 12px !important;
    border: 2px solid #f5b8b8 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #222 !important;
    -webkit-text-fill-color: #222 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 8px !important;
}
.hls-delete-btns {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 10px !important;
}
.hls-btn-danger {
    background: #b00020 !important;
    background-color: #b00020 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
.hls-btn-danger:hover {
    background: #8a0018 !important;
    background-color: #8a0018 !important;
}
.hls-btn-grey {
    background: #aaa !important;
    background-color: #aaa !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
.hls-btn-grey:hover {
    background: #888 !important;
    background-color: #888 !important;
}

/* ── Honeypot-Felder (für Menschen unsichtbar) ── */
.hls-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    tab-index: -1 !important;
}

/* ── Passwort vergessen ── */
.hls-forgot-link {
    font-size: 13px !important;
    color: #e0b400 !important;
    -webkit-text-fill-color: #e0b400 !important;
    text-decoration: none !important;
    text-align: center !important;
    display: block !important;
    margin-top: 4px !important;
}
.hls-forgot-link:hover {
    text-decoration: underline !important;
    color: #c9a200 !important;
    -webkit-text-fill-color: #c9a200 !important;
}
