:root {
    --primary: rgba(6, 88, 223, 1);
    --primary-light: rgba(133, 185, 249, 1);
    --accent: rgba(250, 160, 1, 1);
    --danger-soft: rgba(255, 227, 219, 1);

    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-soft: #f9fbff;
    --text: #183153;
    --text-soft: #5f7187;
    --border: #dde6f2;
    --success-soft: #e8f6ee;
    --warning-soft: #fff4d9;

    --shadow: 0 10px 28px rgba(24, 49, 83, 0.06);
    --shadow-soft: 0 4px 14px rgba(24, 49, 83, 0.05);

    --radius: 16px;
    --radius-lg: 22px;
    --pill: 999px;
}

/* Reset & base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(133, 185, 249, 0.18), transparent 25%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
    color: var(--text);
}

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

.wrap {
    max-width: 1180px;
    margin: 40px auto 56px;
    padding: 0 20px;
}

.wrap > h2 {
    margin: 34px 0 12px;
    padding: 0 4px;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wrap-log {
    max-width: 600px;
}

/* Typography */
h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    margin: 28px 0 14px;
    padding: 4px;
    color: var(--primary);
    font-size: 20px;
    line-height: 1.2;
}

/* Layout blocks */
.header-bar,
.form-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
    padding: 24px 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 255, 0.96));
    border: 1px solid rgba(221, 230, 242, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.header-info {
    min-width: 0;
}

.header-info h1 {
    margin: 0 0 10px;
}

.header-bar p,
.form-page-head p {
    margin: 0;
    color: var(--text-soft);
}

.header-subline {
    font-size: 14px;
    line-height: 1.5;
}

.header-mini-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.header-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 220px));
    gap: 10px;
    justify-content: end;
    align-items: start;
}

.header-actions > a,
.header-actions > .dropdown {
    width: 100%;
}

.header-actions a.aktion-link,
.header-actions button.aktion-button,
.dropdown-toggle {
    width: 100%;
    /* min-height: 38px; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-actions a:nth-child(2) {
    font-weight: 700;
}

/* Unified pill button system */
.aktion-link,
.aktion-button,
.filter-grid button,
.mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border-radius: var(--pill);
    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease;
}

.aktion-link,
.aktion-button,
.filter-grid button {
    background: linear-gradient(180deg, rgba(6, 88, 223, 0.98), rgba(6, 88, 223, 0.9));
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    box-shadow: 0 8px 18px rgba(6, 88, 223, 0.18);
}

.aktion-link:hover,
.aktion-button:hover,
.filter-grid button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(6, 88, 223, 0.22);
}

.aktion-loeschen {
    background: #fff;
    color: #b42318;
    border: 1px solid #f0c2ba;
    box-shadow: none;
}

.aktion-loeschen:hover {
    background: var(--danger-soft);
    box-shadow: none;
}

.aktion-link-secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid rgba(6, 88, 223, 0.18);
    box-shadow: none;
}

.aktion-link-secondary:hover {
    background: rgba(133, 185, 249, 0.12);
    box-shadow: none;
}

.mini-link {
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
}

.mini-link:hover {
    background: rgba(133, 185, 249, 0.18);
    border-color: rgba(133, 185, 249, 0.45);
}

.mini-link-loeschen:hover {
    background: var(--danger-soft);
    border-color: rgba(224, 133, 117, 0.4);
}

/* Filter */
.filter-form {
    background: rgba(255, 255, 255, 0.94);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    align-items: end;
}

.filter-grid label,
.formular label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
}

