/* ============================================================
   DER BERATER (30.08.2026)

   Unten rechts, wie man es kennt. Der Knopf ist klein genug, um
   nicht zu stören, und groß genug, um ihn mit dem Daumen zu treffen
   (44 px ist die Grenze, unter der Fehlgriffe anfangen).

   Alles unter .sv-berater gescoped, wie suit-stil.css unter
   body.suit-stil. Der SUIT-Stil bekommt weichere Kanten und die
   normale Schreibweise — dieselben zwei Stellschrauben wie überall.
   ============================================================ */

.sv-berater-knopf {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 0; background: #111; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
body.suit-stil .sv-berater-knopf { background: #2b2b28; }
.sv-berater-knopf:hover { transform: translateY(-1px); }

.sv-berater {
  position: fixed; right: 1rem; bottom: 5rem; z-index: 91;
  width: min(23rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - 7rem));
  display: flex; flex-direction: column;
  background: #fff; color: #111;
  border: 1px solid #e3e3e3; border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
body.suit-stil .sv-berater { border-radius: 4px; color: #1d1d1b; }

.sv-berater__kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 1rem;
  background: #111; color: #fff;
}
body.suit-stil .sv-berater__kopf { background: #2b2b28; }
.sv-berater__kopf b {
  display: block; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
body.suit-stil .sv-berater__kopf b { text-transform: none; letter-spacing: 0; }
.sv-berater__kopf span { font-size: 0.72rem; opacity: 0.75; }
.sv-berater__zu {
  background: none; border: 0; color: inherit; cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 0.3rem;
}

.sv-berater__lauf {
  flex: 1 1 auto; overflow-y: auto;
  padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.5rem;
  background: #fafafa;
}

.sv-blase {
  max-width: 85%; padding: 0.6rem 0.8rem;
  border-radius: 12px; font-size: 0.88rem; line-height: 1.5;
  white-space: pre-wrap;
}
.sv-blase--wir { align-self: flex-start; background: #fff; border: 1px solid #ececec; }
.sv-blase--ich { align-self: flex-end;   background: #111; color: #fff; }
body.suit-stil .sv-blase--ich { background: #2b2b28; }

/* "Schreibt gerade". Ohne die kurze Pause erscheinen drei Sätze
   gleichzeitig und niemand liest den ersten. */
.sv-tippt { display: flex; gap: 0.25rem; align-items: center; }
.sv-tippt i {
  width: 0.35rem; height: 0.35rem; border-radius: 50%;
  background: #999; display: block;
  animation: sv-tippt 1s ease-in-out infinite;
}
.sv-tippt i:nth-child(2) { animation-delay: 0.15s; }
.sv-tippt i:nth-child(3) { animation-delay: 0.3s; }
@keyframes sv-tippt {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-0.15rem); }
}
@media (prefers-reduced-motion: reduce) {
  .sv-tippt i { animation: none; opacity: 0.6; }
}

.sv-karten { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0.2rem 0 0.3rem; }
.sv-karte {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid #ececec; border-radius: 8px; overflow: hidden;
}
body.suit-stil .sv-karte { border-radius: 4px; }
.sv-karte img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #f2f2f2; }
.sv-karte__text { padding: 0.45rem 0.55rem; }
.sv-karte__text b { display: block; font-size: 0.76rem; font-weight: 600; line-height: 1.3; }
.sv-karte__text span { font-size: 0.76rem; color: #5a5a5a; }

.sv-berater__fuss { border-top: 1px solid #ececec; padding: 0.7rem 0.8rem; background: #fff; }
.sv-berater__wahl { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sv-chip {
  cursor: pointer; padding: 0.45rem 0.75rem;
  border: 1px solid #d8d8d8; border-radius: 999px;
  background: #fff; color: inherit; font-size: 0.8rem; text-align: left;
}
.sv-chip:hover { border-color: #111; }
body.suit-stil .sv-chip { border-radius: 4px; }

.sv-berater__suche { display: flex; gap: 0.4rem; }
.sv-berater__suche input {
  flex: 1 1 auto; min-width: 0;
  padding: 0.55rem 0.7rem; font-size: 0.85rem;
  border: 1px solid #d8d8d8; border-radius: 6px;
}
.sv-berater__suche button {
  cursor: pointer; border: 0; border-radius: 6px;
  padding: 0.55rem 0.9rem; background: #111; color: #fff; font-size: 0.78rem;
}
body.suit-stil .sv-berater__suche button { background: #2b2b28; }

/* Auf dem Telefon fast Vollbild: Ein Gesprächsfenster, das die Hälfte
   des Bildschirms freilässt, zeigt drei Nachrichten. */
@media (max-width: 30rem) {
  .sv-berater {
    right: 0.5rem; left: 0.5rem; bottom: 0.5rem;
    width: auto; max-height: calc(100vh - 1rem);
  }
  .sv-berater-knopf { right: 0.85rem; bottom: 0.85rem; }
}

/* Drucken: Ein Berater gehört nicht aufs Papier. */
@media print { .sv-berater, .sv-berater-knopf { display: none !important; } }

/* ---------- Reiter, Seiten, Warenkorb (30.08.2026) ------------------
   Drei Reiter wie beim Vorbild, dazu der Warenkorb als Abstecher mit
   Pfeil zurück. Ein Warenkorb als vierter Reiter hätte behauptet, er
   sei ein Ort wie die anderen — er ist aber ein Zwischenstopp. */

/* ============================================================
   `hidden` MUSS HIER ERZWUNGEN WERDEN (30.08.2026)

   In diesem Theme wirkt das hidden-Attribut nicht von allein — eine
   Regel weiter oben übersteuert es. Ergebnis beim ersten Versuch:
   Alle vier Seiten lagen übereinander, der Zurück-Pfeil stand
   dauerhaft da, und Schließen tat nichts, weil auch das Fenster nur
   per hidden verschwindet.

   sevenvoid-account.css:15 zieht dieselbe Notbremse. Das ist hier
   also kein Trick, sondern die Hausregel.
   ============================================================ */
.sv-berater[hidden],
.sv-berater [hidden],
.sv-berater-knopf [hidden] { display: none !important; }

.sv-berater { position: fixed; }

/* ZUSÄTZLICH über eine Klasse schalten, nicht nur über hidden: Wenn
   ein Attribut einmal ausgehebelt wurde, kann es das wieder werden.
   Eine Klasse mit display:none ist die zweite, unabhängige Sicherung. */
.sv-seite { display: none; flex: 1 1 auto; overflow-y: auto; padding: 0.9rem 1rem; background: #fafafa; }
.sv-seite.ist-an { display: block; }
.sv-seite[data-seite="nachricht"].ist-an { display: flex; flex-direction: column; padding: 0; }
/* min-height: 0 IST HIER DER GANZE PUNKT (30.08.2026).

   Kevin: "man sieht die konversation garnicht sondern nur die fragen".
   Grund: In einer Flex-Spalte schrumpft ein Kind NICHT unter seine
   Inhaltsgröße, solange min-height auf auto steht. Bei zehn
   Folgefragen wuchs die Fußleiste, und der Verlauf wurde auf null
   gedrückt — er war nicht überdeckt, er war null Pixel hoch. */
.sv-berater__lauf {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; padding: 0.9rem 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}

/* Die Fußleiste darf höchstens 45 % nehmen und scrollt dann selbst.
   Das Gespräch behält damit immer mehr als die Hälfte — es ist die
   Hauptsache, die Fragen sind das Werkzeug. */
.sv-berater__fuss {
  flex: 0 1 auto; min-height: 0; max-height: 45%;
  overflow-y: auto;
}

.sv-berater__wer { flex: 1 1 auto; min-width: 0; }
.sv-berater__wer span { display: flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; opacity: 0.8; }
.sv-punkt { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #35c07a; display: inline-block; }

.sv-kopf-knopf {
  position: relative; background: none; border: 0; color: inherit; cursor: pointer;
  padding: 0.35rem; line-height: 1; font-size: 0.95rem;
}
.sv-kopf-knopf__zahl, .sv-berater-knopf__zahl {
  position: absolute; top: -0.1rem; right: -0.15rem;
  min-width: 1.05rem; height: 1.05rem; padding: 0 0.2rem;
  border-radius: 999px; background: #d64545; color: #fff;
  font-size: 0.62rem; line-height: 1.05rem; text-align: center; font-weight: 700;
}
.sv-berater-knopf { position: fixed; }

.sv-gruss { padding: 0.4rem 0 1.1rem; }
.sv-gruss h3 { margin: 0 0 0.2rem; font-size: 1.5rem; }
.sv-gruss p { margin: 0; color: #5a5a5a; font-size: 0.92rem; }

.sv-karte-block {
  background: #fff; border: 1px solid #ececec; border-radius: 10px;
  padding: 0.9rem; margin-bottom: 0.8rem;
}
body.suit-stil .sv-karte-block { border-radius: 4px; }
.sv-karte-block > b { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; }
.sv-karte-block__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sv-mehr { background: none; border: 0; cursor: pointer; font-size: 0.78rem; color: #3a6ea5; }
.sv-status { display: flex; align-items: center; gap: 0.35rem; margin: 0 0 0.7rem; font-size: 0.78rem; color: #5a5a5a; }
.sv-wege { display: flex; gap: 0.45rem; align-items: stretch; }
.sv-weg {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 0.9rem; border-radius: 8px; text-decoration: none;
  border: 1px solid #e3e3e3; background: #fff; color: inherit;
  font-size: 0.82rem; cursor: pointer;
}
.sv-weg--voll { flex: 1 1 auto; background: #111; color: #fff; border-color: #111; font-weight: 600; }
body.suit-stil .sv-weg--voll { background: #2b2b28; border-color: #2b2b28; }
body.suit-stil .sv-weg { border-radius: 4px; }

.sv-themen { display: flex; flex-direction: column; }
.sv-thema {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  padding: 0.6rem 0; background: none; border: 0; cursor: pointer;
  border-top: 1px solid #f0f0f0; text-align: left; color: inherit;
}
.sv-thema:first-child { border-top: 0; }
.sv-themen--liste .sv-thema { border-top: 1px solid #ececec; }
.sv-thema__titel { flex: 1 1 auto; font-size: 0.85rem; }
.sv-thema__zahl { font-size: 0.72rem; color: #8a8a8a; }
.sv-thema__pfeil { color: #b0b0b0; }

.sv-hilfe-suche { margin-bottom: 0.6rem; }
.sv-hilfe-suche input {
  width: 100%; padding: 0.6rem 0.75rem; font-size: 0.88rem;
  border: 1px solid #ddd; border-radius: 8px; background: #fff;
}
.sv-leer { color: #8a8a8a; font-size: 0.85rem; padding: 0.6rem 0; margin: 0; }

.sv-korb__zeile { display: flex; gap: 0.6rem; padding: 0.7rem 0; border-top: 1px solid #ececec; }
.sv-korb__zeile:first-child { border-top: 0; }
.sv-korb__zeile img { width: 3.2rem; height: 4rem; object-fit: cover; border-radius: 6px; background: #f2f2f2; }
.sv-korb__mitte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.sv-korb__mitte a { color: inherit; text-decoration: none; font-size: 0.84rem; line-height: 1.3; }
.sv-korb__mitte > span { font-size: 0.82rem; color: #5a5a5a; }
.sv-menge { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.2rem; }
.sv-menge button {
  width: 1.6rem; height: 1.6rem; border-radius: 6px; cursor: pointer;
  border: 1px solid #ddd; background: #fff; color: inherit; line-height: 1;
}
.sv-menge span { font-size: 0.85rem; min-width: 1.2rem; text-align: center; }
.sv-korb__fuss { border-top: 1px solid #ececec; padding: 0.8rem 1rem; background: #fff; }
.sv-korb__summe { display: flex; justify-content: space-between; margin-bottom: 0.7rem; font-size: 0.88rem; }

.sv-karte { display: flex; flex-direction: column; }
.sv-karte__bild img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #f2f2f2; }
.sv-karte__text { padding: 0.45rem 0.55rem; display: flex; flex-direction: column; gap: 0.25rem; }
.sv-karte__text a { color: inherit; text-decoration: none; font-size: 0.76rem; font-weight: 600; line-height: 1.3; }
.sv-korb-knopf {
  margin-top: 0.15rem; cursor: pointer; width: 100%;
  padding: 0.4rem 0.5rem; border: 1px solid #111; border-radius: 6px;
  background: #111; color: #fff; font-size: 0.7rem;
}
body.suit-stil .sv-korb-knopf { background: #2b2b28; border-color: #2b2b28; border-radius: 4px; }
.sv-korb-knopf[disabled] { opacity: 0.55; cursor: default; }

.sv-reiter { display: flex; border-top: 1px solid #ececec; background: #fff; }
.sv-reiter button {
  flex: 1 1 0; padding: 0.5rem 0.3rem 0.55rem; cursor: pointer;
  background: none; border: 0; border-top: 2px solid transparent;
  color: #8a8a8a; font-size: 0.72rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
}
.sv-reiter svg { width: 1.15rem; height: 1.15rem; display: block; }
.sv-reiter button.ist-an { color: #111; border-top-color: #111; font-weight: 600; }
body.suit-stil .sv-reiter button.ist-an { color: #1d1d1b; border-top-color: #2b2b28; }

.sv-thema__zeichen { width: 1.4rem; text-align: center; font-size: 0.95rem; flex: 0 0 auto; opacity: 0.75; }
.sv-weg-knopf {
  width: 1.6rem; height: 1.6rem; margin-left: 0.35rem; cursor: pointer;
  border: 0; background: none; color: #9a9a9a; line-height: 1; font-size: 0.85rem;
}
.sv-weg-knopf:hover { color: #d64545; }

.sv-chip--mehr { border-style: dashed; color: #5a5a5a; }
/* Der Wechsel zwischen den Reitern soll die Fußleiste nicht mitnehmen. */
.sv-seite[data-seite="nachricht"].ist-an .sv-berater__fuss { border-top: 1px solid #ececec; background: #fff; padding: 0.7rem 0.8rem; }

/* ---------- Wortbild im Kopf (31.08.2026) ----------
   Statt des getippten Markennamens steht dort dieselbe Datei wie in
   der Kopfzeile. Im Warenkorb-Abstecher weicht sie einem Wort — das
   kommt aus `data-wort`, nicht aus textContent: ein textContent
   haette das Bild aus der Huelle geworfen. */
.sv-berater__logo {
  display: block; height: 15px; width: auto; max-width: 130px;
  object-fit: contain; object-position: left center;
  /* Der Kopf ist dunkel, die Wortbilder sind schwarz auf
     durchsichtig — ungedreht stand da schwarz auf schwarz. `invert`
     macht daraus weiss, ohne dass jede Marke eine zweite Datei
     braucht. Gilt fuer alle sieben, weil alle sieben ein dunkles
     Wortbild fuehren. */
  filter: invert(1) brightness(1.8);
}
[data-berater-kopftitel].ist-text .sv-berater__logo { display: none; }
[data-berater-kopftitel].ist-text::before { content: attr(data-wort); }
