/* Freunde: Seite, Rangliste (Entwurf freunde.html links), Such-Sheet, Freundes-Link, Profil */
.fr { padding: 12px 20px 48px; }
.fr-svg { display: inline-flex; flex: none; }
.fr-kopf { font-size: 18px; font-weight: 700; color: var(--text); margin: 22px 0 var(--gap); }

/* Knöpfe oben */
.fr-knoepfe { display: flex; gap: var(--gap); }
.fr-knopf { flex: 1; min-width: 0; height: 48px; border-radius: 14px; background: var(--card); color: var(--blue);
  display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 8px; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 0 10px 2px var(--shadow); white-space: nowrap; }
.fr-knopf:active { opacity: .5; }

/* Avatar */
.fr-av { border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 600;
  color: #fff; border: 2px solid var(--field); object-fit: cover; box-sizing: border-box; }

/* Zeilen (Anfragen, Suchtreffer) */
.fr-liste { padding: 4px 0; }
.fr-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.fr-zeile + .fr-zeile { border-top: .7px solid var(--sep); }
.fr-mitte { flex: 1; min-width: 0; text-align: left; }
.fr-name { font-size: 16.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-user { font-size: 13px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-pill { flex: none; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--field); color: var(--text2);
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.fr-pill.blau { background: var(--blue); color: #fff; }
.fr-pill.rund { width: 32px; padding: 0; }
.fr-pill:active:not(:disabled) { opacity: .5; }
.fr-pill:disabled { cursor: default; }

/* Filter */
.fr-filter { display: flex; gap: 8px; margin-bottom: var(--gap); }
.fr-filter .chip { margin: 0; padding: 0 14px; }

/* Rangliste */
.fr-rang { display: flex; align-items: center; gap: 14px; padding: 12px 16px; width: 100%; text-align: left; }
.fr-rang + .fr-rang { border-top: .7px solid var(--sep); }
.fr-rang:active { background: rgba(255, 255, 255, .05); }
.fr-rang.ich { background: rgba(92, 129, 255, .08); }
.fr-platz { width: 26px; flex: none; text-align: center; font-size: 26px; font-weight: 700; }
.fr-platz.p1 { color: #F5C242; } .fr-platz.p2 { color: #D9DCE1; } .fr-platz.p3 { color: #E08A3C; } .fr-platz.px { color: rgba(255, 255, 255, .45); }
.fr-rname { font-size: 19px; font-weight: 700; color: var(--text); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fr-rname .fr-n { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-wert { flex: none; font-size: 22px; font-weight: 700; }
.fr-wert small, .fr-kwert small { font-size: 13px; font-weight: 400; color: var(--text2); margin-left: 2px; }
.fr-rsub { font-size: 13px; color: var(--text2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-rsub b { color: var(--text); font-weight: 600; }
.fr-hint { font-size: 11.5px; color: var(--text2); text-align: center; padding: 14px 20px 0; line-height: 1.3; }

/* Such-Sheet */
.fr-suche { padding: 4px 16px 24px; }
.fr-suchzeile { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 10px;
  background: var(--field); color: var(--text2); }
.fr-suchfeld { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--text);
  font: inherit; font-size: 17px; -webkit-appearance: none; appearance: none; }
.fr-suchfeld::placeholder { color: rgba(255, 255, 255, .35); }
.fr-suchfeld::-webkit-search-cancel-button { -webkit-appearance: none; }
.fr-treffer { margin-top: var(--gap); }
.fr-treffer .fr-zeile { padding: 10px 4px; }
.fr-leer { text-align: center; font-size: 14px; color: var(--text2); padding: 18px 0; }

/* Freundes-Link-Sheet und Bestätigung */
.fr-linkbox { padding: 4px 20px 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.fr-info { text-align: center; font-size: 14px; color: var(--text2); line-height: 1.35; }
.fr-link { width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--field); color: var(--text);
  font-size: 13.5px; word-break: break-all; text-align: center; user-select: all; -webkit-user-select: all; }
.fr-linkbox .blue-button { margin: 0; }
.fr-neu { font-size: 15px; min-height: 36px; }
.fr-frage { text-align: center; font-size: 19px; font-weight: 600; color: var(--text); }

/* Profil */
.fr-profil { padding-top: 20px; }
.fr-pkopf { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
.fr-pkopf .fr-av { margin-bottom: 6px; }
.fr-pname { font-size: 24px; font-weight: 700; color: var(--text); text-align: center; }
.fr-mitteknopf { display: flex; justify-content: center; }
.fr-live { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 14px; padding: 12px 16px;
  margin-bottom: var(--gap); box-shadow: 0 0 10px 2px var(--shadow); }
.fr-livepunkt { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.fr-livelabel { font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: .04em; text-transform: uppercase; }
.fr-livewert { font-size: 20px; font-weight: 700; color: var(--text); margin-left: 4px; }
.fr-liveende { margin-left: auto; font-size: 13px; color: var(--text2); }
.fr-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.fr-kachel { background: var(--card); border-radius: 20px; padding: 14px 16px; box-shadow: 0 0 10px 2px var(--shadow); }
.fr-kwert { font-size: 24px; font-weight: 700; color: var(--text); }
.fr-klabel { font-size: 12.4px; color: var(--text2); text-transform: uppercase; margin-top: 4px; }
.fr-sett { padding-top: 0; }
.fr-sett .list-section { margin: 0; }
.fr-sett .list-section:first-child { margin-top: var(--gap); }
.fr-sett .list-item { width: 100%; text-align: left; }
.fr-sett .li-value { white-space: nowrap; }
.fr-grau { color: var(--text2); }
.fr-anstossen { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 0; margin-top: 24px; border-radius: 14px; }
.fr-entfernen { display: block; margin: 18px auto 0; color: var(--ios-red); font-size: 16px; min-height: 44px; padding: 0 12px; }
.fr-entfernen:active { opacity: .4; }
