/* App – Pflege-App „Inhalte vom Handy“ (Präfix pf2-). Design Pflege.dc.html, im dunklen App-Look. */
@keyframes pf2Up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.pf2 { gap: 12px; animation: pf2Up .35s ease both; }
@media (prefers-reduced-motion: reduce) { .pf2, .pf2-toast { animation: none !important; } }

.pf2-me { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ap-card2); border: 1px solid var(--ap-line); color: var(--ap-gold-t); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.pf2-k { font-family: var(--ap-mono); font-size: 11px; color: var(--ap-muted); letter-spacing: .02em; }

/* Start: großer Live-Knopf */
.pf2-live { text-decoration: none; border-radius: 22px; padding: 16px; display: flex; align-items: center; gap: 14px; background: var(--ap-red2); color: var(--ap-on-gold) !important; }
.pf2-live:hover { filter: brightness(1.05); }
.pf2-live__ic { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #0B1626; display: flex; align-items: center; justify-content: center; }
.pf2-live__ic span { width: 12px; height: 12px; border-radius: 50%; background: var(--ap-red2); box-shadow: 0 0 0 4px rgba(255,90,69,.35); }
html:not([data-motion="aus"]) .pf2-live__ic span { animation: pf2Pulse 1.6s ease-in-out infinite; }
@keyframes pf2Pulse { 50% { box-shadow: 0 0 0 7px rgba(255,90,69,.12); } }
.pf2-live__t { flex: 1; min-width: 0; font-size: 13px; }
.pf2-live__t strong { display: block; font-size: 17px; }

/* Start: Aktionen */
.pf2-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf2-tile { text-decoration: none; border-radius: 22px; padding: 16px; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; background: var(--ap-card); border: 1px solid var(--ap-line); color: var(--ap-text) !important; }
.pf2-tile:hover { border-color: var(--ap-line2); }
.pf2-tile__ic { width: 36px; height: 36px; border-radius: 12px; background: var(--ap-card2); color: var(--ap-text); display: flex; align-items: center; justify-content: center; flex: none; }
.pf2-tile__t strong { display: block; font-size: 15px; }
.pf2-tile__t span { font-size: 12px; opacity: .75; }
.pf2-tile.is-dark { background: var(--ap-card2); border-color: var(--ap-line2); }
.pf2-tile.is-dark .pf2-tile__ic { background: var(--ap-gold); color: var(--ap-on-gold); }
.pf2-tile.is-gold { background: var(--ap-gold); border-color: var(--ap-gold); color: var(--ap-on-gold) !important; }
.pf2-tile.is-gold .pf2-tile__ic { background: #FFFFFF; color: var(--ap-on-gold); }
.pf2-tile.is-wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }

/* Start: Zuletzt */
.pf2-last { border-radius: 20px; padding: 14px 16px; }
.pf2-last .pf2-k { margin-bottom: 8px; }
.pf2-last__l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.pf2-last__l li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pf2-last__l li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.pf2-last__l small { display: block; font-size: 11px; color: var(--ap-muted); margin-top: 1px; }
.pf2-last__e { font-size: 14px; color: var(--ap-muted); }
.pf2-st { flex: none; color: var(--ap-muted); }
.pf2-st.is-ok { color: var(--ap-ok-t2); }
.pf2-st.is-live { color: var(--ap-red2); font-weight: 600; }

/* Formulare */
.pf2-form { display: flex; flex-direction: column; gap: 10px; }
.pf2-spiel { gap: 9px; }
.pf2-lbl { font-size: 13px; color: var(--ap-muted); }
.pf2-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf2-in, .pf2-vs select, .pf2-bw select, .pf2-score__opp { font: inherit; font-size: 15px; color: var(--ap-text); background: var(--ap-card); border: 1px solid var(--ap-line); padding: 12px 14px; border-radius: 14px; min-width: 0; width: 100%; min-height: 46px; }
.pf2 textarea.pf2-in { resize: none; line-height: 1.4; }
.pf2-in:focus, .pf2-vs select:focus, .pf2-bw select:focus, .pf2-score input:focus, .pf2-score select:focus { outline: none; border-color: var(--ap-gold); }
.pf2 input[type="date"], .pf2 input[type="time"] { color-scheme: inherit; }
.pf2-in::placeholder, .pf2-score input::placeholder { color: var(--ap-ph); }
.pf2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf2-chip { font: inherit; font-size: 13px; cursor: pointer; padding: 9px 14px; min-height: 44px; border-radius: 999px; border: 1px solid var(--ap-line); background: var(--ap-card); color: var(--ap-text); display: inline-flex; align-items: center; }
.pf2-chip[aria-pressed="true"] { border-color: var(--ap-text); background: var(--ap-text); color: var(--ap-bg); font-weight: 600; }
.pf2-chip.is-fixed { cursor: default; min-height: 40px; }
.pf2-cat { font-size: 12px; color: var(--ap-muted); align-self: center; }
.pf2-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.pf2-vs select { font-size: 14px; padding: 11px 8px; }
.pf2-vs > span { font-weight: 700; font-size: 13px; }
.pf2-bw select { font-size: 14px; padding: 11px 10px; }
.pf2-seg { display: flex; gap: 4px; background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 14px; padding: 3px; }
.pf2-seg button { flex: 1; font: inherit; font-size: 13px; cursor: pointer; border: 0; border-radius: 11px; padding: 8px 4px; min-height: 38px; background: transparent; color: var(--ap-muted); }
.pf2-seg button[aria-pressed="true"] { background: var(--ap-text); color: var(--ap-bg); font-weight: 600; }
.pf2-um { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ap-muted); }
.pf2-um[hidden] { display: none; }
.pf2-um span { flex: none; }
.pf2-soon { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--ap-soft); border: 1.5px dashed var(--ap-dash); border-radius: 14px; padding: 9px 12px; }
.pf2-soon svg { flex: none; margin-top: 1px; color: var(--ap-gold-t); }

