/* Datei: css/styles.css */
/* Version: Vollständig Restrukturiert, Paginierung und ScrollTop korrigiert */

/* ==========================================================================
   1. CSS Variablen (Root-Variablen) 
   ========================================================================== */ 
:root {
 
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Regular.woff2') format('woff2'),
       url('/fonts/Inter-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Bold.woff2') format('woff2'),
       url('/fonts/Inter-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}



dialog:-internal-dialog-in-top-layer::backdrop {
    position: fixed;
    inset: 0px;
    background: rgba(0, 0, 0, 0.6);
}

.accordion-toggle-docs {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: var(--primary-color, #007bff);
  text-decoration: none;
  font-size: 1.0em !important;
}

.accordion-toggle-docs:hover {
  text-decoration: none;
}

.accordion-toggle-docs .material-symbols-outlined {
  font-size: 1.2em;
  transition: transform 0.2s ease-in-out;
  margin-left: 2px;
  vertical-align: middle;
}

.accordion-toggle-docs.open .material-symbols-outlined {
  transform: rotate(90deg);
}

.documents-detail-row {
  display: none;
}

.documents-detail-row.show {
  display: table-row !important;
}

.documents-detail-cell {
  background-color: #f8f9fa;
  padding: 10px 15px !important;
  border-left: 3px solid var(--primary-color, #007bff);
}

.documents-detail-cell ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.documents-detail-cell li {
  padding: 4px 0;
  font-size: 0.9em;
}

.documents-detail-cell li:not(:last-child) {
  border-bottom: 1px dotted #e0e0e0;
}

.documents-detail-cell .material-symbols-outlined {
  font-size: 1em;
  vertical-align: text-bottom;
  margin-right: 3px;
}

.status-badge {
  padding: 0.2em 0.5em;
  border-radius: 0.25rem;
  color: #fff;
  font-size: 0.85em;
  display: inline-block;
  min-width: 100%;
  text-align: center;
  word-break: auto-phrase;
}

.status-entwurf {
  background-color: #6c757d;
}

.status-eingereicht {
  background-color: #ffc107;
  color: #212529;
}

.status-genehmigt {
  background-color: #28a745;
}

.status-abgelehnt {
  background-color: #dc3545;
}

.status-zurückgezogen {
  background-color: #17a2b8;
}

.admin-table tr.highlighted-row td {
  background-color: #fff3cd !important;
}

mark.live-search-highlight {
  background-color: yellow;
  color: black;
}

/* ==========================================================================
   2. Basis-Styles & HTML-Reset
   ========================================================================== */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

/* Spezifische Styles für diese Seite, falls nötig, sonst in styles.css */
.active-filter-notice {
  font-style: normal;
  color: #6c757d;
  margin-left: 5px;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--light-gray-bg);
  color: var(--text-color);
  font-size: 1em;
  letter-spacing: -0.005em;
}

.container {
  background-color: var(--content-bg);
  padding: 25px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 90%;
  margin: 30px auto 40px auto;
}

.container.admin-container {
  /* Keine spezifischen Styles bisher */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 0.75em;
    font-family: 'Inter', sans-serif;

}

h1 {
  font-size: 1.6em;
  margin-bottom: 0;
}

h2 {
  font-size: 1.3em;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--header-border);
}

h3 {
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: var(--link-color);
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.text-right {
  text-align: right;
  font-weight: normal;
}

/* ==========================================================================
   3. Layout-Komponenten
   ========================================================================== */
header {
  width: 100%;
  background-color: var(--header-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--header-border);
  margin-bottom: 30px;
  padding: 5px 0;
}

header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  width: 90%;
}

.site-logo img {
  height: 55px;
  width: auto;
  display: block;
  margin: 15px 20px 15px 10px;
}

.header-buttons {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.header-login-link {
  margin-left: auto;
}

.header-login-link .hero-button.admin {
  padding: 8px 18px;
  font-size: 0.95em;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--header-border);
  flex-wrap: wrap;
}

.page-header h1 {
  flex-grow: 1;
  color: var(--primary-color);
  font-size: 1.4em;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.page-header-actions>* {
  margin: 0;
}

.page-footer {
  border-top: 1px solid #e0e0e0;
  margin-top: 40px;
  padding: 40px 0 20px 0;
  text-align: center;
  font-size: 0.85em;
  color: var(--secondary-color);
}

.page-footer p {
  margin: 0 0 5px 0;
}

/* ==========================================================================
   4. Formulare
   ========================================================================== */
body.login-page {
  /* Keine spezifischen Styles bisher */
}

.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px 35px;
  background-color: #fff;
  border: 1px solid var(--light-gray-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.login-form {
  margin-top: 20px;
}

.login-form div {
  margin-bottom: 15px;
}

.login-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--medium-gray-border);
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1em;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.login-form button[type="submit"], .sso-button {
  width: 100%;
  padding: 12px 15px;
  font-size: 1.1em;
  font-weight: bold;
  background-color: var(--success-color);
  border: 1px solid var(--success-color);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
  text-align: center;
  line-height: 1.4;
}

.login-form button[type="submit"]:hover, .sso-button:hover {
  background-color: var(--success-color-darker);
  border-color: #1e7e34;
  color: #fff;
  text-decoration: none;
}

.login-container p {
  text-align: center;
  margin-top: 25px;
  font-size: 0.9em;
}

.login-container p a {
  color: var(--secondary-color);
}

.login-container p a:hover {
  color: var(--text-color);
}

.login-container .message.error {
  text-align: center;
  margin-bottom: 20px;
}

.edit-form label,
#form-area-content label, .kategorie-manager label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.85em;
}

.edit-form input[type="number"][readonly] {
  background-color: #eee;       /* hellgrauer Hintergrund */
  color: #888;                  /* ausgegrauter Text */
  border: 1px solid #ccc;       /* optional: dezenter Rahmen */
  cursor: default;              /* kein Textcursor */
}

.edit-form input[type="text"],
.edit-form input[type="url"],
.edit-form input[type="email"],
.edit-form input[type="number"],
.edit-form input[type="password"],
.edit-form input[type="file"],
.edit-form input[type="date"],
.edit-form select,
.edit-form textarea,
#form-area-content input[type="text"],
#form-area-content textarea,
#entryForm input[type="number"], .kategorie_nutzungsdauer {
  width: 100%;
  padding: 8px 12px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid var(--medium-gray-border);
  border-radius: 4px;
  appearance: none;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.85em;
  line-height: 1.4;
}



.edit-form input[type="file"] {
  padding: 7px 12px;
}

.edit-form input[type="text"]:focus,
.edit-form input[type="url"]:focus,
.edit-form input[type="email"]:focus,
.edit-form input[type="password"]:focus,
.edit-form input[type="date"]:focus,
.edit-form select:focus,
.edit-form textarea:focus,
#form-area-content input[type="text"]:focus,
#form-area-content textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.edit-form textarea,
#form-area-content textarea {
  min-height: 100px;
  resize: vertical;
}

.edit-form input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
  width: auto;
  position: relative;
  top: -1px;
}

.edit-form .checkbox-label {
  display: inline-block;
  font-weight: normal;
  margin-bottom: 0;
  vertical-align: middle;
}

