/* =============================================================================================================
   Kundenkonto, Nachrichten, Suchaufträge (Modul konto). Ergänzt ebd.css, nutzt dessen Variablen.
   Mobile zuerst; Umbrüche wie im Design-System bei 600 und 900 px.
   ============================================================================================================= */

.ebd-konto-abstand { margin-bottom: var(--ebd-a4); }
.ebd-konto-abschnitt { margin-top: var(--ebd-a6); }
.ebd-konto-abschnitt > h2, .ebd-konto-abschnitt .ebd-abschnitt__kopf h2 { font-size: var(--ebd-fs-xl); }
.ebd-konto-abschnitt .ebd-abschnitt__kopf { margin-bottom: var(--ebd-a4); }
ul.ebd-konto-raster { list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .ebd-konto-raster.ebd-raster--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ebd-konto-raster.ebd-raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Übersicht: nächster Termin ---------- */
.ebd-termin { display: flex; align-items: center; gap: var(--ebd-a4); padding: var(--ebd-a4); margin-bottom: var(--ebd-a4); border: 2px solid var(--ebd-schwarz); border-radius: var(--ebd-r-l); background: #fff; color: inherit; text-decoration: none; }
.ebd-termin:hover { box-shadow: var(--ebd-schatten-2); color: inherit; }
.ebd-termin__datum { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 12px; background: var(--ebd-gruen); color: var(--ebd-auf-gruen); line-height: 1.1; text-align: center; }
.ebd-termin__datum span { font-size: var(--ebd-fs-xs); font-weight: 700; text-transform: uppercase; }
.ebd-termin__datum strong { font-size: var(--ebd-fs-l); font-weight: 900; }
.ebd-termin__text { display: grid; gap: 2px; min-width: 0; }
.ebd-termin__text strong { font-size: var(--ebd-fs-l); line-height: 1.25; }
.ebd-termin__pfeil { margin-left: auto; color: var(--ebd-grau); }

/* ---------- Übersicht: Kacheln ---------- */
.ebd-konto-kacheln { display: grid; gap: var(--ebd-a3); grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .ebd-konto-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ebd-a4); } }
.ebd-konto-kacheln > li { display: flex; }
.ebd-konto-kachel { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "symbol zahl" "titel titel" "info info"; align-items: center; gap: 4px 10px; width: 100%; padding: var(--ebd-a4); border: 1px solid var(--ebd-linie); border-radius: var(--ebd-r-l); background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ebd-konto-kachel:hover { border-color: var(--ebd-schwarz); box-shadow: var(--ebd-schatten-2); color: inherit; }
.ebd-konto-kachel--hinweis { border: 2px solid var(--ebd-gruen); }
.ebd-konto-kachel__symbol { grid-area: symbol; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ebd-flaeche-2); color: var(--ebd-schwarz); }
.ebd-konto-kachel--hinweis .ebd-konto-kachel__symbol { background: var(--ebd-gruen); color: var(--ebd-auf-gruen); }
.ebd-konto-kachel__zahl { grid-area: zahl; font-size: var(--ebd-fs-2xl); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.ebd-konto-kachel__titel { grid-area: titel; margin-top: 6px; font-weight: 700; line-height: 1.3; }
.ebd-konto-kachel__info { grid-area: info; font-size: var(--ebd-fs-xs); color: var(--ebd-grau); line-height: 1.4; }

/* ---------- Übersicht: Schnellzugriff ---------- */
.ebd-schnellzugriff__karte { display: grid; gap: 6px; align-content: start; padding: var(--ebd-a4); }
.ebd-schnellzugriff__karte strong { font-size: var(--ebd-fs-l); }
.ebd-schnellzugriff__symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ebd-schwarz); color: var(--ebd-gruen); margin-bottom: 4px; }
.ebd-schnellzugriff__symbol--gruen { background: var(--ebd-gruen); color: var(--ebd-auf-gruen); }

