/* ── Variablen ──────────────────────────────────────────────────────────── */
:root {
  --yellow:     #f5d30c;
  --black:      #000000;
  --gray:       #737373;
  --gray-light: #f4f4f4;
  --gray-mid:   #e0e0e0;
  --white:      #ffffff;
  --red:        #c0392b;
  --red-light:  #fdecea;
  --green:      #15803d;
  --warm-bg:    #f5f0e8;
  --sidebar-w:  260px;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(0,0,0,.07);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font);
  color: var(--black);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  padding: .55rem 1.1rem;
  border: none;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  transition: opacity .15s, transform .1s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }
.btn-yellow  { background: var(--yellow); color: var(--black); }
.btn-black   { background: var(--black);  color: var(--white); }
.btn-danger  { background: var(--red);    color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-outline-dark { background: transparent; color: #555; border: 1.5px solid var(--gray-mid); border-radius: 7px; }
.btn-outline-dark:hover { background: var(--gray-light); }
.btn-sm     { padding: .4rem .85rem; font-size: .82rem; }
.btn-lg     { padding: .75rem 1.5rem; font-size: 1rem; }
.btn-block  { width: 100%; justify-content: center; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge-guest    { background: #dcfce7; color: #15803d; }
.badge-company  { background: #dbeafe; color: #1d4ed8; }
.badge-overdue  { background: var(--red-light); color: var(--red); }
.badge-open     { background: #fff8e1; color: #b45309; }
.badge-debt     { background: #fce7f3; color: #be185d; }
.badge-paid-ok  { background: #dcfce7; color: #15803d; }
.badge-new-req  { background: #dbeafe; color: #1d4ed8; }

/* ── Cards (allgemein) ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card-title {
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

/* ── Data-Card (Stammdaten / Finanzen) ───────────────────────────────────── */
.data-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.data-card-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: .85rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--gray-mid);
}
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: .88rem;
}
.data-row:last-child { border-bottom: none; }
.data-row-label { color: var(--gray); }
.data-row-value { font-weight: 700; }
.data-row-value.red   { color: var(--red); }
.data-row-value.green { color: var(--green); }

/* ── Grid ────────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* ── Suche & Filter ──────────────────────────────────────────────────────── */
.toolbar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: .6rem 1rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
  background: white;
}
.search-input:focus { border-color: var(--yellow); }
.filter-select {
  padding: .6rem .9rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  font-size: .88rem;
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}
.filter-select:focus { border-color: var(--yellow); }

/* ── Tabelle ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
thead th {
  background: var(--black);
  color: var(--white);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
thead th:first-child { border-radius: 10px 0 0 0; }
thead th:last-child  { border-radius: 0 10px 0 0; }
tbody tr {
  border-bottom: 1px solid var(--gray-mid);
  transition: background .15s;
  cursor: pointer;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #fffbe6; }
tbody td { padding: .7rem 1rem; vertical-align: middle; }
.col-name { font-weight: 600; }
.col-last { color: var(--gray); font-size: .83rem; }

/* ── Formular ────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.form-control {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
.form-control:focus { border-color: var(--yellow); }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: 14px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  background: var(--black);
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}
.modal-close { background: none; border: none; color: var(--white); font-size: 1.25rem; line-height: 1; opacity: .7; }
.modal-close:hover { opacity: 1; }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-mid);
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
}

/* ── Warn-Banner ─────────────────────────────────────────────────────────── */
.alert {
  padding: .85rem 1.25rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.alert-danger  { background: var(--red-light); color: var(--red); border: 1px solid #f5c6c6; }
.alert-warning { background: #fff8e1; color: #b45309; border: 1px solid #fde68a; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #a7f3d0; }

/* ── Fehler ──────────────────────────────────────────────────────────────── */
.error-msg {
  background: var(--red-light);
  color: var(--red);
  border-radius: 8px;
  padding: .65rem .9rem;
  font-size: .85rem;
  margin-bottom: 1rem;
}

/* ── Notizen ─────────────────────────────────────────────────────────────── */
.note-item {
  background: #fffbe6;
  border-left: 3px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  padding: .75rem 1rem;
  margin-bottom: .75rem;
}
.note-author { font-size: .78rem; color: var(--gray); margin-top: .3rem; }
.note-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.note-input {
  flex: 1;
  min-width: 200px;
  padding: .65rem .9rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  font-size: .88rem;
  resize: vertical;
  min-height: 60px;
  outline: none;
}
.note-input:focus { border-color: var(--yellow); }

/* ── Kontakte ────────────────────────────────────────────────────────────── */
.contact-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .65rem 0;
  border-bottom: 1px solid var(--gray-mid);
}
.contact-item:last-child { border-bottom: none; }
.contact-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gray-mid);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.contact-info { flex: 1; font-size: .88rem; }
.contact-name { font-weight: 600; }
.contact-sub  { color: var(--gray); font-size: .8rem; margin-top: .1rem; }

/* ── Skeleton ────────────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px; height: 1em; display: block;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIST PAGE (crm-list.html)
   ══════════════════════════════════════════════════════════════════════════ */

.list-page {
  background: var(--warm-bg);
  display: flex;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid #ede9e0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid #f0ece4;
}

.logo-box {
  width: 32px; height: 32px;
  background: var(--yellow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .9rem;
  flex-shrink: 0;
}

.sidebar-section-label {
  padding: 1rem 1.25rem .35rem;
  font-size: .68rem;
  font-weight: 700;
  color: #aaa;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-nav { list-style: none; padding: 0 .5rem; }
.sidebar-nav li a,
.sidebar-nav li button {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .75rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: #333;
  width: 100%;
  text-align: left;
  transition: background .15s;
}
.sidebar-nav li a:hover,
.sidebar-nav li button:hover { background: var(--gray-light); }
.sidebar-nav li a.active {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
}

/* ── List Main ───────────────────────────────────────────────────────────── */
.list-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 1.75rem;
  min-height: 100vh;
}

.list-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.list-title { font-size: 1.4rem; font-weight: 800; }

/* ═══════════════════════════════════════════════════════════════════════════
   DETAIL PAGE (crm-detail.html)
   ══════════════════════════════════════════════════════════════════════════ */

.detail-page { background: var(--warm-bg); }

/* ── Top Nav ─────────────────────────────────────────────────────────────── */
.detail-topnav {
  background: var(--white);
  border-bottom: 1px solid #ede9e0;
  padding: .65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.detail-back {
  font-size: .88rem;
  font-weight: 600;
  color: #555;
  padding: .35rem .7rem;
  border-radius: 7px;
  border: 1.5px solid var(--gray-mid);
  transition: background .15s;
  flex-shrink: 0;
}
.detail-back:hover { background: var(--gray-light); }
.detail-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: .95rem;
}
.detail-topnav-right {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

/* ── Detail Container ────────────────────────────────────────────────────── */
.detail-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ── Profile Card ────────────────────────────────────────────────────────── */
.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.profile-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.profile-card-info { flex: 1; }
.profile-card-name {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .3rem;
}
.profile-card-sub {
  font-size: .88rem;
  color: var(--gray);
  margin-top: .3rem;
}

/* ── Action Buttons ──────────────────────────────────────────────────────── */
.profile-card-actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  background: var(--white);
  font-size: .75rem;
  font-weight: 600;
  min-width: 70px;
  transition: border-color .15s, background .15s;
}
.action-btn:hover { border-color: var(--yellow); background: #fffbe6; }
.action-btn-icon { font-size: 1.15rem; line-height: 1; }

/* ── Tab-Bar ─────────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-mid);
  margin-bottom: 1.25rem;
  background: transparent;
}
.tab-btn {
  padding: .7rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray);
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .15s;
}
.tab-btn:hover { color: var(--black); }
.tab-btn.active { color: var(--black); border-bottom-color: var(--yellow); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Timeline (neue Version) ─────────────────────────────────────────────── */
.timeline-new { list-style: none; }
.timeline-item-new {
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid #f0ece4;
  align-items: flex-start;
}
.timeline-item-new:last-child { border-bottom: none; }

.tl-icon-wrap {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.tl-icon-call     { background: #fce7f3; }
.tl-icon-whatsapp { background: #dcfce7; }
.tl-icon-email    { background: #f3f4f6; }
.tl-icon-invoice  { background: #fef3c7; }
.tl-icon-booking  { background: #ede9fe; }
.tl-icon-note     { background: #fff8e1; }

.tl-content { flex: 1; min-width: 0; }
.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
}
.tl-title { font-size: .88rem; font-weight: 600; }
.tl-date  { font-size: .78rem; color: var(--gray); white-space: nowrap; flex-shrink: 0; }
.tl-sub   { font-size: .8rem; color: var(--gray); margin-top: .15rem; }

/* ── Rechnungen ──────────────────────────────────────────────────────────── */
.inv-section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #555;
  padding: .5rem 0 .3rem;
  border-bottom: 2px solid var(--yellow);
  margin-bottom: .25rem;
}
.inv-section-meta { font-weight: 400; color: var(--gray); font-size: .72rem; }
.inv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: .85rem;
  gap: .5rem;
}
.inv-row:last-child { border-bottom: none; }
.inv-account { color: #888; font-size: .78rem; margin-left: .35rem; }
.inv-meta    { color: #aaa; font-size: .78rem; margin-top: .1rem; }
.inv-amount      { font-weight: 600; color: #444; }
.inv-amount-open { font-weight: 700; color: var(--black); }
.lex-link {
  color: #555; font-size: .75rem; margin-left: .4rem;
  text-decoration: underline; text-underline-offset: 2px;
}
.lex-link:hover { color: var(--black); }

.invoice-state-error {
  padding: .85rem 1.25rem;
  background: var(--red-light);
  color: var(--red);
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
}
.invoice-state-empty {
  padding: 1rem 0;
  color: var(--gray);
  font-size: .88rem;
  text-align: center;
}

/* ── Loading / Empty ─────────────────────────────────────────────────────── */
.loading-msg {
  padding: 1rem;
  color: var(--gray);
  font-size: .88rem;
  text-align: center;
}

/* ── Anruf-Popup (zentriertes Modal) ─────────────────────────────────────── */
.call-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99998;
  backdrop-filter: blur(2px);
}
.call-backdrop.active { display: block; }

.call-popup-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  max-width: calc(100vw - 2rem);
  z-index: 99999;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 3px solid var(--yellow);
}
.call-popup-modal.active {
  display: block;
  animation: callPopIn .25s ease-out;
}

.call-popup-content {
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
}

.call-ring-wrap {
  margin-bottom: 1rem;
}
.call-ring-anim {
  font-size: 3rem;
  display: inline-block;
  animation: ring .8s ease-in-out infinite;
}

.call-popup-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--black);
  margin: 0 0 .5rem;
  line-height: 1.2;
}
.call-popup-phone {
  font-size: .95rem;
  color: #555;
  margin-bottom: .35rem;
}
.call-popup-amount {
  font-size: .9rem;
  margin-bottom: .35rem;
  min-height: 1.2em;
}
.call-amount-open {
  color: #dc2626;
  font-weight: 700;
}
.call-popup-last {
  font-size: .82rem;
  color: #888;
  margin-bottom: .75rem;
}
.call-popup-countdown {
  font-size: .78rem;
  color: #bbb;
  margin-bottom: 1.25rem;
}

.call-popup-buttons {
  display: flex;
  gap: .65rem;
  justify-content: center;
  margin-bottom: .5rem;
}
.call-btn-answer {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .65rem 1.4rem;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
  transition: background .15s;
}
.call-btn-answer:hover { background: #15803d; }

.call-btn-reject {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .65rem 1.2rem;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
  transition: background .15s;
}
.call-btn-reject:hover { background: #b91c1c; }

.call-btn-profile {
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 10px;
  padding: .65rem 1.2rem;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
  transition: opacity .15s;
}
.call-btn-profile:hover { opacity: .85; }

.call-popup-note {
  margin-top: 1rem;
  text-align: left;
}
.call-note-textarea {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: .6rem .75rem;
  font-size: .88rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: .5rem;
}
.call-note-textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(250,204,21,.2);
}
.call-btn-save-note {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: .6rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.call-btn-save-note:hover { opacity: .85; }
.call-note-feedback {
  font-size: .82rem;
  margin-top: .4rem;
  min-height: 1.2em;
  color: #555;
}

/* Legacy — falls noch genutzt */
.call-popup { display: none; }
.call-info-line { margin-bottom: .4rem; color: #333; font-size: .85rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-bg);
  padding: 1rem;
}
.login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.login-logo-box {
  width: 56px; height: 56px;
  background: var(--yellow);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.5rem;
  margin: 0 auto .75rem;
}
.login-logo h1 { font-size: 1.4rem; font-weight: 800; }
.login-logo p  { color: var(--gray); font-size: .88rem; margin-top: .2rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONEN
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes callPopIn {
  from { opacity: 0; transform: translate(-50%, -48%) scale(.95); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
@keyframes ring {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(15deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-8deg); }
  75% { transform: rotate(5deg); }
}

/* ── Alles was noch gebraucht wird ──────────────────────────────────────── */
.header-user { color: var(--gray); font-size: .85rem; }
/* Container (für Settings-Seite) */
.container { max-width: 1280px; margin: 0 auto; padding: 1.5rem; }
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.page-title { font-size: 1.5rem; font-weight: 700; }

/* Old header (Settings-Seite nutzt ihn noch) */
header {
  background: var(--black);
  color: var(--white);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-logo {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.1rem; font-weight: 700; color: var(--yellow);
}
.header-nav { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { position: relative; width: 100%; height: auto; }
  .list-main { margin-left: 0; }
  .detail-container { padding: 1rem; }
  .profile-card-header { flex-direction: column; }
  .profile-card-actions { flex-direction: row; flex-wrap: wrap; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .tab-btn { padding: .6rem .85rem; font-size: .82rem; }
}
@media (max-width: 600px) {
  .detail-topnav { flex-wrap: wrap; }
  .detail-topnav-right { display: none; }
  .action-btn { min-width: 60px; padding: .6rem .75rem; }
  .profile-card-name { font-size: 1.35rem; }
}