/* Vorschau „So erscheint es“ */
.pf2-prev { background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 18px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.pf2-prev__top { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.35; }
.pf2-prev__top span:not(.pf2-ds) { color: var(--ap-muted); }
.pf2-ds { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--ap-bg); border: 1px solid var(--ap-line); color: var(--ap-gold-t); display: flex; align-items: center; justify-content: center; font-family: var(--ap-head); font-stretch: 125%; font-weight: 900; font-size: 10px; }
.pf2-ds.is-gold { width: 32px; height: 32px; border-radius: 9px; background: var(--ap-gold); border-color: var(--ap-gold); color: var(--ap-on-gold); font-size: 11px; }
.pf2-prev__tick { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; border-top: 1px solid var(--ap-line); padding-top: 8px; }
.pf2-tag { font-family: var(--ap-mono); font-size: 10px; background: rgba(255,90,69,.16); color: var(--ap-red2-t); padding: 2px 7px; border-radius: 999px; }

/* Knöpfe */
.pf2-btn { font: inherit; font-weight: 600; font-size: 15px; border: 0; padding: 16px; min-height: 52px; border-radius: 999px; cursor: pointer; width: 100%; margin-top: 4px; }
.pf2-btn:hover { filter: brightness(1.06); }
.pf2-btn.is-red { background: var(--ap-red2); color: var(--ap-on-gold); font-weight: 700; }
.pf2-btn.is-light { background: var(--ap-text); color: var(--ap-bg); }
.pf2-btn.is-gold { background: var(--ap-gold); color: var(--ap-on-gold); }
.pf2-hint { font-size: 12px; color: var(--ap-muted); text-align: center; line-height: 1.4; }
.pf2-hint.is-left { text-align: left; padding: 4px 0 10px; }
.pf2-mini { font: inherit; font-size: 13px; font-weight: 600; background: var(--ap-card2); color: var(--ap-text); border: 0; padding: 9px 12px; min-height: 44px; border-radius: 999px; cursor: pointer; text-align: center; line-height: 1.2; }
.pf2-mini.is-gold { background: var(--ap-gold); color: var(--ap-on-gold); }
.pf2-end { font: inherit; font-size: 13px; font-weight: 600; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,90,69,.45); background: transparent; color: var(--ap-red2-t); cursor: pointer; }
.pf2-x { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--ap-line); background: transparent; color: var(--ap-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pf2-x:hover { color: var(--ap-red-t); border-color: rgba(220,38,38,.45); }
.pf2-act .ap-row { flex-wrap: wrap; }
.pf2-act .ap-row form { margin: 0; }

/* News: Foto */
.pf2-photo { position: relative; cursor: pointer; border: 2px dashed var(--ap-dash); background: var(--ap-card); border-radius: 20px; height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ap-muted); }
.pf2-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.pf2-photo:focus-within { border-color: var(--ap-gold); }
.pf2-photo__e { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; pointer-events: none; }
.pf2-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pf2-photo.has-img { height: 190px; border-style: solid; border-color: var(--ap-line); }
.pf2-photo.has-img .pf2-photo__e { display: none; }
.pf2-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 2px; cursor: pointer; }
.pf2-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ap-gold); }
.pf2-check small { display: block; font-size: 12px; color: var(--ap-muted); margin-top: 2px; }

