/* ================================================================
   Design tokens — Farben zentral pflegen, nicht als Hex wiederholen
   ================================================================ */
:root {
    --snp-navy: #2F4858;
    --snp-navy-deep: #1E3448;
    --snp-navy-darker: #1A2E42;
    --snp-ink: #1A2836;
    --snp-accent: #F6AE2D;
    --snp-accent-hover: #E09D1E;
    --snp-accent-strong: #F26419;
    /* Amber als Textfarbe auf hellem Grund (≥ 4.5:1); --snp-accent nur auf dunklem Grund */
    --snp-accent-text: #9A5B05;
    --snp-blue: #33658A;
    --snp-link: #2E6DA4;
    --snp-bg: #F4F6F8;
    --snp-gray-50: #F9FAFB;
    --snp-gray-100: #F3F4F6;
    --snp-gray-200: #E5E7EB;
    --snp-gray-300: #D1D5DB;
    --snp-gray-400: #9CA3AF;
    --snp-gray-500: #6B7280;
    --snp-gray-600: #4B5563;
    --snp-gray-700: #374151;
    --snp-gray-900: #111827;
    --snp-danger: #DC3545;
    /* Eine Inhaltsbreite für Nav, Hero, Inhalt und Footer → gemeinsame linke Kante */
    --snp-content-width: 1100px;
}

