/* ============================================================
   KAMINABEND – Netzwerk-App Stylesheet
   Subdomain: netzwerk.kamin-abend.de
   Design: Premium, minimalistisch, Apple-Style, Mobile-First
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --color-bg:           #0d0f14;
  --color-surface:      #13161e;
  --color-surface-2:    #1a1e28;
  --color-surface-3:    #20253300;
  --color-border:       rgba(255, 255, 255, 0.08);
  --color-border-focus: rgba(224, 123, 57, 0.6);
  --color-text:         #f0ece4;
  --color-text-muted:   rgba(240, 236, 228, 0.55);
  --color-text-subtle:  rgba(240, 236, 228, 0.3);
  --color-accent:       #e07b39;
  --color-accent-hover: #d06a28;
  --color-success:      #4caf7d;
  --color-error:        #e05555;
  --color-warning:      #f0a030;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --space-xs:  0.375rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3rem;

  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-full: 9999px;

  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.7);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { opacity: 0.8; }
button { font-family: var(--font-sans); cursor: pointer; }

/* ============================================================
   VIEWS (Ansichten-Steuerung)
   ============================================================ */
.view { min-height: 100vh; min-height: 100dvh; }
.view--hidden { display: none !important; }

/* ============================================================
   LOGIN-WALL
   ============================================================ */
.login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.login-logo-wrap {
  margin-bottom: 1.5rem;
}

.login-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.login-logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: var(--color-text);
}

.login-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.login-form {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.25rem;
}

/* Passwort-Feld mit Toggle */
.password-wrap {
  position: relative;
}

.password-wrap .field-input {
  padding-right: 3rem;
}

.pw-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  padding: 0.25rem;
  transition: color var(--transition);
}

.pw-toggle:hover { color: var(--color-text); }

/* Admin-Link */
.admin-link {
  background: none;
  border: none;
  color: var(--color-text-subtle);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color var(--transition);
  padding: 0.5rem;
}

.admin-link:hover { color: var(--color-accent); }

/* Admin-Badge */
.admin-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-warning);
  background: rgba(240, 160, 48, 0.1);
  border: 1px solid rgba(240, 160, 48, 0.25);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}

/* ============================================================
   HEADER (Netzwerk & Admin)
   ============================================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.9rem 1.5rem;
}

.app-header--admin {
  border-bottom-color: rgba(240, 160, 48, 0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
}

/* ============================================================
   HAUPT-CONTAINER
   ============================================================ */
.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.main-container--wide {
  max-width: 1200px;
}

/* ============================================================
   SEITEN-HEADER
   ============================================================ */
.page-header {
  margin-bottom: 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ============================================================
   SUCHLEISTE
   ============================================================ */
.search-wrap {
  position: relative;
  margin-bottom: 2rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-subtle);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.85rem 2.75rem 0.85rem 2.75rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.search-input::placeholder { color: var(--color-text-subtle); }

.search-input:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(224, 123, 57, 0.1);
}

/* Suche-löschen-Button */
.search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-surface-2);
  border: none;
  border-radius: 50%;
  color: var(--color-text-muted);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.search-clear:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ============================================================
   LADE-ANZEIGE
   ============================================================ */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 0;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

/* ============================================================
   LEERER ZUSTAND
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-icon {
  width: 64px;
  height: 64px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-text-subtle);
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.empty-text {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  max-width: 300px;
  margin: 0 auto;
}

/* ============================================================
   TEILNEHMER-GRID (Karten)
   ============================================================ */
.participants-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .participants-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .participants-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Teilnehmer-Karte */
.participant-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: cardIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.participant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(224, 123, 57, 0.2);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Karten-Header: Initialen-Avatar + Name */
.card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(224, 123, 57, 0.3), rgba(224, 123, 57, 0.1));
  border: 1px solid rgba(224, 123, 57, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.3;
}

.card-firma {
  font-size: 0.78rem;
  color: var(--color-accent);
  margin-top: 0.15rem;
}

/* Matching-Felder */
.card-matching {
  margin-bottom: 1rem;
}

.card-matching-item {
  margin-bottom: 0.6rem;
}

.card-matching-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 0.2rem;
}

.card-matching-text {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  /* Auf 2 Zeilen begrenzen */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Karten-Footer: Kontakt-Buttons */
.card-footer {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.card-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  text-decoration: none;
  transition: all var(--transition);
}

.card-contact-btn:hover {
  background: rgba(224, 123, 57, 0.1);
  border-color: rgba(224, 123, 57, 0.3);
  color: var(--color-accent);
}

/* ============================================================
   ADMIN-TABS
   ============================================================ */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.35rem;
  width: fit-content;
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  transition: all var(--transition);
}