/* Nachricht */
.pf2-push { background: var(--ap-card2); border: 1px solid var(--ap-line2); border-radius: 18px; padding: 12px 14px; display: flex; gap: 10px; margin-top: 6px; font-size: 13px; }
.pf2-push > div { min-width: 0; overflow-wrap: anywhere; }
.pf2-push__to { color: var(--ap-muted); font-size: 12px; }
.pf2-push__t { color: var(--ap-muted); white-space: pre-line; }
.pf2-notice p { margin: 0 0 10px; font-size: 14px; }
.pf2-notice p.ap-muted { margin: 0; }
.pf2-msg { padding: 12px 0; }
.pf2-msg + .pf2-msg { border-top: 1px solid var(--ap-line); }
.pf2-msg__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pf2-msg p { margin: 6px 0 10px; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.pf2-msg__a { display: flex; gap: 8px; align-items: center; }
.pf2-msg__a form { margin: 0; }
.pf2-msg__a form:first-child { flex: 1; min-width: 0; }
.pf2-msg__a form:first-child .pf2-mini { width: 100%; }

/* Ergebnis */
.pf2-score { border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pf2-score__ev { font-size: 14px; padding: 10px 12px; }
.pf2-score__g { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 2px; text-align: center; }
.pf2-score__team { font-weight: 600; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.pf2-score__opp { font-weight: 600; font-size: 14px; padding: 10px 8px; text-align: center; }
.pf2-score__n { display: flex; align-items: center; gap: 6px; }
.pf2-score__n span { font-weight: 700; }
.pf2-score__n input { font: inherit; font-family: var(--ap-mono); font-size: 26px; width: 52px; text-align: center; color: var(--ap-text); background: var(--ap-bg); border: 1px solid var(--ap-line); border-radius: 12px; padding: 8px 0; -moz-appearance: textfield; appearance: textfield; }
.pf2-score__n input::-webkit-outer-spin-button, .pf2-score__n input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pf2-note { font-size: 13px; color: var(--ap-muted); line-height: 1.5; }
.pf2-res { font-size: 18px; font-weight: 600; color: var(--ap-gold-t); }

/* Shop */
.pf2-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf2-stat { border-radius: 20px; padding: 14px; background: var(--ap-card); border: 1px solid var(--ap-line); }
.pf2-stat:only-child { grid-column: 1 / -1; }
.pf2-stat div { font-size: 12px; color: var(--ap-muted); }
.pf2-stat b { display: block; font-family: var(--ap-head); font-stretch: 125%; font-weight: 900; font-size: 32px; line-height: 1.15; }
.pf2-stat.is-dark { background: var(--ap-card2); border-color: var(--ap-line2); }
.pf2-stat.is-dark b { color: var(--ap-gold-t); }
.pf2-orders { border-radius: 20px; }
.pf2-order { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; font-size: 14px; }
.pf2-order + .pf2-order { border-top: 1px solid var(--ap-line); }
.pf2-order__t { min-width: 0; overflow-wrap: anywhere; }
.pf2-order__t small { display: block; color: var(--ap-muted); font-size: 12px; margin-top: 2px; }
.pf2-order form { margin: 0; flex: none; max-width: 48%; }
.pf2-stock { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 18px; padding: 12px 14px; font-size: 14px; }
.pf2-stock .ap-mono { font-size: 18px; }

/* Erfolgsmeldung */
.pf2-toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); width: calc(min(100%, 520px) - 32px); bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); background: #1C6B3E; color: #FFFFFF; border-radius: 18px; padding: 12px 14px 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; box-shadow: var(--ap-shadow-lg); animation: pf2Toast .3s ease both; }
.pf2-toast.is-err { background: #8F1D1D; }
.pf2-toast svg { flex: none; }
.pf2-toast span { flex: 1; min-width: 0; }
.pf2-toast a { flex: none; font-size: 13px; background: rgba(255,255,255,.18); color: #FFFFFF !important; text-decoration: none; padding: 0 14px; min-height: 36px; display: inline-flex; align-items: center; border-radius: 999px; }
@keyframes pf2Toast { from { transform: translate(-50%, 16px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
