/* OH Affiliate – Frontend */

.ohaff-form { max-width: 480px; margin: 0 auto; }
.ohaff-form h2 { margin-bottom: 16px; }
.ohaff-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.ohaff-row label { font-size: 13px; font-weight: 600; }
.ohaff-row input { padding: 10px 12px; border: 1px solid #cbd0d6; border-radius: 6px; font-size: 14px; }
.ohaff-row--2 { flex-direction: row; gap: 12px; }
.ohaff-row--2 > span { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ohaff-check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400 !important; }
.ohaff-links { font-size: 13px; margin-top: 12px; }

.ohaff-taxstatus { border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.ohaff-taxstatus legend { font-size: 13px; font-weight: 600; padding: 0 6px; }
.ohaff-taxstatus .ohaff-check { margin-bottom: 10px; align-items: flex-start; }
.ohaff-taxstatus .ohaff-check:last-child { margin-bottom: 0; }
.ohaff-taxstatus small { color: #6b7280; }
.ohaff-hint { font-size: 13px; color: #6b7280; background: #f9fafb; border-left: 3px solid #2563eb; padding: 8px 12px; border-radius: 0 6px 6px 0; }

.ohaff-btn {
	display: inline-block; padding: 10px 18px; border: 0; border-radius: 6px;
	background: #2563eb; color: #fff; font-weight: 600; cursor: pointer; font-size: 14px;
}
.ohaff-btn:hover { background: #1d4ed8; }
.ohaff-btn:disabled { opacity: .5; cursor: not-allowed; }
.ohaff-btn--ghost { background: #eef2ff; color: #2563eb; }

.ohaff-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.ohaff-notice--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ohaff-notice--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ohaff-notice--info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Dashboard */
.ohaff-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid #e5e7eb; margin-bottom: 20px; }
.ohaff-tabs a { padding: 10px 16px; text-decoration: none; color: #4b5563; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.ohaff-tabs a.is-active { color: #2563eb; border-bottom-color: #2563eb; }
.ohaff-tabs .ohaff-logout { margin-left: auto; color: #b91c1c; }

.ohaff-cards { display: grid; grid-template-columns: repeat( auto-fit, minmax( 160px, 1fr ) ); gap: 14px; margin-bottom: 20px; }
.ohaff-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.ohaff-card__label { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; }
.ohaff-card__value { font-size: 24px; font-weight: 700; color: #111827; }
.ohaff-card__sub { font-size: 12px; color: #9ca3af; }

.ohaff-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
.ohaff-panel h3 { margin-top: 0; font-size: 16px; }

.ohaff-code code { font-size: 20px; background: #f3f4f6; padding: 6px 12px; border-radius: 6px; letter-spacing: .1em; }

.ohaff-linkgen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ohaff-linkgen select, .ohaff-linkgen input { padding: 9px 12px; border: 1px solid #cbd0d6; border-radius: 6px; }
.ohaff-linkout { display: flex; gap: 8px; margin-top: 12px; }
.ohaff-linkout input { flex: 1; padding: 9px 12px; border: 1px solid #cbd0d6; border-radius: 6px; }

.ohaff-payout { display: flex; gap: 8px; align-items: center; }
.ohaff-payout input { padding: 9px 12px; border: 1px solid #cbd0d6; border-radius: 6px; width: 160px; }

.ohaff-table { width: 100%; border-collapse: collapse; }
.ohaff-table th, .ohaff-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #f0f0f1; font-size: 13px; }
.ohaff-table th { color: #6b7280; font-weight: 600; }
.ohaff-pos { color: #15803d; font-weight: 600; }
.ohaff-neg { color: #b91c1c; font-weight: 600; }
.ohaff-empty { color: #9ca3af; font-style: italic; }

.ohaff-status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ohaff-status--pending { background: #fef3c7; color: #92400e; }
.ohaff-status--approved { background: #dcfce7; color: #166534; }
.ohaff-status--paid { background: #dbeafe; color: #1e40af; }
.ohaff-status--rejected { background: #fee2e2; color: #991b1b; }

/* Wallet im Checkout */
.ohaff-wallet-pay { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; margin-bottom: 16px; }
.ohaff-wallet-amount { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.ohaff-wallet-amount input { padding: 8px 10px; border: 1px solid #cbd0d6; border-radius: 6px; max-width: 160px; }

/* Werbemittel: Banner-Galerie */
.ohaff-banner-grid { display: grid; grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) ); gap: 14px; margin-top: 12px; }
.ohaff-banner-item { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.ohaff-banner-item img { max-width: 100%; height: auto; border-radius: 4px; }
.ohaff-banner-meta { display: flex; flex-direction: column; }
.ohaff-banner-meta small { color: #9ca3af; }
.ohaff-banner-output { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.ohaff-banner-output h4 { margin: 12px 0 6px; font-size: 14px; }
.ohaff-banner-livepreview { padding: 12px; background: #f9fafb; border: 1px dashed #cbd0d6; border-radius: 6px; text-align: center; }
.ohaff-banner-output textarea { width: 100%; padding: 10px; border: 1px solid #cbd0d6; border-radius: 6px; font-family: monospace; font-size: 12px; }

/* QR-Code */
.ohaff-qr-output { margin-top: 14px; text-align: center; }
#ohaff-qr-canvas { display: inline-block; padding: 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; }
#ohaff-qr-canvas img, #ohaff-qr-canvas canvas { display: block; }
.ohaff-qr-url { word-break: break-all; color: #6b7280; margin: 10px 0; }

/* Social-Share */
.ohaff-share { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ohaff-share__label { font-size: 13px; color: #6b7280; }
.ohaff-share__btn { display: inline-block; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; }
.ohaff-share__fb { background: #1877f2; }
.ohaff-share__x { background: #111827; }
.ohaff-share__wa { background: #25d366; }
.ohaff-share__mail { background: #6b7280; }
.ohaff-share__btn:hover { opacity: .9; }

/* Report-Filter */
.ohaff-report-filter { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.ohaff-report-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.ohaff-report-filter input { padding: 8px 10px; border: 1px solid #cbd0d6; border-radius: 6px; }

/* Balkendiagramm */
.ohaff-bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 8px 0; border-bottom: 1px solid #e5e7eb; }
.ohaff-bar { flex: 1; min-width: 4px; height: 100%; display: flex; align-items: flex-end; }
.ohaff-bar__fill { width: 100%; background: #2563eb; border-radius: 3px 3px 0 0; min-height: 2px; transition: opacity .15s; }
.ohaff-bar:hover .ohaff-bar__fill { opacity: .7; }
.ohaff-bars-legend { text-align: center; color: #9ca3af; margin-top: 6px; }

/* Eigenkauf-Wahl im Checkout */
.ohaff-self-choice { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 14px; margin-bottom: 16px; }
.ohaff-self-choice__title { margin: 0 0 8px; }
.ohaff-self-choice label { display: block; margin-bottom: 4px; cursor: pointer; }

/* Registrierung: Vorteils-Intro */
.ohaff-register-intro { max-width: 480px; margin: 0 auto 24px; }
.ohaff-register-intro h2 { margin-bottom: 10px; }
.ohaff-register-intro > p { color: #4b5563; margin-bottom: 16px; }
.ohaff-benefits { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ohaff-benefits li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: #f9fafb; border: 1px solid #e5e7eb; border-left: 3px solid #2563eb; border-radius: 0 8px 8px 0; }
.ohaff-benefits strong { color: #111827; }
.ohaff-benefits span { color: #6b7280; font-size: 14px; }
.ohaff-register-note { font-size: 13px; color: #6b7280; background: #eff6ff; border-radius: 6px; padding: 10px 14px; }

/* Honeypot (Spam-Schutz) – für Menschen unsichtbar */
.ohaff-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