.admin-tab--active {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.admin-tab:hover:not(.admin-tab--active) {
  color: var(--color-text);
}

.tab-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(240, 160, 48, 0.15);
  color: var(--color-warning);
  border-radius: var(--radius-full);
  padding: 0.1rem 0.45rem;
  min-width: 20px;
  text-align: center;
}

.tab-badge--success {
  background: rgba(76, 175, 125, 0.15);
  color: var(--color-success);
}

/* ============================================================
   ADMIN-TABELLE
   ============================================================ */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.admin-table th {
  background: var(--color-surface);
  color: var(--color-text-subtle);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--color-border);
}

.admin-table td {
  padding: 0.85rem 1rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  max-width: 200px;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table td.name-cell {
  color: var(--color-text);
  font-weight: 500;
}

.admin-table td.text-cell {
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table td.date-cell {
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--color-text-subtle);
}

/* Aktions-Buttons in der Tabelle */
.action-btns {
  display: flex;
  gap: 0.4rem;
  white-space: nowrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.action-btn--approve {
  background: rgba(76, 175, 125, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(76, 175, 125, 0.25);
}

.action-btn--approve:hover {
  background: rgba(76, 175, 125, 0.25);
}

.action-btn--revoke {
  background: rgba(240, 160, 48, 0.1);
  color: var(--color-warning);
  border: 1px solid rgba(240, 160, 48, 0.2);
}

.action-btn--revoke:hover {
  background: rgba(240, 160, 48, 0.2);
}

.action-btn--edit {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.action-btn--edit:hover {
  color: var(--color-text);
  border-color: rgba(255,255,255,0.2);
}

.action-btn--delete {
  background: rgba(224, 85, 85, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(224, 85, 85, 0.2);
}

.action-btn--delete:hover {
  background: rgba(224, 85, 85, 0.2);
}

/* ============================================================
   MODAL (Bearbeiten)
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
}

.modal-close {
  width: 32px;
  height: 32px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.modal-body {
  padding: 0 1.5rem 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   TOAST-BENACHRICHTIGUNGEN
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  width: calc(100% - 3rem);
  max-width: 400px;
}

.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast--success { border-left: 3px solid var(--color-success); }
.toast--error   { border-left: 3px solid var(--color-error); }
.toast--info    { border-left: 3px solid var(--color-accent); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.toast-out {
  animation: toastOut 0.25s ease forwards;
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

/* ============================================================
   GEMEINSAME FORMULAR-ELEMENTE (geteilt mit abfrage)
   ============================================================ */
.field-group { margin-bottom: 1.1rem; }

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.field-input,
.field-textarea {
  width: 100%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.field-input::placeholder { color: var(--color-text-subtle); }
.field-input:focus,
.field-textarea:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(224, 123, 57, 0.1);
}

.field-textarea { resize: vertical; min-height: 70px; line-height: 1.6; }

.field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--color-error);
  margin-top: 0.35rem;
}

.field-error.show { display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(224, 123, 57, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224, 123, 57, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.5rem 1.1rem;
}

.btn-full { width: 100%; }

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.app-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.78rem;
  color: var(--color-text-subtle);
}

/* ============================================================
   PROFIL-MODAL
   ============================================================ */

/* Klickbare Karte */
.participant-card--clickable {
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.participant-card--clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(224, 123, 57, 0.18);
  border-color: rgba(224, 123, 57, 0.35);
}
.participant-card--clickable:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Profil-Modal Größe */
.modal--profile {
  max-width: 480px;
  width: 95%;
  padding: var(--space-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* Schließen-Button oben rechts */
.modal--profile .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.modal--profile .modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--color-text);
}

/* Header: Avatar + Name */
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-right: 2.5rem; /* Platz für Schließen-Button */
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-accent), #c05a20);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.profile-firma {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* Kontakt-Buttons */
.profile-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.profile-contact-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background var(--transition), border-color var(--transition);
  word-break: break-all;
}
.profile-contact-btn:hover {
  background: rgba(224, 123, 57, 0.12);
  border-color: rgba(224, 123, 57, 0.4);
  color: var(--color-accent);
}
.profile-contact-btn svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

/* Divider */
.profile-divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: var(--space-md);
}

/* Matching-Blöcke */
.profile-matching {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.profile-matching-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
}

.profile-matching-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.profile-matching-text {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Meta (Geburtstag) */
.profile-meta {
  margin-top: 0.25rem;
}

.profile-meta-item {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Modal-Backdrop Fade-Animation */
.modal-backdrop--visible {
  animation: fadeIn 0.22s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-backdrop--visible .modal--profile {
  animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideUp {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