@media (max-width: 600px) {
    .navbar-nav .nav-item {
        margin-bottom: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-nav .nav-link {
        text-align: center;
    }
}
.badge {
  font-size: 0.9em;
}

.table {
  margin-top: 15px;
}

/* Mobile Table Optimization */
@media (max-width: 768px) {
    /* Responsive table wrapper */
    .table-responsive {
        border: none;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hide less important columns on mobile */
    .table th:nth-child(n+5),
    .table td:nth-child(n+5) {
        display: none;
    }
    
    /* Special handling for specific tables */
    .table.admin-users-table th:nth-child(n+4),
    .table.admin-users-table td:nth-child(n+4) {
        display: none;
    }
    
    .table.admin-products-table th:nth-child(n+4),
    .table.admin-products-table td:nth-child(n+4) {
        display: none;
    }
    
    .table.admin-config-table th:nth-child(n+4),
    .table.admin-config-table td:nth-child(n+4) {
        display: none;
    }
    
    /* Make table cells more compact */
    .table td, .table th {
        padding: 0.5rem 0.25rem;
        font-size: 0.875rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
    
    /* Action buttons in mobile */
    .table .btn-group {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .table .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin: 1px;
    }
    
    /* Show mobile-friendly action indicators */
    .mobile-actions {
        display: block !important;
    }
    
    .desktop-actions {
        display: none !important;
    }
}

@media (max-width: 576px) {
    /* Further optimization for very small screens */
    .table td, .table th {
        padding: 0.25rem 0.125rem;
        font-size: 0.75rem;
        max-width: 100px;
    }
    
    /* Hide even more columns on very small screens */
    .table th:nth-child(n+3),
    .table td:nth-child(n+3) {
        display: none;
    }
    
    .table.admin-users-table th:nth-child(n+2),
    .table.admin-users-table td:nth-child(n+2) {
        display: none;
    }
    
    .table.admin-products-table th:nth-child(n+2),
    .table.admin-products-table td:nth-child(n+2) {
        display: none;
    }
    
    .table.admin-config-table th:nth-child(n+2),
    .table.admin-config-table td:nth-child(n+2) {
        display: none;
    }
}

/* Mobile card layout for complex tables */
@media (max-width: 768px) {
    .mobile-card-layout {
        display: none;
    }
    
    .mobile-card-layout .card {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
    }
    
    .mobile-card-layout .card-header {
        background-color: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
        font-weight: bold;
    }
    
    .mobile-card-layout .card-body {
        padding: 1rem;
    }
    
    .mobile-card-layout .row {
        margin-bottom: 0.5rem;
    }
    
    .mobile-card-layout .col-4 {
        font-weight: bold;
        color: #6c757d;
    }
    
    .mobile-card-layout .col-8 {
        color: #212529;
    }
    
    .mobile-card-layout .btn-group {
        margin-top: 0.5rem;
    }
    
    .mobile-card-layout .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .mobile-card-layout .d-flex .btn {
        flex: 1;
        min-width: auto;
    }
}

/* Show mobile layout when screen is small */
@media (max-width: 768px) {
    .desktop-table-layout {
        display: none;
    }
    
    .mobile-card-layout {
        display: block !important;
    }
}

/* Hide mobile layout on larger screens */
@media (min-width: 769px) {
    .mobile-card-layout {
        display: none !important;
    }
    
    .desktop-table-layout {
        display: block;
    }
}

/* Center admin content for laptop screens */
@media (min-width: 992px) {
    /* Center the main admin container */
    .container-fluid .row {
        justify-content: center;
    }
    
    /* Limit the width of admin content for better readability */
    .container-fluid .col-md-9 {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Center the inner container */
    .container-fluid .col-md-9 .container {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Further optimization for large laptop screens */
@media (min-width: 1200px) {
    .container-fluid .col-md-9 {
        max-width: 1400px;
    }
    
    /* Center tables and content within the admin area */
    .desktop-table-layout .table-responsive {
        margin: 0 auto;
    }
    
    /* Center buttons and forms */
    .container-fluid .col-md-9 .container .btn,
    .container-fluid .col-md-9 .container .form-control {
        margin-bottom: 10px;
    }
    
    /* Center button groups */
    .container-fluid .col-md-9 .container .btn-group {
        justify-content: center;
    }
}

/* Extra large screens - further centering */
@media (min-width: 1400px) {
    .container-fluid .col-md-9 {
        max-width: 1600px;
    }
    
    /* Center page titles and headers */
    .container-fluid .col-md-9 .container h1,
    .container-fluid .col-md-9 .container h2,
    .container-fluid .col-md-9 .container h3 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Center descriptive text */
    .container-fluid .col-md-9 .container p {
        text-align: center;
        max-width: 800px;
        margin: 0 auto 1.5rem;
    }
    
    /* Style action buttons properly */
    .container-fluid .col-md-9 .container .btn-success,
    .container-fluid .col-md-9 .container .btn-primary,
    .container-fluid .col-md-9 .container .btn-info {
        margin: 0.25rem 0.5rem 0.25rem 0;
        display: inline-block;
    }
    
    /* Create a button container for better layout */
    .container-fluid .col-md-9 .container .button-container {
        text-align: center;
        margin: 1rem 0;
    }
    
    /* Center flash messages */
    .container-fluid .col-md-9 .container .flash-messages {
        max-width: 800px;
        margin: 0 auto 2rem;
    }
    
    /* Center form groups */
    .container-fluid .col-md-9 .container .form-group {
        max-width: 600px;
        margin: 0 auto 1rem;
    }
    
    /* Center modal content when possible */
    .modal-dialog {
        margin: 1.75rem auto;
    }
}

/* Additional centering for medium laptop screens */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Style buttons properly without breaking layout */
    .container-fluid .col-md-9 .container .btn {
        margin: 0.25rem 0.5rem 0.25rem 0;
        display: inline-block;
    }
    
    /* Group buttons together */
    .container-fluid .col-md-9 .container .btn-group {
        display: inline-flex;
        margin: 0.25rem;
    }
    
    /* Center form elements */
    .container-fluid .col-md-9 .container .form-inline {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Center filter forms */
    .container-fluid .col-md-9 .container .mb-3 form {
        text-align: center;
    }
    
    .container-fluid .col-md-9 .container .mb-3 form .form-control {
        display: inline-block;
        margin: 0.25rem;
    }
}

/* Center dashboard and stats elements */
@media (min-width: 992px) {
    .stats-grid {
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
    }
    
    .stats-grid p {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Center summary cards */
    .card.bg-light {
        margin: 0 auto 1rem;
        max-width: 300px;
    }
    
    /* Center pagination */
    .pagination {
        justify-content: center;
    }
}

/* Ensure proper spacing and alignment */
@media (min-width: 992px) {
    .container-fluid .col-md-9 .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Center table containers */
    .desktop-table-layout {
        margin: 0 auto;
    }
    
    /* Center alert messages */
    .alert {
        max-width: 800px;
        margin: 0 auto 1rem;
    }
    
    /* Fix button layout issues */
    .container-fluid .col-md-9 .container .btn {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        vertical-align: top;
    }
    
    /* Create natural button groups */
    .container-fluid .col-md-9 .container .btn:last-child {
        margin-right: 0;
    }
    
    /* Style button rows properly */
    .container-fluid .col-md-9 .container .button-row {
        margin: 1rem 0;
        text-align: left;
    }
    
    /* Center button containers when needed */
    .container-fluid .col-md-9 .container .button-row.centered {
        text-align: center;
    }
    
    /* Ensure buttons maintain proper spacing */
    .container-fluid .col-md-9 .container .button-row .btn {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Remove right margin from last button in row */
    .container-fluid .col-md-9 .container .button-row .btn:last-child {
        margin-right: 0;
    }
    
    /* Better button sizing for laptop screens */
    .container-fluid .col-md-9 .container .btn {
        min-width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Specific button styling for larger laptop screens */
@media (min-width: 1200px) {
    .container-fluid .col-md-9 .container .button-row {
        margin: 1.5rem 0;
    }
    
    .container-fluid .col-md-9 .container .btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

/* Confirmation Dialog Styles */
.confirmation-modal .modal-dialog {
    max-width: 500px;
}

.confirmation-modal .modal-header {
    background-color: var(--snp-danger);
    color: white;
    border-bottom: none;
}

.confirmation-modal .modal-header .modal-title {
    font-weight: bold;
}

.confirmation-modal .modal-body {
    padding: 2rem;
    text-align: center;
}

.confirmation-modal .modal-body .warning-icon {
    font-size: 3rem;
    color: var(--snp-danger);
    margin-bottom: 1rem;
}

.confirmation-modal .modal-footer {
    border-top: none;
    justify-content: center;
    padding: 1rem 2rem 2rem;
}

.confirmation-modal .btn-confirm-delete {
    background-color: var(--snp-danger);
    border-color: var(--snp-danger);
    margin-left: 1rem;
}

.confirmation-modal .btn-confirm-delete:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Danger button styling enhancement */
.btn-danger.delete-btn {
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

/* Hover-Lift nur bei echter Maus, sonst bleibt er auf Touch nach dem Tippen hängen */
@media (hover: hover) {
    .btn-danger.delete-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    }
}


/* ================================================================
   SipNPay Homepage Redesign — scoped to .snp-home
   All rules below only affect the public landing page.
   ================================================================ */

/* --- Reset global overrides from admin styles on the homepage --- */
.snp-home .container,
.snp-home .container-fluid {
    text-align: left;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Shared wide container used on the homepage */
.snp-wide {
    max-width: calc(var(--snp-content-width) + 3rem);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ----------------------------------------------------------------
   Navigation
   ---------------------------------------------------------------- */
.snp-nav {
    background-color: var(--snp-navy-darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.6rem 0;
}

.snp-nav__inner {
    width: 100%;
    max-width: calc(var(--snp-content-width) + 3rem);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
}

.snp-nav__brand img {
    display: block;
}

.snp-nav__links .nav-link,
.snp-nav__link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem !important;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
    text-decoration: none;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
}

@media (hover: hover) {
    .snp-nav__link:hover {
        color: var(--snp-accent) !important;
        background-color: rgba(255, 255, 255, 0.06) !important;
    }
}

.snp-nav__toggler {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px;
    color: white;
    padding: 0.55rem 0.85rem;
    font-size: 1.15rem;
    line-height: 1;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: none !important;
}

.snp-nav__toggler-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.snp-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    /* Wie in der App-Nav: Umbruch erlauben, damit das aufgeklappte Menü unter
       Logo und Menü-Button steht – sonst rutscht der Button nach links */
    .snp-nav__inner {
        flex-wrap: wrap;
    }
    .snp-nav__toggler {
        margin-left: auto;
    }
    .snp-nav__inner > .navbar-collapse {
        flex-basis: 100%;
    }
    .snp-nav__links {
        padding: 0.75rem 0;
    }
    .snp-nav__links .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    /* Aufgeklapptes Menü zentriert */
    .snp-nav__links .snp-nav__link {
        display: block;
        text-align: center;
    }
    .snp-nav__actions {
        flex-direction: row;
        justify-content: center;
        padding: 0.75rem 0 0.25rem;
        flex-wrap: wrap;
    }
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.snp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease,
                box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.snp-btn--primary {
    background-color: var(--snp-accent);
    border-color: var(--snp-accent);
    color: var(--snp-ink) !important;
}

.snp-btn--primary:hover {
    background-color: var(--snp-accent-hover);
    border-color: var(--snp-accent-hover);
    color: var(--snp-ink) !important;
}

@media (hover: hover) {
    .snp-btn--primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(246, 174, 45, 0.35);
    }
}

.snp-btn--outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: rgba(255, 255, 255, 0.9) !important;
}

.snp-btn--outline:hover {
    border-color: white;
    color: white !important;
    background-color: rgba(255, 255, 255, 0.07);
}

.snp-btn--ghost {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85) !important;
}

.snp-btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: white !important;
}

.snp-btn--lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
}

/* Bootstrap-.btn animiert transform nicht → Loslassen würde hart zurückspringen */
.btn {
    transition-property: color, background-color, border-color, box-shadow, transform;
}

/* Feedback sofort beim Drücken (pointer-down), nicht erst beim Loslassen */
.snp-btn:active:not(:disabled),
.btn:active:not(:disabled),
.snp-app-nav__icon-btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */
.snp-hero {
    background: linear-gradient(140deg, var(--snp-navy-darker) 0%, var(--snp-navy) 55%, var(--snp-navy-deep) 100%);
    color: white;
    padding: 100px 1.5rem 90px;
    text-align: center;
}

.snp-hero__inner {
    max-width: 760px;
    margin: 0 auto;
}

.snp-hero__badge {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0;
    list-style: none;
    background: rgba(246, 174, 45, 0.12);
    border: 1px solid rgba(246, 174, 45, 0.35);
    color: var(--snp-accent);
    border-radius: 100px;
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 1.75rem;
}

.snp-hero__badge li + li::before {
    content: '·';
    margin: 0 0.6rem;
    opacity: 0.7;
}

/* Schmal: kein Pill-Rahmen, der über zwei Zeilen hässlich umbricht */
@media (max-width: 575px) {
    .snp-hero__badge {
        background: none;
        border: none;
        padding: 0;
        border-radius: 0;
        gap: 0.35rem 1rem;
    }
    /* Beim Umbruch keine Trennpunkte am Zeilenanfang */
    .snp-hero__badge li + li::before {
        display: none;
    }
}

.snp-hero__title {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

.snp-hero__sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.snp-hero__cta {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   Section scaffold
   ---------------------------------------------------------------- */
.snp-section {
    padding: 84px 0;
    scroll-margin-top: 72px;
}

@media (hover: none) and (pointer: coarse) {
    .snp-nav__link,
    .snp-footer__links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

.snp-section--light {
    background-color: var(--snp-bg);
}

.snp-section--dark {
    background-color: var(--snp-navy);
    color: white;
}

.snp-label {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--snp-accent-text);
    margin-bottom: 0.6rem;
}

.snp-section--dark .snp-label {
    color: var(--snp-accent);
}

.snp-label--accent {
    color: var(--snp-accent);
    text-align: left;
}

.snp-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--snp-ink);
    margin-bottom: 3rem;
    line-height: 1.2;
}

.snp-title--light {
    color: white;
    text-align: left;
    margin-bottom: 1.25rem;
}

/* ----------------------------------------------------------------
   Steps
   ---------------------------------------------------------------- */
.snp-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.snp-step {
    flex: 1;
    min-width: 200px;
    max-width: 270px;
    text-align: center;
    padding: 0 1.5rem;
}

.snp-step__num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--snp-accent);
    color: var(--snp-ink);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.snp-step__icon {
    font-size: 1.9rem;
    color: var(--snp-blue);
    margin-bottom: 0.875rem;
}

.snp-step__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--snp-ink);
    margin-bottom: 0.5rem;
}

.snp-step__desc {
    font-size: 0.875rem;
    color: var(--snp-gray-600);
    line-height: 1.7;
    margin: 0;
}

.snp-steps__connector {
    flex: 0 0 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--snp-accent) 0%, var(--snp-blue) 100%);
    margin-top: 19px;
    align-self: flex-start;
}

@media (max-width: 767px) {
    .snp-steps__connector { display: none; }
    .snp-steps { gap: 2.5rem; }
    .snp-step { max-width: 100%; }
}

/* ----------------------------------------------------------------
   Feature grid
   ---------------------------------------------------------------- */
.snp-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.snp-feature {
    background: white;
    border: 1px solid #e4e8ec;
    border-radius: 12px;
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

@media (hover: hover) {
    .snp-feature:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    }
}

.snp-feature__icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background-color: rgba(51, 101, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--snp-blue);
    margin-bottom: 1rem;
}

.snp-feature__title {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--snp-ink);
    margin-bottom: 0.4rem;
}

.snp-feature__desc {
    font-size: 0.855rem;
    color: var(--snp-gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ----------------------------------------------------------------
   Split section (dark bg, text + mockup)
   ---------------------------------------------------------------- */
.snp-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.snp-split__text {
    flex: 1;
    min-width: 280px;
}

.snp-split__desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: 0.975rem;
}

.snp-split__visual {
    flex: 1;
    min-width: 280px;
}

.snp-checklist {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.snp-checklist li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 0;
    font-size: 0.925rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.snp-checklist li i {
    color: var(--snp-accent);
    flex-shrink: 0;
}

/* ----------------------------------------------------------------
   UI Mockup widget
   ---------------------------------------------------------------- */
.snp-mockup {
    background: var(--snp-navy-darker);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.35);
}

.snp-mockup__bar {
    background: rgba(255, 255, 255, 0.04);
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 6px;
}

.snp-mockup__bar::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #EF6351;
    box-shadow: 16px 0 0 var(--snp-accent), 32px 0 0 #5dc589;
}

.snp-mockup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.snp-mockup__badge {
    background: rgba(246, 174, 45, 0.15);
    color: var(--snp-accent);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
}

.snp-mockup__stats {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.snp-mockup__stat {
    flex: 1;
    padding: 0.875rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.snp-mockup__stat:last-child {
    border-right: none;
}

.snp-mockup__stat-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}

.snp-mockup__stat-val {
    display: block;
    font-size: 0.975rem;
    font-weight: 700;
    color: white;
}

.snp-mockup__stat-val--warn {
    color: var(--snp-accent);
}

.snp-mockup__order {
    display: grid;
    grid-template-columns: 1fr auto 6.5rem;
    align-items: center;
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.75);
    gap: 0.75rem;
}

.snp-mockup__order:last-child {
    border-bottom: none;
}

.snp-mockup__order > span:nth-child(2) {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.snp-mockup__pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    justify-self: end;
}

.snp-mockup__pill--open {
    background: rgba(246, 174, 45, 0.15);
    color: var(--snp-accent);
}

.snp-mockup__pill--done {
    background: rgba(93, 197, 137, 0.15);
    color: #5dc589;
}

/* ----------------------------------------------------------------
   Contact
   ---------------------------------------------------------------- */
.snp-contact-wrap {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.snp-contact__desc {
    color: var(--snp-gray-600);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.snp-footer {
    background-color: var(--snp-navy-darker);
    padding: 1.75rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.snp-footer__inner {
    max-width: var(--snp-content-width); /* Footer hat das Padding außen */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.snp-footer__links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.snp-footer__links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.2s;
}

.snp-footer__links a:hover {
    color: #fff;
}

/* ----------------------------------------------------------------
   Responsive adjustments
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    .snp-hero { padding: 72px 1.5rem 60px; }
    .snp-section { padding: 60px 0; }
    .snp-split { gap: 2.5rem; }
    .snp-footer__inner { justify-content: center; text-align: center; }
    .snp-footer__links { justify-content: center; }
}

@media (max-width: 479px) {
    .snp-hero { padding: 56px 1.5rem 48px; }
    .snp-features { grid-template-columns: 1fr; gap: 0.75rem; }
    /* Icon links, Text rechts → 9 Karten werden nicht zu einer endlosen Spalte */
    .snp-feature {
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: 0.9rem;
        padding: 1.1rem 1.15rem;
    }
    .snp-feature__icon {
        grid-row: span 2;
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
        margin-bottom: 0;
    }
    .snp-hero__cta { flex-direction: column; align-items: stretch; }
    .snp-hero__cta .snp-btn { width: 100%; }
    .snp-mockup__stats { flex-direction: column; }
    .snp-mockup__stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .snp-mockup__stat:last-child { border-bottom: none; }
}


/* ================================================================
   Auth pages (login, customer-login, superlogin)
   Scoped to .snp-auth-page
   ================================================================ */

.snp-auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh; /* mobile Safari: springt nicht, wenn die Toolbar ein-/ausfährt */
    background: var(--snp-bg);
}

.snp-auth {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh; /* mobile Safari: springt nicht, wenn die Toolbar ein-/ausfährt */
}

/* Left branding panel */
.snp-auth__panel {
    width: 420px;
    flex-shrink: 0;
    background: linear-gradient(160deg, var(--snp-navy-darker) 0%, var(--snp-navy) 60%, var(--snp-navy-deep) 100%);
    color: white;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.snp-auth__logo {
    display: inline-block;
    margin-bottom: auto;
}

.snp-auth__panel-body {
    padding: 2rem 0 1rem;
}

.snp-auth__panel-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--snp-accent);
    margin-bottom: 0.6rem;
}

.snp-auth__panel-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.snp-auth__panel-sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.925rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.snp-auth__panel-list li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.snp-auth__panel-list li i {
    color: var(--snp-accent);
    flex-shrink: 0;
}

/* Right form panel */
.snp-auth__form-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.snp-auth__card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e4e8ec;
}