.edit-form small {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.85em;
  color: var(--secondary-color);
}

.edit-form .form-actions {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--header-border);
  display: flex;
  gap: 10px;
  align-items: center;
}

.edit-form .form-actions>* {
  margin-right: 0;
}

.search-container {
  margin-bottom: 25px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.search-container label {
  font-weight: bold;
  margin-right: 5px;
  white-space: nowrap;
  flex-shrink: 0;
font-size: 0.85em;
}

.search-container input[type="text"],
#jahr-input {
  padding: 8px 12px;
  border: 1px solid var(--medium-gray-border);
  border-radius: 4px;
  flex-grow: 1;
  min-width: 150px;
  font-size: 0.85em;
  line-height: 1.4;
  box-sizing: border-box;
}

.search-container input[type="text"]:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-container button,
.search-container .cancel-btn {
  padding: 9px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
  vertical-align: middle;
  text-align: center;
  border: none;
}

.search-container button[type="submit"] {
  background-color: var(--primary-color);
  color: white;
}

.hhst-simplified .search-container button[type="submit"] {
  background-color: var(--primary-color);
  color: white;
  margin-top: 27px;
}

.search-container button[type="submit"]:hover {
  background-color: var(--primary-color-darker);
}

.search-container .cancel-btn {
  background-color: var(--secondary-color);
  color: white;
}

.search-container .cancel-btn:hover {
  background-color: var(--secondary-color-darker);
}

.search-container #gkzFilterSelect,
.search-container select,
#gkz-select, input#kategorie,
#modal-kst-select
{
  padding: 8px 12px;
  padding-right: 30px;
  font-size: 0.85em;
  line-height: 1.4;
  border: 1px solid var(--medium-gray-border);
  border-radius: 4px;
  box-sizing: border-box;
  vertical-align: middle;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url('../img/arrow-down.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px auto;
  min-width: 150px;
  width: 100%;
  flex-grow: 0;
  flex-shrink: 1;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.edit-form select {
  padding: 8px 12px;
  padding-right: 30px;
  font-size: 0.85em;
  line-height: 1.4;
  border: 1px solid var(--medium-gray-border);
  border-radius: 4px;
  box-sizing: border-box;
  vertical-align: middle;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url('../img/arrow-down.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px auto;
  flex-grow: 0;
  flex-shrink: 1;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#year-select {
  min-width: auto;
  width: auto;

}

.search-container #gkzFilterSelect:hover,
.search-container select:hover {
  border-color: #888;
}

.anlagenverzeichnis dialog {
border-radius: 5px;
    border: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* schwarzer Schatten */

}

.admin-table .summensumme:hover:not(.is-editing) td {
  background-color: #e0e0e0 !important;
}

.anlagenverzeichnis .summensumme td, .investitionsubersicht .summensumme td {
  background-color: #f1f1f1 !important;
  border-color: #eee !important;
}

.search-container #gkzFilterSelect:focus,
.search-container select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-container label[for="gkzFilterSelect"],
.search-container label[for^="filter"] {
  font-weight: bold;
  margin-right: 5px;
  white-space: nowrap;
  flex-shrink: 0;
font-size: 0.85em;
}

.search-container #gkzFilterSelect option[disabled] {
  color: #999;
}

#importForm label {
  display: inline;
  margin-bottom: 8px;
  font-weight: bold;
}

#importForm input[type="file"] {
  margin-bottom: 15px;
  display: block;
}

#importForm input[type="checkbox"] {
  margin-right: 5px;
  vertical-align: middle;
}

#importForm .checkbox-label {
  font-weight: normal;
}

#importForm button[type="submit"] {
  margin-top: 0px;
}

/* ==========================================================================
   5. Tabellen
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}

.table-wrapper table {
  margin-top: 0;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8em;
}

.admin-table th,
.admin-table td {
  border: 1px solid var(--light-gray-border);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.admin-table thead th {
  background-color: var(--table-header-bg);
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: inset 0 -1px 0 var(--light-gray-border);
}

.admin-table thead th:last-child {
  text-align: center;
}

.admin-table thead th.text-right {
  text-align: right;
}

.admin-table tr:nth-child(even) td {
  background-color: var(--table-row-even-bg);
}

.admin-table tr {
  transition: background-color 0.2s ease;
}

.admin-table tr:hover:not(.is-editing) td {
  background-color: #e9f1f7 !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;

}

.admin-table td strong {
  font-weight: bold;
}

.admin-table td.text-right {
  text-align: right;
}

/* Spezifische Spaltenbreiten */
.admin-table.sachkonto-public th:nth-child(1),
.admin-table.sachkonto-public td:nth-child(1) {
  width: 6%;
  min-width: 40px;
  font-weight: bold;
}

#admin-list-area table thead th:nth-child(1),
#admin-list-area table td:nth-child(1) {
  width: 5%;
  min-width: 40px;
  font-weight: bold;
}


#admin-list-area .sachkonto-erweitert th:nth-child(3),
#admin-list-area .sachkonto-erweitert th:nth-child(4),
#admin-list-area .sachkonto-erweitert th:nth-child(5),
#admin-list-area .sachkonto-erweitert th:nth-child(6),
#admin-list-area .sachkonto-erweitert th:nth-child(7),
#admin-list-area .sachkonto-erweitert th:nth-child(8),
#admin-list-area .sachkonto-erweitert th:nth-child(9),
#admin-list-area .sachkonto-erweitert th:nth-child(10)
{
  min-width: 105px;
}

#admin-list-area .sachkonto-erweitert td:nth-child(2),
#admin-list-area .sachkonto-erweitert td:nth-child(11)
{
  line-height: normal;
}

#admin-list-area .sachkonto-erweitert th:nth-child(12) {
 width: 40px;}


.admin-table.sachkonto-public thead th:nth-child(2),
.admin-table.sachkonto-public thead th:nth-child(3) {
  width: 35%;
  min-width: 200px;
}

.admin-table.sachkonto-public thead th:nth-child(4),
.admin-table.sachkonto-public thead th:nth-child(5),
.admin-table.sachkonto-public td:nth-child(4),
.admin-table.sachkonto-public td:nth-child(5) {
  min-width: 75px;
  text-align: center;
}

#admin-list-area table thead th:nth-child(2),
#admin-list-area table tbody td:nth-child(2) {}

#admin-list-area table.sachkonto-erweitert td:nth-child(3),
#admin-list-area table.sachkonto-erweitert td:nth-child(4),
.investitionsubersicht table td:nth-child(5),
.investitionsubersicht table td:nth-child(6) {
  font-weight: normal;
  background-color: #fff3f3;
}

#admin-list-area table.sachkonto-erweitert tr:hover td:nth-child(3),
#admin-list-area table.sachkonto-erweitert tr:hover td:nth-child(4),
.investitionsubersicht table tr:hover td:nth-child(5),
.investitionsubersicht table tr:hover td:nth-child(6){
  font-weight: normal;
  background-color: #fad4d4 !important;
}

#admin-list-area table.sachkonto-erweitert tr:hover td:nth-child(5),
#admin-list-area table.sachkonto-erweitert tr:hover td:nth-child(6),
.investitionsubersicht table tr:hover td:nth-child(7),
.investitionsubersicht table tr:hover td:nth-child(8) {
  font-weight: bold;
  background-color: #d1ffa8 !important;
}

