/* Blüh Auf Anzeigenmarkt – lehnt sich an die Vereinsfarben an (Grün) */
.bham {
	--bham-gruen: #223C3C;   /* an das Seiten-Petrol angeglichen */
	--bham-gruen-d: #1a2e2e;
	--bham-biete: #3f6b3a;
	--bham-suche: #b8860b;
	--bham-bg: #f6f8f3;
	--bham-line: #dde3d6;
	max-width: 960px;
}
.bham * { box-sizing: border-box; }

/* Buttons */
.bham-btn {
	display: inline-block; background: var(--bham-gruen); color: #fff !important;
	padding: .55em 1.1em; border: 1px solid var(--bham-gruen-d); border-radius: 6px;
	text-decoration: none; cursor: pointer; font-size: 1rem; line-height: 1.2;
}
.bham-btn:hover { background: var(--bham-gruen-d); }
.bham-btn-ghost { background: #fff; color: var(--bham-gruen) !important; }
.bham-btn-ghost:hover { background: var(--bham-bg); }
.bham-btn-danger { background: #a33; border-color: #822; color:#fff !important; }

/* Hinweise */
.bham-notice { padding: .8em 1em; border-radius: 6px; margin: 1em 0; }
.bham-ok { background: #e7f3e4; border: 1px solid #b7d7ad; }
.bham-err { background: #fbeaea; border: 1px solid #e3b3b3; }
.bham-info { background: #eef3fb; border: 1px solid #c3d4ec; }
.bham-notice ul { margin: 0; padding-left: 1.2em; }
.bham-hint { color: #556; font-size: .92rem; }

/* Formulare (inkl. WordPress-Login-Formular im Konto-Bereich) */
.bham-form label { font-weight: 600; display: block; }
.bham input[type=text], .bham input[type=email], .bham input[type=password],
.bham textarea, .bham select {
	width: 100%; max-width: 480px; padding: .5em .6em; border: 1px solid var(--bham-line);
	border-radius: 6px; font-size: 1rem; font-weight: 400;
	background: #fff; color: #1a1a1a;
}
.bham textarea { max-width: 100%; }
.bham input::placeholder, .bham textarea::placeholder { color: #8a93a0; }
.bham input[type=checkbox], .bham input[type=radio] { width: auto; }
/* Login-Button (Core) an die Vereinsfarbe anpassen */
.bham #wp-submit, .bham #loginform .button {
	background: var(--bham-gruen); border-color: var(--bham-gruen-d); color: #fff;
	border-radius: 6px; padding: .55em 1.1em; font-size: 1rem; text-shadow: none; box-shadow: none;
}
.bham #wp-submit:hover, .bham #loginform .button:hover { background: var(--bham-gruen-d); }
.bham #loginform label { font-weight: 600; }
.bham-form textarea { max-width: 100%; }
.bham-check label, .bham-typwahl label { font-weight: 400; }
.bham-typwahl label { display: inline-block; margin-right: 1.2em; }
.bham-links { margin-top: 1em; font-size: .95rem; }
.bham-inline { display: inline; }

/* Badges */
.bham-badge { display: inline-block; padding: .1em .55em; border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 700; vertical-align: middle; }
.bham-badge-biete { background: var(--bham-biete); }
.bham-badge-suche { background: var(--bham-suche); }
.bham-kat { color: #556; font-size: .9rem; }
.bham-preis { font-weight: 700; color: var(--bham-gruen-d); }

/* Filter */
.bham-filter { margin: 1em 0 1.5em; display: flex; gap: .6em; flex-wrap: wrap; }
.bham-filter select { padding: .45em .6em; border: 1px solid var(--bham-line); border-radius: 6px; }
.bham-neu { margin: 0 0 1em; }

/* Übersicht Grid */
.bham-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1em; }
.bham-card { display: flex; flex-direction: column; border: 1px solid var(--bham-line); border-radius: 10px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.bham-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.09); }
.bham-card-img { aspect-ratio: 4/3; background: var(--bham-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bham-card-img img { width: 100%; height: 100%; object-fit: cover; }
.bham-noimg { color: #99a; font-size: .85rem; }
.bham-card-body { padding: .7em .8em 1em; }
.bham-card-meta { margin: 0 0 .3em; }
.bham-card-title { margin: .1em 0 .3em; font-size: 1.05rem; }
.bham-card-excerpt { margin: .4em 0 0; color: #556; font-size: .9rem; }
.bham-leer { color: #667; padding: 2em 0; }

/* Einzelanzeige */
.bham-single .bham-meta { margin: 0 0 1em; display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
.bham-gallery { display: flex; gap: .6em; flex-wrap: wrap; margin-bottom: 1em; }
.bham-gallery .bham-img { max-width: 48%; height: auto; border-radius: 8px; }
.bham-angaben { background: var(--bham-bg); padding: .7em 1em; border-radius: 8px; }
.bham-kontaktbox, .bham-owner { margin-top: 1.5em; padding-top: 1em; border-top: 1px solid var(--bham-line); }
.bham-melden { margin-top: 1.5em; color: #667; font-size: .92rem; }
.bham-melden summary { cursor: pointer; }
.bham-back { margin-top: 1.5em; }

/* Mitglieder-Gate auf der Übersicht (ausgeloggt) */
.bham-gate-cols { display: flex; gap: 2em; flex-wrap: wrap; margin-top: 1.2em; }
.bham-gate-login { flex: 1 1 300px; }
.bham-gate-register { flex: 1 1 240px; border-left: 1px solid var(--bham-line); padding-left: 2em; }
.bham-gate-login h3, .bham-gate-register h3 { margin-top: 0; }
@media (max-width: 600px) {
	.bham-gate-register { border-left: none; padding-left: 0; border-top: 1px solid var(--bham-line); padding-top: 1.2em; }
}

/* Meine Anzeigen */
.bham-liste { list-style: none; padding: 0; }
.bham-liste li { padding: .7em 0; border-bottom: 1px solid var(--bham-line); display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.bham-laeuft { color: #567; font-size: .85rem; }
.bham-abgelaufen { color: #a33; font-size: .85rem; font-weight: 600; }
.bham-mini { background: #fff; border: 1px solid var(--bham-line); border-radius: 5px; padding: .2em .6em; cursor: pointer; font-size: .85rem; }
.bham-mini-danger { color: #a33; border-color: #e3b3b3; }

@media (max-width: 600px) {
	.bham-gallery .bham-img { max-width: 100%; }
}

/* --------------------------------------------------------------------------
 * Nachbesserungen QA-Durchlauf 14.11.
 * ------------------------------------------------------------------------ */

/* Dropdowns: Theme setzt global helle Schrift -> Optionen auf Weiß unlesbar.
   Hier explizit dunkle Schrift auf weißem Grund erzwingen. */
.bham select,
.bham-filter select {
	color: #1a1a1a !important;
	background-color: #fff !important;
}
.bham select option,
.bham-filter select option {
	color: #1a1a1a !important;
	background-color: #fff !important;
}
/* Filter-Dropdowns nebeneinander statt volle Breite */
.bham-filter select { width: auto; max-width: none; min-width: 12em; flex: 0 1 auto; }

/* Anmelde-/Konto-/Passwort-Karte: zentriert, ruhig, symmetrisch.
   WordPress-Login-Formular (#loginform) stellt die Labels sonst neben die
   Felder -> unterschiedlich lange Labels, Felder beginnen versetzt. */
.bham-konto,
.bham-register,
.bham-pwreset {
	max-width: 440px;
	margin: 1.5rem auto;
	background: #fff;
	border: 1px solid var(--bham-line);
	border-radius: 12px;
	padding: 1.6rem 1.8rem 1.8rem;
	box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.bham-konto h2,
.bham-register h2,
.bham-pwreset h2 { margin-top: 0; }
.bham-konto #loginform p,
.bham-konto .bham-form p,
.bham-register .bham-form p,
.bham-pwreset .bham-form p { margin: 0 0 1rem; }
.bham-konto #loginform label,
.bham-konto .bham-form > p > label,
.bham-register .bham-form > p > label,
.bham-pwreset .bham-form > p > label {
	display: block;
	font-weight: 600;
	margin-bottom: .3rem;
}
.bham-konto #loginform input[type=text],
.bham-konto #loginform input[type=password],
.bham-konto .bham-form input[type=text],
.bham-register .bham-form input[type=text],
.bham-register .bham-form input[type=email],
.bham-pwreset .bham-form input[type=password] {
	width: 100%;
	max-width: 100%;
}
.bham-konto .login-remember label {
	display: inline;
	font-weight: 400;
}
.bham-konto .login-submit input,
.bham-konto #wp-submit,
.bham-pwreset .bham-form button,
.bham-register .bham-form button { width: 100%; }

/* Mitglieder-Leiste oben auf dem Marktplatz (inkl. Abmelden) */
.bham-memberbar {
	display: flex;
	flex-wrap: wrap;
	gap: .4em 1em;
	justify-content: space-between;
	align-items: center;
	background: var(--bham-bg);
	border: 1px solid var(--bham-line);
	border-radius: 8px;
	padding: .55em .9em;
	margin-bottom: 1.1em;
	font-size: .95rem;
}
.bham-memberbar-links { display: flex; gap: 1em; flex-wrap: wrap; }
.bham-memberbar a { color: var(--bham-gruen-d); text-decoration: none; font-weight: 600; }
.bham-memberbar a:hover { text-decoration: underline; }
.bham-memberbar-logout { color: #a33 !important; }

/* Marktplatz-Erklärung + Hinweise (öffentliche Anzeigen) */
.bham-intro { margin: 0 0 1.3em; }
.bham-intro p { margin: .25em 0; }
.bham-intro-rules { font-size: .92rem; color: #556; }
.bham-login-hint { margin: 0 0 1.3em; }
.bham-kontakt-gate .bham-actions { margin-top: .7em; display: flex; gap: .6em; flex-wrap: wrap; }

/* Avatar / Profilbild */
.bham-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: #223C3C; color: #fff; font-weight: 700; flex: 0 0 auto; vertical-align: middle; }
.bham-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bham-avatar-ini { letter-spacing: .02em; }
.bham-anbieter { display: flex; align-items: center; gap: .6em; }
.bham-profilbild { display: flex; align-items: flex-start; gap: 1em; flex-wrap: wrap; margin: .4em 0 1.2em; }
.bham-profilbild-form { flex: 1 1 260px; }

/* Nachrichten */
.bham-badge-neu { background: #a33; color: #fff; }
.bham-thread-liste { list-style: none; padding: 0; margin: 0; }
.bham-thread-item a { display: flex; align-items: center; gap: .8em; padding: .7em .4em; border-bottom: 1px solid var(--bham-line); text-decoration: none; color: inherit; }
.bham-thread-item a:hover { background: var(--bham-bg); }
.bham-thread-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1em; }
.bham-thread-top { display: flex; align-items: center; gap: .5em; }
.bham-thread-sub { color: #667; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bham-thread-time { color: #889; font-size: .85rem; flex: 0 0 auto; }
.bham-ungelesen .bham-thread-sub { color: #223C3C; font-weight: 600; }
.bham-thread { display: flex; flex-direction: column; gap: .8em; margin: 1em 0; }
.bham-msg { display: flex; gap: .6em; max-width: 85%; }
.bham-msg-mine { align-self: flex-end; flex-direction: row-reverse; }
.bham-msg-body { background: #fff; border: 1px solid var(--bham-line); border-radius: 12px; padding: .6em .8em; }
.bham-msg-mine .bham-msg-body { background: #eef3ec; }
.bham-msg-head { font-size: .82rem; color: #667; margin-bottom: .2em; display: flex; gap: .6em; }
.bham-msg-time { color: #99a; }

/* WICHTIG: Eingabetext immer dunkel auf weiß erzwingen.
   Das Theme/Parent färbt u.a. Passwortfelder cremefarben (#f0ede5) -> auf weiß
   unlesbar. Hier hart ueberschreiben, inkl. -webkit-text-fill-color + Autofill. */
.bham input[type=text],
.bham input[type=email],
.bham input[type=password],
.bham input[type=search],
.bham input[type=url],
.bham input[type=tel],
.bham textarea,
.bham select,
.bham #loginform input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]) {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
	background-color: #fff !important;
	caret-color: #1a1a1a;
}
.bham input:-webkit-autofill,
.bham input:-webkit-autofill:hover,
.bham input:-webkit-autofill:focus {
	-webkit-text-fill-color: #1a1a1a !important;
	caret-color: #1a1a1a !important;
	box-shadow: 0 0 0 1000px #fff inset !important;
}
