/* Kunden-Login (templates/bereich.php). Farben aus den Theme-Variablen in main.css. */

.eb { --eb-gruen: #2F6B43; --eb-gruen-hell: #E7F2EA; --eb-gold-hell: #FBF6E6; --eb-rot: #8A2B1F; --eb-rot-hell: #FBE9E7; --eb-rand: #C9CED8; }
.eb-symbol { flex: none; width: 1.25rem; height: 1.25rem; }
.eb-klein { font-size: 0.85rem; color: var(--immobra-muted); }
.eb-klein a { color: var(--immobra-schiefer); }

/* Meldungen */
.eb-meldungen { display: grid; gap: 0.4rem; margin-top: 1rem; }
.eb-meldungen:empty, .eb-dok__meldungen:empty { display: none; }
.eb-dok__meldungen { display: grid; gap: 0.4rem; }
.eb-meldung { margin: 0; padding: 0.55rem 0.8rem; border-radius: 4px; font-size: 0.9rem; line-height: 1.45; }
.eb-meldung--ok { background: var(--eb-gruen-hell); color: #24533A; }
.eb-meldung--fehler { background: var(--eb-rot-hell); color: var(--eb-rot); }

/* Anmeldung */
.eb-login { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 900px) { .eb-login { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px); gap: 4rem; } }
.eb-login h1 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; text-wrap: balance; }
.eb-lead { max-width: 34em; margin: 0 0 1.5rem; font-size: 1.1rem; line-height: 1.6; }
.eb-vorteile { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.eb-vorteile li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.6rem; align-items: start; }
.eb-vorteile .eb-symbol { margin-top: 0.1rem; color: var(--immobra-gold-text); }
.eb-login__karte { padding: clamp(1.5rem, 3vw, 2.2rem); border: 1px solid var(--immobra-line); border-radius: 6px; background: #FFFFFF; box-shadow: 0 28px 48px -36px rgba(43, 49, 55, 0.4); }
.eb-login__karte h2 { margin: 0 0 1rem; font-size: 1.4rem; }
.eb-login__form { display: grid; gap: 0.9rem; margin-top: 1rem; }
.eb-feld { display: grid; gap: 0.35rem; margin: 0; }
.eb-feld label { font-size: 0.85rem; font-weight: 700; }
.eb-feld input { width: 100%; padding: 0.75rem 0.85rem; border: 1px solid var(--eb-rand); border-radius: 3px; background: #FFFFFF; font: inherit; font-size: 1rem; color: var(--immobra-schiefer); }
.eb-feld input:focus { border-color: var(--immobra-gold); outline: 2px solid var(--immobra-gold); outline-offset: 0; }
.eb-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.eb-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--immobra-schiefer); }
.eb-login__form .button { width: 100%; padding-block: calc(0.95rem + 0.07em) calc(0.95rem - 0.07em); } /* Ausgleich wie .button in main.css */
.eb-login__form .eb-klein { justify-self: center; }
.eb-login__hilfe { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--immobra-line); }
.eb-hinweisseite { padding-block: clamp(3rem, 7vw, 5rem); max-width: 44rem; }

/* Test- und Vorschau-Hinweis */
.eb-modus { border-bottom: 1px solid #EADBA8; background: var(--eb-gold-hell); font-size: 0.875rem; }
.eb-modus__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.7rem; }
.eb-modus__inner p { margin: 0; max-width: 60em; }
.eb-modus__inner a { color: var(--immobra-schiefer); font-weight: 700; }
.eb-modus__form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.eb-modus__form select { padding: 0.3rem 0.5rem; border: 1px solid var(--eb-rand); border-radius: 3px; font: inherit; }