.snp-auth__card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.snp-auth__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(51, 101, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--snp-blue);
    margin: 0 auto 1rem;
}

.snp-auth__icon--super {
    background: rgba(246, 174, 45, 0.12);
    color: var(--snp-accent-hover);
}

.snp-auth__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--snp-ink);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.snp-auth__sub {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.snp-auth__alert {
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

/* Form fields */
.snp-field {
    margin-bottom: 1.1rem;
}

.snp-field__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--snp-gray-700);
    margin-bottom: 0.4rem;
}

.snp-field__wrap {
    position: relative;
}

.snp-field__icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--snp-gray-400);
    font-size: 0.875rem;
    pointer-events: none;
}

.snp-field__input {
    width: 100%;
    padding: 0.65rem 0.9rem 0.65rem 2.5rem;
    border: 1.5px solid var(--snp-gray-300);
    border-radius: 8px;
    font-size: 0.925rem;
    color: var(--snp-ink);
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.snp-field__input:focus {
    border-color: var(--snp-blue);
    box-shadow: 0 0 0 3px rgba(51, 101, 138, 0.12);
    background: white;
}

.snp-field__input::placeholder {
    color: var(--snp-gray-400);
}

/* Block button modifier */
.snp-btn--block {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Auth footer links */
.snp-auth__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.snp-auth__alt-link,
.snp-auth__back {
    font-size: 0.825rem;
    text-decoration: none;
    color: #6c757d;
    transition: color 0.2s;
}

.snp-auth__alt-link:hover,
.snp-auth__back:hover {
    color: var(--snp-blue);
}

/* Hide left panel on small screens */
@media (max-width: 767px) {
    .snp-auth__panel { display: none; }
    .snp-auth__form-wrap { padding: 1.5rem 1rem; background: var(--snp-bg); }
    .snp-auth__card { padding: 2rem 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
}


/* ================================================================
   App shell — admin & customer pages
   Scoped to .snp-app
   ================================================================ */

.snp-app {
    background: var(--snp-bg);
    min-height: 100vh;
    min-height: 100dvh; /* mobile Safari: springt nicht, wenn die Toolbar ein-/ausfährt */
    display: flex;
    flex-direction: column;
}

/* App nav */
.snp-app-nav {
    background-color: var(--snp-navy-darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0;
    z-index: 1030;
}

.snp-app-nav__inner {
    max-width: calc(var(--snp-content-width) + 3rem);
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.snp-app-nav__brand img {
    display: block;
}

.snp-app-nav__toggler {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px;
    color: white;
    /* Groß genug für Fingertippen: min. 44×44 px */
    padding: 0.55rem 0.85rem;
    font-size: 1.15rem;
    line-height: 1;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: none !important;
    transition: background-color 0.2s;
}
.snp-app-nav__toggler:hover,
.snp-app-nav__toggler:focus {
    background: rgba(255, 255, 255, 0.22) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 174, 45, 0.35) !important;
}
/* "Menü"-Label neben dem Hamburger-Icon */
.snp-app-nav__toggler-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

/* Nav links */
.snp-app-nav__links .nav-link,
.snp-app-nav__link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem !important;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
    text-decoration: none;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.snp-app-nav__link:hover,
.snp-app-nav__links .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Dropdown */
.snp-app-nav__dropdown {
    background: var(--snp-navy-deep) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 0.4rem !important;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

.snp-app-nav__dropdown-item {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.875rem !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.75rem !important;
    transition: background-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    background: none !important;
}

.snp-app-nav__dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
}

/* Mobiles Menü: Panel von der Nav-Leiste bis zum unteren Bildschirmrand,
   eigener Scrollbereich, Logout unten; die Seite dahinter scrollt nicht mit */
@media (max-width: 991px) {
    .snp-app-nav .navbar-collapse.show {
        display: flex;
        flex-direction: column;
        height: calc(100vh - var(--snp-nav-bar-h, 65px));
        height: calc(100dvh - var(--snp-nav-bar-h, 65px));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* mx-auto aus dem Desktop-Layout würde die Liste im Flex-Panel schmal zentrieren */
    .snp-app-nav .navbar-collapse.show > .snp-app-nav__links,
    .snp-app-nav .navbar-collapse.show > .snp-app-nav__actions {
        align-self: stretch;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Aufgeklapptes Menü zentriert: Einträge, Untermenüs und Aktionen */
    .snp-app-nav .navbar-collapse.show .snp-app-nav__link,
    .snp-app-nav .navbar-collapse.show .snp-app-nav__dropdown-item {
        justify-content: center;
        text-align: center;
    }

    .snp-app-nav .navbar-collapse.show .snp-app-nav__actions {
        justify-content: center;
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Bootstraps Höhen-Animation würde erst auf Inhaltshöhe und dann auf volle Höhe springen */
    .snp-app-nav .navbar-collapse.collapsing {
        transition: none;
    }

    /* Sperre auf <html>: html hat overflow-x: hidden, ein overflow auf <body>
       würde body zum eigenen Scroll-Container machen und die Sticky-Nav lösen */
    html.snp-menu-open {
        overflow: hidden;
    }
}

/* Wayfinding: aktueller Bereich / aktuelle Seite sichtbar markieren */
.snp-app-nav__link--active,
.snp-app-nav__link--active:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 -2px 0 var(--snp-accent) !important;
}

.snp-app-nav__dropdown-item--active,
.snp-app-nav__dropdown-item--active:hover {
    color: var(--snp-accent) !important;
    background-color: rgba(246, 174, 45, 0.12) !important;
}

.snp-app-nav__icon-btn--active {
    color: var(--snp-accent) !important;
}

/* Dropdown wächst aus dem Auslöser heraus statt einfach aufzuploppen */
@keyframes snp-dropdown-in {
    from { opacity: 0; transform: scale(0.96); }
}

.snp-app-nav__dropdown.show {
    transform-origin: top left;
    animation: snp-dropdown-in 0.16s ease-out;
}

/* Modal entsteht an Ort und Stelle, statt von oben hereinzufallen */
.modal.fade .modal-dialog {
    transform: scale(0.96);
    transition: transform 0.2s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Right-side actions */
.snp-app-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.snp-app-nav__icon-btn {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
}

.snp-app-nav__icon-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Danger-subtle button for logout */
.snp-btn--danger-subtle {
    background-color: rgba(239, 99, 81, 0.15);
    border-color: rgba(239, 99, 81, 0.3);
    color: #f08070 !important;
}

.snp-btn--danger-subtle:hover {
    background-color: rgba(239, 99, 81, 0.25);
    border-color: rgba(239, 99, 81, 0.5);
    color: #ef6351 !important;
}

@media (max-width: 991px) {
    .snp-app-nav__links {
        padding: 0.5rem 0;
    }
    .snp-app-nav__link {
        padding: 0.5rem 0.5rem !important;
    }
    .snp-app-nav__actions {
        padding: 0.5rem 0 0.75rem;
        margin-left: 0;
        flex-wrap: wrap;
    }
    .snp-app-nav__dropdown {
        background: rgba(255,255,255,0.04) !important;
        border: none !important;
        box-shadow: none !important;
        /* Kein Einzug links: das Menü ist mobil zentriert, Einzug würde es verschieben */
        padding: 0.25rem !important;
    }
}

/* Flash messages */
.snp-flash-wrap {
    max-width: 900px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
    width: 100%;
}

.snp-flash {
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Main content area */
.snp-app-main {
    flex: 1;
    padding: 1.5rem 0 2rem;
}

/* App footer */
.snp-app-footer {
    background-color: var(--snp-navy-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.5rem;
    margin-top: auto;
}

.snp-app-footer__inner {
    max-width: var(--snp-content-width); /* Footer hat das Padding außen */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.snp-app-footer__version {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.snp-app-footer__links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.snp-app-footer__links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.snp-app-footer__links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 575px) {
    .snp-app-footer__inner { justify-content: center; text-align: center; }
    .snp-app-footer__links { justify-content: center; }
}


/* ================================================================
   Customer portal pages
   Used by customer_dashboard.html and customer_orders.html
   ================================================================ */

/* Page wrapper – no horizontal constraint; hero handles its own width */
.cust-page {
    margin-top: -1.5rem; /* flush hero to the nav bar */
}

/* ── Hero banner ── */
.cust-hero {
    background: linear-gradient(135deg, var(--snp-navy-darker) 0%, #2c4a6a 100%);
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cust-hero__inner {
    max-width: var(--snp-content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cust-hero__greeting {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cust-hero__wave {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.cust-hero__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin: 0 0 0.2rem;
}

.cust-hero__name {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

/* ── Content area ── */
.cust-content {
    max-width: calc(var(--snp-content-width) + 3rem);
    margin: 0 auto;
    padding: 1.75rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Stat cards ── */
.cust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.cust-stats--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Stat-Grid innerhalb einer Karte: gleiche Innenkante wie das Filterformular darüber */
.cust-stats--in-card {
    padding: 0 1.5rem 1.25rem;
}

@media (max-width: 575px) {
    .cust-stats--in-card {
        padding: 0 1rem 1rem;
    }
}

/* Spalten dürfen schrumpfen, lange Labels umbrechen statt die Karte zu sprengen */
.cust-stats > .cust-stat {
    min-width: 0;
}

.cust-stat {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.cust-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cust-stat__icon--blue  { background: rgba(51,101,138,0.12);  color: var(--snp-blue); }
.cust-stat__icon--teal  { background: rgba(26,166,153,0.12);  color: #1aa699; }
.cust-stat__icon--gold  { background: rgba(246,174,45,0.15);  color: #c9890e; }
.cust-stat__icon--slate { background: rgba(100,116,139,0.12); color: #64748b; }
.cust-stat__icon--warn  { background: rgba(242,100,25,0.12);  color: var(--snp-accent-strong); }

.cust-stat__body {
    min-width: 0;
}

.cust-stat__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--snp-gray-500);
    margin: 0 0 0.2rem;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.cust-stat__val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--snp-gray-900);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cust-stat__val--sm {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

/* ── Billing banner ── */
.cust-billing {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    border-left: 4px solid var(--snp-blue);
}

.cust-billing--warn {
    border-left-color: var(--snp-accent);
    background: #fffdf5;
}

.cust-billing__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cust-billing__icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(246,174,45,0.15);
    color: #c9890e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cust-billing__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--snp-gray-500);
    margin: 0 0 0.15rem;
}

.cust-billing__val {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--snp-gray-900);
    margin: 0;
    letter-spacing: -0.02em;
}

.cust-billing--warn .cust-billing__val {
    color: #92400e;
}

.cust-billing__right {
    text-align: right;
}

.cust-billing__info {
    font-size: 0.825rem;
    color: var(--snp-gray-500);
    margin: 0 0 0.2rem;
}

.cust-billing__note {
    font-size: 0.775rem;
    color: var(--snp-gray-500);
    margin: 0;
}

/* ── Content cards ── */
.cust-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.cust-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--snp-gray-100);
    gap: 1rem;
    flex-wrap: wrap;
}

.cust-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--snp-gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Kartentitel-Icons einheitlich: Farbe ohne Bedeutung lenkt nur ab
   (überschreibt die Inline-Farben in den Templates) */
.cust-card__title > .fas {
    color: var(--snp-blue) !important;
}

.cust-card__count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--snp-gray-700);
    background: var(--snp-gray-100);
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
}

/* ── Vereinsflieger Mitgliedsstatus / Rollen ── */
.adm-member-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1f4e6e;
    background: #e8f0f6;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    white-space: nowrap;
}

.adm-member-status--inactive {
    color: var(--snp-gray-500);
    background: var(--snp-gray-100);
}

.adm-member-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 260px;
    font-size: 0.72rem;
    color: #4b5563;
}

.adm-member-role {
    background: var(--snp-gray-100);
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    white-space: nowrap;
}

.adm-member-roles__more[open] {
    width: 100%;
}

.adm-member-roles__extra {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.adm-member-roles__more summary {
    cursor: pointer;
    color: var(--snp-blue);
    font-weight: 600;
    padding: 0.1rem 0.2rem;
    list-style: none;
}

.adm-member-roles__more summary::-webkit-details-marker {
    display: none;
}

.adm-member-roles__more[open] summary {
    display: none;
}

/* Breite Tabellen (z. B. Benutzerliste mit Rollen) horizontal scrollbar machen */
.adm-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Orders list ── */
.cust-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--snp-gray-50);
    gap: 1rem;
    transition: background-color 0.12s;
}

.cust-order:last-child {
    border-bottom: none;
}

.cust-order:hover {
    background: #fafafa;
}

.cust-order__info {
    min-width: 0;
    flex: 1;
}

.cust-order__product {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--snp-gray-900);
    margin: 0 0 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cust-order__date {
    font-size: 0.775rem;
    color: var(--snp-gray-500);
    margin: 0;
}

.cust-order__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cust-order__qty {
    font-size: 0.8rem;
    color: var(--snp-gray-500);
    min-width: 2rem;
    text-align: right;
}

.cust-order__price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--snp-gray-900);
    min-width: 3.5rem;
    text-align: right;
}

/* ── Status pills ── */
.cust-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

.cust-pill--done {
    background: rgba(5,150,105,0.1);
    color: #059669;
}

.cust-pill--open {
    background: rgba(217,119,6,0.12);
    color: #b45309;
}

/* ── Empty state ── */
.cust-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--snp-gray-500);
}

.cust-empty__icon {
    font-size: 2rem;
    color: var(--snp-gray-300);
    display: block;
    margin-bottom: 0.75rem;
}

.cust-empty p {
    font-size: 0.9rem;
    margin: 0;
}

/* ── Filter form ── */
.cust-filter {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 1.1rem 1.5rem;
}

.cust-filter__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 140px;
}

.cust-filter__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--snp-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cust-filter__input {
    background: var(--snp-gray-50);
    border: 1.5px solid var(--snp-gray-200);
    border-radius: 8px;
    color: var(--snp-gray-900);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.cust-filter__input:focus {
    border-color: var(--snp-accent);
    box-shadow: 0 0 0 3px rgba(246,174,45,0.15);
}

/* ── Outline-dark button ── */
.snp-btn--outline-dark {
    background: transparent;
    border: 1.5px solid var(--snp-gray-200);
    color: var(--snp-gray-700) !important;
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
    font-weight: 600;
}

.snp-btn--outline-dark:hover {
    background: var(--snp-gray-50);
    border-color: var(--snp-gray-300);
    color: var(--snp-gray-900) !important;
}

/* Hero-Aktionen: eine Größe für alle, Sekundär-Buttons hell auf dunklem Grund.
   Primäraktion steht immer als letzte (rechts). */
.cust-hero .snp-btn {
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
}

.cust-hero .snp-btn--outline-dark {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85) !important;
}

.cust-hero .snp-btn--outline-dark:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff !important;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .cust-stats     { grid-template-columns: repeat(2, 1fr); }
    .cust-stats--3  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .cust-hero__name { font-size: 1.3rem; }
    .cust-content    { padding: 1.25rem 1rem 2rem; }
    .cust-billing    { flex-direction: column; gap: 0.75rem; }
    .cust-billing__right { text-align: left; }
}

@media (max-width: 575px) {
    /* Stat-Karten: 2 Spalten mit weniger Innenabstand */
    .cust-stats                { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
    .cust-stats--3             { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
    /* Weniger Padding & kleineres Icon damit der Text nicht abgeschnitten wird */
    .cust-stat                 { padding: 0.85rem 0.875rem; gap: 0.65rem; }
    .cust-stat__icon           { width: 36px; height: 36px; font-size: 0.95rem; border-radius: 9px; }
    .cust-stat__val            { font-size: 1.2rem; }
    .cust-stat__val--sm        { font-size: 0.9rem; }
    .cust-stat__label          { font-size: 0.72rem; }

    .cust-filter               { flex-direction: column; }
    .cust-filter__field        { min-width: 100%; }
    .cust-order__meta          { gap: 0.5rem; }
}

/* Phones ≤ 480 px (iPhone SE, Galaxy A-Serie): eine Spalte für volle Lesbarkeit */
@media (max-width: 480px) {
    .cust-stats,
    .cust-stats--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* bleibt 2-spaltig aber kompakter */
    }
    /* Horizontales Layout: Icon links, Text rechts — kein Abschneiden mehr */
    .cust-stat {
        padding: 0.75rem 0.875rem;
    }
}


/* ================================================================
   Admin dashboard
   Reuses cust-hero / cust-card / cust-content where possible
   ================================================================ */

.adm-content {
    max-width: calc(var(--snp-content-width) + 3rem);
    margin: 0 auto;
    padding: 1.75rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Two-column grid for side-by-side cards */
.adm-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* ── Ranked list (top customers / cancellers) ── */
.adm-rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--snp-gray-50);
    transition: background-color 0.12s;
}
.adm-rank-item:last-child { border-bottom: none; }
.adm-rank-item:hover      { background: #fafafa; }

.adm-rank__num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--snp-gray-100);
    color: var(--snp-gray-500);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.adm-rank__num--1 { background: rgba(246,174,45,0.18); color: #92400e; }
.adm-rank__num--2 { background: rgba(148,163,184,0.20); color: #475569; }
.adm-rank__num--3 { background: rgba(180,100,50,0.14); color: #7c3b13; }

.adm-rank__name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--snp-gray-900);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-rank__badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(51,101,138,0.10);
    color: var(--snp-blue);
}
.adm-rank__badge--danger {
    background: rgba(220,38,38,0.10);
    color: #dc2626;
}

/* ── Forecast section header (title + period selector) ── */
.adm-forecast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--snp-gray-100);
}

.adm-forecast-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--snp-gray-500);
}
.adm-forecast-select select {
    background: var(--snp-gray-50);
    border: 1.5px solid var(--snp-gray-200);
    border-radius: 8px;
    color: var(--snp-gray-900);
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.18s;
}
.adm-forecast-select select:focus {
    border-color: var(--snp-accent);
    box-shadow: 0 0 0 3px rgba(246,174,45,0.15);
}

.adm-forecast-note {
    font-size: 0.78rem;
    color: var(--snp-gray-500);
    padding: 0.6rem 1.5rem;
    border-bottom: 1px solid var(--snp-gray-100);
    margin: 0;
}

/* ── Collapsible forecast ── */
/* The divider sits on the body, so the closed card has no stray line at the bottom */
.adm-forecast-header--toggle {
    border-bottom: none;
    flex-wrap: nowrap;
    gap: 0.5rem;
}
.adm-forecast-header--toggle .cust-card__title {
    white-space: nowrap;
}
.adm-forecast-toggle {
    flex-shrink: 0;
}
.adm-forecast-body {
    border-top: 1px solid var(--snp-gray-100);
}
.adm-forecast-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.6rem 1.5rem;
    border-bottom: 1px solid var(--snp-gray-100);
}
.adm-forecast-toolbar .adm-forecast-note {
    padding: 0;
    border-bottom: none;
}
.adm-forecast-toggle .fa-chevron-down {
    transition: transform 0.2s ease;
}
.adm-forecast-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}
.adm-forecast-toggle[aria-expanded="true"] .adm-forecast-toggle__show,
.adm-forecast-toggle[aria-expanded="false"] .adm-forecast-toggle__hide {
    display: none;
}
@media (prefers-reduced-motion: reduce) {
    .adm-forecast-toggle .fa-chevron-down { transition: none; }
}

