    <style>
        body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: #f4f7f6; color: #333; margin: 0; }
        .container { max-width: 1400px; margin: 2em auto; padding: 0 2em; }
        .main-content { background: white; padding: 2em; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
	.main-content a { text-decoration: none; } /* color: #2980b9; Styling für Links in Listen */
        h1, h2 { color: #2c3e50; }
	a { color: #2980b9; }
hr { color: #2980b9; }
hr.new1 {
  border-top: 1px solid red;
}

/* Red border */
hr.new1 {
  border-top: 1px solid #2980b9;
}

/* Dashed red border */
hr.new2 {
  border-top: 1px dashed red;
}

/* Dotted red border */
hr.trenner3 {
  border-top: 2px dotted #2c627d;
}

/* Thick red border */
hr.new4 {
  border: 1px solid red;
}

/* Large rounded green border */
hr.new5 {
  border: 10px solid green;
  border-radius: 5px;
}


        /* NEU: Auswertungs-Sektion */
        .summary-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 20px; margin-bottom: 2em; }
        .stat-card { background-color: #fff; padding: 1.5em; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); border: 1px solid #2c627d; }
        .stat-card h3 { margin: 0 0 10px 0; color: #34495e; font-size: 16px; }
        .stat-card .value { font-size: 28px; font-weight: 600; color: #2980b9; }
        .stat-card ol { padding-left: 20px; margin: 0; }
        .stat-card ol li { font-size: 14px; margin-bottom: 8px; }
        .stat-card ol li a { text-decoration: none; color: #2c627d; } /* Styling für Links in Listen */
        .stat-card ol li a:hover { text-decoration: underline; }

        /* Toolbar für Suche und Aktionen */
        .toolbar { /*  display: flex; justify-content: space-between; */ align-items: center; margin-bottom: 1.5em; flex-wrap: wrap; gap: 1em; }
        .search-form input { border: 1px solid #ddd; padding: 0.75em; border-radius: 4px; width: 300px; }
        .action-buttons a { text-decoration: none; color: white; padding: 0.75em 0.75em; border-radius: 4px; }
        .btn-add { background-color: #27ae60; } .btn-import { background-color: #2980b9; } .btn-export { background-color: #16a085; } .btn-export-xls { background-color: #1abc9c; }

/* <button class="button-65" role="button">Button 65</button>  */

/* CSS */
.button {
  appearance: none;
  backface-visibility: hidden;
  background-image: linear-gradient(90deg, #2c627d 90%, #1E96C8 100%);
  border-radius: 10px;
  border-style: none;
  box-shadow: none;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: Inter,-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size: 15px;
  font-weight: 500;
  height: 40px;
  letter-spacing: normal;
  line-height: 1.5;
  outline: none;
  overflow: hidden;
  padding: 9px 24px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transform: translate3d(0, 0, 0);
  transition: all .3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: top;
  white-space: nowrap;
}

.button:hover {
  background-image: linear-gradient(-180deg, #2c627d 0%, #1E96C8 100%);
  box-shadow: rgba(0, 0, 0, .05) 0 5px 30px, rgba(0, 0, 0, .05) 0 1px 4px;
  opacity: 1;
  transform: translateY(0);
  transition-duration: .35s;
}

.button a {
  color: #fff;
}

        /* Tabelle */
        .table-wrapper { overflow-x: auto; } /* Wichtig für mobile Ansicht */
        table { width: 100%; border-collapse: collapse; white-space: nowrap; }
        th, td { padding: 0.6em; text-align: left; border-bottom: 1px solid #c5c9f1; }
        th a { text-decoration: none; color: #2c627d; font-weight: 600; }
        .actions a { margin-right: 10px; text-decoration: none; color: #3498db; }
        .actions a:hover { text-decoration: underline; color: #fff; }

	tr:nth-child(even) { background-color: #f2f2f2;}
	thead th { background-color: #2c627d; }
	thead a { color: #fff;}


        /* NEU: Styles für die Filter-Form */
        .filter-form { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
        .filter-form .search-bar input { border: 1px solid #ddd; padding: 0.75em; border-radius: 4px; width: 300px; font-size: 16px; }
        .status-filter fieldset { border: none; padding: 0; margin: 0; display: flex; gap: 15px; }
        .status-filter label { cursor: pointer; }


/* NEU: Styles für die Titel-Spalte */
        .col-title {
            max-width: 400px; /* Maximale Breite, bevor der Text umbricht */
            white-space: normal; /* Erlaubt den Zeilenumbruch */
        }
        .truncate-2-lines {
            display: -webkit-box;
            -webkit-line-clamp: 2; /* Limitiert den Text auf 2 Zeilen */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Pagination */
        .pagination { text-align: center; margin-top: 2em; }
        .pagination a, .pagination span { display: inline-block; padding: 0.5em 1em; margin: 0 2px; border: 1px solid #ddd; text-decoration: none; color: #2c627d; border-radius: 4px; }
        .pagination span.current { background-color: #2980b9; color: white; border-color: #2980b9; }

        /* NEU: Responsive Anpassungen */
        @media (max-width: 992px) {
            .summary-grid { grid-template-columns: 1fr 1fr; }
            .summary-grid .top-10 { grid-column: 1 / -1; } /* Top 10 nimmt volle Breite ein */
        }


        @media (max-width: 768px) {
            .container { padding: 0 1em; }
            .main-content { padding: 0.5em; }
	    .main-content a { text-decoration: none; } /* Styling für Links in Listen */
            .toolbar { flex-direction: column; align-items: stretch; }
            .search-form input { width: 100%; box-sizing: border-box; }
            .summary-grid { grid-template-columns: 1fr; }
            .action-buttons a { text-decoration: none; color: white; font-size: 12px; padding: 0.5em 0.5em; border-radius: 4px; }
            .col-title { max-width: 300px;}
	    .button-container { display: flex; flex-direction: column; width: 100%;}
	    .button-container button { margin-bottom: 10px; /* Fügt etwas Abstand zwischen den Buttons hinzu */width: 100%; /* Button nimmt volle Breite ein */}
	    .button { margin-top: 5px;}
        }

input[type="date" i] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-inline-start: 1px;
    cursor: default;
    padding: 0px;
}

/* Grund-Styling für das Filter-Formular auf großen Bildschirmen */
.filter-form {
    display: flex;
    flex-wrap: wrap; /* Erlaubt Umbruch, falls nicht genug Platz ist */
    align-items: center; /* Richtet Elemente vertikal mittig aus */
    gap: 20px; /* Abstand zwischen den Filter-Blöcken */
    padding: 1em;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5em;
}

.filter-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-form legend {
    font-weight: bold;
    padding-right: 10px;
    font-size: 1em;
}

.loading-text {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* Füge dies zum <style>-Bereich hinzu */
.loading-indicator {
    padding: 40px;
    text-align: center;
    color: #555;
}

.loading-indicator .spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.error-message {
    padding: 30px;
    text-align: center;
    background: #ffebee;
    border-radius: 8px;
    margin: 20px;
}

.error-message p {
    margin: 10px 0;
}

.retry-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
}


        .loading-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.8);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        .loading-spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #3498db;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }


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


/* ########## Responsive Anpassungen ########## */
/* Für Tablets und Mobilgeräte (Bildschirme schmaler als 992px) */
@media (max-width: 992px) {
    .filter-form {
        /* Stacks filter elements vertically */
        flex-direction: column;
        align-items: stretch; /* Makes items take full width */
    }

    .filter-form .status-filter fieldset,
    .filter-form .date-filter fieldset {
        /* Stacks labels and inputs inside fieldsets vertically */
        flex-direction: column;
        align-items: flex-start; /* Aligns them to the left */
        gap: 10px;
    }

    .filter-form .date-filter fieldset label {
        width: 100%; /* Ensures labels and inputs are on separate lines */
    }

    .filter-form input[type="date"],
    .filter-form input[type="text"] {
        width: 100%;
        box-sizing: border-box; /* Ensures padding is included in the width */
    }

    .toolbar .button-container {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar .button-container .button,
    .filter-form .button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
