/* ==============================
   Allgemeine Stile (Basis)
   ============================== */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f1ece5;
    color: #333;
    display: flex;
    justify-content: center;


    /**background-image: url('gfx/background.jpg');   **/
    background-size: cover;  /* Skaliert das Bild so, dass es den ganzen Bildschirm bedeckt */
    background-position: center; /* Zentriert das Bild */
    background-repeat: no-repeat; /* Kein Wiederholen des Bildes */
    background-attachment: fixed; /* Hintergrund bleibt beim Scrollen fixiert */
}

/* Farbvariablen */
:root {
    --primary-green: #344b35;
    /* Gedecktes Grün */
    --secondary-bluegray: #607D8B;
    /* Blau/Grau */
    --light-gray: #e0e0e0;
    --white: #ffffff;
    --sand:#f8f4ed;
    --mobile-card-border-color: #9bb0b8;
}

/* ==============================
   Header (Kopfbereich)
   ============================== */
header {
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 15px;
    font-size: 22px;
    font-weight: bold;
}

h1 {
    font-size: 1.6em;
    color: #344b35;
    text-align: left;
}

h2 {
    color: #344b35;
}

h3 {
    margin-block-start: 0.41em;
    margin-block-end: 0.11em;
    color: #344b35;
}

/* ==============================
   Container für die Inhalte
   ============================== */
.container {
    width: 90%;
    max-width: 1200px;
    box-sizing: border-box;
    /* Begrenzung für große Bildschirme */
    background: white;
    padding: 20px;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);   */
    border-radius: 0px;
    line-height:1.45em;
}

.container a:not(.cta-button):not(.sort-link):not(.wildlist-sort-link):not(.extid-add-link):not(.extid-change-link):not(.strecken-wildart-toggle):not(.admin-task-card):not(.admin-filter-reset):not(.dashboard-drilldown-link):not(.dashboard-revier-name-link):not(.list-pagination-item):not(nav a):not(.burger-container a):not(.burger-menu a):not(.submenu a):not(.nav_footer a):not(.nav_footer_links a):not(.footer-burger-container a):not(.footer-burger-menu a) {
    color: #607D8B;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}
.container a:not(.cta-button):not(.sort-link):not(.wildlist-sort-link):not(.extid-add-link):not(.extid-change-link):not(.strecken-wildart-toggle):not(.admin-task-card):not(.admin-filter-reset):not(.dashboard-drilldown-link):not(.dashboard-revier-name-link):not(.list-pagination-item):not(nav a):not(.burger-container a):not(.burger-menu a):not(.submenu a):not(.nav_footer a):not(.nav_footer_links a):not(.footer-burger-container a):not(.footer-burger-menu a):hover {
    color: #4a6b50;
    text-decoration: none;
}

.ai-image {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0;
    line-height: 0;
}

.ai-image > img {
    display: block;
}

.ai-image-label {
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 1;
    padding: 1px 3px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.48);
    color: rgba(255, 255, 255, 0.9);
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .ai-image-label {
        padding: 1px 2px;
        font-size: 8px;
    }
}

/* ==============================
   Navigation
   ============================== */
nav {
    background-color: #344b35;
    padding: 15px;
    text-align: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 18px;
}



/* ==============================
   Allgemeine Stile (Basis)
   ============================== */

p{
    font-size:16px;
    line-height:1.4em;
    font-weight:400;
    margin-block-start: 0.21em;
    margin-block-end: 0.71em;
}

.button-followup-text {
    margin-block-start: 14px;
}

.pwa-migration-icon-comparison {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 18px 0;
}

.pwa-migration-icon-option {
    margin: 0;
    text-align: center;
}

.pwa-migration-icon-option img {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 6px;
    border-radius: 16px;
}

.pwa-migration-icon-option figcaption {
    font-size: 14px;
    font-weight: 600;
}

.pwa-migration-icon-arrow {
    font-size: 26px;
    line-height: 1;
}




.hero {
    background: linear-gradient(
        -10deg,
        #4a6b50 45%,
        #344b35 55%
    );
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 10px;
        background-image: url('gfx/header22.jpg');
        background-size: auto;  /* Skaliert das Bild so, dass es den ganzen Bildschirm bedeckt */
        background-position: center; /* Zentriert das Bild */
        background-repeat: no-repeat; /* Kein Wiederholen des Bildes */
        background-attachment: fixed; /* Hintergrund bleibt beim Scrollen fixiert */
        margin-top:50px;
}

@media (max-width: 1024px) {
    .hero {
        background-size: 100%; /* Bild wird vollständig gezeigt */
        background-repeat: no-repeat;
        background-position: center top;
        min-height: 250px; /* Kleinere Höhe verhindert Streckung */
    }
}

@media (max-width: 600px) {
    .hero {
        background-size: cover;
        background-position: center;
        min-height: 200px;
    }
}


.hero h1 {
    font-size: 2.0rem;
    margin-bottom: 1.2rem;
    color:#fff;

    text-align:center;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;

}

 .head_1 {
    font-size: 2.0rem;
    margin-bottom: 1.2rem;
    color: #fff;
    text-align: center;
    display: block;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}


.hero-overlay {
    background-color: rgba(0, 0, 0, 0.7); /* 70% durchlässiges Schwarz */
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
    max-width: 850px;
    margin: 0 auto;
}


@media (min-width: 601px) and (max-width: 1023px) {
    .logo-container {
        float: right;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin: 0;
    }

    nav {
        float: left;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin: 0;
    }

    .container::after {
        content: "";
        display: table;
        clear: both;
    }
}



@media (max-width: 768px) {
    .hero-overlay {
        width: 85%;
        padding: 1.5rem;
    }

    .head_1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .hero {
        background-size: cover;  /* Skaliert das Bild so, dass es den ganzen Bildschirm bedeckt */
        background-position: center; /* Zentriert das Bild */
        }
}




