<head>
<link rel="stylesheet" href="/static/style.css?v=1285">

<style>
.readonly { background:#eee; cursor:not-allowed; }
.tracking-last .track-status { white-space: pre-wrap; font-size:12px; line-height:1.2; }
.badge-delivered { margin-top:4px; font-size:12px; }

.dokumenten-liste {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.feld-block summary {
    cursor: pointer;
    font-size: 1.1em;
    margin-bottom: 6px;
}

/* Modal-Zustände */
#versandModal.state-green { outline: 4px solid #26a269; box-shadow: 0 0 0 4px rgba(38,162,105,0.25) inset; }
#versandModal.state-yellow { outline: 4px solid #e5a50a; box-shadow: 0 0 0 4px rgba(229,165,10,0.25) inset; }
#versandModal.state-red { outline: 4px solid #c01c28; box-shadow: 0 0 0 4px rgba(192,28,40,0.25) inset; }

/* Box: gelb hervorheben, grau wenn leer */
.boxDisplay.highlight-yellow { background: rgba(229,165,10,0.12); border-radius: 10px; padding: 6px 10px; }
.boxDisplay.greyed { opacity: 0.5; }


/* Farben für versandMessage (falls du sie doch nutzen willst) */
#versandMessage.text-neutral { color: #555; }
#versandMessage.text-green { color: #198754; }
#versandMessage.text-orange { color: #e5a50a; }
#versandMessage.text-red { color: #c01c28; }


.warning {
    color: orange;
    font-weight: bold;
}

.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .5rem;
}

.log-triple-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 1200px) {
  .log-triple-container {
    flex-direction: row;
  }

  .log-triple-container .log-box {
    flex: 1;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fdfdfd;
    padding: 12px;
  }
}


.greyed {
  opacity: 0.4;
}

.highlight-green {
  background-color: #d4edda;
  border: 2px solid #28a745;
  padding: 5px;
  border-radius: 8px;
}

.highlight-red {
  background-color: #f8d7da;
  border: 2px solid #dc3545;
  padding: 5px;
  border-radius: 8px;
}

/* Box „ausgegraut“, wenn keine Box */
.box-muted {
  opacity: 0.5;
  filter: grayscale(0.7);
}

/* Customer-Info: Erfolg/Fehler (Tracking/Carrier) */
.badge-good {
  background: rgba(0, 160, 70, 0.12);
  border: 1px solid rgba(0, 160, 70, 0.35);
  box-shadow: 0 0 0 2px rgba(0,160,70,0.08) inset;
}
.badge-bad {
  background: rgba(220, 0, 0, 0.10);
  border: 1px solid rgba(220, 0, 0, 0.40);
  box-shadow: 0 0 0 2px rgba(220,0,0,0.06) inset;
}

/* Für den klickbaren Order-Link */
#VersandOrderIDValue a {
  text-decoration: none;
  font-weight: 700;
}
#VersandOrderIDValue a:hover {
  text-decoration: underline;
}


.feld-block[open] {
    border-left: 3px solid #4CAF50;
    padding-left: 10px;
    margin-bottom: 15px;
}


.highlight-success {
    border: 3px solid limegreen;
    transition: border 0.3s ease;
}

.highlight {
    background-color: yellow;
    font-weight: bold;
}