#admin-list-area table.sachkonto-erweitert td:nth-child(5),
#admin-list-area table.sachkonto-erweitert td:nth-child(6),
.investitionsubersicht table td:nth-child(7),
.investitionsubersicht table td:nth-child(8){
  font-weight: bold;
  background-color: #f6ffee;
}

.gkz #admin-list-area table thead th:nth-child(1) {
  width: 5%;
}

.gkz #admin-list-area table thead th:nth-child(2) {
  width: 5%;
}

.gkz #admin-list-area table thead th:nth-child(3) {
  width: 72%;
}

.gkz #admin-list-area table thead th:nth-child(4) {
  width: 100px;
}

.hhst-simplified #admin-list-area table thead th:nth-child(1) {
  width: 5%;
}

.hhst-simplified #admin-list-area table thead th:nth-child(2) {
  width: 5%;
}

.hhst-simplified #admin-list-area table thead th:nth-child(3) {
  width: 40%;
}

.hhst-simplified #admin-list-area table thead th:nth-child(4) {
  width: 40%;
}

.hhst-simplified #admin-list-area table thead th:nth-child(5) {
  width: 100px;
}

[class*="kontenrahmen"] table thead th:nth-child(1),
[class*="kontenrahmen"] table thead th:nth-child(2),
[class*="kontenrahmen"] table thead th:nth-child(3),
[class*="kontenrahmen"] table thead th:nth-child(4) {
  width: 4.5% !important;
  word-break: break-word;
  min-width: 70px !important;
  overflow-wrap: break-word;
  white-space: inherit !important;
}

.anlagenverzeichnis .admin-table .summensumme td strong {
    font-weight: bold;
    text-decoration: underline;
}

[class*="kontenrahmen"] table thead th:nth-child(5) {
  width: 7% !important;
  min-width: 82px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: inherit !important;
}

[class*="kontenrahmen"] table thead th:nth-child(6) {
  width: 50% !important;
  white-space: inherit !important;
  min-width: 200px;
}

[class*="kontenrahmen"] table thead th:nth-child(7) {
  width: 20% !important;
  white-space: inherit !important;
}

[class*="kontenrahmen"] table thead th:nth-child(8) {
  width: 100px !important;
  white-space: inherit !important;
}

#admin-list-area.kostenstelle table thead th:nth-child(1),
.kostenstelle.public th:nth-child(1) {
  width: 5%;
  min-width: 25px;
}

#admin-list-area.kostenstelle table thead th:nth-child(2),
#admin-list-area.kostenstelle table td:nth-child(2),
.kostenstelle.public td:nth-child(2) {
  width: 10%;
  font-weight: bold;
}

#admin-list-area.kostenstelle table thead th:nth-child(3) {
  width: 50%;
  min-width: 160px;
}

#admin-list-area.kostenstelle table thead th:nth-child(4),
#admin-list-area.kostenstelle table td:nth-child(4),
.kostenstelle.public th:nth-child(4) {
  width: 15%;
  text-align: right;
  font-weight: bold;
}

#admin-list-area.kostenstelle table thead th:nth-child(5),
#admin-list-area.kostenstelle table td:nth-child(5) {
  width: 20%;
  text-align: right;
  font-weight: bold;
}

#admin-list-area.kostenstelle table thead th:nth-child(6) {
  width: 100px;
}

mark.search-highlight {
  background-color: yellow;
  padding: 0;
}

mark.current-search-highlight {
  background-color: orange !important;
  padding: 0;
  font-weight: bold;
}

.table-summary-container th {
  padding: 5px 10px 2px;
  border-left: 1px solid #eee;
  background-color: #fff;
}

.table-summary-container th:first-child {
  border-left: 0px solid #eee;
}

.table-summary-container td {
  border-top: 1px solid #eee;
  padding: 5px 10px 2px;
  border-left: 1px solid #eee;
  background-color: #fff;
}

.table-summary-container td:first-child {
  border-top: 1px solid #eee;
  border-left: 0px solid #eee;
}


.anlagenverzeichnis .admin-table th {
  min-width: 60px;
}
.anlagenverzeichnis table th:nth-child(8) {
  min-width: 30px;
}

.anlagenverzeichnis table th:nth-child(7), .anlagenverzeichnis table th:nth-child(9), .anlagenverzeichnis table th:nth-child(10) {
  min-width: 120px;
}

.sachkonten-investitionsubersicht table td:nth-child(1) {

}

.sachkonten-investitionsubersicht table.sachkonto-table td:nth-child(1) {

}

.sachkonten-investitionsubersicht .details-content table td:nth-child(4), .sachkonten-investitionsubersicht .details-content table td:nth-child(5), .sachkonten-investitionsubersicht .details-content table td:nth-child(6), .sachkonten-investitionsubersicht .details-content table td:nth-child(7),.sachkonten-investitionsubersicht .details-content table th:nth-child(4), .sachkonten-investitionsubersicht .details-content table th:nth-child(5), .sachkonten-investitionsubersicht .details-content table th:nth-child(6), .sachkonten-investitionsubersicht .details-content table th:nth-child(7)
{
  min-width: 200px !important;

  width: 10%;
}

.sachkonten-investitionsubersicht tfoot td:nth-child(4), .sachkonten-investitionsubersicht tfoot td:nth-child(5),.sachkonten-investitionsubersicht tfoot td:nth-child(6), .sachkonten-investitionsubersicht tfoot td:nth-child(7)
{
  min-width: 200px !important;
  width: 10%;
}

.sachkonten-investitionsubersicht .details-content table td:nth-child(1), 
.sachkonten-investitionsubersicht .details-content table th:nth-child(1) {
min-width: 95px !important;
  width:10%;
}

.sachkonten-investitionsubersicht tfoot th:nth-child(1) {
min-width: 190px !important;
  width:20%;
}

.sachkonten-investitionsubersicht .details-content table td:nth-child(2),
.sachkonten-investitionsubersicht .details-content table th:nth-child(2) {
min-width: 200px !important;
  width:20%;
}

.sachkonten-investitionsubersicht .details-content table td:nth-child(3),
.sachkonten-investitionsubersicht .details-content table th:nth-child(3)) {
min-width: 200px !important;
  width:20%;
}


.sachkonten-investitionsubersicht table td:nth-child(3), .sachkonten-investitionsubersicht table td:nth-child(4), .sachkonten-investitionsubersicht table td:nth-child(5)  {
}

.sachkonten-investitionsubersicht table.sachkonto-table td:nth-child(6)  {
}


 .sachkonto-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.sachkonto-table tbody tr:nth-child(odd) {
  background-color: #ffffff; /* Weiß */
}

.sachkonten-investitionsubersicht table td:nth-child(6) {
  width: 160px;
}

[class*="haushaltsmittel"] table thead th:nth-child(1) {
  width: 4.5% !important;
  min-width: 55px;
}

[class*="haushaltsmittel"] table td:nth-child(2) {
  max-width: 120px;
  min-width: 110px;
  width: 110px;
}

[class*="haushaltsmittel"] table thead th:nth-child(3) {}

[class*="haushaltsmittel"] table thead th:nth-child(4) {}