/* ── Forecast table ── */
.adm-table {
    width: 100%;
    border-collapse: collapse;
}
.adm-table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--snp-gray-500);
    padding: 0.7rem 1.5rem;
    border-bottom: 1px solid var(--snp-gray-100);
    background: #fafafa;
    white-space: nowrap;
    text-align: left;
}
.adm-table tbody td {
    padding: 0.8rem 1.5rem;
    color: var(--snp-gray-700);
    border-bottom: 1px solid var(--snp-gray-50);
    font-size: 0.875rem;
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover td      { background: #fafafa; }

/* ── Forecast mobile cards ── */
.adm-forecast-cards {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.adm-forecast-card {
    background: var(--snp-gray-50);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #f0f0f0;
}
.adm-forecast-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--snp-gray-900);
    margin: 0 0 0.6rem;
}
.adm-forecast-card__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--snp-gray-500);
    padding: 0.15rem 0;
}
.adm-forecast-card__val {
    font-weight: 600;
    color: var(--snp-gray-700);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .adm-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .adm-content { padding: 1.25rem 1rem 2rem; }
}


/* ================================================================
   Shared admin utilities
   ================================================================ */

/* Small button modifier */
.snp-btn--sm {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    border-radius: 7px;
    font-weight: 600;
}

/* General modal modernisation (confirmation-modal overrides via higher specificity) */
.modal-content {
    border-radius: 14px;
    border: 1px solid var(--snp-gray-200);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.modal-header {
    border-bottom-color: var(--snp-gray-100);
    padding: 1.25rem 1.5rem;
    align-items: center;
}
.modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--snp-gray-900);
}
.modal-body {
    padding: 1.25rem 1.5rem;
}
.modal-footer {
    border-top-color: var(--snp-gray-100);
    padding: 1rem 1.5rem;
}
.modal-body .form-group,
.modal-body .mb-3 {
    margin-bottom: 1rem;
}
.modal-body label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--snp-gray-700);
    margin-bottom: 0.3rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.modal-body .form-control,