/* Kopf mit Fortschritt */
.eb-kopf { background: var(--immobra-nebel); }
.eb-kopf__inner { display: grid; gap: 1.5rem; align-items: end; padding-block: clamp(2rem, 5vw, 3.25rem); }
@media (min-width: 860px) { .eb-kopf__inner { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); } }
.eb-kopf h1 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; text-wrap: balance; }
.eb-objekt { margin: 0.5rem 0 0; color: var(--immobra-muted); }
.eb-fortschritt { padding: 1rem 1.2rem; border: 1px solid var(--immobra-line); border-radius: 4px; background: #FFFFFF; }
.eb-fortschritt__text { margin: 0 0 0.6rem; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.eb-fortschritt__text strong { font-size: 1.15rem; }
.eb-balken { display: block; height: 6px; border-radius: 6px; background: var(--immobra-nebel); overflow: hidden; }
.eb-balken > span { display: block; height: 100%; background: var(--immobra-gold); transition: width 0.3s ease; }

/* Raster */
.eb-raster { display: grid; gap: 2rem; align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 980px) { .eb-raster { grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; } }
.eb-haupt__kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; }
.eb-haupt__kopf h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.eb-haupt__kopf p { margin: 0; font-size: 0.85rem; color: var(--immobra-muted); }

/* Karten der Unterlagen */
.eb-doks { display: grid; gap: 0.75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.eb-dok { display: grid; gap: 0.65rem; padding: 1.1rem 1.25rem; border: 1px solid var(--immobra-line); border-radius: 4px; background: #FFFFFF; scroll-margin-top: 7rem; transition: border-color 0.15s ease, background-color 0.15s ease; }
.eb-dok--ergaenzen { border-color: var(--immobra-gold); }
.eb-dok--entfaellt { background: #FAFAFC; }
.eb-dok.is-ziehen { border-color: var(--immobra-gold); background: #FFFCF3; outline: 2px dashed var(--immobra-gold); outline-offset: -6px; }
.eb-dok > * { margin: 0; }
.eb-dok__kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1rem; }
.eb-dok__titel { margin: 0; font-family: var(--wp--preset--font-family--sans); font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.eb-dok__optional { margin-left: 0.35rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--immobra-muted); }
.eb-dok__hinweis { font-size: 0.9rem; line-height: 1.5; color: var(--immobra-muted); }
.eb-dok__hinweis a { color: var(--immobra-gold-text); font-weight: 700; }
.eb-dok__notiz { padding: 0.6rem 0.8rem; border-left: 3px solid var(--immobra-gold); background: var(--eb-gold-hell); font-size: 0.9rem; line-height: 1.5; }

.eb-status { display: inline-flex; flex: none; align-items: center; gap: 0.3rem; padding: 0.26rem 0.6rem 0.26rem 0.42rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.eb-status .eb-symbol { width: 1rem; height: 1rem; }
.eb-status--offen, .eb-status--entfaellt { background: var(--immobra-nebel); color: var(--immobra-muted); }
.eb-status--eingereicht { background: var(--eb-gruen-hell); color: var(--eb-gruen); }
.eb-status--geprueft { background: var(--eb-gruen); color: #FFFFFF; }
.eb-status--ergaenzen { background: #FBF0D5; color: var(--immobra-gold-text); }

.eb-dateien { padding: 0; list-style: none; border-top: 1px solid var(--immobra-line); }
.eb-datei { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr) auto auto; gap: 0.2rem 0.6rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--immobra-line); font-size: 0.9rem; }
.eb-datei .eb-symbol { width: 1.1rem; height: 1.1rem; color: var(--immobra-muted); }
.eb-datei__name { font-weight: 600; color: var(--immobra-schiefer); overflow-wrap: anywhere; }
.eb-datei__meta { font-size: 0.8rem; color: var(--immobra-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
	.eb-datei { grid-template-columns: 1.1rem minmax(0, 1fr) auto; }
	.eb-datei__meta { grid-column: 2; grid-row: 2; }
	.eb-datei .eb-knopf-form { grid-column: 3; grid-row: 1 / span 2; }
}

.eb-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.eb-upload__feld { position: relative; display: flex; flex: 1 1 260px; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border: 1px dashed var(--eb-rand); border-radius: 4px; font-size: 0.9rem; cursor: pointer; }
.eb-upload__feld:hover { border-color: var(--immobra-gold); background: #FFFCF3; }
.eb-upload__feld:focus-within { outline: 2px solid var(--immobra-gold); outline-offset: 2px; }
.eb-upload__feld .eb-symbol { color: var(--immobra-gold-text); }
.eb-upload__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.eb-upload__ziehen { color: var(--immobra-muted); }
@media (hover: none) { .eb-upload__ziehen { display: none; } }
.eb-js .eb-upload__senden { display: none; }
.eb-upload__balken { flex-basis: 100%; height: 4px; border-radius: 4px; background: var(--immobra-nebel); overflow: hidden; }
.eb-upload__balken > span { display: block; width: 0; height: 100%; background: var(--immobra-gold); transition: width 0.15s linear; }
.eb-upload.is-laedt .eb-upload__feld { pointer-events: none; opacity: 0.6; }

.eb-knopf-form { display: inline; margin: 0; }
.eb-textknopf { padding: 0; border: 0; background: none; font: inherit; font-size: 0.85rem; color: var(--immobra-schiefer); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.eb-textknopf:hover { color: var(--immobra-gold-text); }
.eb-textknopf--leise { color: var(--immobra-muted); }

/* Seitenleiste */
.eb-seite { display: grid; gap: 1rem; }
.eb-box { padding: 1.2rem; border: 1px solid var(--immobra-line); border-radius: 4px; background: #FFFFFF; }
.eb-box h2 { margin: 0 0 0.7rem; font-family: var(--wp--preset--font-family--sans); font-size: 1rem; font-weight: 800; }
.eb-partner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: center; }
.eb-partner__foto { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.eb-partner p { margin: 0; }
.eb-partner__label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--immobra-gold-text); }
.eb-partner__name { font-weight: 700; }
.eb-partner__rolle { font-size: 0.85rem; color: var(--immobra-muted); }
.eb-partner__wege { grid-column: 1 / -1; padding-top: 0.8rem; border-top: 1px solid var(--immobra-line); font-size: 0.9rem; line-height: 1.7; }
.eb-partner__wege a { color: var(--immobra-schiefer); font-weight: 600; }
.eb-schritte { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; line-height: 1.5; }
.eb-schritte li + li { margin-top: 0.45rem; }
.eb-downloads { margin: 0; padding: 0; list-style: none; }
.eb-downloads a { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid var(--immobra-line); font-size: 0.9rem; font-weight: 600; color: var(--immobra-schiefer); text-decoration: none; }
.eb-downloads li:first-child a { border-top: 0; padding-top: 0; }
.eb-downloads a:hover { color: var(--immobra-gold-text); }
.eb-downloads .eb-symbol { color: var(--immobra-gold-text); }
.eb-downloads small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--immobra-muted); }
.eb-box--leise { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.6rem; border-color: transparent; background: var(--immobra-nebel); font-size: 0.85rem; line-height: 1.5; color: var(--immobra-muted); }
.eb-box--leise p { margin: 0; }
.eb-box--leise a { color: var(--immobra-schiefer); }
.eb-abmelden { margin: 0; font-size: 0.9rem; }
.eb-abmelden a { color: var(--immobra-muted); }

/* Passwort vergessen und festlegen (templates/passwort.php) */
.eb-karte__text { margin: 0 0 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.eb-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0; }
.eb-feld__passwort { position: relative; display: block; }
.eb-feld__passwort input { padding-right: 6.5rem; }
.eb-zeigen { position: absolute; top: 50%; right: 0.4rem; transform: translateY(-50%); padding: 0.35rem 0.65rem; border: 0; border-radius: 3px; background: var(--immobra-nebel); font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--immobra-schiefer); cursor: pointer; }
.eb-zeigen:hover { background: #E4E6EE; }
.eb-feld__hinweis { font-size: 0.8rem; color: var(--immobra-muted); }
.eb-feld__hinweis.is-ok { color: var(--eb-gruen); }
.eb-feld__hinweis.is-ok::before { content: "✓ "; }
.eb-feld__hinweis--fehler { color: var(--eb-rot); }
.eb-login__form .button:disabled { opacity: 0.55; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
	.eb-balken > span, .eb-upload__balken > span, .eb-dok { transition: none; }
}