[class*="haushaltsmittel"] table thead th:nth-child(5) {}

[class*="haushaltsmittel"] table thead th:nth-child(6) {}

[class*="haushaltsmittel"] table thead th:nth-child(7) {
  word-break: auto-phrase;
}

[class*="haushaltsmittel"] table thead th:nth-child(8),
[class*="haushalt0smittel"] table thead th:nth-child(9),
[class*="haushaltsmittel"] table thead th:nth-child(10),
[class*="haushaltsmittel"] table thead th:nth-child(11),
[class*="haushaltsmittel"] table thead th:nth-child(12) {
  min-width: 82px;
  word-break: break-all;
}

[class*="haushaltsmittel"] table thead th:nth-child(13) {
  max-width: 55px;
  word-break: break-all;
}


/* Aktionen-Spalte Styling */
.admin-table .action-links {
  white-space: nowrap;
  text-align: center;
  vertical-align: top;
  line-height: normal;
  width: 100px;
}

.admin-table .action-links>* {
  margin-left: 0px;
}

.admin-table .action-links form {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  vertical-align: middle;
}

.admin-table .action-links .edit-link,
.admin-table .action-links .delete-link,
.admin-table .action-links .inline-save-trigger,
.admin-table .action-links .inline-cancel-trigger,
.sedit-link,
.sdelete-link,
.set-active-jahr-btn,
.kategorie-manager .edit-link,
.kategorie-manager .delete-link,
.action-links .view-link
{
  display: inline-block;
  padding: 4px 8px 4px;
  margin: 0 0 3px 0;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.91em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.sachkonten-investitionsubersicht .edit-link
{
  display: flex;
  padding: 4px 8px 4px;
  margin: 0 0 3px 0;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.90em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  line-height: 1.5;
  height: 24px;
}

.kategorie-manager li:first-child {
    border-top: 0px solid #eee;
    padding: 0px 0 5px;
}

.kategorie-manager li:last-child {
    padding: 5px 0 0px;
}

.kategorie-manager ul {
  margin-left: 0px;
  padding-left: 0px;
  margin-top:0px;
  margin-bottom: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
}

.kategorie-manager li {
    list-style: square;
    display: flex;
    font-size: 0.85em;
    line-height: normal;
    border-top: 1px solid #eee;
    padding: 5px 0;
    align-items: center;
}

.kategorie-manager li span:first-child {
flex: 1;
text-align:left;
}

.kategorie-manager li span {
flex: 1;
  text-align:right;
}


.admin-table .action-links .edit-link,
.sedit-link, .kategorie-manager .edit-link {
  color: var(--info-color);
  border-color: var(--info-color);
  background-color: #fff;
  min-width: 100px;
}

.action-links .view-link {
    color: var(--success-color);
    border-color: var(--success-color);
    background-color: #fff;
    min-width: 100px;
}

.action-links .view-link:hover,
.action-links .view-link:focus {
    color: #fff;
    border-color: var(--success-color);
    background-color: var(--success-color);
    min-width: 100px;
}

.sachkonten-investitionsubersicht .edit-link {
  color: var(--info-color);
  border-color: var(--info-color);
  background-color: #fff;
  min-width: 160px;
}

.admin-table .action-links .edit-link:hover,
.admin-table .action-links .edit-link:focus,
.sedit-link:hover,
.sedit-link:focus, .kategorie-manager .edit-link:hover
{
  background-color: var(--info-color);
  color: white;
  border-color: var(--info-color);
  text-decoration: none;
}

.sachkonten-investitionsubersicht .edit-link:hover,.sachkonten-investitionsubersicht .edit-link:focus,  .sachkonten-investitionsubersicht .expandable-row.active .edit-link{
  background-color: var(--info-color);
  color: white;
  border-color: var(--info-color);
  text-decoration: none;
}

.admin-table .action-links .delete-link,
.sdelete-link, .kategorie-manager .delete-link {
  color: var(--danger-color);
  border-color: var(--danger-color);
  background-color: #fff;
  width: 100px;
}

.admin-table .action-links .delete-link:hover,
.admin-table .action-links .delete-link:focus,
.sdelete-link:hover,
.sdelete-link:focus, .kategorie-manager .delete-link:hover {
  background-color: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

.admin-table .action-links .inline-save-trigger,
.set-active-jahr-btn {
  color: white;
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.admin-table .action-links .inline-save-trigger:hover,
.admin-table .action-links .inline-save-trigger:focus,
.set-active-jahr-btn:hover,
.set-active-jahr-btn:focus {
  background-color: var(--success-color-darker);
  border-color: #1e7e34;
}

.admin-table .action-links .inline-cancel-trigger {
  color: white;
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.admin-table .action-links .inline-cancel-trigger:hover,
.admin-table .action-links .inline-cancel-trigger:focus {
  background-color: var(--secondary-color-darker);
  border-color: #545b62;
}

.set-active-jahr-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  /* optional – blockiert alle Maus-Events */
}


/* Inline Editing Styles */
tr.is-editing td {
  background-color: #fdfdee !important;
}

tr.is-editing td input[type="text"],
tr.is-editing td textarea {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #aaa;
  border-radius: 3px;
  font-size: inherit;
  font-family: inherit;
  box-sizing: border-box;
  background-color: #fff;
}

tr.is-editing td textarea {
  min-height: 40px;
  resize: vertical;
  display: block;
}

tr.is-editing td .cell-content {
  display: none;
}

tr.is-editing td[style*="border-color: red"] input,
tr.is-editing td[style*="border-color: red"] textarea {
  border-color: red;
}

/* Gruppenüberschriften in Tabellen */
.admin-table tr.group-header td,
.sachkonto-public tr.searchable-group-header td {
  background-color: var(--table-row-hover-bg);
  font-weight: bold;
  padding-top: 8px;
  padding-bottom: 8px;
  border-top: 1px solid #adb5bd;
  border-bottom: 1px solid #dee2e6;
}

/* Farbliche Hervorhebung Budget/Bewegung (NEU/KORRIGIERT) */
.admin-table td.kst-over-budget {
  background-color: var(--budget-over-bg) !important;
  color: var(--budget-over-text) !important;
  font-weight: bold;
}

.admin-table td.kst-under-budget {
  background-color: var(--budget-under-bg) !important;
  color: var(--budget-under-text) !important;
  font-weight: bold;
}

.admin-table td.kst-info-budget {
  background-color: var(--budget-info-bg) !important;
  color: var(--budget-info-text) !important;
  font-weight: bold;
}

/* Sicherstellen, dass Hover-Effekt nicht überschreibt, falls spezifischer */
.admin-table tr:hover td.kst-over-budget,
.admin-table tr:hover td.kst-under-budget,
.admin-table tr:hover td.kst-info-budget {
  /* Beibehaltung der spezifischen Hintergrundfarbe oder eine leicht abgedunkelte Version davon */
}

/* Zeilenhervorhebung (Marker) */
.admin-table tr.highlighted-row td {
  background-color: var(--highlight-bg) !important;
}


/* ==========================================================================
   6. Buttons & Links (Allgemein)
   ========================================================================== */
.add-button,
.import-button,
.export-button,
.delete-button,
.cancel-btn,
.save-button,
.button-primary,
.button-secondary,
.deadline {
  display: inline-block;
  padding: 8px 10px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: inherit;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.add-button:hover,
.import-button:hover,
.export-button:hover,
.delete-button:hover,
.cancel-btn:hover,
.save-button:hover,
.button-primary:hover,
.button-secondary:hover,
.deadline:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: translateY(-1px);
}

.add-button {
  background-color: var(--success-color);
  color: white !important;
  border-color: var(--success-color);
}

.import-button {
  background-color: var(--warning-color);
  color: #212529 !important;
  border-color: var(--warning-color);
}

.export-button {
  background-color: var(--info-color);
  color: #fff !important;
  border-color: var(--info-color);
}

.delete-button,
.deadline {
  background-color: var(--danger-color);
  color: white !important;
  border-color: var(--danger-color);
}

.cancel-btn {
  background-color: var(--secondary-color);
  color: white !important;
  border-color: var(--secondary-color);
}

.save-button {
  background-color: var(--primary-color);
  color: white !important;
  border-color: var(--primary-color);
}

.add-button:hover,
.add-button:focus {
  background-color: var(--success-color-darker);
  border-color: var(--success-color-darker);
  color: white !important;
  transform: translateY(-1px);
}

.import-button:hover,
.import-button:focus {
  background-color: var(--warning-color-darker);
  border-color: var(--warning-color-darker);
  color: #212529 !important;
  transform: translateY(-1px);
}

.delete-button:hover,
.delete-button:focus,
.deadline:hover,
.deadline:focus {
  background-color: var(--danger-color-darker);
  border-color: var(--danger-color-darker);
  color: white !important;
  transform: translateY(-1px);
}

.cancel-btn:hover,
.cancel-btn:focus {
  background-color: var(--secondary-color-darker);
  border-color: var(--secondary-color-darker);
  color: white !important;
  transform: translateY(-1px);
}

.save-button:hover,
.save-button:focus {
  background-color: var(--primary-color-darker);
  border-color: var(--primary-color-darker);
  color: white !important;
  transform: translateY(-1px);
}

.hero-button,
.action-button {
  display: inline-block;
  padding: 11px 25px;
  font-size: 0.85em;
  text-decoration: none;
  border-radius: 5px;
  background-color: var(--primary-color);
  color: white !important;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
font-family: 'Inter', sans-serif;
}

.hero-button:hover,
.action-button:hover {
  background-color: var(--primary-color-darker);
  transform: translateY(-1px);
  color: white !important;
  text-decoration: none;
}

.hero-button.admin {
  background-color: var(--success-color);
}

.hero-button.admin:hover {
  background-color: var(--success-color-darker);
}


/* ==========================================================================
   7. Nachrichten & Benachrichtigungen
   ========================================================================== */
mark {
  background-color: var(--warning-color);
  color: #333;
  padding: 0.12em 0.2em 0.1em;
}

.message {
  padding: 10px 15px;
  margin-bottom: 20px;
  border: 0px solid transparent;
  border-radius: 5px;
  text-align: left;
  font-size: 0.9em;
}

.message.info {
  color: var(--info-color-darker);
  background-color: var(--budget-info-bg);
  border-color: var(--info-color);
}

.message.success {
  color: var(--budget-under-text);
  background-color: var(--budget-under-bg);
  border-color: var(--success-color);
}

.message.warning {
  color: #856404;
  background-color: var(--highlight-bg);
  border-color: var(--warning-color);
}

.message.error {
  color: var(--budget-over-text);
  background-color: var(--budget-over-bg);
  border-color: var(--danger-color);
}

#flashMessage {
  text-align: center;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 100;
  margin-left: 0px;
  margin-right: 0px;
  margin-top: 0px;
  border-top: none;
  border-left: none;
  border-right: none;
}

/* Informationszeile über Anzahl der Einträge (verbessert) */
p#rowCountInfo,
#rowCountInfoSachkonten,
#rowCountInfoKostenstellen,
#rowCountInfoKks,
p[id^="adminRowCountInfo"] {
  margin-top: 0;
  margin-bottom: 18px;
  padding: 8px 12px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 0.85em;
  color: #475569;
  text-align: left;
  line-height: 1.4;
}


p[id^="adminRowCountInfo"] span {
  font-weight: 600;
}

/* Für Zahlen in der Infozeile */
.active-filter-notice {
  font-style: normal;
  color: #52525b;
  margin-left: 0px;
  display: inline-block;
  padding: 2px 5px;
  background-color: #e0e0e0;
  border-radius: 3px;
  font-size: 0.9em;
}

.no-results {
  padding: 15px;
  text-align: center;
  color: var(--secondary-color);
  font-style: italic;
  background-color: #f9f9f9;
  border-top: 1px solid var(--light-gray-border);
}

/* ============================================= */
/* == Farbliche Hervorhebung Budget/Bewegung == */
/* ============================================= */

/* Grün: Bewegung ist kleiner als Budget (innerhalb des Budgets) */
td.value-ok {
  background-color: #e9f7ef !important;
  /* Helleres, sanftes Grün */
  color: #1d7b49 !important;
  /* Dunkleres Grün für Text */
  font-weight: bold;
  text-align: right;
  /* Sicherstellen, dass es rechtsbündig ist */
}

/* Rot: Bewegung ist größer als Budget (Budget überschritten) */
.table-wrapper td.value-over {
  background-color: #fdecea !important;
  /* Helleres, sanftes Rot */
  color: #a94442 !important;
  /* Dunkleres Rot für Text */
  font-weight: bold;
  text-align: right;
  /* Sicherstellen, dass es rechtsbündig ist */
}

/* Optional: Stelle sicher, dass der Hover-Effekt der Zeile
   die Budget/Bewegungs-Farbe nicht überschreibt */
.table-wrapper tr:hover td.value-ok {
  background-color: #d4edda !important;
  /* Etwas dunkleres Grün bei Hover */
  color: #155724 !important;
}

.table-wrapper tr:hover td.value-over {
  background-color: #f8d7da !important;
  /* Etwas dunkleres Rot bei Hover */
  color: #721c24 !important;
}

/* Wichtig: Kann nötig sein, wenn andere :nth-child Regeln die Farbe überschreiben */
tr:nth-child(even) td.value-ok,
tr:nth-child(even) td.value-over {
  /* Erzwingt die Hintergrundfarbe auch für gerade Zeilen */
  background-color: inherit;
  /* Nutzt die Farbe aus .value-ok/.value-over */
}

/* Blau: Für spezielle Info-Status, z.B. unbebucht aber beplant */
td.value-info {
  background-color: #d1ecf1 !important;
  /* Helles Blau (ähnlich Bootstrap Info BG) */
  color: #0c5460 !important;
  /* Dunkelblauer Text (ähnlich Bootstrap Info Text) */
  font-weight: bold;
  /* Kann auch bold sein, je nach Präferenz */
  text-align: right;
}

/* Optional: Hover-Effekt, falls gewünscht (konsistent mit den anderen) */
.table-wrapper tr:hover td.value-info {
  background-color: #bee5eb !important;
  /* Etwas dunkleres Blau bei Hover */
  color: #0a4c59 !important;
}

/* Sicherstellen, dass die Farbe auch bei Zebrastreifen greift, falls die td spezifischer ist */
tr:nth-child(even) td.value-info {
  background-color: #d1ecf1 !important;
  color: #0c5460 !important;
}

tr:nth-child(odd) td.value-info {
  /* Explizit auch für ungerade Zeilen, falls nötig */
  background-color: #d1ecf1 !important;
  color: #0c5460 !important;
}


/* ==========================================================================
   8. Spezifische Seiten- / Komponenten-Styles
   ========================================================================== */
/* --- Hero Section (Startseite) --- */
.hero-section {
  background-color: var(--light-gray-bg);
  padding: 50px 20px;
  margin-bottom: 30px;
  border-radius: 5px;
  text-align: center;
  border: 1px solid var(--light-gray-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-headline {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.hero-tagline {
  font-size: 1.1em;
  color: var(--secondary-color-darker);
  margin-bottom: 25px;
  line-height: 1.6;
}

.hero-disclaimer {
  font-size: 0.9em;
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* --- Statistik-Seite --- */
.stats-page .button-primary {
  background-color: var(--primary-color);
  color: white !important;
  border-color: var(--primary-color-darker);
}

.stats-page .button-primary:hover {
  background-color: var(--primary-color-darker);
  color: white !important;
  text-decoration: none;
}

.stats-page .button-secondary {
  background-color: #f4f4f4;
  color: #555 !important;
  border: 1px solid #ccc;
}

.stats-page .button-secondary:hover {
  background-color: #e0e0e0;
  color: #333 !important;
  border-color: #aaa;
  text-decoration: none;
}

.chart-container {
  width: 100%;
  margin: 30px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#monthlyAccessChart {
  min-height: 400px;
  height: auto;
}

/* --- Inline Formular Bereich (#form-area-wrapper) --- */
#form-area-wrapper {
  border: 1px solid var(--form-area-border);
  background-color: var(--form-area-bg);
  border-radius: 5px;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
  display: none;
  overflow: hidden;
}

#form-area-content {
  padding: 20px 25px;
}

#form-area-content .loader {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

#form-area-error {
  margin: 0 25px 15px 25px;
  text-align: center;
  display: none;
}

.form-area-actions {
  padding: 15px 25px;
  text-align: right;
  background-color: var(--form-area-actions-bg);
  border-top: 1px solid var(--light-gray-border);
  border-radius: 0 0 5px 5px;
}

.form-area-actions button {
  margin-left: 10px;
}

.form-area-actions button:first-child {
  margin-left: 0;
}

#form-area-content .edit-form {
  margin: 0;
  padding: 0;
}

#form-area-content .edit-form div {
  margin-bottom: 15px;
}

#form-area-content .edit-form label {
  margin-bottom: 5px;
  font-weight: bold;
}