.modal-body .form-select {
    border: 1.5px solid var(--snp-gray-200);
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 0.55rem 0.75rem;
    background: var(--snp-gray-50);
    color: var(--snp-gray-900);
    transition: border-color 0.18s, box-shadow 0.18s;
}
.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: var(--snp-accent);
    box-shadow: 0 0 0 3px rgba(246,174,45,0.15);
    background: #fff;
    outline: none;
}

/* Search bar inside a card */
.adm-search-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--snp-gray-100);
    flex-wrap: wrap;
}
.adm-search-row__wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 400px;
}
.adm-search-row__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--snp-gray-400);
    font-size: 0.8rem;
    pointer-events: none;
}
.adm-search-row__input {
    width: 100%;
    background: var(--snp-gray-50);
    border: 1.5px solid var(--snp-gray-200);
    border-radius: 8px;
    color: var(--snp-gray-900);
    font-size: 0.875rem;
    padding: 0.48rem 0.75rem 0.48rem 2.2rem;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.adm-search-row__input:focus {
    border-color: var(--snp-accent);
    box-shadow: 0 0 0 3px rgba(246,174,45,0.15);
    background: #fff;
}
.adm-search-row__select {
    width: auto;
    min-width: 160px;
    background-color: var(--snp-gray-50);
    border: 1.5px solid var(--snp-gray-200);
    border-radius: 8px;
    color: var(--snp-gray-900);
    font-size: 0.875rem;
    padding: 0.42rem 2rem 0.42rem 0.75rem;
}
.adm-search-row__select:focus {
    border-color: var(--snp-accent);
    box-shadow: 0 0 0 3px rgba(246,174,45,0.15);
    background-color: #fff;
}
.adm-search-row__count {
    font-size: 0.78rem;
    color: var(--snp-gray-500);
    white-space: nowrap;
    margin-left: auto;
}

/* Mobile user cards */
.adm-user-card {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--snp-gray-50);
    transition: background-color 0.12s;
}
.adm-user-card:last-child { border-bottom: none; }
.adm-user-card:hover      { background: #fafafa; }

.adm-user-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--snp-gray-900);
    margin: 0 0 0.1rem;
}
.adm-user-card__meta {
    font-size: 0.75rem;
    color: var(--snp-gray-500);
    margin: 0 0 0.65rem;
}
.adm-user-card__row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--snp-gray-700);
    margin-bottom: 0.2rem;
}
.adm-user-card__row-label {
    color: var(--snp-gray-500);
    min-width: 64px;
    flex-shrink: 0;
    font-weight: 500;
}
.adm-user-card__actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

/* Inline form inputs (inventory table) */
.adm-inline-form {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}
.adm-inline-input {
    background: var(--snp-gray-50);
    border: 1.5px solid var(--snp-gray-200);
    border-radius: 7px;
    color: var(--snp-gray-900);
    font-size: 0.82rem;
    padding: 0.3rem 0.55rem;
    outline: none;
    transition: border-color 0.18s;
}
.adm-inline-input:focus {
    border-color: var(--snp-accent);
    box-shadow: 0 0 0 3px rgba(246,174,45,0.15);
}
.adm-inline-input[type="number"] { width: 80px; }
.adm-inline-input[type="text"]   { min-width: 100px; flex: 1; }

/* Config key-value rows */
.adm-config-list { padding: 0 1.5rem 1.25rem; }
.adm-config-row {
    display: flex;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--snp-gray-50);
    font-size: 0.875rem;
    align-items: baseline;
    flex-wrap: wrap;
}
.adm-config-row:last-child { border-bottom: none; }
.adm-config-key {
    min-width: 200px;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--snp-gray-500);
}
.adm-config-val {
    color: var(--snp-gray-900);
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.adm-config-unset {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-style: italic;
    color: var(--snp-gray-500);
}

/* Log type pill */
.adm-log-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.adm-log-pill--error { background: rgba(220,38,38,0.10); color: #dc2626; }
.adm-log-pill--info  { background: rgba(51,101,138,0.10); color: var(--snp-blue); }

/* Log content box */
.adm-log-content {
    max-height: 100px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.78rem;
    color: var(--snp-gray-700);
    background: var(--snp-gray-50);
    border-radius: 6px;
    padding: 0.4rem 0.65rem;
    border: 1px solid #f0f0f0;
    line-height: 1.5;
}

/* Pagination */
.adm-pagination {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--snp-gray-100);
    flex-wrap: wrap;
}
.adm-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.5rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--snp-gray-500);
    text-decoration: none;
    border: 1.5px solid var(--snp-gray-200);
    background: #fff;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.adm-page-link:hover { background: var(--snp-gray-50); border-color: var(--snp-gray-300); color: var(--snp-gray-900); }