.dokument-eintrag {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

    .layout {
        display: flex;
    }
    .sidebar {
        width: 250px;
        border-right: 1px solid #ccc;
        padding: 10px;
    }
    .content {
        flex-grow: 1;
        padding: 20px;
    }
    .lagerort-button {
    display: block;
    margin: 5px 0;
    padding: 8px;
    text-align: left;
    border: none;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    color: #000;
}

.status-offen,
.status-null,
.status-unbekannt {
    background: linear-gradient(135deg, #e0e0e0, #ffffff);
    border: 1px solid #ccc;
    color: #333;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ✅ Abgeschlossen = grün */
.status-abgeschlossen {
    background-color: #e6f4ea;
    border-left: 4px solid #28a745;
    color: #1f5135;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.05);
}

/* ⚠️ Zu viel = gelb */
.status-zu_viel {
    background-color: #fff9e6;
    border-left: 4px solid #ffc107;
    color: #664d03;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.05);
}

/* ❌ Zu wenig = rot */
.status-zu_wenig {
    background-color: #fcebea;
    border-left: 4px solid #dc3545;
    color: #842029;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.05);
}

/* 📦 Aktiver Lagerort-Button */
.lagerort-button.active {
    background: linear-gradient(to bottom, #d6eaff, #c2dbf7);
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}

/* ✅ Erfasste Zeile */
.erfasst-row {
    background-color: #d4edda;
    transition: background-color 0.5s ease;
    border-left: 4px solid #28a745;
    font-weight: 500;
}

/* 🔢 Mengenfeld */
.quantity-input {
    width: 60px;
    padding: 6px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: 500;
}


.keyboard {
    margin-top: 10px;
}
.key-row {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}
.key-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5em;
    margin: 0 5px;
    cursor: pointer;
}


.dokument-art {
    flex: 1;
    font-weight: bold;
    color: #333;
}
.lagerort-box {
    background-color: #e7f1ff;
    border-left: 5px solid #1976d2;
    padding: 10px;
    margin-top: 12px;
    margin-bottom: 16px;
    font-size: 1.1em;
    border-radius: 4px;
}

.task-toggle-button {
    background: #f0f0f0;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.task-toggle-button .icon {
    transition: transform 0.2s ease;
    display: inline-block;
}
.task-toggle-button.open .icon {
    transform: rotate(180deg);
}
.task-toggle-button:hover {
    background: #e0e0e0;
    border-color: #999;
}

.projekt-liste {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.projekt-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: 0.9em;
}

.projekt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.projekt-header h3 {
    margin: 0;
}

.projekt-status {
    font-size: 0.85em;
    color: gray;
}

.projekt-aktionen {
    display: flex;
    gap: 0.4rem;
}

.projekt-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    color: #444;
}

.projekt-kennzahlen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    background: #f6f6f6;
    padding: 0.5rem;
    border-radius: 4px;
}

.projekt-beschreibung {
    margin-top: 0.6rem;
    font-size: 0.9em;
}

#toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #4CAF50; /* Standard: grün */
    color: white;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
}
#toast.error {
    background-color: #f44336;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #444;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    opacity: 0.95;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    animation: fadeOut 4s forwards;
}
.toast-success { background: #28a745; }
.toast-error { background: #dc3545; }
@keyframes fadeOut {
    0%   { opacity: 1; }
    90%  { opacity: 0.95; }
    100% { opacity: 0; display: none; }
}

.status-label {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.status-label.green {
    color: green;
}

.status-label.red {
    color: red;
}


.modal.show {
    opacity: 1;
    transform: translate(-50%, -30%) scale(1);
    pointer-events: auto;
}
.modal.hidden {
    display: none;
}

.editable-items-table {
    width: 100%;
    border-collapse: collapse;
}
.editable-items-table th, .editable-items-table td {
    border: 1px solid #ddd;
    padding: 6px;
    vertical-align: top;
}
.editable-items-table th {
    background-color: #4CAF50;
    color: white;
    font-size: 12px;
}

.highlight-row {
    background-color: #ccffcc;
    transition: background-color 0.3s ease;
}

.scroll-container {
    overflow-x: auto;
    max-width: 100%;
}

.scroll-x-box {
    overflow-x: auto;
    width: 100%;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: bold;
}
.alert-warning a {
    color: #856404;
    text-decoration: underline;
}


.scroll-x-box table {
    min-width: 1000px; /* oder z. B. 800px */
    width: 100%;
    border-collapse: collapse;
}

.log-box {
    background: #f9f9f9;
    border-left: 3px solid #ccc;
    padding: 8px;
    font-size: 0.9em;
    margin-top: 4px;
    white-space: pre-wrap;
}
.log-table tr {
    border-bottom: 1px solid #ddd;
}
.log-date {
    font-weight: bold;
    white-space: nowrap;
    width: 120px;
}

.log-user {
    color: #666;
    white-space: nowrap;
    width: 60px;
}

.log-details,
.log-info {
    color: #333;
    font-style: italic;
    font-size: 0.85em;
}

.log-message {
    color: #000;
}

.log-section {
  padding: 10px;
  background: #f9f9f9;
  margin-top: 5px;
  border: 1px solid #ccc;
}

.log-section.hidden {
  display: none;
}

.loading-placeholder {
  padding: 10px;
  color: #888;
  font-style: italic;
}


.log-section .log-content {
  display: flex;
  gap: 20px;
}

.log-section .log-filters {
  flex: 1;
  min-width: 200px;
}

.log-section .log-results {
  flex: 3;
  overflow-x: auto;
}
.log-dual-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1000px) {
  .log-dual-container {
    flex-direction: row;
  }

  .log-box {
    flex: 1;
    max-height: 500px;
    overflow-y: auto;
    background: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
  }
}

.log-container {
  max-height: 400px;
  overflow-y: auto;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.log-table th,
.log-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
}

.log-note-input {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.log-note-input input {
  flex: 1;
  padding: 6px;
}

.log-note-input button {
  padding: 6px 12px;
}

.log-dokumente-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1000px) {
  .log-dokumente-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .log-dokumente-box {
    max-height: 600px;
    overflow-y: auto;
    background: #fff;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
  }
}


.sticky-header {
    padding: 10px 20px;
    border-radius: 8px;
}

/* Neues horizontales Layout nur für den Header */
.header-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Dropdown-Wrapper korrekt positionieren */
.header-nav .dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown-Menü */
.header-nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    top: calc(100% + 5px); /* direkt unter dem Button mit etwas Abstand */
    left: 0;
    padding: 10px 0;
}

/* Einträge im Dropdown */
.header-nav .dropdown-content a {
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}
.header-nav .dropdown-content a:hover {
    background-color: #f1f1f1;
}


/* Responsive */
@media (max-width: 768px) {
    .header-nav {
        flex-direction: column;
        gap: 10px;
    }

    .header-nav .dropdown-content {
        left: 50%;
        transform: translateX(-50%);
    }
}


.sort-button {
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    color: #333;
    padding: 6px 12px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.sort-button:hover {
    background-color: #e6e6e6;
    color: #000;
}

.sort-button svg {
    margin-left: 6px;
    width: 12px;
    height: 12px;
    fill: #666;
    transition: fill 0.3s ease;
}

.sort-button:hover svg {
    fill: #000;
}

.editable-items-table input[type="text"],
.editable-items-table input[type="number"] {
    width: 100%;
    font-size: 12px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    margin-bottom: 4px;
}

.editable-items-table {
    width: 100%;
    border-collapse: collapse;
}

.editable-items-table th, .editable-items-table td {
    border: 1px solid #ddd;
    padding: 6px;
    vertical-align: top;
}

.block-section {
    margin-bottom: 30px;
    width: 100%;
}


.editable-items-table th {
    background-color: #4CAF50;
    color: white;
    font-size: 12px;
}

.editable-items-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.order-type-1 { background-color: #ccffcc; }   /* hellgrün */
.order-type-2 { background-color: #66cc66; }   /* grün */
.order-type-3 { background-color: #ffffcc; }   /* hellgelb */
.order-type-4 { background-color: #cce5ff; }   /* hellblau */
.order-type-5 { background-color: #3399ff; }   /* blau */
.order-type-6 { background-color: #ffeb99; }   /* gelb */
.order-type-7 { background-color: #ffcc00; }   /* dunkelgelb */
.order-type-8 { background-color: #ffcccc; }   /* hellrot */
.order-type-9 { background-color: #ff6666; }   /* rot */
.order-type-10 { background-color: #cc0000; color: white; } /* dunkelrot + weiße Schrift */

.address-fields {
    display: flex;
    flex-direction: column;
    gap: 2px; /* Minimaler Abstand */
    font-size: 13px;
    padding: 0;
    margin: 0;
}

.address-fields label {
    font-size: 11px;
    color: #777;
    margin-bottom: 1px;
    font-weight: normal;
}

.address-fields input[type="text"] {
    padding: 4px 6px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 4px;
}

.two-inline-fields {
    display: flex;
    gap: 10px;
}

.two-inline-fields input[type="text"] {
    flex: 1;
    padding: 4px 6px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}


.order-box {
    margin-bottom: 40px;
    padding: 20px;
    border: 2px solid #4CAF50;
    border-radius: 8px;
}


.cookie-banner {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.cookie-banner p {
    margin: 0;
    display: inline-block;
}

.cookie-banner a {
    color: #FFD700;
    text-decoration: underline;
}

/* Hero-Bereich */
.hero {
    background: url('/static/images/hero-bg.jpg') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Leistungen */
.services {
    text-align: center;
    padding: 50px 20px;
}

.service-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 300px;
}

.service-box img {
    width: 100%;
    border-radius: 10px;
}

.service-box h3 {
    margin: 10px 0;
}

/* Warum S2C */
.why-s2c {
    background: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    max-width: 250px;
    text-align: center;
}

.feature-item img {
    width: 80px;
    height: 80px;
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
}


.ok-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #5cff62; /* Grün */
    color: #000000;
    width: 200px;
    height: 50px;
    border-radius: 20%; /* Rundes Design */
    box-shadow: -1px -1px 11px 7px rgb(0 0 0);
    font-weight: bold;
    z-index: 9999; /* Immer im Vordergrund */
    transition: opacity 0.3s ease, top 0.3s ease;
    opacity: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}


.not-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff0000; /* Grün */
    color: #000000;
    width: 200px;
    height: 50px;
    border-radius: 20%; /* Rundes Design */
    box-shadow: -1px -1px 11px 7px rgb(0 0 0);
    font-weight: bold;
    z-index: 9999; /* Immer im Vordergrund */
    transition: opacity 0.3s ease, top 0.3s ease;
    opacity: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}


.box-message {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff176; /* grelles Gelb */
    border: 3px solid #fdd835;
    border-radius: 12px;
    padding: 20px 40px;
    z-index: 1000;
    font-size: 2em;
    font-weight: bold;
    color: #f57f17;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#BOXMessage {
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Sichtbares OK-Feld */
.ok-message.visible {
    opacity: 1;
    top: 20px;
}

.left-right-container {
    display: flex;
    flex-direction: row;
    gap: 20px; /* Abstand zwischen linkem und rechtem Bereich */
    padding: 20px;
    height: 100vh; /* Gesamthöhe */
    box-sizing: border-box;
}

/* Dashboard Styling */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Grid für Karten */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Karten-Stil */
.dashboard-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease-in-out;
    color: #000;

}

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

/* Links */
.dashboard-link {
    display: block;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: #007BFF;
    transition: color 0.3s;
}

.dashboard-link:hover {
    color: #0056b3;
}

/* Liste */
.dashboard-list {
    list-style: none;
    padding: 0;
}

.dashboard-list li {
    background: #f4f4f4;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    text-align: left;
    font-size: 18px;
}


.up-down-container {
    display: flex;
    flex-direction: column; /* Vertikale Anordnung (oben und unten) */
    gap: 20px; /* Abstand zwischen den Bereichen */
    padding: 20px;
    height: 100vh; /* Gesamthöhe des Containers */
    box-sizing: border-box;
}


/* Schließen-Button */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

/* Grundlegendes Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
    font-weight: bold;
}

.h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
}
.h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
}


.p {
    color: #555;
    text-align: center;
    margin-bottom: 20px;
}

.label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.lagerID {
    font-weight: bold;
    color: #fff;
    background-color: #ff0000;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    font-size: 18px
}

.input {
    width: 95%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="file"] {
    width: 100%;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Bezieht Padding in die Breitenberechnung ein */
}



/* Hintergrundüberlagerung */
#photoUploadBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9;
    transition: opacity 0.3s ease-in-out;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    height: 90vh; /* 90% der Fensterhöhe */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 999;
    overflow-y: auto; /* Falls der Inhalt zu groß wird, Scroll ermöglichen */
}

.shippingmodal {
    position: fixed;
    top: 37vh; /* Direkt unter .versandmodal */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 55vh; /* Angepasst, damit beide in den Bildschirm passen */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 998; /* Damit es unter .versandmodal bleibt */
    overflow-y: auto; /* Falls der Inhalt zu groß wird, Scroll ermöglichen */
}

.infomodal {
    position: fixed;
    top: 50%; /* Direkt unter .versandmodal */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 55vh; /* Angepasst, damit beide in den Bildschirm passen */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 998; /* Damit es unter .versandmodal bleibt */
    overflow-y: auto; /* Falls der Inhalt zu groß wird, Scroll ermöglichen */
}


.versandmodal {
    position: fixed;
    top: 3vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 30vh;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Modal Farbvarianten */
.versandmodal.yellow-glow {
    box-shadow: 0 0 15px rgba(255, 223, 0, 0.8);
    border: 2px solid rgba(255, 223, 0, 0.8);
}

.versandmodal.green-glow {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    border: 2px solid rgba(0, 255, 0, 0.8);
}


.versandmodal.red-glow {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    border: 2px solid rgba(255, 0, 0, 0.8);
}
/* Box- und Order-Anzeige nebeneinander */
.top-section {
    display: flex;
    flex-wrap: wrap; /* Ermöglicht Umbruch bei kleineren Bildschirmen */
    justify-content: start; /* Elemente näher beieinander */
    gap: 20px;
    align-items: flex-start;
}
.box-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.boxDisplay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* Standard-Hintergrund */
    padding: 10px;
    border-radius: 8px;
    width: 150px;
    text-align: center;
    color: black; /* Textfarbe schwarz */
}

/* --- Rot blinkend --- */
@keyframes blinkRed {
  0%, 50%, 100% { background-color: #ff4d4d; } /* kräftiges Rot */
  25%, 75% { background-color: #f0f0f0; }      /* zurück auf Standard */
}

.blink-red {
  animation: blinkRed 1s infinite;
  color: black; /* Schrift bleibt schwarz */
  font-weight: bold;
  border-radius: 8px;
}

/* --- Gelb blinkend --- */
@keyframes blinkYellow {
  0%, 50%, 100% { background-color: #ffd633; } /* sattes Gelb */
  25%, 75% { background-color: #f0f0f0; }      /* zurück auf Standard */
}

.blink-yellow {
  animation: blinkYellow 1s infinite;
  color: black; /* Schrift bleibt schwarz */
  font-weight: bold;
  border-radius: 8px;
}


.boxDisplay h3 {
    margin: 0;
    font-size: 18px;
}

.boxDisplay h2,
.boxDisplay h4 {
    margin: 5px 0;
}

.boxDisplay h2 span,
.boxDisplay h4 span {
    font-weight: normal;
    display: block;
}

.customerInfo {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 8px;
    font-size: 14px;
    max-width: 300px; /* Optional: Maximalbreite */
}

/* Flexibles Layout für Kundeninfos */
.customerInfo p {
    margin: 2px 0;
}

/* Tabelle für Artikel */
#shippingItemList {
    flex-grow: 1;
}

/* Tabelle ohne Kopf */
#shippingItemList table {
    width: 100%;
    border-collapse: collapse;
}

#shippingItemList thead {
    display: none;
}

#shippingItemList tbody tr {
    border-bottom: 1px solid #ddd;
}

#shippingItemList td {
    padding: 8px;
    text-align: left;
}

.clickable {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}

.clickable:hover {
    color: darkblue;
}


.visible {
    visibility: visible;
    opacity: 1; /* Sichtbar */
}

.hidden {
    visibility: hidden; /* Standardmäßig ausgeblendet */
    opacity: 0; /* Unsichtbar */
}

.layout-vertical {
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Vertikales Scrollen */
    border: 1px solid #ccc; /* Optionale Rahmen zur besseren Sichtbarkeit */
    gap: 10px; /* Abstand zwischen den Elementen */
    padding: 10px; /* Innenabstand */

}

.layout-horizontal-center {
    display: flex;
    flex-direction: row; /* Horizontale Anordnung */
    overflow-x: auto; /* Horizontal Scrollen */
    max-width: 100%; /* Maximale Breite des Containers */
    border: 1px solid #ccc; /* Optionale Rahmen zur besseren Sichtbarkeit */
    gap: 10px; /* Abstand zwischen den Elementen */
    padding: 10px; /* Innenabstand */
    box-sizing: border-box; /* Bezieht Padding in die Breitenberechnung ein */
    align-items: center; /* Vertikale Zentrierung innerhalb des Containers */
}

.layout-horizontal {
    display: flex;
    flex-direction: row; /* Horizontale Anordnung */
    overflow-x: auto; /* Horizontal Scrollen */
    flex-wrap: nowrap;  /* ← wichtig! */
    width: 100%;
    max-width: 100%; /* Maximale Breite des Containers */
    border: 1px solid #ccc; /* Optionale Rahmen zur besseren Sichtbarkeit */
    gap: 10px; /* Abstand zwischen den Elementen */
    padding: 10px; /* Innenabstand */
    box-sizing: border-box; /* Bezieht Padding in die Breitenberechnung ein */
}


table {
    width: 100%; /* Tabelle nimmt die gesamte Breite ein */
    border-collapse: collapse; /* Entfernt doppelte Rahmen */
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd; /* Rahmen für Zellen */
}

thead th {
    position: sticky;
    top: 0;
    background-color: #fff; /* Hintergrundfarbe für klebenden Header */
    z-index: 2; /* Damit Header über den Zellen liegt */
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.column-33 {
    flex: 0 0 33%; /* Flex-Basis: 33%, kein Wachstum oder Schrumpfen */
    max-width: 33%; /* Maximale Breite: 33% */
}

.column-66 {
    flex: 0 0 66%; /* Flex-Basis: 66%, kein Wachstum oder Schrumpfen */
    max-width: 66%; /* Maximale Breite: 66% */
}

.column {
    flex: 1; /* Für alle anderen Spalten */
    min-width: 200px; /* Falls eine Standardspalte verwendet wird */
}

/* Linke Spalte (Filter-Sektion) */
.filter-section {
    flex: 0 0 auto; /* Verhindert, dass die Spalte ihre Größe anpasst */
    max-width: 250px; /* Maximale Breite der Spalte */
    min-width: 150px; /* Optionale Mindestbreite */
    width: 100%; /* Standardbreite, falls der Container kleiner ist */
    display: flex; 
    align-items: flex-start; /* Inhalte an der oberen Kante ausrichten */
    flex-direction: column; /* Anordnung von oben nach unten */
    gap: 20px; /* Abstand zwischen Filterelementen */
    background-color: #f9f9f9; /* Leichtes Grau für den Hintergrund */
    padding: 15px; /* Innenabstand */
    border: 1px solid #ddd; /* Rahmen */
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Schatten */
    overflow-y: auto; /* Ermöglicht Scrollen bei Überlänge */
}

/* Styling für die Filter-Form */
.filter-section form {
    display: flex;
    flex-direction: column; /* Vertikale Anordnung der Filter */
    gap: 10px; /* Abstand zwischen Filterfeldern */
}


/* Form-Group Styling */
.form-group {
    display: flex;
    flex-direction: column; /* Label, Input und Span übereinander anordnen */
    gap: 1px; /* Abstand zwischen den Elementen */
    margin-bottom: 15px; /* Abstand zwischen Form-Gruppen */
}

/* Label Styling */
.form-group label {
    font-size: 14px; /* Textgröße des Labels */
    color: #333; /* Textfarbe */
}

/* Input Styling (Text) */
.form-group input[type="text"] {
    width: 100%; /* Füllt die verfügbare Breite */
    padding: 10px; /* Innenabstand */
    font-size: 14px; /* Schriftgröße */
    border: 1px solid #ccc; /* Rahmenfarbe */
    border-radius: 4px; /* Abgerundete Ecken */
    background-color: #fff; /* Hintergrundfarbe */
    box-sizing: border-box; /* Padding in die Breitenberechnung einbeziehen */
    transition: border-color 0.3s ease; /* Animierter Übergang bei Fokus */
}

/* Input Fokus Styling */
.form-group input[type="text"]:focus {
    border-color: #4CAF50; /* Grün hervorgehoben bei Fokus */
    outline: none; /* Standard-Outlines entfernen */
}

/* Styling für Spans */
.form-group span {
    font-size: 16px; /* Kleinere Schriftgröße */
    color: #555; /* Graue Farbe */
    margin-top: 2px; /* Optional: Platz minimieren */
    font-weight: bold; /* Fettgedruckt für bessere Lesbarkeit */
}

/* Select Dropdown Styling */
.form-group select {
    width: 100%; /* Füllt die verfügbare Breite */
    padding: 10px; /* Innenabstand */
    font-size: 14px; /* Schriftgröße */
    border: 1px solid #ccc; /* Rahmenfarbe */
    border-radius: 4px; /* Abgerundete Ecken */
    background-color: #fff; /* Hintergrundfarbe */
    box-sizing: border-box; /* Padding in die Breitenberechnung einbeziehen */
    transition: border-color 0.3s ease; /* Animierter Übergang bei Fokus */
}

/* Select Fokus Styling */
.form-group select:focus {
    border-color: #4CAF50; /* Grün hervorgehoben bei Fokus */
    outline: none; /* Standard-Outlines entfernen */
}

.form-group input[type="date"] {
    width: 100%; /* Füllt die verfügbare Breite */
    padding: 10px; /* Innenabstand */
    font-size: 14px; /* Schriftgröße */
    border: 1px solid #ccc; /* Rahmenfarbe */
    border-radius: 4px; /* Abgerundete Ecken */
    background-color: #fff; /* Hintergrundfarbe */
    box-sizing: border-box; /* Padding in die Breitenberechnung einbeziehen */
    transition: border-color 0.3s ease; /* Animierter Übergang bei Fokus */
}

/* Date Input Fokus Styling */
.form-group input[type="date"]:focus {
    border-color: #4CAF50; /* Grün hervorgehoben bei Fokus */
    outline: none; /* Standard-Outlines entfernen */
}


.form-actions {
    display: flex;
    gap: 10px; /* Abstand zwischen den Buttons */
    align-items: center; /* Buttons vertikal zentrieren */
}

.list-group-verti {
    display: grid;
    grid-template-columns: 150px 1fr; /* Linke Spalte 150px, rechte flexibel */
    gap: 15px;
    align-items: start;
    margin-bottom: 10px;
}


.list-group-verti label {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    text-align: right;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: normal;
    line-height: 1.2em;
}



/* Input Styling (Text) */
.list-group-verti input[type="text"] {
    flex: 1; /* Nimmt den verfügbaren Platz ein */
    padding: 10px; /* Innenabstand */
    font-size: 14px; /* Schriftgröße */
    border: 1px solid #ccc; /* Rahmenfarbe */
    border-radius: 4px; /* Abgerundete Ecken */
    background-color: #fff; /* Hintergrundfarbe */
    box-sizing: border-box; /* Padding in die Breitenberechnung einbeziehen */
    transition: border-color 0.3s ease; /* Animierter Übergang bei Fokus */
    max-width: 500px;
}

/* Input Styling (Text) */
.list-group-verti input[type="password"] {
    flex: 1; /* Nimmt den verfügbaren Platz ein */
    padding: 10px; /* Innenabstand */
    font-size: 14px; /* Schriftgröße */
    border: 1px solid #ccc; /* Rahmenfarbe */
    border-radius: 4px; /* Abgerundete Ecken */
    background-color: #fff; /* Hintergrundfarbe */
    box-sizing: border-box; /* Padding in die Breitenberechnung einbeziehen */
    transition: border-color 0.3s ease; /* Animierter Übergang bei Fokus */
    max-width: 500px;
}

/* Input Fokus Styling */
.list-group-verti input[type="text"]:focus {
    border-color: #4CAF50; /* Grün hervorgehoben bei Fokus */
    outline: none; /* Standard-Outlines entfernen */
}

/* Select Dropdown Styling */
.list-group-verti select {
    flex: 1; /* Nimmt den verfügbaren Platz ein */
    padding: 10px; /* Innenabstand */
    font-size: 14px; /* Schriftgröße */
    border: 1px solid #ccc; /* Rahmenfarbe */
    border-radius: 4px; /* Abgerundete Ecken */
    background-color: #fff; /* Hintergrundfarbe */
    box-sizing: border-box; /* Padding in die Breitenberechnung einbeziehen */
    transition: border-color 0.3s ease; /* Animierter Übergang bei Fokus */
    max-width: 500px;
}

/* Select Fokus Styling */
.list-group-verti select:focus {
    border-color: #4CAF50; /* Grün hervorgehoben bei Fokus */
    outline: none; /* Standard-Outlines entfernen */
}

/* Input Styling (Date) */
.list-group-verti input[type="date"] {
    flex: 1; /* Nimmt den verfügbaren Platz ein */
    padding: 10px; /* Innenabstand */
    font-size: 14px; /* Schriftgröße */
    border: 1px solid #ccc; /* Rahmenfarbe */
    border-radius: 4px; /* Abgerundete Ecken */
    background-color: #fff; /* Hintergrundfarbe */
    box-sizing: border-box; /* Padding in die Breitenberechnung einbeziehen */
    transition: border-color 0.3s ease; /* Animierter Übergang bei Fokus */
}

/* Date Input Fokus Styling */
.list-group-verti input[type="date"]:focus {
    border-color: #4CAF50; /* Grün hervorgehoben bei Fokus */
    outline: none; /* Standard-Outlines entfernen */
}


/* Rechte Spalte (Ergebnistabelle) */
.results-section {
    flex: 1; /* Nimmt den restlichen verfügbaren Platz ein */
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Schatten */
    overflow-x: auto; /* Horizontales Scrollen bei großen Tabellen */
}

.results-section table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.results-section th, .results-section td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.results-section th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results-section tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Zebra-Optik – dunklere Variante je Typ */
.order-type-1:nth-child(even) { background-color: #b3e6b3; }
.order-type-2:nth-child(even) { background-color: #559955; }
.order-type-3:nth-child(even) { background-color: #eeeeaa; }
.order-type-4:nth-child(even) { background-color: #aad4ff; }
.order-type-5:nth-child(even) { background-color: #2a80cc; }
.order-type-6:nth-child(even) { background-color: #ffe066; }
.order-type-7:nth-child(even) { background-color: #e6b800; }
.order-type-8:nth-child(even) { background-color: #ff9999; }
.order-type-9:nth-child(even) { background-color: #e65c5c; }
.order-type-10:nth-child(even) { background-color: #990000; color: white; }

.results-section tr:hover {
    background-color: #ddd;
}

.results-section tr.selected {
    background-color: #b9fac8; /* helles grün */
}

/* Dynamische Inhalte */
.results-section .loading {
    text-align: center;
    color: #4CAF50;
    font-weight: bold;
    padding: 20px;
}

.results-section .empty {
    text-align: center;
    color: #999;
    padding: 20px;
}

.images {
    width: 300px;
    height: 300px;
}

.modal-300 {
    width: 300px;
}
.modal-400 {
    width: 400px;
}

.stacked {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.images img {
    width: 100%; /* Das Bild passt sich der Breite des Containers an */
    height: 100%; /* Das Bild passt sich der Höhe des Containers an */
    object-fit: contain; /* Sorgt dafür, dass das Bild innerhalb des Containers zentriert und zugeschnitten ist */
    border: none; /* Kein Rand */
	background-color: #f0f0f0; /* Optionaler Hintergrund, falls das Bild nicht das gesamte Container-Feld füllt */
}

.dokument-actions {
    display: flex;
    flex-wrap: wrap;       /* erlaubt Umbruch */
    gap: 8px;
    justify-content: flex-start;
}

.dokument-actions form {
    flex: 1 1 auto;         /* wächst bei Platz, schrumpft bei wenig */
    min-width: 140px;       /* Mindestbreite pro Button */
}


@media (max-width: 600px) {
    .column-33, .column-66 {
        flex: 0 0 100%; /* Volle Breite auf kleinen Bildschirmen */
        max-width: 100%;
    }
}


/* === Modern Header/Nav – drop-in block === */
:root {
  --bg: #0b0f14;
  --bg-elev: #0f141a;
  --fg: #e7eef7;
  --muted: #a9b4c0;
  --brand: #22c55e; /* grünes Theme */
  --brand-2: #3b82f6; /* sekundär */
  --ring: rgba(34,197,94,.35);
  --surface: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --max-content: 1300px;
  --radius: 14px;
  --hdr-blur: 12px;
  --nav-gap: 10px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-elev: #fff;
    --fg: #0f1720;
    --muted: #5b6470;
    --surface: rgba(0,0,0,.04);
    --border: rgba(0,0,0,.08);
    --shadow: 0 10px 30px rgba(10,20,30,.08);
  }
}

/* Grundlayout / Typo (kollidiert nicht mit deinen Tabellen) */
html, body { background: var(--bg); color: var(--fg); }
#header-spacer { height: 0; }

/* === Sticky Header === */
#dynamic-header{
  position: fixed; inset: 0 0 auto 0; z-index: 998;
  background: color-mix(in oklab, var(--bg-elev) 85%, transparent);
  backdrop-filter: blur(var(--hdr-blur));
  -webkit-backdrop-filter: blur(var(--hdr-blur));
  border-bottom: 1px solid var(--border);
}
.header-inner{ max-width: var(--max-content); margin: 0 auto; padding: 10px 16px 6px; }
.header-top{
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
}
.brand-block{ display:flex; align-items:center; gap:12px; min-width:0; }
.brand-block img{ height: 44px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.welcome{ font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.top-actions{ display:flex; align-items:center; gap:10px; }



/* === Einheitliches, modernes Button-Design === */
button,
.button-green,
.button-red,
.button-blue,
.button-yellow,
.button-black,
.button-save,
.button-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Hover- und Active-Effekte für alle */
button:hover,
.button-green:hover,
.button-red:hover,
.button-blue:hover,
.button-yellow:hover,
.button-black:hover,
.button-save:hover,
.button-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

button:active,
.button-green:active,
.button-red:active,
.button-blue:active,
.button-yellow:active,
.button-black:active,
.button-save:active,
.button-small:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Farbvarianten */
.button-green { background: linear-gradient(135deg, #4CAF50, #43a047); color: #fff; }
.button-green:hover { background: linear-gradient(135deg, #45a049, #3d8b40); }

.button-red { background: linear-gradient(135deg, #f44336, #e53935); color: #fff; }
.button-red:hover { background: linear-gradient(135deg, #d32f2f, #c62828); }

.button-blue { background: linear-gradient(135deg, #2196F3, #1e88e5); color: #fff; }
.button-blue:hover { background: linear-gradient(135deg, #1976D2, #1565c0); }

.button-yellow { background: linear-gradient(135deg, #FFC107, #ffb300); color: #000; }
.button-yellow:hover { background: linear-gradient(135deg, #FFA000, #f57c00); }

.button-black { background: linear-gradient(135deg, #333, #000); color: #fff; }
.button-black:hover { background: linear-gradient(135deg, #000, #111); }

/* Spezielle Größenvarianten */
.button-small {
    font-size: 0.85rem;
    padding: 6px 12px;
}

.button-save {
    font-size: 0.85rem;
    padding: 6px 14px;
    background: linear-gradient(135deg, #4CAF50, #43a047);
    color: #fff;
}
.button-save:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

/* Optional: Icon-Unterstützung */
button .icon,
.button-green .icon,
.button-red .icon,
.button-blue .icon,
.button-yellow .icon,
.button-black .icon {
    font-size: 1.1em;
    line-height: 1;
}






/* === Mega Panels === */
.mega-wrap{ position: relative; }
.mega-panel{
  display:none;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.mega-panel.open{ display:block; }
.mega-inner{
  max-width: var(--max-content); margin: 0 auto; padding: 16px;
  display: grid; grid-template-columns: repeat(4, minmax(200px,1fr)); gap: 18px;
}
.mega-section h4{ margin:0 0 8px; font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing:.04em; }
.mega-links a{
  display:block; padding: 10px 12px; margin: 6px 0;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  text-decoration:none; color: var(--fg); font-size: .96rem;
  transition: transform .06s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.mega-links a:hover{ transform: translateY(-1px); border-color: var(--ring); box-shadow: 0 6px 16px rgba(0,0,0,.12); }

/* === Mobile Bottom Tabbar + Sheets === */
@media (max-width: 768px){
  .nav-buttons, .mega-wrap{ display:none !important; }
  .brand-block img{ height: 38px; }

  .mobile-tabbar{
    display:flex; position:fixed; left:0; right:0; bottom:0; height:64px; z-index:1000;
    background: var(--bg-elev); border-top: 1px solid var(--border);
    justify-content: space-around; align-items:center; padding: 8px 6px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .mobile-tabbar button{
    background:none; border:none; text-align:center; font-size:12px; color: var(--fg);
    display:flex; flex-direction:column; align-items:center; gap:4px;
  }
  .mobile-tabbar .icon{ font-size:20px; line-height:20px; }

  .mobile-sheet-backdrop{ display:none; position:fixed; inset:0; background: rgba(0,0,0,.35); z-index:1001; }
  .mobile-sheet{
    display:block; position:fixed; left:0; right:0; bottom:-70vh; height:60vh;
    background: var(--bg-elev); z-index:1002; border-top-left-radius: 16px; border-top-right-radius: 16px;
    box-shadow: 0 -20px 40px rgba(0,0,0,.35);
    transition: bottom .25s ease; padding: 14px; overflow:auto; border: 1px solid var(--border);
  }
  .mobile-sheet.open{ bottom:0; }
  .mobile-sheet-backdrop.open{ display:block; }
  .sheet-section{ margin-bottom: 16px; }
  .sheet-section h4{ margin:6px 0 8px; color: var(--muted); text-transform: uppercase; font-size:.85rem; }
  .sheet-links a{
    display:block; width:100%; text-align:left; padding:10px 12px; margin: 6px 0;
    border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); text-decoration:none;
  }
  body{ padding-bottom: 70px; }
}

/* Grids responsiv halten */
@container header (max-width: 1100px) { .mega-inner{ grid-template-columns: repeat(3,minmax(200px,1fr)); } }
@media (max-width: 1100px){ .mega-inner{ grid-template-columns: repeat(3,minmax(200px,1fr)); } }
@media (max-width: 920px){ .header-top{ grid-template-columns: 1fr; } .top-actions{ justify-content:flex-end; } .mega-inner{ grid-template-columns: repeat(2,minmax(200px,1fr)); } }

/* Fokus-Styles & Reduzierte Bewegungen */
:where(a,button,select,.nav-btn):focus-visible{
  outline: none; box-shadow: 0 0 0 3px var(--ring);
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}

/* Safari Fallback (kein Backdrop-Filter) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #dynamic-header{ background: var(--bg-elev); }
}


/* ===== Kompakte Filter (Label oben, darunter Op klein + Feld groß) ===== */
.filters-compact {
  display: grid;
  gap: 14px;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  position: sticky;
  top: 0;
  padding: 6px 0;
  background: inherit;
  z-index: 1;
}

.filter-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-block > label {
  font-weight: 600;
  color: var(--fg, #222);
  font-size: 14px;
}

/* Zwei-Spalten-Zeile: [OP klein] [Wert groß] */
.filter-inputs2 {
  display: grid;
  grid-template-columns: 50px minmax(80px, 1fr);
  gap: 10px;
  align-items: center;
}

/* drei-Spalten-Zeile: [OP klein] [Wert groß] */
.filter-inputs3 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

/* einespalte: [OP klein] [Wert groß] */
.filter-inputs {
  display: grid;
  gap: 10px;
  align-items: center;
}


/* Operator klein, dezent */
.op-select {
  height: 30px;
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  width: 50px;
}

/* Platzhalter für Reihen ohne Operator */
.op-spacer { height: 32px; }

/* Eingaben/Selects groß, im Fokus */
.value-input, .value-select, .value-multiselect {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
}

.value-input::placeholder { color: #9aa1a8; }

.value-multiselect {
  min-height: 46px;
  max-height: 200px;
  padding: 8px;
}

/* Datumsrange */
.value-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1px;
  align-items: center;
max-width: 105px;
}
.range-sep { font-weight: 600; color: #666; }

/* Responsive */
@media (max-width: 760px) {
  .filter-inputs { grid-template-columns: 1fr; }
  .op-select, .op-spacer { width: 100%; }
  .value-range { grid-template-columns: 1fr; }
  .range-sep { display: none; }
}

/* ===== Landing Page & Login Styles ===== */
header {
  background: #330033;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

header img {
  height: 60px;
}

.language-switcher select {
  padding: 6px 10px;
  font-size: 0.95em;
  border: none;
  border-radius: 6px;
  background: white;
  color: #330033;
}

nav a {
  margin-left: 20px;
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
  padding: 6px 12px;
  border-radius: 5px;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/static/img/warehouse.webp') center/cover no-repeat;
  filter: blur(4px) brightness(0.6);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3em;
  animation: fadeInUp 1s ease;
  color: #ffffff;
}

.hero p {
  font-size: 1.2em;
  animation: fadeInUp 1.5s ease;
}

@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

.section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  padding: 0 20px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: 0.3s;
  max-width: 320px;
  margin: 0 auto;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.card i {
  font-size: 2em;
  color: #990000;
  margin-bottom: 15px;
}

form input, form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  background: #996633;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
}

.footer {
  text-align: center;
  padding: 40px 20px;
  background: #330033;
  color: #ddd;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 10px;
}

.login-container {
  display: flex;
  min-height: 100vh;
}

.login-image {
  flex-basis: 60%;
  background: url('/static/img/buro.webp') center/cover no-repeat;
  min-height: 100vh;
}

.login-form {
  flex-basis: 40%;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: white;
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }
  .login-image {
    min-height: 200px;
    flex-basis: auto;
  }
  .login-form {
    flex-basis: auto;
    padding: 40px 20px;
  }
}

/* ========================================
   MODERNE MODAL STYLES
   ======================================== */

/* Modal Overlay - dunkler Hintergrund */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.hidden {
  display: none;
}

/* Modal Container */
.modal-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

/* Modal Header */
.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

/* Form Styling */
.modal-body form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-body label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.95em;
}

.modal-body input[type="text"],
.modal-body input[type="date"],
.modal-body input[type="number"],
.modal-body select,
.modal-body textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1em;
  transition: all 0.2s;
  background: #fafafa;
}

.modal-body input[type="text"]:focus,
.modal-body input[type="date"]:focus,
.modal-body input[type="number"]:focus,
.modal-body select:focus,
.modal-body textarea:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-body textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* Two Column Layout */
.two-inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .two-inline-fields {
    grid-template-columns: 1fr;
  }
}

/* Checkbox Styling */
.modal-body input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  cursor: pointer;
  accent-color: #667eea;
}

.modal-body label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

/* Modal Footer / Buttons */
.modal-footer {
  padding: 20px 30px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-body button[type="submit"],
.modal-body button[type="button"] {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button-green,
.modal-body button[type="submit"] {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.button-green:hover,
.modal-body button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.button-green:disabled,
.modal-body button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.button-red,
.modal-body button[type="button"] {
  background: #f0f0f0;
  color: #666;
}

.button-red:hover,
.modal-body button[type="button"]:hover {
  background: #e0e0e0;
  color: #333;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Field Group Styling */
.field-group {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #667eea;
}

.field-group-title {
  font-weight: 600;
  color: #667eea;
  margin-bottom: 16px;
  font-size: 1.1em;
}

/* Select Arrow Styling */
.modal-body select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Scrollbar Styling for Modal Body */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* ============================================================================
   Company & Status Pages - Modern Purple Gradient Design
   ============================================================================ */

.page-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem;
}

.page-wrapper * {
    box-sizing: border-box;
}

.page-wrapper .container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.page-wrapper .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-wrapper .header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.page-wrapper .firma-id {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.page-wrapper .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.page-wrapper .btn-primary {
    background: white;
    color: #667eea;
}

.page-wrapper .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.page-wrapper .btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.page-wrapper .btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.page-wrapper .btn-success {
    background: #10b981;
    color: white;
}

.page-wrapper .btn-success:hover {
    background: #059669;
}

.page-wrapper .btn-danger {
    background: #ef4444;
    color: white;
}

.page-wrapper .btn-danger:hover {
    background: #dc2626;
}

.page-wrapper .btn-outline {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.page-wrapper .btn-outline:hover {
    background: #667eea;
    color: white;
}

.page-wrapper .content {
    padding: 2rem;
}

.page-wrapper .search-box {
    margin-bottom: 1.5rem;
    position: relative;
}

.page-wrapper .search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.page-wrapper .search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.page-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.25rem;
}

.page-wrapper .table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.page-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.page-wrapper thead {
    background: #f9fafb;
}

.page-wrapper th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.page-wrapper tbody tr {
    transition: background 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.page-wrapper tbody tr:hover {
    background: #f9fafb;
}

.page-wrapper td {
    padding: 1rem;
    color: #1f2937;
}

.page-wrapper .logo-cell {
    text-align: center;
    width: 80px;
}

.page-wrapper .logo-img {
    max-height: 50px;
    max-width: 50px;
    border-radius: 8px;
    object-fit: contain;
}

.page-wrapper .no-logo {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 6px;
    font-size: 0.75rem;
}

.page-wrapper .firma-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.page-wrapper .action-buttons {
    display: flex;
    gap: 0.5rem;
}

.page-wrapper .btn-icon {
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 1.1rem;
}

.page-wrapper .btn-icon:hover {
    background: #f3f4f6;
    color: #374151;
}

.page-wrapper .modal {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    overflow: auto;
}

.page-wrapper .modal.active {
    display: block;
}

.page-wrapper .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.page-wrapper .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-wrapper .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.page-wrapper .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.page-wrapper .close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.page-wrapper .form-group {
    margin-bottom: 1.5rem;
}

.page-wrapper .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.page-wrapper .form-group input,
.page-wrapper .form-group select,
.page-wrapper .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.page-wrapper .form-group input:focus,
.page-wrapper .form-group select:focus,
.page-wrapper .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.page-wrapper .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.page-wrapper .form-row-3 {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 1.5rem;
}

.page-wrapper .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.page-wrapper .toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100000;
}

.page-wrapper .toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.page-wrapper .toast.success {
    border-left: 4px solid #10b981;
}

.page-wrapper .toast.error {
    border-left: 4px solid #ef4444;
}

.page-wrapper .toast-icon {
    font-size: 1.5rem;
}

.page-wrapper .toast.success .toast-icon {
    color: #10b981;
}

.page-wrapper .toast.error .toast-icon {
    color: #ef4444;
}

.page-wrapper .empty-state {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
}

.page-wrapper .empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Company Details Page Specific */
.page-wrapper .grid-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

.page-wrapper .card,
.page-wrapper .cardwide {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-wrapper .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.page-wrapper .card-body {
    padding: 1.5rem;
}

.page-wrapper .logo-section {
    text-align: center;
}

.page-wrapper .info-row {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.page-wrapper .info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-wrapper .info-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.page-wrapper .info-value {
    font-size: 1rem;
    color: #212529;
    font-weight: 500;
}

.page-wrapper .info-value a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.page-wrapper .info-value a:hover {
    color: #764ba2;
}

.page-wrapper .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.page-wrapper .project-card {
    background: white;
    border: 2px solid #e9ecef;
    border-left: 4px solid #11998e;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.page-wrapper .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left-color: #38ef7d;
}

.page-wrapper .project-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
    margin-bottom: 0.5rem;
}

.page-wrapper .project-meta {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.page-wrapper .preview-container {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.page-wrapper .preview-img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
}

/* Status Page Specific */
.page-wrapper .header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.page-wrapper .status-id {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.page-wrapper .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.page-wrapper .badge-bestellung { background: #dbeafe; color: #1e40af; }
.page-wrapper .badge-einkauf { background: #fef3c7; color: #92400e; }
.page-wrapper .badge-lager { background: #d1fae5; color: #065f46; }
.page-wrapper .badge-kommissionierung { background: #e0e7ff; color: #3730a3; }
.page-wrapper .badge-versand { background: #fce7f3; color: #831843; }
.page-wrapper .badge-abschluss { background: #d1fae5; color: #14532d; }
.page-wrapper .badge-retoure { background: #fee2e2; color: #991b1b; }
.page-wrapper .badge-reklamation { background: #fef2f2; color: #7f1d1d; }
.page-wrapper .badge-service { background: #e0f2fe; color: #075985; }

.page-wrapper input[type="file"] {
    display: none;
}

.page-wrapper .file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-wrapper .grid-layout,
    .page-wrapper .form-row,
    .page-wrapper .form-row-3 {
        grid-template-columns: 1fr;
    }

    .page-wrapper .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