#form-area-content .edit-form input[type="text"],
#form-area-content .edit-form textarea {
  padding: 8px 10px;
  margin-bottom: 10px;
}

#form-area-content .edit-form textarea {
  min-height: 80px;
}

#form-area-content .edit-form h3 {
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--header-border);
  font-size: 1.2em;
}

/* --- Disclaimer Popup --- */
.modal-overlay, .modal::before {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 25px 35px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  width: 90%;
  max-width: 550px;
  border: 1px solid #ccc;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.3em;
  text-align: center;
}

.modal-content p {
  margin-bottom: 15px;
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.modal-content p strong {
  color: var(--danger-color);
}

.modal-close, .close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2.2em;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #777;
}

.modal-visible {
  display: block !important;
}

.modal-button {
  display: block;
  width: 100%;
  padding: 10px 15px;
  margin-top: 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-button:hover {
  background-color: var(--primary-color-darker);
}

/* --- AJAX Status Indicator --- */
#ajax-status-indicator {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1050;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  font-size: 0.95em;
  font-weight: 500;
  max-width: 300px;
  box-sizing: border-box;
  background-color: var(--secondary-color);
  color: white;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  visibility: hidden;
}

#ajax-status-indicator.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

#ajax-status-indicator .loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
  flex-shrink: 0;
}