/* ==============================
   Formulare
   ============================== */
form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

input, select, button {
    padding: 14px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Button-Styling */
button {
    background-color: var(--secondary-bluegray);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding: 14px;
    transition: background 0.3s ease;
}

button:hover {
    background-color: var(--primary-green);
}

.auth-form {
    margin: 60px auto 0;
    max-width: 320px;
}

.auth-form.auth-form-followup {
    margin-top: 24px;
}

.auth-link-row {
    text-align: center;
}

.auth-message {
    max-width: 400px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 768px) {
    .auth-form {
        margin-top: 0;
    }

    .auth-form.auth-form-followup {
        margin-top: 20px;
    }
}

/* Einheitliche, ruhige Button-Typografie in der gesamten Anwendung. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font-weight: 400 !important;
}

.revierplanung-empty {
    padding: 14px;
    border: 1px solid #d6ded8;
    background: #f8faf7;
    color: #4b4b4b;
}

/* Wiederverwendbare Modul-Reiter mit optionaler Seitenaktion */
.module-tabs-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 16px;
}
.module-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
.module-tabs button {
    width: auto;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    font-weight: 400;
}
.module-tabs button:hover,
.module-tabs button:focus,
.module-tabs button.is-active {
    background: var(--primary-green);
    color: #fff;
}
.module-tabs-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.module-tabs-action > div,
.module-tabs-action-form {
    margin: 0;
    display: flex;
}
.module-tabs-primary-action {
    width: auto;
    min-width: 160px;
    margin-bottom: 0;
    font-weight: 400;
}
.module-tabs-primary-action:hover,
.module-tabs-primary-action:focus {
    background: var(--primary-green);
    color: #fff;
}

