/* admin_dashboard */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.card {
    background-color: #f8f8f8;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.05);
}

.card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

/* header */
.dropdown-content a:hover {
    background-color: #e0e0e0;
}


.links-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

.link-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.link-item h2 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.link-item a {
    color: #0056b3;
    text-decoration: none;
}

.link-item a:hover {
    text-decoration: underline;
}


<style>
  .table-wrap {
    position: relative;
    max-height: 70vh;
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
  }
  .table-fixed {
    min-width: 1400px;
    border-collapse: separate;
    border-spacing: 0;
    width: max-content;
  }
  .table-fixed th, .table-fixed td {
    padding: .5rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    background: #fff;
  }
  .table-fixed thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
  }
  .table-fixed th.sticky-right,
  .table-fixed td.sticky-right {
    position: sticky;
    right: 0;
    z-index: 3;
    background: #fff;
    box-shadow: -4px 0 6px -4px rgba(0,0,0,.08);
  }
  .wrap { white-space: normal; word-break: break-word; }
  .nowrap { white-space: nowrap; }

  /* Horizontaler Scrollbalken OBEN (Synchron-Container) */
  .scrollbar-top { overflow-x: auto; overflow-y: hidden; height: 16px; margin: 0 0 8px 0; }
  .scrollbar-top > div { height: 1px; }

  /* Buttons */
  .btn-sm { padding: .35rem .6rem; border-radius: 6px; border: 1px solid #ccc; background: #fafafa; text-decoration:none; }
  .btn-danger { border-color: #f33; color: #f33; background: #fff; }
  .btn-primary { border-color: #888; color:#222; background:#fff; }

  /* Utility: sichtbar/versteckt je nach Breakpoint */
  .show-sm { display: none; }
  .hide-sm { display: table-cell; }

  /* Details-Panel */
  .row-details {
    display: none;
    background: #fcfcfc;
    border-top: 1px dashed #e5e5e5;
    padding: .5rem .25rem;
  }
  .row-details .label { color:#666; min-width: 160px; display:inline-block; }
  .row-details .line  { margin: .15rem 0; }

  /* Mobile Layout */
  @media (max-width: 900px) {
    /* Eigene Scrollfläche bleibt; Tabelle darf schmaler sein */
    .table-fixed { min-width: 720px; }

    /* Sticky rechts auf kleinen Screens deaktivieren (für sauberes Layout) */
    .table-fixed th.sticky-right,
    .table-fixed td.sticky-right {
      position: static;
      right: auto;
      box-shadow: none;
    }

    /* Nur wichtige Spalten zeigen; Rest verstecken */
    .hide-sm { display: none; }
    .show-sm { display: table-cell;
