    .login-card {
      background: #fff;
      border-radius: 8px;
      max-width: 400px;
      margin: 6vh auto 0 auto;
      padding: 2.5em 2em 2em 2em;
      box-shadow: 0 2px 24px 0 rgba(0,0,0,0.10), 0 1.5px 4px 0 rgba(0,0,0,0.06);
      border: 1px solid #eee;
    }
    .login-card h2 {
      text-align: center;
      margin-bottom: 1.5em;
    }
    .login-card form {
      margin: 0;
    }
    .login-error {
      background: #fff3cd;
      color: #856404;
      border: 1px solid #ffeeba;
      padding: 0.8em 1em;
      margin-bottom: 1.2em;
      border-radius: 4px;
      text-align: center;
      font-size: 1em;
    }
    .login-card input[type="email"], .login-card input[type="password"] {
      margin-bottom: 1.1em;
    }
    .login-card button {
      width: 100%;
      margin-bottom: 0;
    }

body {
  background-color: #f5f7fa;
  font-family: system-ui, sans-serif;
  color: #212529;
  margin: 0;
  padding: 0;
}

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

h1, h2, h3 {
  color: #333;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

table th, table td {
  border: 1px solid #ccc;
  padding: 0.6rem;
  text-align: left;
}

table th {
  background-color: #e9ecef;
  font-weight: bold;
}

input, select, textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button, .btn {
  background-color: #0d6efd;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
}

.btn-secondary {
  background-color: #6c757d;
}

canvas {
  max-width: 100%;
  height: auto;
}

.portfolio-tabs {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.portfolio-tabs a {
  text-decoration: none;
  color: #333;
  padding: 6px 12px;
  border-radius: 6px;
  background: #f0f0f0;
  transition: all 0.2s ease;
}

.portfolio-tabs a:hover {
  background: #e0e0e0;
}

.portfolio-tabs a.active {
  background: #0077cc;
  color: white;
  font-weight: bold;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.table-header h3 {
  margin: 0;
}

.table-header .btn {
  white-space: nowrap;
}

.old-price {
  color: #d9534f;        /* Bootstrap-typisches Rot */
  font-weight: bold;
}

.old-price::after {
  content: " ⚠";
}

th.sortable {
  cursor: pointer;
  position: relative;
}

th.sortable::after {
  content: "⇅";
  font-size: 0.7em;
  margin-left: 4px;
  color: #999;
}

th.sortable.asc::after {
  content: "↑";
}

th.sortable:not(.asc)::after {
  content: "↓";
}

td small {
  font-size: 0.75em;
  color: #666;
}

.alert-box {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 6px;
  color: #856404;
}

.percent-positive {
  color: green;
  font-weight: bold;
}

.percent-negative {
  color: red;
  font-weight: bold;
}

.period-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1em 0;
}

.period-filter-form .filter-group {
  display: flex;
  gap: 0.5em;
  flex-wrap: nowrap;
}

.period-filter-form label {
  font-weight: bold;
}

.period-filter-form input,
.period-filter-form select,
.period-filter-form button {
  padding: 0.3em 0.5em;
  font-size: 0.9em;
}

/* Scroll-Fallback */
.table-scroll {
  overflow-x: auto;
  width: 100%;
}

/* Standardgrößen */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 8px;
  text-align: left;
}

/* Kleinere Schrift und engeres Padding bei kleinen Viewports */
@media (max-width: 900px) {
  table {
    font-size: 0.9em;
  }
  th, td {
    padding: 4px 6px;
  }
}

/* Kleinere Tablets: Depot + Kategorie ausblenden */
@media (max-width: 700px) {
  td:nth-child(3),
  th:nth-child(3), /* Depot */
  td:nth-child(4),
  th:nth-child(4)  /* Kategorie */
  {
    display: none;
  }
}

/* Mobil: zusätzlich ISIN ausblenden */
@media (max-width: 500px) {
  td:nth-child(2),
  th:nth-child(2)  /* Kategorie */
  {
    display: none;
  }
}




table>tbody>tr>td>a {
text-decoration: none;
  color: #0077cc;
}

table>tbody>tr>td>a:hover {
  text-decoration: underline;
}

.main-menu {
  background: #eee;
  padding: 0.5em 1em;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

.menu-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

.menu-logo {
  display: none;
}

.menu-toggle {
  display: none;
  font-size: 1.4em;
  cursor: pointer;
}

.menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}

.menu-links a {
  text-decoration: none;
  color: #333;
}

.menu-subpanel {
  display: none;
  background: #f9f9f9;
  padding: 10px;
  border-top: 1px solid #ccc;
  margin-bottom: 10px;
  text-align: center;
}

.menu-subpanel a {
  margin: 0 0.4em;
  text-decoration: none;
  color: #333;
}

/* Responsive */
@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }

  .menu-links {
    display: none;
    flex-direction: column;
    gap: 0.6em;
    margin-top: 0.5em;
  }

  .menu-links a {
    display: block;
    padding: 0.3em 0;
  }

  .menu-links.show {
    display: flex;
  }
}

.dividend-planned {
    color: #888;
}
.dividend-other {
    color: #b85c00;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2em;
}
.table-responsive table {
    min-width: max-content;
    border-collapse: collapse;
}
.table-responsive th, .table-responsive td {
    white-space: nowrap;
    padding: 6px 12px;
}
.table-responsive td:first-child,
.table-responsive th:first-child {
    position: sticky;
    left: 0;
    background: #f9f9f9;
    z-index: 1;
    box-shadow: 2px 0 2px -2px #ccc;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 210px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 5px;
  padding: 8px 12px;
  position: absolute;
  z-index: 10;
  bottom: 125%; /* Über dem Symbol */
  left: 50%;
  margin-left: -105px;
  opacity: 0;
  transition: opacity 0.25s;
  font-size: 0.95em;
  pointer-events: none;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.sparplan-label {
  background-color: #e5f5ff;
  color: #0077b6;
  font-size: 0.75em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-block;
}

.row-dividend {
  background-color: #f6fff6;
}
.row-dividend td {
  color: #155724;
}