@media (max-width: 720px) {
    .module-tabs-topbar {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 6px;
        margin: 8px 0 10px;
    }
    .module-tabs {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        gap: 5px;
        overflow-x: auto;
        padding-bottom: 6px;
    }
    .module-tabs button {
        flex: 0 0 auto;
        justify-content: center;
        text-align: center;
        padding: 8px 10px;
        line-height: 1.2;
    }
    .module-tabs-action {
        width: 100%;
        flex: 1 0 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .module-tabs-action > div,
    .module-tabs-action-form {
        width: 100%;
        flex: 1 0 100%;
    }
    .module-tabs-primary-action {
        width: 100%;
        min-width: 0;
        padding: 8px 10px;
        line-height: 1.2;
        white-space: nowrap;
    }
}

.record-mobile-list {
    display: none;
}

.wb-form-panel--sand {
    padding: 10px;
    border: 1px solid #eee4d4;
    border-radius: 5px;
    background: var(--sand, #f8f4ed);
}

.table-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.table-action-buttons form {
    display: inline-flex;
    margin: 0;
}
.table-action-buttons a {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.table-action-button {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 7px 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.wb-action-buttons {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.wb-action-buttons form {
    display: inline-flex;
    margin: 0;
}

.customfield-form-section {
    margin: 28px 0;
}

.customfield-form-section h2 {
    margin-bottom: 12px;
}

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

.customfield-form-actions button {
    flex: 1 1 calc(50% - 5px);
    width: calc(50% - 5px);
    min-width: 0;
    margin: 0;
}

.customfield-table th:first-child,
.customfield-table td:first-child {
    width: 1%;
    white-space: nowrap;
}

.customfield-table th:last-child,
.customfield-table td:last-child {
    width: 84px;
    text-align: right;
}

.customfield-table td:last-child .wb-action-buttons {
    justify-content: flex-end;
}

.customfield-usage-count {
    margin-left: 4px;
    color: #666;
    font-weight: 400;
    white-space: nowrap;
}

.customfield-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mobile-row.customfield-mobile-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.wb-dialog-overlay {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(31, 42, 48, 0.52);
}
.wb-dialog-overlay.is-open {
    display: flex;
}
.wb-dialog {
    width: min(920px, 100%);
    max-height: min(82vh, 720px);
    overflow: auto;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #344b35;
    background: #fff;
    color: #1b2f1f;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}
.wb-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.wb-dialog-title {
    font-weight: 700;
}
.wb-dialog-close {
    width: auto;
    margin: 0;
    padding: 6px 10px;
    font-weight: 400;
}
.wb-dialog-body {
    overflow-wrap: anywhere;
    line-height: 1.45;
}
.wb-dialog--stable-content {
    height: min(500px, calc(100vh - 36px));
}

table tr.wb-table-row--odd {
    background-color: #fff;
}

table tr.wb-table-row--even {
    background-color: #f2f2f2;
}

.wb-table-detail-row > td.wb-table-detail-cell {
    padding: 0 7px 6px;
}

table tr.wb-table-row--has-detail > td {
    border-bottom: 0;
}

table tr.wb-table-row--middle > td {
    vertical-align: middle;
}

.wb-table-detail-content {
    display: grid;
    gap: 2px;
    font-size: 13px;
    line-height: 1.35;
}

.wb-table-detail-item {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .wb-dialog-overlay {
        align-items: flex-start;
        justify-content: center;
        overflow: auto;
        padding: 60px 10px 10px;
    }
    .wb-dialog {
        width: 100%;
        max-height: calc(100dvh - 70px);
        padding: 10px;
    }
    .wb-dialog-head {
        align-items: flex-start;
        margin-bottom: 8px;
    }
    .wb-dialog-title {
        padding-top: 5px;
        line-height: 1.25;
    }
    .wb-dialog-close {
        flex: 0 0 auto;
        padding: 6px 9px;
    }
    .wb-dialog--stable-content {
        height: auto;
    }
}

.wb-action-icon-button {
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    min-width: 28px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 5px;
    background: var(--secondary-bluegray);
    color: var(--white);
    cursor: pointer;
    line-height: 0;
    text-decoration: none;
    vertical-align: middle;
}

.wb-action-icon-button:hover,
.wb-action-icon-button:focus {
    background: var(--primary-green);
    text-decoration: none;
}

.wb-action-icon-button--attention {
    background: #c87500;
}

.wb-action-icon-button--attention:hover,
.wb-action-icon-button--attention:focus {
    background: #9f5d00;
}

.wb-action-icon-button--reverse {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.wb-action-icon-button--reverse .wb-action-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(49%) sepia(14%) saturate(780%) hue-rotate(153deg) brightness(91%) contrast(87%);
}

.wb-action-icon-button--reverse:hover,
.wb-action-icon-button--reverse:focus {
    background: transparent;
}

.wb-action-icon-button--reverse:hover .wb-action-icon,
.wb-action-icon-button--reverse:focus .wb-action-icon {
    filter: brightness(0) saturate(100%) invert(24%) sepia(16%) saturate(724%) hue-rotate(74deg) brightness(91%) contrast(88%);
}

.wb-action-icon-button--reverse-large {
    width: 28px;
    height: 28px;
    min-width: 28px;
}

.wb-action-icon-button--reverse-large .wb-action-icon {
    width: 22px;
    height: 22px;
}

.wb-action-cell {
    text-align: right;
}

table th.wb-action-cell,
table td.wb-action-cell {
    text-align: right;
}

.wb-action-cell .wb-action-buttons {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

button.wb-action-icon-button {
    font-size: 0;
    font-weight: normal;
}

.wb-action-icon {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) invert(1);
}

.wb-switch {
    position: relative;
    display: inline-block;
    flex: 0 0 52px;
    width: 52px;
    height: 28px;
    margin: 0;
}

.wb-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.wb-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background-color: #c6d1c6;
    cursor: pointer;
    transition: 0.2s;
}

.wb-switch-slider::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #fff;
    content: "";
    transition: 0.2s;
}

.wb-switch input:checked + .wb-switch-slider {
    background-color: #4a6b50;
}

.wb-switch input:checked + .wb-switch-slider::before {
    transform: translateX(24px);
}

.wb-switch input:disabled + .wb-switch-slider {
    opacity: 0.55;
    cursor: not-allowed;
}

.weight-scale-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.weight-scale-control {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.weight-scale-control .wb-switch {
    flex-basis: 36px;
    width: 36px;
    height: 20px;
}

.weight-scale-control .wb-switch-slider::before {
    width: 14px;
    height: 14px;
}

.weight-scale-control .wb-switch input:checked + .wb-switch-slider::before {
    transform: translateX(16px);
}

.weight-scale-save-status {
    color: #a24100;
    font-size: 12px;
    font-weight: 400;
}

/* ==============================
   Tabellen-Styling
   ============================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 9px;
    border: 0px solid #ddd;
    text-align: left;
}

th {
    background-color: #344b35;
    color: white;
    font-size: 16px;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* ==============================
   Responsive Design - Mobile Optimierung
   ============================== */

.nav_footer {
    text-align: right;     /* Zentriert die Links im Container */
    margin-top: 2rem;       /* Etwas Abstand nach oben */
}

.nav_footer a {
    color: #333333;         /* Dunkelgrau */
    text-decoration: none;  /* Keine Unterstreichung */
    margin: 0 0.5rem;       /* Etwas Abstand zwischen den Links */
}

.nav_footer a:hover {
    color: #000000;         /* Schwarz beim Hover */
    text-decoration: none;  /* Sicherstellen, dass auch beim Hover keine Linie erscheint */
}


/* ================ Dashboard Grid =========== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 20px;
}

.dashboard-card {
    background: white;
    /**padding: 8px;**/
    border-radius: 2px;
    /**box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); **/
}


/* Dashboard-Kacheln */
.dashboard-card {
    border: 0px solid #344b35;
    border-radius:5px;
    margin-bottom: 15px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Header mit Klick-Funktion */
.card-header {
    background: #344b35;
    color: white;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Inhalt der Kachel */
.card-content {
    /*padding: 10px; */
    display: none; /* Standard: Eingeklappt */
}

/* Animation */
.card-content.show {
    display: block;
}

.dashboard-card .card-content > button.dashboard-card-action-button {
    margin-top: 16px;
}

.dashboard-card .card-content > p.dashboard-card-action-lead {
    margin-bottom: 0;
}

/* Icon für den Ein-/Ausklapp-Status */
.toggle-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* Gedrehte Pfeil-Animation */
.card-header.open .toggle-icon {
    transform: rotate(180deg);
}

button.dashboard-drag-handle {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -5px 2px -5px auto;
    padding: 5px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: grab;
    line-height: 0;
    touch-action: none;
}

button.dashboard-drag-handle:hover,
button.dashboard-drag-handle:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.dashboard-drag-handle img {
    display: block;
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.card-header .toggle-icon {
    flex: 0 0 auto;
    margin-left: 2px;
}

.dashboard-card--dragging {
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    cursor: grabbing;
    transition: none;
}

.dashboard-card--dragging .card-content {
    display: none;
}

.dashboard-card-placeholder {
    box-sizing: border-box;
    border: 2px dashed var(--secondary-bluegray);
    background: #f4f8f0;
    overflow: hidden;
}

.dashboard-card-drag-active {
    user-select: none;
}

.dashboard-card-drag-active button.dashboard-drag-handle {
    cursor: grabbing;
}

.dashboard-order-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dashboard-order-status--error {
    position: relative;
    width: auto;
    height: auto;
    margin: 12px 0 0;
    padding: 10px;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.dashboard-wildart-order table {
    margin-top: 0;
}

.dashboard-card .card-content td {
    padding-top: 7px;
    padding-bottom: 7px;
}

.dashboard-parts-table {
    display: table;
    table-layout: auto;
    overflow: visible;
    white-space: normal;
}

.dashboard-parts-table tbody {
    display: table-row-group;
}

.dashboard-parts-table tr {
    display: table-row;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
}

.dashboard-parts-table td {
    display: table-cell;
    width: auto;
}

.dashboard-parts-table td:first-child {
    padding-right: 4px;
}

.dashboard-parts-table td:last-child {
    width: 1%;
    padding-right: 6px;
    padding-left: 1px;
    text-align: right;
    white-space: nowrap;
}

.dashboard-card .card-content > :first-child {
    margin-top: 0;
}

.dashboard-card .card-content > p.dashboard-card-empty-state:first-child {
    margin-top: 16px;
}

.dashboard-card .card-content > h1:first-child,
.dashboard-card .card-content > h2:first-child,
.dashboard-card .card-content > h3:first-child,
.dashboard-card .card-content > h4:first-child,
.dashboard-card .card-content > h5:first-child,
.dashboard-card .card-content > h6:first-child {
    margin-top: 16px;
}

.dashboard-storage-parent-row td:first-child {
    width: 70%;
    font-weight: 700;
}

.dashboard-storage-parent-row--toggleable td:first-child::before {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin-right: 4px;
    content: "";
    background-color: currentColor;
    -webkit-mask: url("icons/ui/corner-down-right.svg") center / contain no-repeat;
    mask: url("icons/ui/corner-down-right.svg") center / contain no-repeat;
    vertical-align: -0.18em;
    visibility: visible;
}

.dashboard-storage-parent-row--toggleable[aria-expanded="true"] td:first-child::before {
    -webkit-mask-image: url("icons/ui/corner-left-up.svg");
    mask-image: url("icons/ui/corner-left-up.svg");
}

.dashboard-storage-parent-row[data-storage-toggle-ready="1"] {
    cursor: pointer;
}

.dashboard-storage-child-row td:first-child {
    font-weight: 400;
}

.dashboard-storage-child-row[hidden] {
    display: none;
}

.dashboard-storage-child-label {
    display: inline-block;
    margin-left: calc(1.1em + 4px);
}

.dashboard-storage-parent-meta-cell {
    width: 30%;
    white-space: nowrap;
}

.dashboard-storage-parent-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.dashboard-storage-list-link.wb-action-icon-button {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.dashboard-storage-list-link .wb-action-icon {
    width: 16px;
    height: 16px;
}

.dashboard-card .dashboard-storage-row--odd {
    background-color: var(--white);
}

.dashboard-card .dashboard-storage-row--even {
    background-color: #f2f2f2;
}

.dashboard-wildart-sort-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 1px;
    margin-left: auto;
}

button.dashboard-wildart-sort-button {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 32px;
    margin: -5px 0;
    padding: 5px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    line-height: 0;
}

button.dashboard-wildart-sort-button:hover,
button.dashboard-wildart-sort-button:focus-visible,
button.dashboard-wildart-sort-button.is-active {
    background: rgba(255, 255, 255, 0.16);
}

button.dashboard-wildart-sort-button:disabled {
    background: transparent;
    cursor: default;
    opacity: 0.35;
}

.dashboard-wildart-sort-button img {
    display: block;
    width: 21px;
    height: 21px;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.dashboard-wildart-sort-actions + button.dashboard-drag-handle {
    margin-left: 1px;
}

.dashboard-wildart-name {
    width: auto;
}

.dashboard-wildart-name-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.dashboard-wildart-count {
    width: 1%;
    text-align: right;
    white-space: nowrap;
}

.dashboard-wildart-count > span {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

button.dashboard-wildart-drag-handle {
    display: inline-flex;
    position: relative;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 1px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--secondary-bluegray);
    cursor: grab;
    line-height: 0;
    touch-action: none;
}

button.dashboard-wildart-drag-handle::before {
    content: '';
    position: absolute;
    inset: -5px;
}

button.dashboard-wildart-drag-handle:hover,
button.dashboard-wildart-drag-handle:focus-visible {
    background: transparent;
    color: var(--primary-green);
}

.dashboard-wildart-drag-icon {
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url('icons/ui/drag-drop-2.svg') center / contain no-repeat;
    mask: url('icons/ui/drag-drop-2.svg') center / contain no-repeat;
    pointer-events: none;
}

.dashboard-wildart-row--dragging {
    display: table !important;
    table-layout: fixed;
    background: #344b35 !important;
    color: var(--white);
    opacity: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    cursor: grabbing;
    transition: none;
}

.dashboard-wildart-row--dragging td {
    display: table-cell !important;
    box-sizing: border-box;
    background: #344b35;
}

.dashboard-wildart-row--dragging .dashboard-drilldown-link,
.dashboard-wildart-row--dragging button.dashboard-wildart-drag-handle {
    color: var(--white);
}

.dashboard-wildart-row-placeholder {
    background: #f4f8f0 !important;
}

.dashboard-wildart-row-placeholder td {
    box-sizing: border-box;
    height: inherit;
    padding: 0;
    border: 2px dashed var(--secondary-bluegray);
    background: #f4f8f0;
}

.dashboard-wildart-drag-active {
    user-select: none;
}

.dashboard-wildart-drag-active button.dashboard-wildart-drag-handle {
    cursor: grabbing;
}

.dashboard-wildart-order-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dashboard-wildart-order-status--error {
    position: relative;
    width: auto;
    height: auto;
    margin: 12px 0 0;
    padding: 10px;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

#module-reviere .dashboard-revier-name-link,
.dashboard-drilldown-link {
    color: #607D8B;
    font-weight: 400;
    text-decoration: none;
}

#module-reviere .dashboard-revier-name-link:hover,
.dashboard-drilldown-link:hover {
    color: #4a6b50;
    text-decoration: underline;
}

.dashboard-request-date,
.dashboard-request-name,
.dashboard-request-price {
    font-size: 0.9em;
}

.dashboard-request-date {
    box-sizing: border-box;
    width: 70px;
}

.dashboard-request-name {
    min-width: 130px;
}

.dashboard-request-price {
    max-width: 50px;
    text-align: right;
}

.dashboard-card .card-content .dashboard-request-action {
    box-sizing: border-box;
    width: 30px;
    padding: 4px 0;
    text-align: right;
}

@media (max-width: 768px) {
    .dashboard-request-row {
        display: flex;
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
        padding: 0;
    }

    .dashboard-request-date {
        flex: 0 0 82px;
        width: 82px;
        padding-right: 4px;
        padding-left: 0;
    }

    .dashboard-request-name {
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 4px;
        padding-left: 4px;
        overflow: hidden;
    }

    .dashboard-request-name .dashboard-drilldown-link {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-request-price {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        padding-right: 4px;
        padding-left: 4px;
        white-space: nowrap;
    }

    .dashboard-card .card-content .dashboard-request-action {
        display: flex;
        flex: 0 0 32px;
        align-items: center;
        justify-content: flex-end;
        width: 32px;
        max-width: 32px;
        padding: 4px 0 4px 4px;
    }
}

/* Desktop-Tabelle Dashboard bleibt unverändert */
#table-dashboard table {
    width: 100%;
    border-collapse: collapse;
}

#table-dashboard table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

#table-dashboard table td:first-child {
    font-weight: bold;
    color: #344b35;
    width: 50%; /* Bezeichnung nimmt 50% */
}

#table-dashboard table td:last-child {
    text-align: right;
    width: 50%; /* Wert nimmt 50% */
}


.small_p {
    font-size:0.85em;
}

.legende{
    font-size:0.85em;
    margin:14px 0;
}

.close-x {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}
.close-x:hover {
    color: #000;
}

.info-box {
    position: relative;
}



/* ==============================
   Tabellen-Styling (Desktop-Ansicht)
   ============================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* ==============================
   Formular-Design
   ============================== */


input, select, button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    border: none;
    cursor: pointer;
}

.add label{
    font-weight:600;
}

.hinweis_trial {
    border: 3px #344b35 dotted;
    padding: 20px;
    color: #616060;
    margin: 20px 5px;
}

.hinweis_storage {
    border: 3px #344b35 dotted;
    padding: 20px;
    color: #000;
    margin: 20px 5px;
}

.trial_headline {
    margin-top: 30px;
    font-size: 1.2em;
    color: #d49a00;
    font-weight: 600;
    margin: 20px 12px;
}

/* ==============================
   Responsive Design - Tablet & Mobile Optimierung
   ============================== */




/* Standard: Logo über dem Menü zentrieren */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1px 0;
    float: right;
    min-height: 60px;
}

.wildfleisch-logo {
    max-width: 250px;
    /* Standardgröße für Desktop */
    height: auto;
}

/* Tablet & Mobile: Logo um die Hälfte kleiner machen */


.icon_work {
    max-width: 20px;
}

/* Standardmäßig ist die mobile Tabelle ausgeblendet */
.mobile-table {
    display: none;
}

/* Mobile-Tabelle auf kleinen Bildschirmen aktivieren */



.hinweis_box {
    border: 3px #344b35 dotted;
    padding: 20px;
    font-size: 1.1em;
    color: #ff0000;
    max-width: 800px;
    line-height: 1.4em;
}



/** edit diary code **/

/* Standardmäßig Desktop-Formular anzeigen, Mobile-Formular ausblenden */
.desktop-form {
    display: block;
}

.mobile-form {
    display: none;
}


.filter-grid {
    display: grid;
    gap: 5px;
}



.copy-selection-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: stretch;
    margin-bottom: 30px;
}

.copy-form select,
.copy-form button {
    font-size: 1em;
    padding: 10px 12px;
    height: 44px;
    min-width: 320px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom:0px;
}

.copy-or {
    font-size: 1em;
    text-align: center;
    color: #555;
}


@media (min-width: 768px) {

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .copy-selection {
        flex-direction: row;
        align-items: center;
    }

    .copy-selection form {
        margin: 0;
    }

    .copy-or {
        font-size: 1em;
        text-align: center;
        padding: 0 15px;
    }

    .copy-selection-wrapper {
        flex-direction: row;
        align-items: center;
    }



}

 .info-box-no,
 .info-box-hint {
    position: relative;
    background: #ffeac7;
    border-left: 4px solid #ff9c01;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 1.0em;
}

 .info-box {
    background: #f0f8e0;
    border-left: 4px solid #344b35;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 1.0em;
}

.account-offer-note {
    clear: both;
    margin: 10px 0 20px;
    padding: 10px;
    border-left: 4px solid #6f8792;
    background: #f3f6f7;
    color: #20343b;
    font-size: 1.0em;
}

.account-offer-note h2 {
    margin: 0 0 8px;
    font-size: 1.2em;
}

.account-offer-note p {
    margin: 0 0 7px;
    line-height: 1.35;
}

.account-offer-note p:last-child {
    margin-bottom: 0;
}

.close-button {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #155724;
}

.close-link {
    display: inline-block;
    margin-left: 1rem;
    font-size: 0.9rem;
    color: #155724;
    text-decoration: none;
    cursor: pointer;
}

.remind_list{
    border-left: 4px solid #ff9c01;
}

.info-box-hint p {
    margin: 0;
}

.requested_list{
    border-left: 4px solid #2f80ed;
}

.remind_list.requested_list{
    border-left: 4px solid #ff9c01;
    box-shadow: inset 4px 0 0 #2f80ed;
    padding-left: 6px;
}


.share-mobile {
    display: none;
}

/* Ab 1024px aufwärts: Desktop sichtbar, Mobile versteckt */


/* Unter 1024px: Mobile sichtbar, Desktop versteckt */


hr {
 width: 100%;
 height: 1px;
 background-color:#344b35;
 border: none;
 margin:20px 0;
}


.small {
    font-size:0.8em;
}

.pagination {
    padding: 15px;
}


@media (max-width: 768px)  {

    .head_1 {

    line-height: 1.3em;
}

    /* Kleineren Header verwenden */
    header {
        font-size: 18px;
        padding: 10px;
    }

    .hero{
        margin-top:10px;
    }

    .share-mobile {
        display: block;  
        margin: 30px 0;
        text-align: center;
    }

    /* Tabelle responsive machen */
    .table-responsive {
        overflow-x: auto;
        width: 100%;
    }
    table {
        width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    th, td {
        font-size: 14px;
        padding: 10px;
    }
    /* Formulare verbessern */
    input, select, button {
        font-size: 14px;
        padding: 12px;
    }
    .table-desktop {
        display: none;
    }
    .table-mobile {
        display: block;
    }
    h1 {
        font-size: 1.5em;
        color: #344b35;
        text-align: left;
        margin-bottom: 12px;
        margin-top: 10px;
        margin-left:0px;
        line-height:1.3em;
    }

    h2 {
        font-size: 1.3em;
        color: #344b35;
        text-align: left;
        margin-bottom: 12px;
        margin-top: 10px;
        margin-left:0px;
        line-height:1.3em;
    }
    /* Mobile-Ansicht */
    .container {
        width: 98%;
        padding: 15px;
        margin-top:0px;
        padding-top:4px;
    }
    /* Tabelle für mobile Ansicht anpassen */
    .table-responsive {
        overflow-x: auto;
        display: block;
    }
    table, thead, tbody, th, td, tr {
        display: block;
        box-sizing: border-box;
    }
    thead {
        display: none;
    }
    tr {
        margin-bottom: 12px;
        border: 0px solid #ddd;
        padding: 10px;
        border-radius: 6px;
        background: white;
    }
    td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
    }
    td::before {
        content: attr(data-label);
        font-weight: bold;
        flex: 1;
    }
    /* Buttons & Formulare für Mobile optimieren */
    input, select, button {
        font-size: 16px;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    .table-action-buttons form {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }
    .table-action-buttons .table-action-button {
        width: 100%;
        white-space: normal;
    }
    button {
        font-size: 16px;
        padding: 14px;
        background-color: #607D8B;
        color: white;
        border: none;
        cursor: pointer;
        font-weight: bold;
        transition: background 0.3s ease;
    }
    button:hover {
        background-color: #344b35;
    }

    .logo-container {
        min-height: 0px;
        float: none;
    }

    .wildfleisch-logo {
        max-width: 170px;
        height: auto;
    }

    .hinweis_trial {
        border: 3px #344b35 dotted;
        padding: 20px;
        color: #616060;
        margin: 20px 5px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    tr {
        margin-bottom: 1px;
    }

    .dashboard-card {
        padding: 10px;
    }

    .dashboard-grid .dashboard-card[data-dashboard-card] {
        padding: 0;
    }
    .legende{
     display:none;
}

}

@media (max-width: 480px)  {
    /* Extra Anpassungen für sehr kleine Displays */
    body {
        font-size: 16px;
    }
    .legende{
    display:none;
}
    /* Tabellen als Karten darstellen */
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }
    tr {
        margin-bottom: 12px;
        border: 1px solid var(--light-gray);
        padding: 12px;
        border-radius: 6px;
        background: var(--white);
    }
    td {
        /*display: flex;*/
        justify-content: space-between;
        padding: 10px;
    }
    td::before {
        content: attr(data-label);
        font-weight: bold;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .module-card-selection-table {
        display: table;
        width: 100%;
    }
    .module-card-selection-table thead {
        display: table-header-group;
    }
    .module-card-selection-table tbody {
        display: table-row-group;
    }
    .module-card-selection-table tr {
        display: table-row;
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
    }
    .module-card-selection-table th,
    .module-card-selection-table td {
        display: table-cell;
        width: auto;
        padding: 9px;
        vertical-align: middle;
    }
    .module-card-selection-table th:last-child,
    .module-card-selection-table td:last-child {
        width: 100px;
        text-align: center;
    }
}

@media (max-width: 1024px)  {
    /* Tablet-Ansicht */
    .container {
        margin-top:0px;
        /*width: 95%;
        padding: 15px; */
    }
    form {
        /*max-width: 500px;
        */
        max-width: width: 95%;
    }
    table {
        font-size: 14px;
    }
    .desktop-table {
        display: none;
    }
    .mobile-table {
        display: block;
        /* Mobile Tabelle anzeigen */
        margin-top: 8px;
    }
    .mobile-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Zweispaltige Darstellung */
        gap: 5px;
        background: #fff;
        margin-bottom: 10px;
        padding: 5px;
        /**border: 1px solid #ddd;
        **/
        border-radius: 6px;
        border: 1px solid var(--mobile-card-border-color);
    }
    .mobile-row.compact {
        grid-template-columns: 30% 70%;
    }
    .mobile-column-left {
        font-weight: bold;
        color: #344b35;
        background: #f4f4f4;
        padding: 5px;
        border-radius: 4px 0 0 4px;
    }
    .mobile-column-right {
        background: white;
        padding: 5px;
        border-radius: 0 4px 4px 0;
    }
    .record-mobile-list {
        display: block;
        margin-top: 8px;
    }
    .record-mobile-card {
        background: #fff;
        border: 1px solid var(--mobile-card-border-color);
        border-radius: 6px;
        margin-bottom: 10px;
        padding: 10px 12px;
    }
    .record-mobile-list--striped > .record-mobile-card:nth-child(even) {
        background: #f2f2f2;
    }
    .record-mobile-card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }
    .record-mobile-title {
        display: flex;
        gap: 8px;
        min-width: 0;
        color: #1f2a30;
        font-weight: 700;
        line-height: 1.25;
    }
    .record-mobile-index {
        flex: 0 0 auto;
        color: #344b35;
    }
    .record-mobile-title-text {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .record-mobile-status {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
    }
    .record-mobile-header-status {
        margin-left: auto;
        flex: 0 0 auto;
    }
    .record-mobile-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 8px;
    }
    .record-mobile-meta-item {
        background: #f4f4f4;
        border-radius: 5px;
        padding: 7px 8px;
        min-width: 0;
    }
    .record-mobile-meta-label {
        display: block;
        color: #344b35;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
    }
    .record-mobile-meta-value {
        display: block;
        color: #1f2a30;
        overflow-wrap: anywhere;
    }
    .record-mobile-description {
        margin-top: 8px;
        color: #4b4b4b;
        overflow-wrap: anywhere;
    }
    .record-mobile-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        flex-wrap: wrap;
    }
    .record-mobile-action-row {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 10px;
    }
    .record-mobile-action-row .record-mobile-action-button {
        flex: 1 1 58px;
        min-width: 58px;
        margin: 0;
        padding: 8px 7px;
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .record-mobile-line-text {
        flex: 1 1 auto;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #1f2a30;
        font-size: 14px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
    .record-mobile-icon-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        line-height: 0;
    }
    .record-mobile-icon-link img {
        width: 30px;
        height: auto;
    }
    .record-mobile-facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.25;
        color: #4b4b4b;
    }
    .record-mobile-facts strong {
        display: block;
        color: #1f2a30;
        font-weight: 700;
    }
    .record-mobile-actions a {
        display: inline-flex;
        align-items: center;
        line-height: 0;
    }
    .record-mobile-action-row .record-mobile-actions {
        flex: 0 0 auto;
        margin-top: 0;
    }
    .record-mobile-action-button {
        width: auto;
        min-width: 74px;
        padding: 7px 10px;
        line-height: 1.2;
        white-space: nowrap;
    }
    .record-mobile-warning {
        display: block;
        margin-top: 5px;
        color: #b00020;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
    }
}

@media (min-width: 1024px)  {
    .desktop-form {
        display: block;
    }
    .mobile-form {
        display: none;
    }
}

@media (max-width: 1023px)  {
    .desktop-form {
        display: none;
    }
    .mobile-form {
        display: block;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .logo-container {
        float: right;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
    }

    nav {
        clear: none;
        float: left;
        width: auto;
        display: flex;
        align-items: center;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
    }

    nav li {
        display: inline-block;
        margin-right: 1rem;
    }
}



.toggle-read-more {
    color: #006400;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    font-size: 1.05em;
    }

    .toggle-read-more:hover {
        text-decoration: none;
    }


/**.toggle-read-more {
    color: #006400;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.toggle-read-more:hover {
    text-decoration: none;
}
**/

.toggle-arrow {
    font-size: 0.9em;
    display: inline-block;
    transition: transform 0.9s ease;
    line-height: 1;
}

/* Kunden- und Kontaktverwaltung */
.contact-management-tools {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 0 0 12px;
}

.contact-management-tools input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0 12px;
    font-family: inherit;
}

.contact-management-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 180px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0 16px;
    white-space: nowrap;
}

.contact-management-create img {
    display: block;
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.contact-management-table-scroll {
    overflow-x: auto;
}

.contact-management-table {
    table-layout: fixed;
}

.contact-management-index {
    width: 38px;
    text-align: right;
    white-space: nowrap;
}

.contact-management-name {
    width: 16%;
    overflow-wrap: anywhere;
}

.contact-management-contact {
    width: 22%;
    overflow-wrap: anywhere;
}

.contact-management-type {
    width: 130px;
}

.contact-management-revenue-column {
    width: 120px;
}

.contact-management-favorite {
    width: 105px;
}

.contact-management-favorite-label {
    white-space: nowrap;
}

.contact-management-actions-cell {
    width: 95px;
    text-align: right;
    white-space: nowrap;
}

.contact-management-note {
    color: #667;
    font-size: 13px;
    line-height: 1.35;
}

.contact-management-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.contact-management-actions form {
    display: inline-flex;
    width: 28px;
    height: 28px;
    margin: 0;
}

.contact-management-dialog {
    width: min(820px, 100%);
}

.contact-management-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.contact-management-form-grid input,
.contact-management-form-grid textarea {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    font-family: inherit;
}

.contact-management-form-grid input {
    height: 40px;
    min-height: 40px;
}

.contact-management-form-grid textarea {
    grid-column: 1 / -1;
    min-height: 90px;
    resize: vertical;
}

.contact-management-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.contact-management-form-actions button {
    width: auto;
    min-width: 180px;
    margin: 0;
}

.contact-management-empty {
    display: none;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid #d7ddd7;
    border-radius: 6px;
    background: #f7f9f7;
    color: #344b35;
}

.contact-management-card-header {
    margin: 18px 0;
}

.request-contact-action-form {
    display: inline-flex;
    margin: 0;
}

.request-contact-choice-form {
    display: grid;
    gap: 10px;
}

.request-contact-choice-form select,
.request-contact-choice-form .btn {
    width: 100%;
    margin: 0;
}

.contact-management-name-link {
    color: #344b35;
    font-weight: 400;
    text-decoration: none;
}

.contact-management-name-link:hover,
.contact-management-name-link:focus {
    color: #4a6b50;
    text-decoration: underline;
    background: transparent;
}

.contact-management-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #4a6b50;
    text-decoration: none;
}

.contact-management-whatsapp-link img {
    flex: 0 0 auto;
    vertical-align: middle;
}

.contact-management-whatsapp-link:hover,
.contact-management-whatsapp-link:focus {
    text-decoration: underline;
}

.contact-management-revenue {
    font-weight: 700;
    white-space: nowrap;
}

.customer-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.customer-detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.customer-detail-actions form {
    display: inline-flex;
    margin: 0;
}

.customer-detail-actions .customer-detail-button {
    width: auto;
    margin: 0;
    padding: 10px 14px;
    white-space: nowrap;
}

.customer-detail-actions .customer-detail-button-secondary {
    border: 1px solid #bfc8cd;
    background: #eef2f3;
    color: #26363d;
}

.customer-order-actions-cell {
    width: 120px;
    text-align: right;
    white-space: nowrap;
}

.customer-order-actions-cell form {
    display: inline-flex;
    margin: 0;
}

.customer-order-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: nowrap;
}

.customer-order-actions > .wb-action-icon-button,
.customer-order-actions > form,
.customer-order-actions > form > .wb-action-icon-button {
    flex: 0 0 auto;
    margin: 0;
    vertical-align: middle;
}

.customer-order-link {
    color: #4a6b50;
    font-weight: 400;
    text-decoration: underline;
}

.customer-order-link:hover,
.customer-order-link:focus {
    color: #6d8998;
}

.customer-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 20px;
}

.customer-stat-card {
    padding: 14px;
    border: 1px solid #d7ddd7;
    border-radius: 8px;
    background: #f7f9f7;
}

.customer-stat-card strong,
.customer-stat-card span {
    display: block;
}

.customer-stat-card strong {
    margin-top: 4px;
    color: #344b35;
    font-size: 20px;
}

.customer-stat-card strong small {
    color: #4b4b4b;
    font-weight: 400;
}

.customer-order-deleted {
    color: #7a4a4a;
}

@media (max-width: 900px) {
    .contact-management-tools {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 14px;
        padding: 10px;
        border: 1px solid #d7ddd7;
        border-radius: 8px;
        background: #f7f9f7;
    }

    .contact-management-tools input {
        height: 48px;
        min-height: 48px;
        font-size: 16px;
    }

    .contact-management-create {
        width: 100%;
        min-width: 0;
        height: 44px;
        min-height: 44px;
    }

    .contact-management-create img {
        width: 22px;
        height: 22px;
    }

    .contact-management-form-grid input,
    .contact-management-form-grid textarea {
        min-height: 48px;
        font-size: 16px;
    }
}

@media (max-width: 760px) {
    .customer-detail-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
    }

    .customer-detail-actions {
        display: grid;
        align-self: stretch;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        justify-content: stretch;
    }

    .customer-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 10px 0 14px;
    }

    .customer-stat-card {
        padding: 9px 10px;
    }

    .customer-stat-card:last-child {
        grid-column: 1 / -1;
    }

    .customer-stat-card strong {
        margin-top: 2px;
        font-size: 17px;
    }

    .customer-stat-card span,
    .customer-stat-card small {
        font-size: 12px;
    }

    .customer-detail-actions .customer-detail-button,
    .customer-detail-actions form,
    .customer-detail-actions .customer-detail-button:only-child {
        width: 100%;
    }

    .customer-detail-actions .customer-detail-button {
        box-sizing: border-box;
        min-width: 0;
        max-width: none;
        min-height: 42px;
    }
}

