/* Profil-Wand – Styles basierend auf design-tokens.json (v1.1.0) */

:root {
  --color-action-primary: #C6613F;
  --color-action-primary-hover: #B24D2B;
  --color-action-primary-active: #9E3917;
  --color-surface-page: #F5F1EB;
  --color-surface-card: #FFFFFF;
  --color-surface-footer: #000000;
  --color-content-primary: #111827;
  --color-content-secondary: #4B5563;
  --color-content-tertiary: #6B7280;
  --color-content-brand: #C6613F;
  --color-content-footer: #9CA3AF;
  --color-border-default: #E5E7EB;
  --color-border-strong: #000000;
  --elevation-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --elevation-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-surface-page);
  color: var(--color-content-primary);
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.narrow { max-width: 640px; }

header.site-header {
  text-align: center;
  margin-bottom: 2rem;
}

header.site-header .kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-content-brand);
}

header.site-header h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0.5rem 0;
}

header.site-header p.subtitle {
  color: var(--color-content-secondary);
  margin: 0 auto;
  max-width: 540px;
}

.card {
  background: var(--color-surface-card);
  border-radius: 1rem;
  box-shadow: var(--elevation-card);
  padding: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

label .optional {
  font-weight: 400;
  color: var(--color-content-tertiary);
}

.field { margin-bottom: 1.25rem; }

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border-default);
  border-radius: 0.5rem;
  font: inherit;
  background: #fff;
}

input:focus, textarea:focus {
  outline: 2px solid var(--color-action-primary);
  outline-offset: 1px;
  border-color: var(--color-action-primary);
}

.hint {
  font-size: 0.8rem;
  color: var(--color-content-tertiary);
  margin-top: 0.25rem;
}

.hint a { color: var(--color-content-brand); }

/* Einwilligungs-Checkboxen (DSGVO) */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 0.6rem;
  cursor: pointer;
}

.consent input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  accent-color: var(--color-action-primary);
  cursor: pointer;
}

.consent-box {
  background: var(--color-surface-page);
  border: 1px solid var(--color-border-default);
  border-radius: 0.5rem;
  padding: 1rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .row { grid-template-columns: 1fr; }
}

/* Interessen-Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border: 1px solid var(--color-border-default);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover { border-color: var(--color-action-primary); color: var(--color-action-primary); }

.chip.selected {
  background: var(--color-action-primary);
  border-color: var(--color-action-primary);
  color: #fff;
}

.chip-static {
  display: inline-block;
  background: var(--color-surface-page);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  color: var(--color-content-secondary);
  margin: 0 0.3rem 0.3rem 0;
}

.chip-static.shared {
  background: var(--color-action-primary);
  color: #fff;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--color-action-primary);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.8rem 1.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-primary:hover { background: var(--color-action-primary-hover); }
.btn-primary:active { background: var(--color-action-primary-active); }
.btn-primary:disabled { background: rgba(198, 97, 63, 0.4); cursor: not-allowed; }

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--color-border-strong);
  background: transparent;
  color: var(--color-content-primary);
  border-radius: 0.5rem;
  padding: 0.7rem 1.5rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover { background: rgba(0, 0, 0, 0.05); }

/* Profil-Wand */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.profile-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
}

.profile-card .tagline {
  color: var(--color-content-secondary);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.profile-card.is-me { outline: 2px solid var(--color-action-primary); }

.profile-card .linkedin {
  font-size: 0.85rem;
  color: var(--color-content-brand);
  text-decoration: none;
  font-weight: 600;
}

.profile-card .linkedin:hover { text-decoration: underline; }

.match-badge {
  display: inline-block;
  background: var(--color-action-primary);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.section-title {
  font-size: 1.3rem;
  margin: 2.5rem 0 1rem;
}

.banner {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.banner.warn { background: #FEF3C7; color: #92400E; }
.banner.error { background: #FEE2E2; color: #991B1B; }
.banner.success { background: #D1FAE5; color: #065F46; }

footer.site-footer {
  text-align: center;
  color: var(--color-content-tertiary);
  font-size: 0.8rem;
  margin-top: 3rem;
}

footer.site-footer a { color: var(--color-content-brand); }

.empty-state {
  text-align: center;
  color: var(--color-content-secondary);
  padding: 3rem 1rem;
}

/* Foto-Upload (Formular) */
.photo-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-surface-page);
  border: 1px solid var(--color-border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder { font-size: 1.5rem; opacity: 0.6; }

input[type="file"] {
  font: inherit;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.btn-small {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  border-width: 1px;
}

/* Avatar auf der Profil-Wand */
.card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.card-head h3 { margin: 0; }

.card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-surface-page);
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-action-primary);
  background: rgba(198, 97, 63, 0.12);
}