.adm-page-link--active {
    background: linear-gradient(135deg, var(--snp-accent), var(--snp-accent-strong));
    border-color: transparent;
    color: #fff !important;
}

/* Barcode generator preview */
.adm-barcode-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--snp-gray-50);
    border: 1.5px dashed var(--snp-gray-200);
    border-radius: 12px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    color: var(--snp-gray-500);
    font-size: 0.875rem;
}
.adm-barcode-preview img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Connection test result */
.adm-test-result {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--snp-gray-50);
    border: 1px solid var(--snp-gray-200);
    margin-top: 0.75rem;
    font-family: monospace;
}


/* ================================================================
   Mobile & Touch Optimisierungen
   Mobile-First Korrekturen für iOS/Android
   Breakpoints: 479px (very small), 575px (small), 767px (mobile), 991px (tablet)
   ================================================================ */

/* ----------------------------------------------------------------
   1. Globale Basis
   ---------------------------------------------------------------- */

/* Horizontal Scroll auf der gesamten Seite verhindern */
html {
    overflow-x: hidden;
}

/* Tap-Highlight in App-Farbe statt dem Standard-Blau */
a,
button,
[role="button"] {
    -webkit-tap-highlight-color: rgba(246, 174, 45, 0.18);
}

/* Smooth Scrolling für alle Anker */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ----------------------------------------------------------------
   2. iOS Auto-Zoom Fix
   iOS Safari zoomt automatisch ein, wenn ein input/select focus erhält
   und font-size < 16px ist. Fix: font-size auf genau 1rem (= 16px) setzen.
   Nur auf echten Touch-Geräten aktiv (pointer: coarse).
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        font-size: 1rem !important; /* = 16px → verhindert iOS Zoom */
    }
}

/* ----------------------------------------------------------------
   3. Touch-Targets — Mindestgröße 44×44 px (Apple HIG / WCAG 2.5.5)
   Nur auf Geräten ohne Maus aktiv (hover: none, pointer: coarse).
   ---------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
    /* Hauptbuttons */
    .snp-btn {
        min-height: 44px;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    /* Kleine Buttons (sekundäre Aktionen) – etwas weniger streng */
    .snp-btn--sm {
        min-height: 38px;
    }

    /* Paginierung */
    .adm-page-link {
        min-width: 44px;
        height: 44px;
    }

    /* Formularfelder */
    .cust-filter__input,
    .adm-search-row__input,
    .snp-field__input,
    .adm-inline-input,
    .modal-body .form-control,
    .modal-body .form-select {
        min-height: 44px;
    }

    /* Nav-Links im aufgeklappten Mobile-Menü */
    .snp-app-nav__link,
    .snp-app-nav__dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ----------------------------------------------------------------
   4. Navigation — Mobile Verbesserungen
   ---------------------------------------------------------------- */
@media (max-width: 991px) {
    /* Weniger seitliches Padding im Nav-Container. Umbruch erlauben, damit das
       aufgeklappte Menü unter Logo und Menü-Button steht statt als dritte Spalte daneben */
    .snp-app-nav__inner {
        padding: 0.4rem 1rem;
        flex-wrap: wrap;
    }
    .snp-app-nav__toggler {
        margin-left: auto;
    }
    .snp-app-nav__inner > .navbar-collapse {
        flex-basis: 100%;
    }

    /* Mehr Abstand zwischen Nav-Einträgen im ausgeklappten Menü */
    .snp-app-nav__links .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .snp-app-nav__links .nav-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 575px) {
    .snp-app-nav__inner {
        padding: 0.35rem 0.75rem;
    }
    /* Logo etwas kleiner auf sehr kleinen Screens */
    .snp-app-nav__brand img {
        height: 32px;
    }
}

/* ----------------------------------------------------------------
   5. Hero-Banner — Responsives Stacking
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    .cust-hero {
        padding: 1.35rem 1.25rem;
    }
}

@media (max-width: 575px) {
    /* Titel und Buttons untereinander statt nebeneinander */
    .cust-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.875rem;
    }

    /* Button-Gruppe im Hero: volle Breite, scrollbar bei vielen Buttons.
       :not(:first-child) → ein Hero ohne Buttons (nur Titelblock) bleibt gestapelt */
    .cust-hero__inner > div:last-child:not(:first-child),
    .cust-hero__inner > a:last-child:not(:first-child) {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cust-hero {
        padding: 1.1rem 1rem;
    }

    .cust-hero__name {
        font-size: 1.2rem;
    }
}

/* ----------------------------------------------------------------
   6. Content-Bereiche — Padding auf kleinen Screens reduzieren
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .adm-content,
    .cust-content {
        padding: 0.875rem 0.75rem 2rem;
        gap: 0.875rem;
    }

    /* Card-Header: weniger seitliches Padding */
    .cust-card__header {
        padding: 0.85rem 1rem;
        gap: 0.5rem;
    }

    /* Card-Titel: Zeilenumbruch zulassen */
    .cust-card__title {
        flex-wrap: wrap;
    }

    /* User-Cards: kompakteres Padding */
    .adm-user-card {
        padding: 0.85rem 1rem;
    }

    /* Search-Bar: volle Breite */
    .adm-search-row {
        padding: 0.65rem 1rem;
    }
    .adm-search-row__wrap {
        max-width: 100%;
        min-width: unset;
    }

    /* Log-Inhalt: auf kleinen Screens weniger hoch */
    .adm-log-content {
        max-height: 80px;
    }
}

/* ----------------------------------------------------------------
   7. Stat-Cards — 1-Spalte auf sehr kleinen Screens (≤ 360 px, z. B. ältere Androids)
   ---------------------------------------------------------------- */
@media (max-width: 360px) {
    .cust-stats,
    .cust-stats--3 {
        grid-template-columns: 1fr;
    }
    .cust-stat {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    .cust-stat__icon {
        width: 38px;
        height: 38px;
    }
}

/* ----------------------------------------------------------------
   8. Filter-Form — vollständiges Stacking + Submit volle Breite
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .cust-filter {
        padding: 1rem;
        gap: 0.65rem;
    }

    /* Jedes Feld nimmt die volle Breite ein */
    .cust-filter__field {
        min-width: 100%;
        width: 100%;
    }

    /* Submit-Button volle Breite */
    .cust-filter__action {
        width: 100%;
    }
    .cust-filter__action .snp-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ----------------------------------------------------------------
   9. Konfiguration Key-Value-Zeilen — stacked auf Mobile
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .adm-config-row {
        flex-direction: column;
        gap: 0.1rem;
        padding: 0.65rem 0;
    }
    /* Key-Label: keine fixe Mindestbreite mehr */
    .adm-config-key {
        min-width: unset;
        width: 100%;
    }
    .adm-config-list {
        padding: 0 1rem 1rem;
    }
}

/* ----------------------------------------------------------------
   10. Tabellen — horizontales Scrollen als Fallback
   Falls adm-table doch auf kleinen Screens sichtbar ist (z. B. Landscape)
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Wrapper-Container scrollt horizontal statt die Seite zu brechen */
    .cust-card .d-none.d-md-block {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Tabellenköpfe und Zellen: weniger seitliches Padding */
    .adm-table thead th,
    .adm-table tbody td {
        padding: 0.65rem 1rem;
        white-space: nowrap;
    }
}

/* ----------------------------------------------------------------
   11. Inline-Formulare (Inventar) — Stack-Layout auf Mobile
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .adm-inline-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .adm-inline-input[type="number"],
    .adm-inline-input[type="text"] {
        width: 100%;
        min-width: unset;
    }
}

/* ----------------------------------------------------------------
   12. Modals — volle Breite auf kleinen Screens
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    /* Minimaler Außenabstand statt 0.5rem auto */
    .modal-dialog {
        margin: 0.4rem 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    /* modal-lg soll auf Mobile nicht breiter als der Screen sein */
    .modal-dialog.modal-lg {
        max-width: calc(100vw - 1rem);
    }

    /* 2-Spalten-Grid in modal-body → 1-Spalte */
    .modal-body .row,
    .modal-body div[style*="grid-template-columns:1fr 1fr"],
    .modal-body div[style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
    }

    .modal-body {
        padding: 1rem;
    }
    .modal-header,
    .modal-footer {
        padding: 0.875rem 1rem;
    }
    .modal-content {
        border-radius: 10px;
    }
}

/* ----------------------------------------------------------------
   13. Auth-Seiten — Karten-Padding auf Mobile reduzieren
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .snp-auth__card {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }
    .snp-auth__form-wrap {
        padding: 1rem 0.75rem;
    }
}

/* ----------------------------------------------------------------
   14. App-Footer — Footer-Padding anpassen
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .snp-app-footer__inner {
        justify-content: center;
        text-align: center;
    }
    .snp-app-footer__links {
        justify-content: center;
        gap: 0.875rem;
    }
}

/* ----------------------------------------------------------------
   15. Safe-Area Insets — iPhone Notch / Dynamic Island / Home-Bar
   Stellt sicher, dass Inhalte nicht hinter Hardware-Elemente rutschen.
   Funktioniert nur mit viewport-fit=cover (s. <meta name="viewport">).
   ---------------------------------------------------------------- */
