/* ═══════════════════════════════════════════════════════
   ProjectFlow — Dark Glassmorphism UI
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary:    #6C63FF;
  --primary-dim:#4e47cc;
  --accent:     #00D4AA;
  --bg:         #0f0f1a;
  --bg2:        #1a1a2e;
  --bg3:        #16213e;
  --surface:    rgba(255,255,255,0.04);
  --border:     rgba(255,255,255,0.08);
  --text:       #e8e8f0;
  --text-muted: #8888aa;
  --red:        #ff4d6d;
  --orange:     #ff9f43;
  --blue:       #4dabf7;
  --green:      #51cf66;
  --yellow:     #ffd43b;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 8px 32px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 20%, rgba(108,99,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 80% 80%, rgba(0,212,170,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Layout ──────────────────────────────────────────── */

.app-wrap {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ─── Sidebar ─────────────────────────────────────────── */

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 28px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sidebar-logo .logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 12px 8px 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  background: var(--surface);
  color: var(--text);
}

.nav-link.active {
  background: rgba(108,99,255,0.15);
  color: var(--primary);
}

.nav-link .nav-icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-bottom {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
}

.user-card:hover { background: var(--surface); }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.avatar.lg { width: 48px; height: 48px; font-size: 18px; }
.avatar.xl { width: 64px; height: 64px; font-size: 24px; }

.user-info .name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-info .role { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }

/* ─── Main Content ────────────────────────────────────── */

.main {
  flex: 1;
  overflow-x: hidden;
  min-width: 0;
}

