/* Profil & Login (/profil/) – im Stil der Startseite/Spielseite (Archivo, Pink #e6197a, weiße Karten) */

body.fi-profilpage, .fi-profilpage .fi-main { background: #fff; }
.fi-profilpage .fi-main { min-height: 70vh; }
.fi-profil { max-width: 720px; margin: 0 auto; padding-bottom: 24px; color: #121212; font-family: Archivo, system-ui, sans-serif; }
.fi-profil button { font-family: inherit; }
.fi-profil [hidden] { display: none !important; }
.fi-profil-card { padding: 18px 16px; }
.pf-login { margin: 10px 16px 0; border: 1px solid #e3e6e8; }
.fi-profil-loading { margin: 0; padding: 40px 15px; color: #65656e; text-align: center; }
.fi-profil-h { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #111; }
.fi-profil-lead { margin: 0 0 16px; color: #55565c; font-size: 14px; line-height: 1.45; }

.fi-auth-buttons { display: grid; gap: 10px; }
.fi-auth-btn {
	display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 16px;
	border: 1px solid #dadce0; background: #fff; color: #1f1f1f; cursor: pointer;
	font-family: inherit; font-size: 15px; font-weight: 600;
}
.fi-auth-btn:hover { background: #f7f8f8; }
.fi-auth-btn--apple { background: #000; border-color: #000; color: #fff; }
.fi-auth-btn--apple:hover { background: #222; }

.fi-auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: #65656e; font-size: 12.5px; }
.fi-auth-or::before, .fi-auth-or::after { content: ""; flex: 1; height: 1px; background: #e7e8e8; }

.fi-auth-form { display: grid; gap: 12px; }
.fi-auth-form label { display: grid; gap: 6px; color: #3a3a40; font-size: 13px; font-weight: 600; }
.fi-auth-form input {
	width: 100%; height: 46px; padding: 0 12px; border: 1px solid #dadce0; background: #fff;
	font-family: inherit; font-size: 16px; color: #111; border-radius: 0;
}
.fi-auth-form input:focus { outline: 2px solid #e6197a; outline-offset: -1px; border-color: #e6197a; }
.fi-auth-submit {
	height: 48px; border: 0; background: #e6197a; color: #fff; cursor: pointer;
	font-family: inherit; font-size: 15px; font-weight: 700;
}
.fi-auth-submit:hover { background: #cc0f69; }
.fi-auth-msg { margin: 12px 0 0; color: #b3261e; font-size: 13.5px; line-height: 1.4; }
.fi-auth-msg.is-ok { color: #1e7e46; }
.fi-auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.fi-auth-links button { padding: 4px 0; border: 0; background: none; cursor: pointer; color: #e6197a; font-family: inherit; font-size: 13.5px; font-weight: 600; }

.fi-handle-field { display: flex; align-items: center; border: 1px solid #dadce0; background: #fff; }
.fi-handle-field:focus-within { outline: 2px solid #e6197a; outline-offset: -1px; border-color: #e6197a; }
.fi-handle-field > span { padding-left: 12px; color: #65656e; font-size: 16px; font-weight: 600; }
.fi-handle-field input { border: 0 !important; outline: 0 !important; padding-left: 4px; }
.fi-handle-hint { margin: -4px 0 0; color: #65656e; font-size: 12.5px; }
.fi-handle-status { min-height: 18px; margin: 0; font-size: 13px; color: #65656e; }
.fi-handle-status.is-ok { color: #1e7e46; }
.fi-handle-status.is-bad { color: #b3261e; }
/* Profil-Knopf oben rechts nach dem Login (alle Seiten) */

/* ---------- Einstellungen wie profile_page.dart ---------- */
.pf-title { padding: 8px 16px 12px; border-bottom: 2px solid #121212; }
.pf-title h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.pf-me { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #e3e6e8; }
.pf-av { flex: none; display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border: 1px solid #e3e6e8; font-size: 16px; font-weight: 800; }
.pf-av img { width: 100%; height: 100%; object-fit: cover; }
.pf-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pf-who strong { overflow: hidden; font-size: 15px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; text-overflow: ellipsis; }
.pf-handle { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 0; border: 0; background: none; color: #e6197a; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pf-handle .pf-ic { width: 15px; height: 15px; color: #666b78; }
.pf-logout { flex: none; padding: 4px 0; border: 0; background: none; color: #666b78; font-size: 11px; font-weight: 800; letter-spacing: .9px; cursor: pointer; }
.pf-sec { margin: 0; padding: 18px 16px 8px; border-bottom: 1px solid #e3e6e8; color: #e6197a; font-size: 11px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.pf-row { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 16px; border: 0; border-bottom: 1px solid #e3e6e8; background: none; color: #121212 !important; text-align: left; text-decoration: none !important; cursor: pointer; }
.pf-row:hover { background: rgba(230, 25, 122, .04); }
.pf-ic { flex: none; width: 20px; height: 20px; margin-right: 12px; color: #666b78; }
.pf-row-t { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.pf-row-v { flex: none; margin-left: 8px; color: #666b78; font-size: 13px; }
.pf-chev { flex: none; margin-left: 6px; color: #666b78; }
.pf-row--theme { cursor: default; }
.pf-row--theme:hover { background: none; }
.pf-seg { flex: none; display: flex; padding: 0; background: #f5f5f5; border-radius: 9px; }
.pf-seg button { min-width: 58px; padding: 5px 10px; border: 0; border-radius: 8px; background: none; color: #666b78; font-size: 12px; font-weight: 500; cursor: pointer; }
.pf-seg button + button:not(.is-on) { box-shadow: -1px 0 0 #d9dadd; }
.pf-seg button.is-on { background: #e6197a; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.pf-seg button.is-on + button { box-shadow: none; }

.pf-vhead { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; height: 56px; background: #fff; border-bottom: 1px solid #e3e6e8; }
.pf-vhead h1 { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-align: center; font-size: 16px; font-weight: 600; letter-spacing: -.24px; white-space: nowrap; text-overflow: ellipsis; }
.pf-vback, .pf-vhead > span { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: #121212; cursor: pointer; }
.pf-wide { width: 100%; }
.pf-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-btn { display: grid; place-items: center; text-decoration: none !important; color: #fff !important; }

.pf-marks { margin: 0; padding: 0; list-style: none; }
.pf-mark { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e3e6e8; }
.pf-mark a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: #121212 !important; text-decoration: none !important; }
.pf-mark img, .pf-mark .pf-mark-ph { flex: none; width: 96px; aspect-ratio: 3 / 2; object-fit: cover; background: #f5f5f5; }
.pf-mark b { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 15px; font-weight: 700; line-height: 1.3; }
.pf-mark button { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: #e6197a; cursor: pointer; }
.pf-empty { padding: 48px 32px; text-align: center; color: #666b78; font-size: 14px; line-height: 1.5; }
.pf-empty b { display: block; margin-bottom: 6px; color: #121212; font-size: 18px; font-weight: 800; }

.pf-abo h2 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.pf-abo p { margin: 0 0 16px; color: #666b78; font-size: 13px; line-height: 1.5; }
.pf-abo-state { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 14px; border: 1px solid #f07fb4; }
.pf-abo-state b { font-size: 14px; }
.pf-abo-state span { margin-left: auto; color: #666b78; font-size: 13px; }

.pf-sheet { position: fixed; inset: 0; z-index: 100010; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .54); }
.pf-sheet-in { width: 100%; max-width: 560px; padding-bottom: env(safe-area-inset-bottom); background: #fff; }
.pf-confirm { padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 12px 12px 0 0; }
.pf-confirm-t { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.pf-confirm-x { margin: 0 0 18px; color: #666b78; font-size: 14px; }
.pf-confirm .fi-auth-submit { width: 100%; }
.pf-cancel { width: 100%; height: 44px; margin-top: 8px; border: 0; background: none; color: #666b78; font-size: 14px; font-weight: 600; cursor: pointer; }

/* Tarife (wie subscription_bottom_sheet der App) */
.pf-plans { display: grid; gap: 16px; margin: 4px 0 8px; }
.fi-profil .pf-plan { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 12px 12px 14px; border: 1px solid #9a9ea6; border-radius: 4px; background: none; color: #121212; text-align: left; cursor: pointer; }
.fi-profil .pf-plan.is-on { border-color: #f07fb4; }
.pf-radio { flex: none; width: 20px; height: 20px; margin-top: 2px; border: 2px solid #9a9ea6; border-radius: 50%; }
.pf-plan.is-on .pf-radio { border-color: #f07fb4; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px #f07fb4; }
.pf-plan-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-plan-t b { font-size: 14px; font-weight: 500; }
.pf-plan-t small { margin-top: 8px; color: #666b78; font-size: 12px; }
.pf-plan-t strong { margin-top: 16px; font-size: 16px; font-weight: 600; }
.pf-plan-t em { font-style: normal; font-size: 12px; font-weight: 500; }
.pf-plan-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 38px; }
.pf-plan-r i { padding: 6px; border-radius: 6px; background: #fbd7e8; color: #e6197a; font-size: 12px; font-style: normal; }
.pf-plan-r u { color: #14ae5c; font-size: 12px; text-decoration: none; }
.pf-plan-note { margin-top: 12px !important; font-size: 12px !important; }
html.fi-dark .fi-profil .pf-plan { color: #fff; border-color: #696969; }
html.fi-dark .fi-profil .pf-plan.is-on { border-color: #f07fb4; }
html.fi-dark .pf-plan.is-on .pf-radio { box-shadow: inset 0 0 0 4px #121212, inset 0 0 0 10px #f07fb4; }

/* Profilbild ändern (wie in der App): Klick aufs Bild oder „Bild ändern“ */
.pf-av-wrap { position: relative; flex: none; }
.pf-av-btn { position: relative; padding: 0; background: #f2f2f4; color: #121212; cursor: pointer; }
.pf-av-img { display: grid; place-items: center; width: 100%; height: 100%; }
.pf-av-img img { width: 100%; height: 100%; object-fit: cover; }
.pf-av-cam { position: absolute; right: -1px; bottom: -1px; display: grid; place-items: center; width: 20px; height: 20px; background: #e6197a; color: #fff; }
.pf-av-btn:hover .pf-av-cam { background: #c8126a; }
.pf-av-wrap.is-busy .pf-av-btn { pointer-events: none; }
.pf-av-wrap.is-busy .pf-av-btn::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, .75); }
.pf-av-wrap.is-busy .pf-av-btn::after { content: ""; position: absolute; top: 50%; left: 50%; z-index: 2; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 3px solid rgba(230, 25, 122, .25); border-top-color: #e6197a; border-radius: 50%; animation: pf-spin .7s linear infinite; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
.pf-av-acts { display: flex; gap: 14px; margin-top: 4px; }
.pf-av-acts button { padding: 0; border: 0; background: none; color: #e6197a; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pf-av-acts button[hidden] { display: none; }
.pf-av-acts button:hover { text-decoration: underline; }
.pf-av-msg { display: block; color: #b91c1c; font-size: 12.5px; font-weight: 600; }
.pf-av-msg:empty { display: none; }
.pf-av-msg.is-ok { color: #15803d; }

/* ======================= Computer (ab 1024 px): links Profil-Karte, rechts Einstellungen als Kacheln ======================= */
@media (min-width: 1024px) {
	.fi-profil { max-width: var(--w-max, 1280px); padding: 40px var(--w-pad, 20px) 90px; box-sizing: border-box; }
	.pf-main { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px 32px; align-items: stretch; }
	.pf-title { grid-column: 1 / -1; padding: 0 0 18px; }
	.pf-title h1 { font-size: 44px; letter-spacing: -.03em; }

	/* Profil-Karte */
	.pf-side { display: flex; flex-direction: column; gap: 14px; } /* gleich hoch wie die Kacheln rechts – Kanten bündig */
	.pf-side > [data-state]:not([hidden]) { flex: 1; }
	.pf-side [data-state="in"] { display: flex; flex-direction: column; border: 1px solid #e3e6e8; }
	.pf-me { flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 24px 24px; border-bottom: 1px solid #e3e6e8; text-align: center; background: linear-gradient(180deg, #fdf3f8, #fff 70%); }
	.pf-av { width: 112px; height: 112px; border: 3px solid #fff; box-shadow: 0 0 0 1px #e3e6e8, 0 12px 28px rgba(18, 18, 18, .12); font-size: 32px; }
	.pf-av-cam { width: 30px; height: 30px; right: 2px; bottom: 2px; }
	.pf-av-cam svg { width: 17px; height: 17px; }
	.pf-who { align-items: center; gap: 6px; width: 100%; }
	.pf-who strong { max-width: 100%; font-size: 20px; letter-spacing: -.02em; }
	.pf-handle { align-self: center; font-size: 15px; }
	.pf-av-acts { justify-content: center; margin-top: 2px; }
	.pf-av-acts button { font-size: 13px; }
	.pf-logout { order: 9; align-self: stretch; height: 42px; margin-top: 6px; border: 1px solid #e3e6e8; font-size: 12px; transition: border-color .15s, color .15s; }
	.pf-logout:hover { border-color: #121212; color: #121212; }
	.pf-side [data-state="in"] > .pf-row { min-height: 58px; padding: 14px 20px; border-bottom: 0; }
	.pf-side [data-state="in"] > .pf-row .pf-row-v { color: #e6197a; font-weight: 700; }
	.pf-login { margin: 0; padding: 26px 24px; }
	.fi-profil-loading { padding: 60px 0; }

	/* Einstellungen: Kacheln im Raster, gleiche Höhe je Reihe */
	.pf-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; align-content: start; }
	.pf-group { display: flex; flex-direction: column; border: 1px solid #e3e6e8; background: #fff; }
	.pf-group > [data-only-in] { display: contents; }
	.pf-group > [data-only-in][hidden] { display: none !important; }
	.pf-sec { padding: 20px 20px 12px; font-size: 12px; }
	.pf-row { min-height: 56px; padding: 14px 20px; }
	.pf-group > .pf-row:last-child, .pf-group > :last-child > .pf-row { border-bottom: 0; }
	.pf-row-t { font-size: 15px; }
	.pf-row--theme { cursor: default; }

	/* Unterseiten (Nutzername, Merkliste, …): lesbare Breite in der Mitte */
	.pf-view { max-width: 760px; margin: 0 auto; }
}

/* Ausgeblendete Nutzer */
.pf-hidden { margin: 0; padding: 0; list-style: none; }
.pf-hidden li { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #ececef; }
.pf-hidden img, .pf-hidden i { flex: none; width: 40px; height: 40px; object-fit: cover; background: #e3e4e7; }
.pf-hidden b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.pf-hidden .pf-btn { width: auto; height: 34px; padding: 0 12px; border: 1px solid #d9d9de; background: #fff; color: #111 !important; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