@supports (padding: env(safe-area-inset-bottom)) {
    /* Nav: Abstand oben für Status-Bar (Notch / Dynamic Island) */
    .snp-app-nav.sticky-top {
        padding-top: env(safe-area-inset-top);
    }

    /* Footer: Abstand unten für die Home-Indicator-Leiste */
    .snp-app-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    /* Mobile-Menü aufgeklappt: linker Safe-Area-Bereich */
    @media (max-width: 991px) {
        .snp-app-nav__inner {
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
        }
    }
}

/* ----------------------------------------------------------------
   16. Barcode-Generator — Bild auf Mobile zentrieren
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .adm-barcode-preview {
        padding: 1rem;
        min-height: 90px;
    }
}

/* ----------------------------------------------------------------
   17. Billing-Banner — Stack auf kleinen Screens
   (Ergänzung zu bestehendem 767px-Block)
   ---------------------------------------------------------------- */
@media (max-width: 400px) {
    .cust-billing {
        padding: 1rem;
    }
    .cust-billing__val {
        font-size: 1.2rem;
    }
}

/* ----------------------------------------------------------------
   18. Landscape-Phones — Höhenoptimierung
   Auf Querformat-Phones (z. B. iPhone SE) weniger vertikalen Whitespace
   ---------------------------------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {
    .cust-hero {
        padding: 0.875rem 1.25rem;
    }
    .snp-auth {
        align-items: flex-start;
        overflow-y: auto;
    }
    .snp-auth__card {
        margin: 1rem auto;
    }
}


/* ================================================================
   Legal pages (Impressum, Datenschutz)
   Standalone pages not extending a base template
   ================================================================ */

.snp-legal-page {
    background: var(--snp-bg);
    min-height: 100vh;
    min-height: 100dvh; /* mobile Safari: springt nicht, wenn die Toolbar ein-/ausfährt */
    display: flex;
    flex-direction: column;
}

/* Slim sticky nav */
.snp-legal-nav {
    background: var(--snp-navy);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Hero banner (same gradient as admin/customer hero) */
.snp-legal-hero {
    background: linear-gradient(135deg, var(--snp-navy-darker) 0%, #2c4a6a 100%);
    padding: 2.25rem 1.5rem;
    color: white;
}

.snp-legal-hero__inner {
    max-width: 800px;
    margin: 0 auto;
}

.snp-legal-hero__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin: 0 0 0.3rem;
}

.snp-legal-hero__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Main content wrapper */
.snp-legal-main {
    flex: 1;
    padding: 2rem 1.5rem 3rem;
}

/* Prose card */
.snp-legal-prose {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

/* Typography inside the prose card */
.snp-legal-prose h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--snp-ink);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--snp-gray-100);
    letter-spacing: -0.01em;
}
.snp-legal-prose h2:first-child { margin-top: 0; }

.snp-legal-prose h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--snp-ink);
    margin: 1.5rem 0 0.4rem;
}

.snp-legal-prose h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--snp-accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.5rem 0 0.4rem;
}

.snp-legal-prose h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--snp-gray-700);
    margin: 1rem 0 0.3rem;
}

.snp-legal-prose p {
    font-size: 0.9rem;
    color: var(--snp-gray-700);
    line-height: 1.8;
    margin: 0 0 0.875rem;
}

.snp-legal-prose ul {
    padding-left: 1.5rem;
    margin: 0 0 0.875rem;
}

.snp-legal-prose ul li {
    font-size: 0.9rem;
    color: var(--snp-gray-700);
    line-height: 1.8;
    margin-bottom: 0.4rem;
}

.snp-legal-prose a {
    color: var(--snp-blue);
    word-break: break-all;
}
.snp-legal-prose a:hover { color: var(--snp-accent-strong); }

.snp-legal-prose strong { color: var(--snp-ink); }

/* Footer */
.snp-legal-footer {
    background: var(--snp-navy-deep);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 1.5rem;
    margin-top: auto;
}

.snp-legal-footer__inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.snp-legal-footer__inner a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.2s;
}
.snp-legal-footer__inner a:hover { color: rgba(255,255,255,0.85); }

@media (max-width: 575px) {
    .snp-legal-hero    { padding: 1.5rem 1rem; }
    .snp-legal-prose   { padding: 1.5rem 1.25rem; border-radius: 10px; }
    .snp-legal-main    { padding: 1rem 0.75rem 2rem; }
    .snp-legal-nav     { padding: 0.5rem 1rem; }
}


/* ================================================================
   Application / System log viewer
   ================================================================ */

/* 2-column layout: narrow sidebar + wide log panel */
.adm-log-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 991px) {
    .adm-log-layout { grid-template-columns: 1fr; }
}

/* File list items inside the sidebar card */
.adm-log-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--snp-gray-50);
    text-decoration: none;
    gap: 0.75rem;
    transition: background-color 0.12s;
}
.adm-log-file-item:last-child { border-bottom: none; }
.adm-log-file-item:hover      { background: var(--snp-gray-50); }

.adm-log-file-item--active {
    background: rgba(51,101,138,0.06);
    border-left: 3px solid var(--snp-blue);
}

.adm-log-file-item__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--snp-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.adm-log-file-item--active .adm-log-file-item__name { color: var(--snp-blue); }

.adm-log-file-item__right {
    text-align: right;
    flex-shrink: 0;
}

.adm-log-file-item__size {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--snp-gray-500);
}

.adm-log-file-item__date {
    display: block;
    font-size: 0.72rem;
    color: var(--snp-gray-500);
}

