/* Security-Awareness-Übung – Profil-Check im Website-Layout
   Alles unter .sa-app gekapselt; Farben/Radien aus /assets/css/styles.css (:root). */
.sa-app [hidden] { display: none !important; }

.sa-app .sa-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.sa-app .lang-switch { display: flex; gap: 6px; }
.sa-app .lang-switch button {
  background: #fff; color: var(--ink); border: 1px solid var(--ring); border-radius: .8rem;
  padding: .35rem .7rem; font: inherit; font-size: .85rem; font-weight: 900; cursor: pointer;
}
.sa-app .lang-switch button:hover { background: var(--bg); }
.sa-app .lang-switch button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.sa-app .sa-card {
  background: var(--card); border: 1px solid var(--ring); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px;
}
.sa-app .sa-card h2 { margin: 0 0 10px; }
.sa-app .sa-card p { max-width: 80ch; }
.sa-app .center { text-align: center; margin-top: 14px; }
.sa-app .small { font-size: .9rem; color: var(--muted); }
.sa-app .hint { font-size: .88rem; color: var(--muted); margin: 0 0 8px; }
.sa-app .hint + .property-list, .sa-app .actions-row + .hint { margin-top: 10px; }

.sa-app .sa-card button, .sa-app .button {
  display: inline-block; background: var(--accent); color: #fff; border: 1px solid transparent;
  border-radius: .8rem; padding: .6rem .9rem; font: inherit; font-weight: 900; cursor: pointer;
  text-decoration: none;
}
.sa-app .sa-card button:hover, .sa-app .button:hover { background: var(--accent-600); }
.sa-app button.secondary, .sa-app .button.secondary { background: #fff; color: var(--ink); border-color: var(--ring); }
.sa-app button.secondary:hover, .sa-app .button.secondary:hover { background: var(--bg); }
.sa-app .button.danger, .sa-app button.danger { background: #fff; color: #b91c1c; border-color: #fecaca; }
.sa-app .button.danger:hover, .sa-app button.danger:hover { background: #fef2f2; }
.sa-app .button.cta { background: var(--action); color: var(--ink); }
.sa-app .button.cta:hover { background: var(--action-hover); color: #fff; }

.sa-app .notice {
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px;
  padding: 10px 14px; font-size: .92rem; margin-bottom: 16px;
}
.sa-app .save-status { font-size: .88rem; color: var(--action-hover); align-self: center; }

.sa-app .profile-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.sa-app .profile-selector button { background: #fff; color: var(--ink); border-color: var(--ring); padding: .4rem .75rem; font-size: .9rem; }
.sa-app .profile-selector button:hover { background: var(--bg); }
.sa-app .profile-selector button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.sa-app .profile-selector button.answered::after { content: " ✓"; }

.sa-app .profile-layout { display: grid; grid-template-columns: 1.1fr 1.2fr; gap: 22px; }
@media (max-width: 800px) { .sa-app .profile-layout { grid-template-columns: 1fr; } }

.sa-app .profile-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sa-app .avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--ring); display: flex; align-items: center;
  justify-content: center; font-weight: 900; color: var(--brand); overflow: hidden; position: relative;
  flex-shrink: 0; cursor: zoom-in;
}
.sa-app .avatar img { width: 100%; height: 100%; object-fit: cover; }
.sa-app .avatar span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sa-app .profile-name { font-weight: 900; font-size: 1.05rem; }
.sa-app .profile-title { font-size: .92rem; color: var(--muted); margin-top: 2px; }
.sa-app .platform-badge { margin-top: 6px; display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 900; }
.sa-app .platform-linkedin { background: #dbeafe; color: #1d4ed8; }
.sa-app .platform-facebook { background: #e0e7ff; color: #3730a3; }
.sa-app .platform-instagram { background: #fae8ff; color: #86198f; }

.sa-app .profile-description { margin: 8px 0 0; }
.sa-app .post { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--ring); line-height: 1.45; }
.sa-app .image-gallery-title { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.sa-app .image-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
@media (max-width: 900px) { .sa-app .image-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sa-app .image-gallery { grid-template-columns: 1fr; } }
.sa-app .image-gallery img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; border: 1px solid var(--ring); cursor: zoom-in; }

.sa-app .property-list { display: grid; gap: 8px; }
.sa-app .property-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border: 1px solid var(--ring);
  border-radius: 12px; background: #fff; cursor: pointer;
}
.sa-app .property-item:hover { background: var(--bg); }
.sa-app .property-item input { margin-top: 5px; accent-color: var(--accent); }

.sa-app .actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.sa-app .summary-box { padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--ring); margin-top: 10px; }
.sa-app .summary-box ul { margin: 6px 0 0 18px; padding: 0; }
.sa-app .summary-row { margin-top: 6px; }
.sa-app .footer-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* Lightbox (wird per JS an <body> gehängt, daher nicht unter .sa-app) */
.lightbox { position: fixed; inset: 0; background: rgba(10, 18, 30, .82); display: none; align-items: center; justify-content: center; padding: 18px; z-index: 9999; }
.lightbox.open { display: flex; }
.lightbox-content { max-width: min(1100px, 95vw); max-height: 88vh; width: 100%; position: relative; }
.lightbox-img { width: 100%; height: 100%; max-height: 88vh; object-fit: contain; border-radius: 14px; }
.lightbox-close { position: absolute; top: -10px; right: -10px; width: 40px; height: 40px; padding: 0; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.55); color: #fff; font-size: 20px; cursor: pointer; }
.lightbox-hint { margin-top: 10px; font-size: .85rem; color: rgba(255,255,255,.85); text-align: center; }