/* ---------- Profil, Sicherheit ---------- */
.ebd-anzeigename { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--ebd-r); background: var(--ebd-flaeche); }
.ebd-anzeigename__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ebd-schwarz); color: var(--ebd-gruen); font-weight: 900; flex: none; }
.ebd-karte__titel--symbol { display: flex; align-items: center; gap: 8px; }
.ebd-karte__titel--symbol .ebd-icon { color: var(--ebd-gruen-text); }
.ebd-sicherheit__formular { max-width: 640px; }
.ebd-sitzungen { list-style: none; margin: 0 0 var(--ebd-a4); padding: 0; border: 1px solid var(--ebd-linie); border-radius: var(--ebd-r); }
.ebd-sitzungen li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; }
.ebd-sitzungen li + li { border-top: 1px solid var(--ebd-linie); }
.ebd-gefahrzone { border-color: #f2c3c3; }
.ebd-gefahrzone .ebd-karte__titel--symbol .ebd-icon { color: var(--ebd-fehler); }
.ebd-gefahrzone__liste { margin-bottom: var(--ebd-a4); color: var(--ebd-text-2); }
.ebd-gefahrzone__liste li + li { margin-top: 4px; }

/* ---------- Merkliste ---------- */
.ebd-merkliste__eintrag { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ebd-merkliste__eintrag > .ebd-modellkarte, .ebd-merkliste__eintrag > .ebd-inseratkarte, .ebd-merkliste__eintrag > .ebd-haendlerkarte, .ebd-merkliste__eintrag > .ebd-merkliste__weg { flex: 1; }
/* Mit dem Herz entfernt (ohne Neuladen): Karte abschwächen */
.ebd-merkliste__eintrag:has(.ebd-merken[aria-pressed="false"]) > .ebd-modellkarte, .ebd-merkliste__eintrag:has(.ebd-merken[aria-pressed="false"]) > .ebd-inseratkarte { opacity: .55; }
.ebd-merkliste__entfernen { display: flex; justify-content: flex-end; }
.ebd-merkliste__entfernen .ebd-btn { color: var(--ebd-grau); }
.ebd-merkliste__entfernen .ebd-btn:hover { color: var(--ebd-fehler); }
.ebd-merkliste__weg { display: grid; align-content: start; gap: 8px; padding: var(--ebd-a4); border: 2px dashed var(--ebd-linie-stark); border-radius: var(--ebd-r-l); background: var(--ebd-flaeche); }
.ebd-merkliste__weg h3 { margin: 0; font-size: var(--ebd-fs-m); color: var(--ebd-text-2); }
.ebd-merkliste__weg .ebd-badge { justify-self: start; }
.ebd-merkliste__haendler .ebd-haendlerkarte__name, .ebd-merkliste__haendler .ebd-haendlerkarte__ort { display: flex; align-items: center; gap: 4px; }
.ebd-merkliste__aufraeumen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: var(--ebd-a4); }

/* ---------- Postfach ---------- */
.ebd-postfach { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ebd-linie); border-radius: var(--ebd-r-l); background: #fff; overflow: hidden; }
.ebd-postfach li + li { border-top: 1px solid var(--ebd-linie); }
.ebd-postfach__eintrag { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px var(--ebd-a4); color: inherit; text-decoration: none; }
.ebd-postfach__eintrag:hover { background: #fafbfb; color: inherit; }
.ebd-postfach__eintrag:focus-visible { outline-offset: -3px; }
.ebd-postfach__eintrag--neu { background: var(--ebd-gruen-hell); }
.ebd-postfach__eintrag--neu:hover { background: #d6f8d5; }
.ebd-postfach__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ebd-schwarz); color: var(--ebd-gruen); font-weight: 900; }
.ebd-postfach__avatar--weg { background: var(--ebd-flaeche-2); color: var(--ebd-grau); }
.ebd-postfach__inhalt { display: grid; gap: 2px; min-width: 0; }
.ebd-postfach__kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.ebd-postfach__name { font-weight: 700; }
.ebd-postfach__eintrag--neu .ebd-postfach__name, .ebd-postfach__eintrag--neu .ebd-postfach__vorschau { font-weight: 900; color: var(--ebd-schwarz); }
.ebd-postfach__zeit { font-size: var(--ebd-fs-xs); color: var(--ebd-grau); white-space: nowrap; }
.ebd-postfach__bezug { display: block; font-size: var(--ebd-fs-xs); color: var(--ebd-grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ebd-postfach__bezug .ebd-icon { width: 14px; height: 14px; vertical-align: -2px; }
.ebd-postfach__vorschau { font-size: var(--ebd-fs-s); color: var(--ebd-text-2); overflow-wrap: anywhere; }
.ebd-postfach__sie { color: var(--ebd-grau); font-weight: 400; }
.ebd-postfach__status { display: grid; gap: 4px; justify-items: end; }
.ebd-postfach__fuss { display: flex; gap: 6px; align-items: flex-start; margin-top: var(--ebd-a3); }

/* ---------- Unterhaltung ---------- */
.ebd-verlauf-nachrichten { list-style: none; margin: 0 0 var(--ebd-a4); padding: 0; display: grid; gap: var(--ebd-a3); }
.ebd-verlauf-nachrichten__tag { display: flex; align-items: center; gap: 12px; font-size: var(--ebd-fs-xs); font-weight: 700; color: var(--ebd-grau); }
.ebd-verlauf-nachrichten__tag::before, .ebd-verlauf-nachrichten__tag::after { content: ""; flex: 1; height: 1px; background: var(--ebd-linie); }
.ebd-nachricht { display: grid; gap: 4px; max-width: min(560px, 88%); scroll-margin-top: 100px; }
.ebd-nachricht--fremd { justify-self: start; }
.ebd-nachricht--eigen { justify-self: end; justify-items: end; }
.ebd-nachricht__blase { padding: 10px 14px; border-radius: 16px; background: var(--ebd-flaeche); border: 1px solid var(--ebd-linie); overflow-wrap: anywhere; }
.ebd-nachricht--fremd .ebd-nachricht__blase { border-bottom-left-radius: 4px; }
.ebd-nachricht--eigen .ebd-nachricht__blase { background: var(--ebd-schwarz); border-color: var(--ebd-schwarz); color: #fff; border-bottom-right-radius: 4px; }
.ebd-nachricht--entfernt .ebd-nachricht__blase { background: #fff; border-style: dashed; border-color: var(--ebd-linie-stark); color: var(--ebd-grau); font-style: italic; }
.ebd-nachricht__blase p { margin: 0; }
.ebd-nachricht__blase p + p { margin-top: 8px; }
.ebd-nachricht__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; font-size: var(--ebd-fs-xs); color: var(--ebd-grau); }
.ebd-nachricht__meta a { color: var(--ebd-grau); display: inline-flex; align-items: center; gap: 3px; min-height: 24px; }
.ebd-nachricht__meta a:hover { color: var(--ebd-fehler); }
.ebd-nachricht__meta .ebd-icon { width: 13px; height: 13px; }
.ebd-nachricht__warnung { font-size: var(--ebd-fs-s); }
#neueste { scroll-margin-top: 120px; }
#neueste:focus { outline: none; }
.ebd-antwort { display: grid; gap: var(--ebd-a3); padding: var(--ebd-a4); border: 1px solid var(--ebd-linie); border-radius: var(--ebd-r-l); background: #fff; }
.ebd-antwort .ebd-textarea { min-height: 96px; }
.ebd-antwort__fuss { display: flex; justify-content: flex-end; }

/* Bezug (Inserat oder Händler) in der Seitenleiste */
.ebd-bezug { display: grid; gap: 8px; }
.ebd-bezug__bild { border-radius: var(--ebd-r); overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #f6f8f7 0%, #eceff0 100%); display: grid; place-items: center; }
.ebd-bezug__bild img { width: 100%; height: 100%; object-fit: cover; }
.ebd-bezug__bild .ebd-fahrrad { width: 86%; height: auto; }
.ebd-bezug__titel { font-size: var(--ebd-fs-l); margin: 0; }
.ebd-bezug .ebd-preis { font-size: var(--ebd-fs-l); }
.ebd-bezug p { margin: 0; }
.ebd-bezug .ebd-badge { justify-self: start; }
.ebd-bezug__tipps { margin: 0; padding-left: 1.1em; color: var(--ebd-text-2); }
.ebd-bezug__tipps li + li { margin-top: 4px; }

/* Vorschläge im Formular „Nachricht schreiben“ */
.ebd-vorschlaege { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ebd-vorschlaege .ebd-chip { cursor: pointer; font: inherit; font-size: var(--ebd-fs-s); font-weight: 700; }
.ebd-vorschlaege .ebd-chip[aria-pressed="true"] { background: var(--ebd-gruen-hell); border-color: var(--ebd-gruen-text); }

/* ---------- Suchaufträge ---------- */
.ebd-suchauftraege { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ebd-a4); }
.ebd-suchauftrag { display: grid; gap: var(--ebd-a3); padding: var(--ebd-a4); }
@media (min-width: 600px) { .ebd-suchauftrag { padding: var(--ebd-a5); } }
.ebd-suchauftrag--pausiert { background: var(--ebd-flaeche); }
.ebd-suchauftrag--pausiert .ebd-suchauftrag__titel { color: var(--ebd-text-2); }
.ebd-suchauftrag__kopf { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }
.ebd-suchauftrag__titel { font-size: var(--ebd-fs-l); margin: 2px 0 0; overflow-wrap: anywhere; }
.ebd-suchauftrag .ebd-merkmale .ebd-chip { min-height: 28px; font-weight: 400; }
.ebd-suchauftrag__info { margin: 0; }
.ebd-suchauftrag__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ebd-suchauftrag__aktionen form { margin: 0; }
.ebd-suchauftrag__umbenennen summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: var(--ebd-fs-s); font-weight: 700; cursor: pointer; color: var(--ebd-text-2); list-style: none; }
.ebd-suchauftrag__umbenennen summary::-webkit-details-marker { display: none; }
.ebd-suchauftrag__umbenennen summary:hover { color: var(--ebd-schwarz); }
.ebd-suchauftrag__umbenennen form { margin-top: 8px; }
.ebd-suchauftrag__umbenennen .ebd-input { flex: 1 1 220px; width: auto; }

/* Knopf „Suche speichern“ im Ergebniskopf der Suchen (auch neben der Sortierung) */
.ebd-ergebniskopf .ebd-suchauftrag-knopf { margin-left: auto; }
.ebd-ergebniskopf__sortierung:has(.ebd-suchauftrag-knopf) { flex-wrap: wrap; }
.ebd-suchauftrag-knopf--gespeichert .ebd-icon { color: var(--ebd-gruen-text); }
@media (max-width: 599px) { .ebd-ergebniskopf .ebd-suchauftrag-knopf { margin-left: 0; } }

/* Abbestellen */
.ebd-abbestellen { max-width: 560px; margin: 0 auto; display: grid; gap: var(--ebd-a3); }
.ebd-abbestellen h1 { font-size: var(--ebd-fs-2xl); margin: 0; }
.ebd-abbestellen p, .ebd-abbestellen form { margin: 0; }