.filter-grid input,
.filter-grid select,
.formular input,
.formular select,
.formular button {
    width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 15px;
    outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus,
.formular input:focus,
.formular select:focus {
    border-color: rgba(6, 88, 223, 0.35);
    box-shadow: 0 0 0 4px rgba(133, 185, 249, 0.16);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: nowrap;
}

.filter-actions .aktion-link,
.filter-actions button {
    flex: 1 1 0;
    text-align: center;
}

.filter-actions a.aktion-link {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quick-filter-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 0 0 20px;
}

.quick-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* min-height: 38px; */
    padding: 8px 12px;
    border-radius: var(--pill);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.quick-filter:hover {
    background: rgba(133, 185, 249, 0.16);
    border-color: rgba(133, 185, 249, 0.45);
    transform: translateY(-1px);
}

.quick-filter.is-active {
    background: linear-gradient(180deg, rgba(6, 88, 223, 0.98), rgba(6, 88, 223, 0.9));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(6, 88, 223, 0.18);
    transform: translateY(-1px);
}

.active-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: var(--pill);
    background: rgba(133, 185, 249, 0.14);
    border: 1px solid rgba(6, 88, 223, 0.16);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(180deg, #ffffff, #fafdff);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-soft);
}

.stat-card-danger {
    background: linear-gradient(180deg, rgba(255, 227, 219, 0.72), rgba(255, 255, 255, 0.95));
}

.stat-card-accent {
    background: linear-gradient(180deg, rgba(250, 160, 1, 0.14), rgba(255, 255, 255, 0.95));
}

.stat-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-value {
    font-size: 34px;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.stat-card-danger .stat-value {
    color: #b42318;
}

.stat-card-accent .stat-value {
    color: #b96d00;
}

/* Global accordion actions */
.accordion-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Warn boxes */
.warnbox {
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.warnbox::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    border-radius: 18px 0 0 18px;
    background: var(--border);
}

.warnbox-danger {
    background: linear-gradient(180deg, rgba(255, 227, 219, 0.82), rgba(255, 255, 255, 0.98));
    border-color: rgba(224, 133, 117, 0.45);
    box-shadow: 0 10px 24px rgba(180, 35, 24, 0.08);
}

.warnbox-danger::before {
    background: #d92d20;
}

.warnbox-accent {
    background: linear-gradient(180deg, rgba(250, 160, 1, 0.16), rgba(255, 255, 255, 0.98));
    border-color: rgba(250, 160, 1, 0.34);
}

.warnbox-accent::before {
    background: #f59e0b;
}

.warnbox-forecast {
    background: linear-gradient(180deg, rgba(6, 88, 223, 0.06), rgba(255, 255, 255, 0.98));
    border-color: rgba(6, 88, 223, 0.16);
}

.warnbox-forecast::before {
    background: rgba(6, 88, 223, 0.55);
}

.warnbox-danger .warn-count {
    background: #d92d20;
}

.warnbox-accent .warn-count {
    background: #f59e0b;
    color: #fff;
}

.warnbox-forecast .warn-count {
    background: rgba(6, 88, 223, 0.14);
    color: var(--primary);
    border: 1px solid rgba(6, 88, 223, 0.18);
}

.warnbox-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.warnbox-head h2 {
    margin: 0;
    font-size: 19px;
}

.warnbox-danger .warnbox-head h2 {
    color: #b42318;
}

.warnbox-accent .warnbox-head h2 {
    color: #b96d00;
}

.warnbox-forecast .warnbox-head h2 {
    color: var(--primary);
}

.warn-count {
    min-width: 34px;
    height: 34px;
    padding: 0 11px;
    border-radius: var(--pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.warnliste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.warnliste li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.warnbox-danger .warnliste li {
    background: rgba(255, 255, 255, 0.48);
}

.warnbox-accent .warnliste li {
    background: rgba(255, 255, 255, 0.52);
}

.warnbox-forecast .warnliste li {
    background: rgba(255, 255, 255, 0.7);
}

/* Product cards */
.produkt {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px 20px;
    margin: 0 0 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.produkt:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(24, 49, 83, 0.08);
    border-color: rgba(133, 185, 249, 0.55);
}

.produkt-hinweis {
    font-size: 12px;
    color: var(--text-soft);
}

.produkt-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    list-style: none;
}

.produkt-summary::-webkit-details-marker {
    display: none;
}

.produkt-summary::after {
    content: "▾";
    font-size: 17px;
    color: var(--primary);
    justify-self: end;
    transition: transform 0.16s ease;
}

details:not([open]) .produkt-summary::after {
    transform: rotate(-90deg);
}

.produkt-titel {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    min-width: 0;
    overflow-wrap: anywhere;
}

.produkt-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: var(--pill);
    background: rgba(133, 185, 249, 0.14);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.produkt-inhalt {
    margin-top: 16px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.produkt-kopf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 16px;
}

.produkt-aktionen {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.produkt-aktionen .aktion-link,
.produkt-aktionen .aktion-loeschen {
    min-width: 120px;
}

/* Charge list */
.chargen-liste {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chargen-liste li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 8px;
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

.chargen-liste li:hover {
    box-shadow: inset 0 0 0 1px rgba(24, 49, 83, 0.05);
}

.charge-links {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
}

.charge-menge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.charge-wert {
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
}

.charge-einheit {
    white-space: nowrap;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.charge-rechts {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.charge-datum {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(24, 49, 83, 0.06);
    font-weight: 700;
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
}

.charge-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.charge-minus-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.charge-minus-btn {
    background: #fff;
    color: #b42318;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #f0c2ba;
    box-shadow: 0 2px 6px rgba(180, 35, 24, 0.06);
    cursor: pointer;
}

.charge-minus-btn:hover {
    background: var(--danger-soft);
    border-color: rgba(224, 133, 117, 0.4);
}

.charge-delete-form,
.produkt-delete-form {
    margin: 0;
    display: inline-flex;
}

.keine-chargen {
    margin: 0;
    color: var(--text-soft);
}

/* Status colors */
.rot {
    background: rgba(255, 227, 219, 0.78);
}

.gelb {
    background: rgba(250, 160, 1, 0.16);
}

.gruen {
    background: rgba(232, 246, 238, 1);
}

/* Forms / auth / info cards */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-wrap {
    width: 100%;
    max-width: 460px;
}

.auth-card,
.form-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.auth-head {
    margin-bottom: 20px;
}

.auth-head p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.5;
}

.formular {
    display: grid;
    gap: 16px;
}

.formular-zweispaltig {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    min-width: 0;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-divider {
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.form-divider h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.form-divider p {
    margin: 0;
    color: var(--text-soft);
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.form-button {
    width: auto !important;
    min-width: 160px;
}

.info-card {
    background: linear-gradient(180deg, rgba(133, 185, 249, 0.10), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(133, 185, 249, 0.28);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.info-card p {
    margin: 0 0 8px;
    color: var(--text);
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* Tabellendesign der bestellliste_folgequartal.php */
.bestell-table {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.bestell-table tbody tr {
    background: #fff;
    box-shadow: 0 2px 6px rgba(24, 49, 83, 0.04);
}

.bestell-table td {
    padding: 14px 14px;
    vertical-align: middle;
    border: none;
}

.bestell-table tbody tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.bestell-table tbody tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.bestell-table .col-tasche {
    width: 14%;
}

.bestell-table .col-kategorie {
    width: 12%;
}

.bestell-table .col-produkt {
    width: 18%;
}

.bestell-table .col-chargen {
    width: 8%;
}

.bestell-table .col-menge {
    width: 10%;
}

.bestell-table .col-einheit {
    width: 12%;
}

.bestell-table .col-datum {
    width: 13%;
}

.ta-center {
    text-align: center;
}

.ta-left {
    padding-left: 12px;
    text-align: left;
}

.ta-right {
    text-align: right;
}

/* Verwaltungstabellen */
.verwaltung-table {
    width: 100%;
    table-layout: fixed;
}

.verwaltung-table .col-name {
    width: 60%;
}

.verwaltung-table .col-count {
    width: 10%;
}

.verwaltung-table .col-action {
    width: 15%;
}

.verwaltung-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.verwaltung-table td:first-child {
    text-align: left;
}

.verwaltung-table td:nth-child(2) {
    text-align: center;
    font-weight: 600;
}

.verwaltung-table td:nth-child(3),
.verwaltung-table td:nth-child(4) {
    text-align: center;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    width: 100%;
}

.inline-form input[type="text"] {
    width: 100%;
    min-width: 220px;
    padding: 10px 12px;
    text-align: left;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.inline-form input[type="text"]:focus {
    border-color: rgba(6, 88, 223, 0.35);
    box-shadow: 0 0 0 4px rgba(133, 185, 249, 0.16);
}

.verwaltung-table .mini-link {
    white-space: nowrap;
}

.cell-tasche,
.cell-produkt {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cell-einheit,
.cell-datum {
    white-space: nowrap;
}

/* Messages */
.fehlerbox,
.erfolgbox {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.fehlerbox {
    background: var(--danger-soft);
    border-color: rgba(224, 133, 117, 0.35);
    color: #8f2d23;
}

.erfolgbox {
    background: var(--success-soft);
    border-color: rgba(64, 153, 96, 0.22);
    color: #245c24;
}

/* Dropdown Stammdaten */
.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    gap: 6px;
    border-radius: var(--pill);
}

.dropdown-caret {
    font-size: 12px;
    line-height: 1;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
    z-index: 100;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: rgba(133, 185, 249, 0.14);
}

.dropdown-menu .icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-toggle.active {
    box-shadow: 0 12px 22px rgba(6, 88, 223, 0.22);
}

.erfolgbox-toast {
    margin-bottom: 18px;
    animation: fadeSlideIn 0.28s ease;
}

.charge-highlight {
    box-shadow:
        0 0 0 2px rgba(6, 88, 223, 0.18),
        0 8px 18px rgba(6, 88, 223, 0.08);
    animation: chargePulse 1.2s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chargePulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(6, 88, 223, 0.28),
            0 8px 18px rgba(6, 88, 223, 0.08);
    }
    50% {
        box-shadow:
            0 0 0 4px rgba(6, 88, 223, 0.12),
            0 8px 18px rgba(6, 88, 223, 0.08);
    }
    100% {
        box-shadow:
            0 0 0 2px rgba(6, 88, 223, 0.18),
            0 8px 18px rgba(6, 88, 223, 0.08);
    }
}

/* Responsive */
@media (max-width: 860px) {
    .header-bar,
    .form-page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-filter-bar {
        grid-template-columns: repeat(3, 1fr);
    }

    .produkt-kopf {
        flex-direction: column;
        align-items: flex-start;
    }

    .produkt-summary {
        grid-template-columns: minmax(0, 1fr) auto 18px;
        justify-content: stretch;
    }

    .produkt-meta {
        text-align: left;
    }

    .produkt-aktionen {
        width: 100%;
        justify-content: flex-start;
    }

    .produkt-aktionen .aktion-link,
    .produkt-aktionen .aktion-loeschen {
        min-width: 0;
        flex: 1 1 140px;
    }

    .chargen-liste li,
    .warnliste li {
        flex-direction: column;
        align-items: flex-start;
    }

    .charge-links,
    .charge-rechts,
    .charge-actions {
        width: 100%;
    }

    .charge-rechts {
        justify-content: flex-start;
        gap: 10px;
    }

    .charge-actions {
        justify-content: flex-start;
    }

    .formular-zweispaltig {
        grid-template-columns: 1fr;
    }

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

    .form-button {
        width: 100% !important;
    }
}

@media (max-width: 600px) {

    .wrap-log {
       margin: 20px;
    }

    .header-actions {
        grid-template-columns: 1fr;
    }

    .header-actions a.aktion-link,
    .header-actions button.aktion-button,
    .dropdown-toggle {
        width: 60%;
        margin: 0 auto;
    }

    .quick-filter-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-filter {
        flex: 1 1 calc(50% - 8px);
    }

    .active-filter-bar {
        gap: 6px;
    }

    .active-filter-chip {
        font-size: 11px;
    }
}

@media (max-width: 560px) {
    .wrap {
        margin-top: 24px;
        padding: 0 14px 24px;
    }

    .header-actions a.aktion-link,
    .header-actions button.aktion-button,
    .dropdown-toggle {
        width: 100%;
    }

    .filter-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .produkt-summary {
        grid-template-columns: 1fr auto 18px;
        align-items: start;
    }

    .produkt-meta {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .charge-actions {
        gap: 7px;
    }

     .charge-actions .mini-link {
        padding: 6px 8px;
    }
}