#ajax-status-indicator span {
  line-height: 1.3;
}

#ajax-status-indicator.loading {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color-darker);
}

#ajax-status-indicator.loading .loader {
  display: inline-block;
}

#ajax-status-indicator.success {
  background-color: var(--success-color);
  color: white;
  border-color: var(--success-color-darker);
}

#ajax-status-indicator.success .loader {
  display: none;
}

#ajax-status-indicator.error {
  background-color: var(--danger-color);
  color: white;
  border-color: var(--danger-color-darker);
}

#ajax-status-indicator.error .loader {
  display: none;
}

#ajax-status-indicator.info {
  background-color: var(--info-color);
  color: white;
  border-color: var(--info-color-darker);
}

#ajax-status-indicator.info .loader {
  display: none;
}

#ajax-status-indicator.warning {
  background-color: var(--warning-color);
  color: #212529;
  border-color: var(--warning-color-darker);
}

#ajax-status-indicator.warning .loader {
  display: none;
}

/* --- Paginierung (Angepasst für Bootstrap-ähnliche Struktur) --- */
.pagination-container {
  text-align: center;
  /* Zentriert die ul-Liste, wenn sie inline-block/inline-flex ist */
  margin-top: 30px;
  margin-bottom: 20px;
  /* Etwas mehr Platz unten */
  width: 100%;
  /* Stellt sicher, dass der Container die volle Breite nimmt, falls nötig */
}

ul.pagination {
  /* Die UL-Liste selbst */
  display: inline-flex;
  /* Hauptänderung: Lässt li-Elemente in einer Reihe mit Flexbox-Verhalten */
  list-style-type: none;
  padding-left: 0;
  /* Entfernt Standard-UL-Padding */
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 4px;
  /* Optional: Abgerundete Ecken für die gesamte Leiste */
  /* box-shadow: 0 1px 2px rgba(0,0,0,0.05); */
  /* Optional: Leichter Schatten */
}

ul.pagination li.page-item {
  /* margin: 0; Kein Margin zwischen den Items, border macht die Trennung */
}