/* Dark terminal log viewer */
.adm-log-viewer {
    background: #0d1117;
    border-radius: 0 0 14px 14px;
    height: 68vh;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.adm-log-viewer__inner {
    padding: 0.75rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    line-height: 1.65;
}

/* Individual log lines */
.adm-log-line {
    padding: 0.05rem 1.25rem;
    color: #c9d1d9;
    white-space: pre-wrap;
    word-break: break-all;
    transition: background-color 0.1s;
}
.adm-log-line:hover { background: rgba(255,255,255,0.03); }

.adm-log-line--error   { color: #f87171; }
.adm-log-line--warning { color: #fbbf24; }
.adm-log-line--info    { color: #7dd3fc; }
.adm-log-line--debug   { color: var(--snp-gray-500); }
.adm-log-line--highlight {
    background: rgba(246,174,45,0.18) !important;
    color: #fff;
}

/* Dark search bar that sits inside the terminal header */
.adm-log-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.adm-log-search__input {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #e6edf3;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    outline: none;
    transition: border-color 0.18s;
    font-family: inherit;
}
.adm-log-search__input::placeholder { color: rgba(255,255,255,0.3); }
.adm-log-search__input:focus {
    border-color: rgba(246,174,45,0.5);
    background: rgba(255,255,255,0.1);
}

/* Terminal top bar (mimics macOS window chrome) */
.adm-log-terminal-bar {
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-radius: 14px 14px 0 0;
    flex-wrap: wrap;
}

.adm-log-terminal-bar__dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.adm-log-terminal-bar__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.adm-log-terminal-bar__dot--red    { background: #ff5f57; }
.adm-log-terminal-bar__dot--yellow { background: #ffbd2e; }
.adm-log-terminal-bar__dot--green  { background: #28c840; }

.adm-log-terminal-bar__file {
    font-family: monospace;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-log-terminal-bar__actions {
    display: flex;
    gap: 0.4rem;
}

@media (max-width: 575px) {
    .adm-log-viewer { height: 55vh; }
    .adm-log-viewer__inner { font-size: 0.72rem; }
}

/* ================================================================
   Superadmin – Nutzeraktivität
   ================================================================ */
.act-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.act-grid > .cust-card { margin-bottom: 0; }
@media (max-width: 991px) {
    .act-grid { grid-template-columns: 1fr; }
}

.act-card-body { padding: 0 1.5rem 1.25rem; }
.act-chart { position: relative; height: 280px; }
.act-chart--sm { height: 240px; }
.act-meta { font-size: 0.78rem; color: var(--snp-gray-500); margin: 0.25rem 0 0; }

.act-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.act-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.act-table th:first-child, .act-table td:first-child { padding-left: 1.5rem; }
.act-table th {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--snp-gray-500); background: var(--snp-gray-50); padding: 0.6rem 0.75rem; text-align: left; white-space: nowrap;
}
.act-table td { padding: 0.65rem 0.75rem; border-top: 1px solid var(--snp-gray-100); color: var(--snp-gray-700); white-space: nowrap; }
.act-table tbody tr:hover td { background: #fafafa; }
.act-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.act-table a { color: var(--snp-gray-900); font-weight: 600; text-decoration: none; }
.act-table a:hover { color: var(--snp-link); text-decoration: underline; }

.act-pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.72rem; font-weight: 600; border-radius: 20px; padding: 0.15rem 0.6rem;
    background: var(--snp-gray-100); color: var(--snp-gray-700);
}
.act-pill--sehr-aktiv   { background: #dcfce7; color: #166534; }
.act-pill--regelmaessig { background: #dbeafe; color: #1e40af; }
.act-pill--gelegentlich { background: #fef3c7; color: #92400e; }
.act-pill--inaktiv      { background: var(--snp-gray-100); color: var(--snp-gray-500); }

/* Inline bar for "Meistgenutzte Seiten" */
.act-bar { display: flex; align-items: center; gap: 0.6rem; min-width: 140px; }
.act-bar__track { flex: 1; height: 8px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.act-bar__fill { height: 100%; background: var(--snp-link); border-radius: 0 4px 4px 0; }

.act-details { padding: 0 1.5rem 1.25rem; font-size: 0.82rem; }
.act-details summary { cursor: pointer; color: var(--snp-link); font-weight: 600; }
.act-details .act-table-wrap { margin-top: 0.75rem; max-height: 320px; overflow-y: auto; }

.act-search {
    width: 100%; max-width: 260px; background: var(--snp-gray-50); border: 1.5px solid var(--snp-gray-200);
    border-radius: 8px; padding: 0.4rem 0.7rem; font-size: 0.84rem;
}
.act-search:focus { outline: none; border-color: var(--snp-accent); box-shadow: 0 0 0 3px rgba(246,174,45,0.15); }

.act-note { font-size: 0.78rem; color: var(--snp-gray-500); margin: 0 0 1.5rem; }

/* Session timeline on the user page */
.act-session { padding: 0.9rem 1.5rem; border-top: 1px solid var(--snp-gray-100); }
.act-session__head {
    display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline;
    font-size: 0.82rem; color: var(--snp-gray-500); margin-bottom: 0.5rem;
}
.act-session__head strong { color: var(--snp-gray-900); font-size: 0.88rem; }
.act-steps { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.act-step {
    font-size: 0.75rem; border-radius: 6px; padding: 0.15rem 0.5rem;
    background: var(--snp-gray-100); color: var(--snp-gray-700); white-space: nowrap;
}
.act-step--action { background: #fff7ed; color: #9a3412; }
.act-step--login, .act-step--logout { background: #eef2f7; color: #1e3a5f; }
.act-step__time { color: var(--snp-gray-500); margin-right: 0.25rem; font-variant-numeric: tabular-nums; }
.act-steps__arrow { color: var(--snp-gray-300); font-size: 0.65rem; }
.act-sub { font-size: 0.74rem; color: var(--snp-gray-500); margin-top: 0.1rem; }
.act-sort {
    all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem;
    font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
}
.act-sort::after { content: '\f0dc'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.6rem; color: var(--snp-gray-300); }
.act-sort[aria-sort="ascending"]::after  { content: '\f0de'; color: var(--snp-link); }
.act-sort[aria-sort="descending"]::after { content: '\f0dd'; color: var(--snp-link); }
.act-sort:focus-visible { outline: 2px solid var(--snp-link); outline-offset: 2px; border-radius: 3px; }
.act-table th.num .act-sort { justify-content: flex-end; }
.act-stat-sub { font-size: 0.74rem; color: var(--snp-gray-500); margin: 0.1rem 0 0; }
.act-code {
    display: block; margin-top: 0.4rem; padding: 0.5rem 0.7rem; border-radius: 8px;
    background: #f8f9fa; border: 1px solid var(--snp-gray-200); font-size: 0.78rem; color: var(--snp-gray-900);
    overflow-x: auto; white-space: nowrap;
}

/* ── Werkstatt ───────────────────────────────────────────────────── */
.ws-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ws-tabs__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    white-space: nowrap;
}

.ws-tabs__link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.ws-tabs__link--active {
    color: var(--snp-gray-900);
    background: var(--snp-accent);
    border-color: var(--snp-accent);
}

.ws-tabs__link--active:hover {
    color: var(--snp-gray-900);
    background: var(--snp-accent);
}

.ws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    padding: 1.25rem 1.5rem 1.5rem;
}

.ws-cart {
    border: 1.5px solid var(--snp-gray-200);
    border-left: 4px solid #059669;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ws-cart--out {
    border-left-color: #d97706;
}

.ws-cart__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.ws-cart__door {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--snp-gray-500);
    margin: 0;
}

.ws-cart__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--snp-gray-900);
    margin: 0;
}

.ws-cart__desc {
    font-size: 0.8rem;
    color: var(--snp-gray-500);
    margin: 0;
}

.ws-cart__loan {
    font-size: 0.82rem;
    color: var(--snp-gray-700);
    background: rgba(217,119,6,0.08);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.4rem;
    align-items: baseline;
}

.ws-cart__loan span {
    color: var(--snp-gray-500);
    font-size: 0.78rem;
}

.ws-cart__warn,
.ws-cart__loan .ws-cart__warn {
    color: #c2410c;
    font-size: 0.75rem;
    font-weight: 600;
}

.ws-cart__issues {
    font-size: 0.78rem;
    font-weight: 600;
    color: #c2410c;
    text-decoration: none;
}

.ws-cart__roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    font-size: 0.72rem;
}

.ws-cart__roles-label {
    color: var(--snp-gray-500);
    font-weight: 600;
    margin-right: 0.15rem;
}

.ws-cart__actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.ws-pill--danger {
    background: rgba(220,38,38,0.1);
    color: #dc2626;
}

/* label.… – sonst gewinnt ".modal-body label" (Großbuchstaben) */
label.ws-radio {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--snp-gray-700);
    margin: 0;
    cursor: pointer;
}

.ws-role-picker {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--snp-gray-200);
    border-radius: 8px;
    margin-top: 0.4rem;
    padding: 0.25rem 0;
}

label.ws-role-picker__item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.3rem 0.75rem;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--snp-gray-700);
    cursor: pointer;
}

.ws-role-picker__item:hover {
    background: var(--snp-gray-50);
}

.ws-issues {
    display: flex;
    flex-direction: column;
}

.ws-issue {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--snp-gray-100);
    border-left: 4px solid #dc2626;
}

.ws-issue:last-child {
    border-bottom: none;
}

.ws-issue--resolved {
    border-left-color: #059669;
}

.ws-issue__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.ws-issue__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem 1.5rem;
    margin: 0 0 0.75rem;
}

.ws-issue__facts dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--snp-gray-500);
}

.ws-issue__facts dd {
    font-size: 0.85rem;
    color: var(--snp-gray-900);
    margin: 0;
}

.ws-issue__facts dd span {
    color: var(--snp-gray-500);
    font-size: 0.8rem;
}

.ws-issue__form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.ws-issue__form input {
    flex: 1;
    min-width: 200px;
    max-width: 480px;
}


/* Zerstörerische Primäraktion */
.snp-btn--danger {
    background-color: var(--snp-danger);
    border-color: var(--snp-danger);
    color: #fff !important;
}

.snp-btn--danger:hover {
    background-color: #bb2d3b;
    border-color: #bb2d3b;
}

/* Bestätigungsdialog: nennt die Aktion, ein Icon, Marken-Buttons */
.snp-confirm .modal-dialog {
    max-width: 400px;
}

.snp-confirm .modal-content {
    border: none;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.snp-confirm__body {
    padding: 1.75rem 1.75rem 1.25rem;
    text-align: center;
}

.snp-confirm__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.1);
    color: var(--snp-danger);
    font-size: 1.1rem;
}

.snp-confirm__icon--neutral {
    background: rgba(51, 101, 138, 0.1);
    color: var(--snp-blue);
}

.snp-confirm__title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--snp-gray-900);
    margin: 0 0 0.5rem;
}

.snp-confirm__message {
    font-size: 0.925rem;
    line-height: 1.5;
    color: var(--snp-gray-700);
    margin: 0;
}

.snp-confirm__hint {
    font-size: 0.82rem;
    color: var(--snp-gray-500);
    margin: 0.5rem 0 0;
}

.snp-confirm__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0 1.75rem 1.5rem;
}

.snp-confirm__actions .snp-btn {
    min-height: 42px;
}

/* Footer-Links auf Touch: ausreichend große Tippfläche */
@media (hover: none) and (pointer: coarse) {
    .snp-app-footer__links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

/* Segmentierte Schnellauswahl (z. B. Zeitraum im Dashboard) */
.adm-segmented {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    background: var(--snp-gray-100);
    border-radius: 9px;
}

.adm-segmented__item {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--snp-gray-700);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

.adm-segmented__item:hover {
    color: var(--snp-gray-900);
}

.adm-segmented__item--active {
    background: #fff;
    color: var(--snp-gray-900);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.adm-segmented__item:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

@media (hover: none) and (pointer: coarse) {
    .adm-segmented__item {
        min-height: 44px;
        padding: 0 0.85rem;
    }
}

/* Tastatur-Fokus in Markenfarben statt Bootstrap-Blau:
   Blau auf hellem Grund, Amber auf dunklen Flächen — jeweils ≥ 3:1.
   Die Farbe kommt über --snp-focus, damit auch Bootstraps `.btn:focus { outline: 0 }`
   sie nicht auf currentColor zurücksetzt. */
:root {
    --snp-focus: var(--snp-blue);
}

.snp-app-nav,
.snp-nav,
.snp-hero,
.cust-hero,
.snp-section--dark,
.snp-footer,
.snp-app-footer {
    --snp-focus: var(--snp-accent);
}

:focus-visible,
.btn:focus-visible,
.snp-btn:focus-visible,
.snp-app-nav__link:focus-visible,
.snp-app-nav__dropdown-item:focus-visible,
.snp-app-nav__icon-btn:focus-visible {
    outline: 2px solid var(--snp-focus);
    outline-offset: 2px;
}

.btn:focus-visible,
.snp-btn:focus-visible,
.snp-app-nav__link:focus-visible,
.snp-app-nav__dropdown-item:focus-visible,
.snp-app-nav__icon-btn:focus-visible {
    box-shadow: none !important;
}

/* ================================================================
   Reduced Motion — Bewegung durch ruhige Überblendungen ersetzen
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    .snp-btn,
    .btn,
    .snp-app-nav__icon-btn,
    .snp-feature,
    .btn-danger.delete-btn {
        transform: none !important;
        transition-property: color, background-color, border-color, box-shadow, opacity;
    }
    .modal.fade .modal-dialog {
        transform: none !important;
    }
    .snp-app-nav__dropdown.show {
        animation: none;
    }
}
