/* Page-specific styles for apps.html.
   Extracted from an inline <style> block so the CSP can drop
   'unsafe-inline' from style-src. Shared component styles (.back-link,
   .status-badge, .nav-links) live in styles.css. */
.apps-page { padding: 9rem 4rem 5rem; max-width: 1100px; margin: 0 auto; }

.apps-page-header { margin-bottom: 4rem; }
.apps-page-header .page-tag { font-family: ui-monospace,'SF Mono',monospace; font-size: 0.72rem; color: var(--accent-glow); letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.apps-page-header h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.9rem; }
.apps-page-header h1 span { color: var(--accent-glow); }
.apps-page-header p { font-size: 0.97rem; color: var(--text-2); max-width: 620px; line-height: 1.75; }

.app-block { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 3rem; background: var(--bg-2); }
.app-block-header { padding: 2.5rem; display: flex; gap: 2rem; align-items: flex-start; border-bottom: 1px solid var(--border-2); }
.app-block-icon { width: 80px; height: 80px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-2); flex-shrink: 0; background: var(--bg-3); display: flex; align-items: center; justify-content: center; }
.app-block-icon img { width: 100%; height: 100%; object-fit: contain; }
.app-block-info h2 { font-size: 1.55rem; font-weight: 700; margin-bottom: 0.25rem; }
.app-block-info .sub { font-family: ui-monospace,'SF Mono',monospace; font-size: 0.72rem; color: var(--accent-glow); letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.app-block-info p { font-size: 0.91rem; color: var(--text-2); line-height: 1.75; max-width: 700px; margin-bottom: 1rem; margin-top: 0.6rem; }
.app-block-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.app-block-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.app-block-section { padding: 2rem 2.5rem; border-bottom: 1px solid var(--border-2); }
.app-block-section:last-child { border-bottom: none; }
.section-label { font-family: ui-monospace,'SF Mono',monospace; font-size: 0.68rem; color: var(--accent-glow); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border-2); }

/* Collapsible Datenschutzerklärung sections */
details.priv-collapse { padding: 2rem 2.5rem; border-bottom: 1px solid var(--border-2); }
details.priv-collapse:last-child { border-bottom: none; }
details.priv-collapse > summary { list-style: none; cursor: pointer; margin-bottom: 0; padding: 0.25rem 0; border-radius: 6px; transition: color 0.2s, opacity 0.2s; -webkit-user-select: none; user-select: none; }
details.priv-collapse > summary::-webkit-details-marker { display: none; }
details.priv-collapse > summary:hover { opacity: 0.85; }
details.priv-collapse > summary:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 4px; }
.priv-chevron { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent-glow); transition: transform 0.25s ease; margin-left: 0.25rem; }
details.priv-collapse[open] > summary .priv-chevron { transform: rotate(180deg); }
details.priv-collapse[open] > summary { margin-bottom: 1.25rem; }
details.priv-collapse[open] > .priv { animation: priv-fade-in 0.3s ease; }
@keyframes priv-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.doc-links { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }

.priv h3 { font-size: 1rem; font-weight: 700; margin: 1.75rem 0 0.5rem; color: var(--text); }
.priv h3:first-child { margin-top: 0; }
.priv p { font-size: 0.875rem; color: var(--text-2); line-height: 1.82; margin-bottom: 0.7rem; }
.priv ul { margin: 0.4rem 0 0.9rem 0; padding-left: 1.2rem; }
.priv ul li { font-size: 0.875rem; color: var(--text-2); line-height: 1.82; margin-bottom: 0.2rem; }
.priv a { color: var(--accent-glow); text-decoration: none; }
.priv a:hover { text-decoration: underline; }
.priv-box { background: rgba(59,130,246,0.07); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; margin: 0.75rem 0; }
.priv-box p { margin: 0; }
.priv-hr { height: 1px; background: var(--border-2); margin: 1.5rem 0; }

.tech-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 2rem; margin: 0.5rem 0 1rem; }
.tech-list li { font-size: 0.875rem; color: var(--text-2); line-height: 1.75; }

.priv-table { width: 100%; border-collapse: collapse; margin: 0.75rem 0 1rem; font-size: 0.875rem; }
.priv-table th, .priv-table td { text-align: left; padding: 0.6rem 0.85rem; border: 1px solid var(--border-2); line-height: 1.6; vertical-align: top; }
.priv-table th { color: var(--text); font-weight: 700; background: rgba(255,255,255,0.02); }
.priv-table td { color: var(--text-2); }
.priv-table td:last-child { color: var(--text); }
.priv-faq { margin: 0; }
.priv-faq dt { font-weight: 700; color: var(--text); font-size: 0.9rem; margin-top: 1.1rem; }
.priv-faq dt:first-child { margin-top: 0; }
.priv-faq dd { margin: 0.3rem 0 0; font-size: 0.875rem; color: var(--text-2); line-height: 1.82; }
.seniorcare-trust { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.2rem 0 1.1rem; }
.seniorcare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0.75rem 0 1.2rem; }
.seniorcare-module { border: 1px solid var(--border-2); border-radius: 8px; padding: 1rem; background: rgba(255,255,255,0.02); }
.seniorcare-module h3 { margin-top: 0; }
.seniorcare-price td:nth-child(2), .seniorcare-price th:nth-child(2) { white-space: nowrap; }

/* Utility classes replacing removed inline style="" attributes (CSP hardening) */
.legal-subheading { font-size: 0.95rem; }
.code-accent { font-size: 0.8rem; color: var(--accent-glow); }
.text-note { font-size: 0.875rem; color: var(--text-2); line-height: 1.75; }

@media (max-width: 768px) {
  .apps-page { padding: 8rem 1.5rem 4rem; }
  .apps-page-header h1 { font-size: 2.1rem; }
  .app-block-header { flex-direction: column; gap: 1.25rem; }
  .app-block-icon { width: 64px; height: 64px; }
  .seniorcare-grid { grid-template-columns: 1fr; }
  .tech-list { grid-template-columns: 1fr; }
  .priv-table th, .priv-table td { padding: 0.5rem 0.6rem; }
}