/* Styling für Links und Spans innerhalb der Listenelemente */
ul.pagination li.page-item a.page-link,
ul.pagination li.page-item span.page-link {
  color: var(--link-color, #007bff);
  /* Ihre Linkfarbe oder Fallback */
  display: block;
  /* Damit Padding und Border korrekt angewendet werden */
  padding: 8px 14px;
  margin-left: -1px;
  /* Lässt benachbarte Borders überlappen */
  line-height: 1.25;
  background-color: #fff;
  border: 1px solid var(--light-gray-border, #ddd);
  text-decoration: none;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

ul.pagination li.page-item:first-child a.page-link,
ul.pagination li.page-item:first-child span.page-link {
  margin-left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

ul.pagination li.page-item:last-child a.page-link,
ul.pagination li.page-item:last-child span.page-link {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

ul.pagination li.page-item a.page-link:hover {
  z-index: 2;
  color: var(--link-hover-color, #0056b3);
  /* Ihre Link-Hover-Farbe */
  background-color: #e9ecef;
  border-color: var(--medium-gray-border, #dee2e6);
}

ul.pagination li.page-item.active span.page-link {
  z-index: 3;
  color: #fff !important;
  background-color: var(--primary-color, #007bff);
  /* Ihre Primärfarbe */
  border-color: var(--primary-color, #007bff);
  cursor: default;
}

ul.pagination li.page-item.disabled span.page-link {
  color: #6c757d;
  pointer-events: none;
  /* Klick deaktivieren */
  cursor: default;
  /* Standard-Cursor */
  background-color: #fff;
  border-color: var(--light-gray-border, #ddd);
}

/* Ihre .ellipsis-Klasse wird nicht direkt von render_pagination_links verwendet,
   aber die "..." werden als disabled span gerendert, daher sollten sie okay aussehen.
   Falls Sie spezielle Styles für die Ellipsen möchten: */
ul.pagination li.page-item.disabled span.page-link:contains("...") {
  /* Spezifische Styles für Ellipsen, falls nötig. ':contains' ist CSS3 und wird evtl. nicht überall unterstützt.
       Einfacher ist es, wenn render_pagination_links eine spezielle Klasse für Ellipsen hinzufügt.
       Aktuell ist es ein disabled span, was meist ausreicht.
    */
}


/* Responsive Anpassungen (optional, aber empfohlen) */
@media (max-width: 576px) {

  ul.pagination li.page-item a.page-link,
  ul.pagination li.page-item span.page-link {
    padding: 6px 10px;
    /* Kleineres Padding für kleinere Bildschirme */
    font-size: 0.9rem;
  }

  /* Für sehr kleine Bildschirme könnte man Text wie "Zurück" ausblenden */
  /* Beispiel (muss in render_pagination_links unterstützt werden, indem z.B. Spans um den Text gelegt werden): */
  /*
    .page-item .page-link-text { display: none; } // Versteckt Text, nur Pfeile bleiben
    .page-item .page-link-arrow { display: inline; } // Stellt sicher, dass Pfeile immer da sind
    */
}

/* --- "Nach oben" Button --- */
#scrollTopBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.2s ease-in-out;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  background-color: var(--primary-color-darker);
}

#scrollTopBtn .material-symbols-outlined {
  font-size: inherit;
}


/* ==========================================================================
   9. Keyframes & Responsive Design
   ========================================================================== */

    .logo_small{
    display:none;
  }

@media (max-width: 800px) {

  .site-logo {
    display:none;
  }
  
    .logo_small{
    display:block;
      width:70px;
      margin-right: 15px;
  }
}

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

@media (max-width: 992px) {

  .container,
  .container.admin-container {
    max-width: 95%;
  }

  header .header-container {
    width: 95%;
  }

  #install-wrapper {
    display: none !important;
  }

}

@media (max-width: 768px) {

  .container,
  .container.admin-container {
    padding: 15px;
    margin: 20px auto;
  }

  header .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 0 10px;
  }

  .hc-nav-trigger {
    width: 100% !important;
  }

  .header-controls {
    display: none !important;
  }

  .header-actions-group {
    width: 100% !important;
  }

  .edit-form .form-actions {
    display: block !important;
  }

  #notification_emails_input {
    min-height: 85px !important;
  }

  .abschicken {
    width: 100%;
    margin-top: 10px;
  }

  .cancel-btn {
    width: 100%;
    margin-top: 10px;
  }

  .hero-button,
  .action-button,
  .deadline,
  .save-button,
  #deadline_date_input_page,
  .import-button {
    box-sizing: border-box;
    display: inline-block !important;
    appearance: none;
  }

  .documents-detail-cell li,
  .documents-detail-cell li a,
  .documents-detail-cell {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: inherit;
  }

  .gkz-jahre-manager .form-group {
    width: 100%;
  }

  .gkz-jahre-manager {
    display: block !important;
    padding: 0px;
  }

  .gkz-jahre-liste_neu {
    margin-top: 15px;
  }

  .sdelete-link,
  .sedit-link {
    width: auto;
    min-width: 80px;
  }

  .date {
    width: 100%;
    display: inline-block;
    box-sizing: border-box;
    appearance: none;
  }

  .date input {
    padding: 0px;
    appearance: none;
  }

  .site-logo {
    margin-bottom: 10px;
    margin-left: 0;
    margin-right: 0;
  }

  .page-header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .page-header h1 {
    font-size: larger !important;
    text-align: center;
    word-break: break-word;
  }

  .page-header-actions {
    width: 100%;
    justify-content: center;
  }

  .search-container {
    flex-wrap: wrap;
  }

  .search-container>div {
    width: 100%;
    margin-bottom: 10px;
    margin-left: 0px !important;
  }

  .search-container .header-buttons {
    width: 100%;
    justify-content: center;
    margin-top: 0;
    display: contents;
  }

  .search-container input[type="text"] {
    min-width: 100px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px;
    font-size: 0.9em;
  }

  .chart-container {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8em !important;
  }

  h2 {
    font-size: 1.2em;
  }

  .page-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-header-actions>*,
  .page-header-actions .delete-button,
  .import-button, .save-button, .export-button {
    width: 100%;
    text-align: center;
    margin-bottom: 0px; 
    box-sizing: border-box;
  }
  
  .search-container {
    gap: 8px;
  }

  .search-container label {
    display: none;
  }

  .search-container input[type="text"],
  .search-container select {
    margin-bottom: 8px;
    width: 100%;
  }

  .search-container button,
  .search-container .cancel-btn {
    flex-grow: 1;
  }

  .admin-table .action-links button,
  .admin-table .action-links form {
    display: block;
    margin-bottom: 5px;
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .pagination a,
  .pagination span {
    padding: 6px 10px;
    font-size: 0.9em;
  }

  .modal {
    width: 95%;
    padding: 20px;
  }

  .modal-content h2 {
    font-size: 1.1em;
  }

  .modal-content p {
    font-size: 0.9em;
  }

  .modal-button {
    font-size: 0.95em;
  }

  p[id^="adminRowCountInfo"] {
    text-align: center;
  }

  .stats-page .button-secondary,
  .stats-page .button-primary {
    width: 100%;
    margin-bottom: 10px !important;

  }

  .session-timer-container {
    min-height: 35px;
    padding-right: 20px;
    font-weight: bold;
    font-size: 0.9em !important;
  }

  .header-actions-group {
    gap: 0px !important;
  }
  
  .search-container #gkzFilterSelect, .search-container select, #gkz-select {
    min-width: 100%;
    margin-bottom: 15px;
  }


}

/* === Tooltip Styles === */
.tooltip-trigger {
  display: inline-block;
  cursor: help;
  margin-left: 0px;
  font-weight: bold;
  color: var(--primary-color);
}

/* Das eigentliche Tooltip-Element, das per JavaScript erstellt wird */
.dynamic-tooltip {
  position: absolute;
  /* Wird relativ zum body oder einem anderen Offset-Parent positioniert */
  background-color: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: normal;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  /* Erlaube Zeilenumbrüche */
  min-width: 150px;
  /* Mindestbreite */
  max-width: 300px;
  /* Maximale Breite */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 1070;
  /* Sehr hoch, um über anderen Elementen zu sein */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  /* pointer-events: none; */
  /* Kann je nach Bedarf gesetzt werden, meist nicht nötig für Tooltips am Body */
}

.dynamic-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

.admin-table tr.hauptfachbereich-row td {
  background-color: #e9f7ef;
  /* Ein sanftes Grün, ähnlich wie --budget-under-bg */
  font-weight: 500;
  /* Etwas fetter als normaler Text */
  /* color: #1d7b49; */
  /* Optional: Textfarbe anpassen, wenn gewünscht */
}

.admin-table tr.hauptfachbereich-row td:first-child,
.admin-table tr.hauptfachbereich-row td:nth-child(2) {
  font-weight: bold;
  /* Etwas fetter als normaler Text */
}

.admin-table tr.hauptfachbereich-row:hover td {
  background-color: #d4edda !important;
  /* Etwas dunkleres Grün bei Hover, !important um andere Hover-Effekte zu überschreiben */
}

/* Optional: Um sicherzustellen, dass die Zebrastreifen nicht stören */
.admin-table tr:nth-child(even).hauptfachbereich-row td {
  background-color: #e9f7ef;
  /* Beibehaltung der Hauptfachbereichsfarbe */
}

.admin-table tr:nth-child(even).hauptfachbereich-row:hover td {
  background-color: #d4edda !important;
}

/* ==========================================================================
   10. Toggle Switch Styles (NEU & VERKLEINERT)
   ========================================================================== */
.permission-item {
  display: flex;
  margin-bottom: 10px;
  /* Etwas reduziert */
  border-bottom: 1px dotted #ddd;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  /* Breite reduziert */
  height: 24px;
  /* Höhe reduziert */
  flex-shrink: 0;
}

/* Versteckt die originale Checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Der sichtbare Teil des Schalters (Hintergrund) */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ddd;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 24px;
  /* Angepasst an die neue Höhe */
}

/* Der bewegliche "Knopf" des Schalters */
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  /* Höhe des Knopfs reduziert */
  width: 18px;
  /* Breite des Knopfs reduziert */
  left: 3px;
  /* Position angepasst */
  bottom: 3px;
  /* Position angepasst */
  background-color: #fff;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

/* Aussehen, wenn der Schalter aktiviert ist */
input:checked+.slider {}

input:focus+.slider {}

/* Bewegung des Knopfs, wenn der Schalter aktiviert ist */
input:checked+.slider:before {
  -webkit-transform: translateX(20px);
  /* Bewegungsdistanz angepasst */
  -ms-transform: translateX(20px);
  transform: translateX(20px);
  background-color: var(--primary-color);
}

/* Das Label neben dem Schalter */
.switch-label-text {
  margin-left: 12px;
  font-weight: normal;
  cursor: pointer;
  user-select: none;
  font-size: 0.9em;
  line-height: normal;
}

.switch-label-text small {
  display: block;
  color: #777;
  line-height: 1.2;
  margin-left: 0px;
}

/* NEUE REGEL FÜR SORTIER-PFEILE */
.sort-icon {
  font-size: 1.1em !important;
  /* Macht das Icon etwas größer als der Text */
  vertical-align: top;
  /* Zentriert das Icon vertikal zum Text */
  margin-left: 4px;
  /* Fügt einen kleinen Abstand hinzu */
  top: 1px;
  position: relative;
  line-height: normal !important;
}

.pdf::before {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 0.9;
  text-transform: none;
  text-indent: 0;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
  display: inline-block;
  margin-right: 5px;
  font-size: 23px;
  vertical-align: top;
  speak: never;
  content: 'picture_as_pdf'
}

.infoma::before {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 0.9;
  text-transform: none;
  text-indent: 0;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
  display: inline-block;
  margin-right: 5px;
  font-size: 23px;
  vertical-align: top;
  speak: never;
  content: 'file_export'
}

.tabledel::before {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 0.9;
  text-transform: none;
  text-indent: 0;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
  display: inline-block;
  margin-right: 5px;
  font-size: 23px;
  vertical-align: top;
  speak: never;
  content: 'delete_sweep';
}

.delete::before {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 0.9;
  text-transform: none;
  text-indent: 0;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
  display: inline-block;
  width: 19px;
  height: 19px;
  margin-right: 10px;
  font-size: 23px;
  vertical-align: top;
  speak: never;
  content: 'delete'
}

.csv::before {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 0.9;
  text-transform: none;
  text-indent: 0;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
  display: inline-block;
  width: 19px;
  height: 19px;
  margin-right: 10px;
  font-size: 23px;
  vertical-align: top;
  speak: never;
  content: 'csv'
}

.file::before {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 0.9;
  text-transform: none;
  text-indent: 0;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
  display: inline-block;
  width: 19px;
  height: 19px;
  margin-right: 5px;
  font-size: 1.5em;
  vertical-align: top;
  speak: never;
  content: 'note_add'
}

@font-face {
  font-family: 'Material Symbols Outlined';
  src: url('/Backend/libs/fonts/material-symbols-outlined-latin-100-normal.woff2') format('woff2'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-100-normal.woff') format('woff'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-100-normal.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  src: url('/Backend/libs/fonts/material-symbols-outlined-latin-200-normal.woff2') format('woff2'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-200-normal.woff') format('woff'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-200-normal.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  src: url('/Backend/libs/fonts/material-symbols-outlined-latin-300-normal.woff2') format('woff2'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-300-normal.woff') format('woff'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-300-normal.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  src: url('/Backend/libs/fonts/material-symbols-outlined-latin-400-normal.woff2') format('woff2'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-400-normal.woff') format('woff'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-400-normal.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  src: url('/Backend/libs/fonts/material-symbols-outlined-latin-500-normal.woff2') format('woff2'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-500-normal.woff') format('woff'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-500-normal.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  src: url('/Backend/libs/fonts/material-symbols-outlined-latin-600-normal.woff2') format('woff2'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-600-normal.woff') format('woff'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-600-normal.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  src: url('/Backend/libs/fonts/material-symbols-outlined-latin-700-normal.woff2') format('woff2'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-700-normal.woff') format('woff'),
    url('/Backend/libs/fonts/material-symbols-outlined-latin-700-normal.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  /* z. B. 100–700 */
  display: inline-block;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* CSS für die Tags und das Highlighting */
.search-tags-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px;
  background-color: #fff;
  gap: 6px;
  cursor: text;
  line-height: 1.4;
  flex: 1;
}

.search-tag {
  display: inline-flex;
  align-items: center;
  background-color: #007bff;
  color: white;
  border-radius: 8px;
  padding: 1px 10px;
  font-size: 0.9em;
  line-height: 1.5;
  white-space: nowrap;
}

.search-tag .remove-tag {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  font-size: 1.6em;
  line-height: normal;
  opacity: 0.7;
  margin-top: -3px;
}

mark.search-highlight {
  background-color: yellow;
  color: black;
  padding: 1px;
  border-radius: 2px;
}

#tag-input-field {
  border: none;
  outline: none;
  flex-grow: 1;
  padding: 5px;
  min-width: 200px;
  background-color: transparent;
      -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.custom-icon {
  position: relative;
  width: 80px;
  height: 80px;
}

.icon-circle {
  position: absolute;
  top: 7px; /* Kreis leicht nach unten schieben */
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 50px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
  z-index: 1;
}

.custom-icon img {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  top: 0; /* Pin bleibt fix */
  left: 50%;
  transform: translateX(-50%);
}