.page-header {
  padding: 32px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title { font-size: 24px; font-weight: 700; }
.page-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.page-content { padding: 24px 32px 48px; }

/* ─── Cards ───────────────────────────────────────────── */

.card {
  background: rgba(26,26,46,0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card-sm { padding: 16px; }
.card-hover { transition: all var(--transition); cursor: pointer; }
.card-hover:hover {
  border-color: rgba(108,99,255,0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ─── Stats Row ───────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: rgba(26,26,46,0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  font-size: 28px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.stat-num { font-size: 28px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ─── Project Cards ───────────────────────────────────── */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.project-card {
  background: rgba(26,26,46,0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.project-card:hover {
  border-color: rgba(108,99,255,0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.project-title { font-size: 15px; font-weight: 600; flex: 1; }
.project-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }

.progress-bar {
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ─── Badges ──────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* Status */
.badge-offen           { background: rgba(136,136,170,0.2); color: #aaa; }
.badge-inbearbeitung   { background: rgba(77,171,247,0.2);  color: var(--blue); }
.badge-abgeschlossen   { background: rgba(81,207,102,0.2);  color: var(--green); }
.badge-pausiert        { background: rgba(255,212,59,0.2);  color: var(--yellow); }

/* Urgency */
.badge-niedrig  { background: rgba(136,136,170,0.2); color: #aaa; }
.badge-mittel   { background: rgba(77,171,247,0.2);  color: var(--blue); }
.badge-hoch     { background: rgba(255,159,67,0.2);  color: var(--orange); }
.badge-kritisch { background: rgba(255,77,109,0.2);  color: var(--red); }

/* Type */
.badge-team   { background: rgba(108,99,255,0.2); color: var(--primary); }
.badge-single { background: rgba(0,212,170,0.2);  color: var(--accent); }

/* ─── Forms ───────────────────────────────────────────── */

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-muted); }

.form-control {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color var(--transition);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(108,99,255,0.06);
}

textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dim); transform: translateY(-1px); }

.btn-accent {
  background: var(--accent);
  color: #0f0f1a;
}
.btn-accent:hover { opacity: 0.85; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger {
  background: rgba(255,77,109,0.15);
  color: var(--red);
  border: 1px solid rgba(255,77,109,0.3);
}
.btn-danger:hover { background: rgba(255,77,109,0.25); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── Auth Pages ──────────────────────────────────────── */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: rgba(26,26,46,0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo .logo-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
}

.auth-logo h1 { font-size: 22px; font-weight: 700; }
.auth-logo p  { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }

/* ─── Alerts ──────────────────────────────────────────── */

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.alert-error   { background: rgba(255,77,109,0.12); border: 1px solid rgba(255,77,109,0.25); color: var(--red); }
.alert-success { background: rgba(81,207,102,0.12); border: 1px solid rgba(81,207,102,0.25); color: var(--green); }
.alert-info    { background: rgba(77,171,247,0.12); border: 1px solid rgba(77,171,247,0.25); color: var(--blue); }

/* ─── Tables ──────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface); }

/* ─── Modals ──────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ─── Timeline (Protokoll) ────────────────────────────── */

.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(108,99,255,0.2);
  border: 2px solid var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 1;
}

.timeline-content { flex: 1; padding-top: 4px; }
.timeline-action { font-weight: 600; font-size: 14px; }
.timeline-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.timeline-meta { font-size: 11px; color: var(--text-muted); margin-top: 6px; display: flex; gap: 12px; }

/* ─── Notes ───────────────────────────────────────────── */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.note-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  position: relative;
}
.note-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.note-content { font-size: 13px; color: var(--text-muted); line-height: 1.5; white-space: pre-wrap; }
.note-meta { font-size: 11px; color: var(--text-muted); margin-top: 12px; display: flex; justify-content: space-between; }
.note-delete { position: absolute; top: 10px; right: 10px; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; transition: color var(--transition); }
.note-delete:hover { color: var(--red); }

/* ─── Members ─────────────────────────────────────────── */

.member-list { display: flex; flex-direction: column; gap: 10px; }

.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.member-info { flex: 1; }
.member-name { font-size: 14px; font-weight: 500; }
.member-email { font-size: 12px; color: var(--text-muted); }

/* ─── Calendar ────────────────────────────────────────── */

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-nav h2 { font-size: 18px; font-weight: 700; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cal-day-header {
  background: var(--bg2);
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cal-day {
  background: var(--bg2);
  min-height: 90px;
  padding: 6px;
  cursor: pointer;
  transition: background var(--transition);
}
.cal-day:hover { background: rgba(108,99,255,0.08); }
.cal-day.other-month .cal-date { color: var(--text-muted); opacity: 0.4; }
.cal-day.today { background: rgba(108,99,255,0.12); }
.cal-date { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.cal-day.today .cal-date { color: var(--primary); font-weight: 700; }

.cal-event {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 2px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* ─── Filters / Search ────────────────────────────────── */

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-box input {
  padding-left: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding-top: 9px;
  padding-bottom: 9px;
  width: 100%;
}
.search-box input:focus { outline: none; border-color: var(--primary); }
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 16px; }

select.filter-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 9px 12px;
  cursor: pointer;
}
select.filter-select:focus { outline: none; border-color: var(--primary); }

/* ─── Section Headers ─────────────────────────────────── */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title { font-size: 16px; font-weight: 700; }

/* ─── Divider ─────────────────────────────────────────── */

.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ─── Spinner ─────────────────────────────────────────── */

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* ─── Tags ────────────────────────────────────────────── */

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 10px;
  background: rgba(108,99,255,0.15);
  color: var(--primary);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

/* ─── Empty State ─────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ─── Detail Row ──────────────────────────────────────── */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.detail-item .detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.detail-item .detail-value { font-size: 14px; }

/* ─── Bottom Nav (Mobile) ─────────────────────────────── */

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 8px 0 env(safe-area-inset-bottom);
}

.bottom-nav-items {
  display: flex;
  justify-content: space-around;
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  transition: color var(--transition);
}
.bnav-item .bnav-icon { font-size: 20px; }
.bnav-item.active, .bnav-item:hover { color: var(--primary); }

/* ─── Scrollbar ───────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ─── Responsive ──────────────────────────────────────── */

@media (max-width: 768px) {
  .sidebar { display: none; }
  .bottom-nav { display: block; }
  .page-header { padding: 20px 16px 0; }
  .page-content { padding: 16px 16px 80px; }
  .form-row { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .main { padding-bottom: 60px; }
  .auth-box { padding: 28px 24px; }
  .modal { padding: 24px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cal-grid { font-size: 12px; }
  .cal-day { min-height: 60px; }
}

/* ─── Custom Select ───────────────────────────────────────── */

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238888aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

select.form-control option {
  background: #1a1a2e;
  color: #e8e8f0;
  padding: 8px;
}

/* ─── Notification Badge ──────────────────────────────────── */

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  margin-left: auto;
  line-height: 1;
}

/* ─── Credentials ─────────────────────────────────────────── */

.cred-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}

.cred-card:last-child { margin-bottom: 0; }

.cred-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cred-label {
  font-weight: 600;
  font-size: 14px;
}

.cred-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}

.cred-key {
  color: var(--text-muted);
  min-width: 80px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.cred-val {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.copy-btn:hover { opacity: 1; background: var(--surface); }

/* ─── Files ───────────────────────────────────────────────── */

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  background: rgba(255,255,255,0.02);
  transition: background var(--transition);
}
.file-row:last-child { margin-bottom: 0; }
.file-row:hover { background: var(--surface); }

.file-icon { font-size: 22px; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ─── Projekt-Layout responsive ───────────────────────────── */

@media (max-width: 900px) {
  .project-layout {
    grid-template-columns: 1fr !important;
  }
}
