/* Letzte Cleaning Prüfung: 02.10.2026
   Letztes Cleaning: 27.09.2026

   Profilbild und Benutzername im Studio (AL-20260927-29, -30):
   Bild statt Initialen, Fenster für den Benutzernamen, Kontoblock im
   Creator-Profil. */

/* Profilbild statt Initialen */
.avatar-ausschnitt { position: fixed; inset: 0; z-index: 14000; display: grid; place-items: center; padding: 16px; background: rgba(2,3,8,.82); backdrop-filter: blur(10px); }
.avatar-ausschnitt-dialog { box-sizing: border-box; width: min(440px,100%); max-height: calc(100dvh - 32px); overflow: auto; display: grid; gap: 14px; padding: 24px; border: 1px solid #2d3240; border-radius: 18px; background: #0e1118; color: #e6e9f1; }
.avatar-ausschnitt-dialog h2 { margin: 0; font-size: 20px; }
.avatar-ausschnitt-dialog p { margin: 0; color: #aab2c2; font-size: 13px; line-height: 1.5; }
.avatar-ausschnitt-vorschau { position: relative; width: min(320px,100%); aspect-ratio: 1; margin: auto; overflow: hidden; border-radius: 12px; }
.avatar-ausschnitt-vorschau canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.avatar-ausschnitt-vorschau canvas:active { cursor: grabbing; }
.avatar-ausschnitt-vorschau canvas:focus-visible { outline: 2px solid #ff304f; outline-offset: -2px; }
.avatar-ausschnitt-vorschau::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 100px rgba(2,3,8,.68); pointer-events: none; }
.avatar-ausschnitt-dialog label { display: grid; gap: 8px; font-size: 13px; }
.avatar-ausschnitt-dialog input { width: 100%; accent-color: #ff304f; }
.avatar-ausschnitt-dialog footer { display: flex; gap: 10px; }
.avatar-ausschnitt-dialog footer button { flex: 1; padding: 0 12px; min-height: 44px; }
.avatar-ausschnitt-dialog [role=alert] { color: #ff8a9b; }

#factory-profile.hat-profilbild { overflow: hidden; padding: 0; }
#factory-profile.hat-profilbild #factory-user-initials { display: block; width: 100%; height: 100%; }
#factory-user-initials img,
.factory-account-menu-avatar img,
.profile-konto-bild img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.factory-account-menu-avatar.hat-profilbild { overflow: hidden; padding: 0; }

/* Fenster: Benutzername wählen */
.konto-name-fenster {
  position: fixed;
  inset: 0;
  z-index: 13500;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 3, 8, .82);
  backdrop-filter: blur(10px);
}
.konto-name-karte {
  display: grid;
  gap: 12px;
  width: min(440px, 100%);
  padding: 26px 24px 22px;
  border: 1px solid #2d3240;
  border-radius: 18px;
  background: #0e1118;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
  color: #e6e9f1;
}
.konto-name-karte > i { color: #ff526b; font-size: 34px; line-height: 1; }
.konto-name-karte h2 { margin: 0; color: #f5f7fb; font: 700 20px/1.25 'Space Grotesk', sans-serif; }
.konto-name-karte p { margin: 0; color: #aab2c2; font-size: 13px; line-height: 1.5; }
.konto-name-karte label { display: grid; gap: 6px; color: #d5dbe7; font-size: 12px; font-weight: 700; }
.konto-name-karte input,
.profile-konto input[data-konto-benutzername] {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #343a49;
  border-radius: 10px;
  background: #151923;
  color: #f5f7fb;
  font: 600 14px/1 inherit;
}
.konto-name-karte input:focus,
.profile-konto input[data-konto-benutzername]:focus { border-color: #ff304f; outline: none; }
.konto-name-hinweis { min-height: 16px; color: #8c94a6; font-size: 12px; }
.konto-name-hinweis.ist-gut { color: #8bf0bd; }
.konto-name-hinweis.ist-fehler, .konto-name-fehler { color: #ff8a9b; }
.konto-name-fehler { margin: 0; font-size: 12px; }
.konto-knopf-primaer {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #ff304f;
  color: #fff;
  font: 700 14px/1 inherit;
  cursor: pointer;
}
.konto-knopf-primaer:disabled { opacity: .5; cursor: default; }

/* Kontoblock im Creator-Profil (vor "Sicherheit") */
.profile-konto {
  box-sizing: border-box;
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #262b37;
  border-radius: 16px;
  background: #11141c;
}
.profile-konto-bild {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid #2d3240;
  border-radius: 50%;
  background: #171b25;
  color: #5c6475;
  font-size: 34px;
}
/* Kreis als Knopf (AL-20261001-63): Klick öffnet die Medienwahl, beim
   Überfahren ein Kamerasymbol im Kreis und ein Mülleimer daneben. */
.profile-konto-bildrahmen { position: relative; flex: 0 0 auto; }
button.profile-konto-bild { position: relative; padding: 0; font-family: inherit; cursor: pointer; transition: border-color .15s ease; }
button.profile-konto-bild:hover,
button.profile-konto-bild:focus-visible { border-color: #ff304f; }
button.profile-konto-bild:focus-visible { outline: 2px solid #ff304f; outline-offset: 2px; }
.profile-konto-bild-auswahl {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 10, 16, .55);
  color: #fff;
  font-size: 24px;
  opacity: 0;
  transition: opacity .15s ease;
}
button.profile-konto-bild:hover .profile-konto-bild-auswahl,
button.profile-konto-bild:focus-visible .profile-konto-bild-auswahl { opacity: 1; }
.profile-konto-bild-entfernen {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #2d3240;
  border-radius: 50%;
  background: #171b25;
  color: #c4cad6;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease, color .15s ease, border-color .15s ease;
}
.profile-konto-bildrahmen:hover .profile-konto-bild-entfernen,
.profile-konto-bild-entfernen:focus-visible { opacity: 1; }
.profile-konto-bild-entfernen:hover,
.profile-konto-bild-entfernen:focus-visible { color: #ff6b80; border-color: #ff304f; }
/* Ohne Maus gibt es kein Überfahren: Mülleimer dauerhaft sichtbar. */
@media (hover: none) {
  .profile-konto-bild-entfernen { opacity: 1; }
}
/* Der Datenexport-Link unter "Konto & Sicherheit" ist seit WL-04 (12.10.2026) entfernt. */
.profile-konto-felder { display: grid; flex: 1; gap: 8px; min-width: 0; }
.profile-konto-felder > strong { color: #f5f7fb; font-size: 15px; }
.profile-konto-felder > small { color: #8c94a6; font-size: 12px; }
.profile-konto-email { display: grid; gap: 2px; margin: 0; min-width: 0; }
.profile-konto-email > span { color: #8c94a6; font-size: 12px; }
.profile-konto-email > b { color: #f5f7fb; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.profile-konto-felder label { display: grid; gap: 6px; color: #d5dbe7; font-size: 12px; font-weight: 700; }
.profile-konto-zeile { display: flex; gap: 8px; }
.profile-konto-zeile input { flex: 1; }
.profile-konto-bildknoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-konto-hochladen { display: inline-flex !important; align-items: center; gap: 6px; cursor: pointer; }

@media (max-width: 700px) {
  /* Bild links, Kontoangaben rechts daneben (MOB17-22): untereinander
     gestapelt brauchte der Block fast eine Bildschirmhoehe. Die Ueberschrift
     "Konto" steht schon in der Zeile zurueck darueber. */
  .profile-konto { gap: 12px; padding: 12px; }
  .profile-konto-bild { width: 56px; height: 56px; font-size: 26px; }
  .profile-konto-felder { gap: 6px; }
  .profile-konto-felder > strong { display: none; }
  body.profile-modal-open .profile-konto-felder > small { font-size: 11px; line-height: 1.35; }
  .profile-konto-zeile { flex-direction: column; }
  /* In der Spalte schrumpfte das Feld mit flex: 1 (Grundgroesse 0) auf 17 px
     (AL-20261001-10); hier gilt seine eigene Hoehe. */
  .profile-konto-zeile input { flex: 0 0 auto; min-height: 42px; }
}

/* Rechnungsdaten und Benachrichtigungen (WL20-04, B3/B6): gleiche Felder wie der Benutzername */
.profile-konto-rechnung .profile-konto-felder { display: grid; gap: 10px; width: 100%; }
.profile-konto-rechnung label { display: grid; gap: 6px; color: #d5dbe7; font-size: 12px; font-weight: 700; }
.profile-konto-rechnung input[data-rechnung-feld] {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #343a49;
  border-radius: 10px;
  background: #151923;
  color: #f5f7fb;
  font: 600 14px/1 inherit;
}
.profile-konto-rechnung input[data-rechnung-feld]:focus { border-color: #ff304f; outline: none; }
.profile-konto-rechnung .profile-konto-zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.profile-konto-rechnung .profile-konto-felder > strong { margin-top: 6px; }
.profile-konto-rechnung .wizard-secondary { justify-self: start; }
.profile-konto-schalter { display: flex !important; align-items: center; gap: 10px; font-weight: 600 !important; cursor: pointer; }
.profile-konto-schalter input { width: 18px; height: 18px; accent-color: #ff304f; }
@media (max-width: 700px) {
  .profile-konto-rechnung .profile-konto-zeile { grid-template-columns: 1fr; }
}