@media (max-width: 600px) {
    .contact-management-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-management-form-grid textarea {
        grid-column: auto;
    }

    .contact-management-form-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-management-form-actions button {
        width: 100%;
        min-width: 0;
    }
}

/* Gemeinsame Karten- und Formularaktionen für Reviere und Revierpunkte. */
.revier-map-actions,
.revierpunkt-coordinate-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0 0;
}

.revier-map-control,
.revierpunkt-map-control,
.revier-boundary-context-save {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 8px;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    font-weight: 400;
    white-space: nowrap;
}

.revier-form-actions,
.revierpunkt-form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
}

.revier-form-actions button,
.revierpunkt-form-actions button {
    flex: 1 1 calc(50% - 5px);
    width: calc(50% - 5px);
    min-width: 0;
    margin: 0;
    padding: 8px;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    font-weight: 400;
}

body.revier-form-fullscreen-mode .revier-map-actions,
body.revierpunkt-fullscreen-mode .revierpunkt-coordinate-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

body.revier-form-fullscreen-mode .revier-map-control,
body.revierpunkt-fullscreen-mode .revierpunkt-map-control {
    width: 100%;
    min-width: 0;
}

body.revier-form-fullscreen-mode .revier-form-actions,
body.revierpunkt-fullscreen-mode .revierpunkt-form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.revier-form-fullscreen-mode .revier-form-actions button,
body.revierpunkt-fullscreen-mode .revierpunkt-form-actions button {
    width: 100%;
}

@media (max-width: 700px) {
    .revier-map-actions,
    .revierpunkt-coordinate-actions {
        grid-column: 1 / -1;
    }

    .revier-map-control,
    .revierpunkt-map-control,
    body.revier-form-fullscreen-mode .revier-map-control,
    body.revierpunkt-fullscreen-mode .revierpunkt-map-control {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    body.revierpunkt-fullscreen-mode {
        --revierpunkt-fullscreen-width: min(190px, 48vw) !important;
    }

    body.revierpunkt-fullscreen-mode .revierpunkt-coordinate-actions,
    body.revierpunkt-fullscreen-mode .revierpunkt-form-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}






