/* =========================================
   PRODUCT EDITOR – SHELL (HELL)
   ========================================= */

.pe-shell {
    max-width: 1200px;
    margin: 0 auto 32px auto;
    padding: 18px 20px 22px;
    border-radius: 14px;
    background: #f5f6fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e2e5ec;
    box-sizing: border-box;
}

/* =========================================
   HEADER
   ========================================= */

.pe-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.pe-header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pe-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
}

.pe-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.pe-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
   STEPS – HELL
   ========================================= */

.pe-steps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dde1ea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 16px;
}

.pe-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #777;
    border: 1px solid transparent;
}

.pe-step-index {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #c5ccda;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.pe-step-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.pe-step--active {
    background: linear-gradient(135deg, #2c7df7, #4dabff);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 1px 6px rgba(44,125,247,0.4);
}

.pe-step--active .pe-step-index {
    border-color: rgba(255,255,255,0.9);
}

/* =========================================
   LAYOUT – MAIN / SIDE
   ========================================= */

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

.pe-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pe-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* =========================================
   CARDS
   ========================================= */

.pe-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 14px 16px;
    border: 1px solid #dde1ea;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    box-sizing: border-box;
}

.pe-card--primary {
    border: 1px solid #c4d7ff;
    box-shadow: 0 4px 12px rgba(44,125,247,0.16);
}

.pe-card--pricing {
    border-left: 4px solid #22c55e;
}

.pe-card--media {
    background: linear-gradient(135deg, #ffffff 0, #f7f9ff 45%, #ffffff 100%);
}

.pe-card--danger {
    border-left: 4px solid #ef4444;
}

.pe-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.pe-card-header-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pe-card-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pe-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}

.pe-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Karten-Inhalt schmaler für Gleichmäßigkeit */

.pe-card--primary .pe-card-body,
.pe-card--pricing .pe-card-body,
.pe-card--content .pe-card-body,
.pe-card--media .pe-card-body {
    max-width: 560px;
}

.pe-main .pe-card .pe-card-body {
    margin-right: auto;
}

.pe-side .pe-card .pe-card-body {
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   CHIPS
   ========================================= */

.pe-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.pe-chip--id {
    background: #edf2ff;
    border-color: #b0c4ff;
    color: #1d3a8a;
}

.pe-chip--ok {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.pe-chip--muted {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #4b5563;
}

.pe-chip--accent {
    background: #fef3c7;
    border-color: #facc15;
    color: #92400e;
}

/* =========================================
   FORM FIELDS
   ========================================= */

.pe-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pe-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

.pe-field input[type="text"],
.pe-field input[type="number"],
.pe-field input[type="email"],
.pe-field input[type="password"],
.pe-field textarea,
.pe-field select {
    border-radius: 8px;
    border: 1px solid #ccd1dd;
    background: #ffffff;
    color: #222;
    padding: 7px 10px;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.pe-field input::placeholder,
.pe-field textarea::placeholder {
    color: #9ca3af;
}

.pe-field input:focus,
.pe-field textarea:focus,
.pe-field select:focus {
    border-color: #2c7df7;
    box-shadow: 0 0 0 1px rgba(44,125,247,0.25);
    background-color: #fff;
}

.pe-help {
    margin: 0;
    font-size: 0.78rem;
    color: #777;
}

.pe-help-inline {
    font-size: 0.78rem;
    color: #777;
}

/* Grid für Felder */

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

/* Slug */

.pe-slug-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pe-slug-prefix {
    font-size: 0.85rem;
    color: #555;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f3f5;
    border: 1px solid #dde1ea;
}

/* Kategorie-Pills */

.pe-category-pills {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.pe-category-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pe-category-pill {
    border-radius: 999px;
    border: 1px solid #ccd1dd;
    background: #f7f8fb;
    color: #333;
    font-size: 0.8rem;
    padding: 3px 9px;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.05s ease;
}

.pe-category-pill:hover {
    background: #e5f0ff;
    border-color: #2c7df7;
    transform: translateY(-1px);
}

/* Pricing Note */

.pe-pricing-note {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff7e6;
    border: 1px solid #f4d58a;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.8rem;
    color: #744210;
}

.pe-pricing-tag {
    padding: 2px 6px;
    border-radius: 999px;
    background: #f1e3c1;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =========================================
   BUTTONS
   ========================================= */

.pe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.05s ease;
}

.pe-btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.pe-btn-primary {
    background: linear-gradient(135deg, #2c7df7, #4dabff);
    color: #fff;
    border-color: #2c7df7;
    box-shadow: 0 4px 10px rgba(44,125,247,0.3);
}

.pe-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(44,125,247,0.35);
}

.pe-btn-secondary {
    background: #ffffff;
    border-color: #d0d4dd;
    color: #333;
}

.pe-btn-secondary:hover {
    background: #f4f6fb;
    border-color: #b8c0d0;
}

.pe-btn-danger {
    background: #fff1f2;
    border-color: #fda4af;
    color: #b91c1c;
}

.pe-btn-danger:hover {
    background: #fee2e2;
}

.pe-btn-ghost {
    background: transparent;
}

/* =========================================
   SWITCHES (Aktiv / Eyecatcher)
   ========================================= */

.pe-switch-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pe-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #dde1ea;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        transform 0.05s ease;
}

.pe-switch:hover {
    border-color: #2c7df7;
    background: #f2f7ff;
    transform: translateY(-1px);
}

.pe-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pe-switch-track {
    position: relative;
    width: 40px;
    height: 20px;
    border-radius: 999px;
    background: #e4e7f0;
    border: 1px solid #cbd1e1;
    flex-shrink: 0;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.pe-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.22);
    transition:
        transform 0.18s ease,
        background-color 0.18s ease;
}

.pe-switch-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pe-switch-title {
    font-size: 0.85rem;
    color: #222;
}

.pe-switch-sub {
    font-size: 0.78rem;
    color: #777;
}

/* Checked State */

.pe-switch input[type="checkbox"]:checked + .pe-switch-track {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #16a34a;
}

.pe-switch input[type="checkbox"]:checked + .pe-switch-track .pe-switch-thumb {
    transform: translateX(18px);
}

/* =========================================
   MEDIA PICKER – HELL
   ========================================= */

.pe-media-picker {
    border-radius: 8px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #dde1ea;
}

.pe-media-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.pe-media-filter-label {
    font-size: 0.8rem;
    color: #333;
}

.pe-media-filter {
    margin-left: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #ccd1dd;
    background: #ffffff;
    color: #222;
    font-size: 0.8rem;
}

.pe-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.pe-media-item {
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #dde1ea;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        transform 0.05s ease;
}

.pe-media-item:hover {
    border-color: #2c7df7;
    background: #f1f5ff;
    transform: translateY(-1px);
}

.pe-media-item--selected {
    border-color: #2c7df7;
    background: #e5f0ff;
}

.pe-media-thumb {
    width: 100%;
    padding-top: 70%;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f1f1;
}

.pe-media-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pe-media-meta {
    font-size: 0.75rem;
    line-height: 1.3;
}

.pe-media-title {
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pe-media-tag {
    margin-top: 1px;
    display: inline-block;
    padding: 1px 5px;
    border-radius: 999px;
    background: #edf2ff;
    color: #424b6a;
    font-size: 0.7rem;
}

.pe-media-checkbox {
    display: none;
}

/* =========================================
   DANGER ROW & FOOTER
   ========================================= */

.pe-danger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pe-danger-text {
    font-size: 0.75rem;
    color: #666;
}

.pe-footer {
    position: sticky;
    bottom: 0;
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #dde1ea;
    background: linear-gradient(to top, rgba(245,246,250,0.98), rgba(245,246,250,0.92), transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pe-footer-left,
.pe-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   TABELLEN IM PE-LAYOUT
   ========================================= */

.pe-shell .admin-table,
.pe-shell .pe-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.9rem;
    background: #ffffff !important;
    border-radius: 10px;
    overflow: hidden; /* runde Ecken auch für Kopfzeile */
}

/* Kopfzeile – hell, kein schwarzer Balken mehr */

.pe-shell .admin-table thead tr,
.pe-shell .pe-table thead tr {
    background: #f3f4f6 !important;
}

.pe-shell .admin-table thead th,
.pe-shell .pe-table thead th {
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: #111827 !important;
    border-bottom: 1px solid #e5e7eb !important;
    white-space: nowrap;
}

/* Body-Zeilen */

.pe-shell .admin-table tbody tr:nth-child(even),
.pe-shell .pe-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.pe-shell .admin-table tbody tr:nth-child(odd),
.pe-shell .pe-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.pe-shell .admin-table tbody td,
.pe-shell .pe-table tbody td {
    padding: 7px 10px;
    border-bottom: 1px solid #f1f3f5;
    color: #374151;
}

/* Hover-Effekt */

.pe-shell .admin-table tbody tr:hover td,
.pe-shell .pe-table tbody tr:hover td {
    background: #eef3ff;
}

/* Generell alle Rahmen weg, wir steuern Linien selbst */

.pe-shell .admin-table th,
.pe-shell .admin-table td,
.pe-shell .pe-table th,
.pe-shell .pe-table td {
    border: none;
}

/* Aktionen-Spalte */

.pe-table-actions {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pe-inline-form {
    display: inline-block;
    margin: 0;
}

/* Kleine Buttons in Tabellen */

.pe-btn-xs {
    padding: 4px 10px;
    font-size: 0.78rem;
}

/* Tabellen-Buttons – Standard-Button-Style im Table-Kontext */

.pe-shell .admin-table button,
.pe-shell .pe-table button {
    font-family: inherit;
    font-size: 0.78rem;
    border: none;
    background: transparent;
    padding: 0;
}

/* Nur unsere pe-btn-Optik zulassen */

.pe-shell .admin-table .pe-btn,
.pe-shell .pe-table .pe-btn {
    border-radius: 999px;
    border-width: 1px;
    border-style: solid;
    background: #ffffff;
    cursor: pointer;
}

/* Sekundär und Danger wie im Rest des Admins */

.pe-shell .admin-table .pe-btn.pe-btn-secondary,
.pe-shell .pe-table .pe-btn.pe-btn-secondary {
    border-color: #d0d4dd;
    color: #333;
}

.pe-shell .admin-table .pe-btn.pe-btn-secondary:hover,
.pe-shell .pe-table .pe-btn.pe-btn-secondary:hover {
    background: #f4f6fb;
    border-color: #b8c0d0;
}

.pe-shell .admin-table .pe-btn.pe-btn-danger,
.pe-shell .pe-table .pe-btn.pe-btn-danger {
    background: #fff1f2;
    border-color: #fda4af;
    color: #b91c1c;
}

.pe-shell .admin-table .pe-btn.pe-btn-danger:hover,
.pe-shell .pe-table .pe-btn.pe-btn-danger:hover {
    background: #fee2e2;
}

/* Kill alle schwarzen Balken in Tabellenköpfen im Admin-Bereich */
.pe-shell table thead tr,
.pe-shell table thead th {
    background-color: #f3f4f6 !important;
    background-image: none !important;
    color: #111827 !important;
}

/* zur Sicherheit noch konkreter für deine Produkt-Tabelle */
.pe-shell table.admin-table thead tr,
.pe-shell table.admin-table thead th {
    background-color: #f3f4f6 !important;
    background-image: none !important;
    color: #111827 !important;
}

/* =========================================
   FINANCE GRID & CARDS (ÜBERBLICK)
   ========================================= */

/* Fünf Karten nebeneinander (Desktop), dann runterstufen */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

/* Optional: kompakte Variante, nutzt das gleiche Grid – Klasse bleibt erhalten */
.finance-grid.finance-grid--compact {
    /* nutzt same layout wie .finance-grid, wird nur als Marker verwendet */
}

.finance-card {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.finance-card-strong {
    border-left: 3px solid #2c7df7;
}

.fc-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2px;
}

.fc-value {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.fc-sub {
    font-size: 0.75rem;
    color: #888;
}

/* etwas weniger Innenabstand im Card-Body des KPI-Blocks */
.pe-card.pe-card--primary .pe-card-body {
    padding: 10px 12px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1400px) {
    .finance-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .finance-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .pe-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 870px) {
    .pe-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pe-side {
        flex-direction: column;
    }
}

@media (max-width: 800px) {
    .finance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .pe-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pe-header-actions {
        align-self: stretch;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .pe-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .pe-footer-right,
    .pe-footer-left {
        justify-content: space-between;
    }

    .pe-btn {
        flex: 1;
        justify-content: center;
    }

    .pe-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .pe-shell {
        padding: 14px 12px 18px;
        border-radius: 8px;
    }

    .pe-steps {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .pe-step {
        flex: 1 1 100px;
        justify-content: center;
    }

    .pe-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    .finance-grid {
        grid-template-columns: 1fr;
    }
}

/* Finance-Überblick: Karten dürfen volle Breite nutzen */
.finance-section .pe-card--primary .pe-card-body {
    max-width: none;
}

/* Finance-Karten breiter machen */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

/* leicht mehr Luft in den Karten */
.finance-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

/* =========================================
   SHOP STARTSEITE – ALIGN MIT PE-SHELL / ADMIN
   ========================================= */

/* Rahmen wie beim Produkt-Editor, nur etwas dezenter */
.shop-shell {
    max-width: 1100px;
    margin: 0 auto 28px auto;
    padding: 16px 18px 20px;
    border-radius: 14px;
    background: #f5f6fa;
    border: 1px solid #e2e5ec;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* Hero-Block sehr schlicht, damit nichts erschlägt */
.shop-hero {
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.shop-hero-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.shop-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
}

.shop-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Sektionen – wie kleine Kartenbereiche im Shell,
   aber ohne fette Boxen drumherum */
.home-section {
    margin-top: 14px;
}

.home-section-header {
    margin-bottom: 8px;
}

.home-section-title {
    margin: 0 0 3px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
}

.home-section-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: #777;
}

/* Highlight-Sektion – ganz leicht betont, kein Kirmes */
.home-section--highlight {
    padding: 10px 12px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0, #f7f9ff 45%, #ffffff 100%);
    border: 1px solid #d8e2ff;
}

.home-section--highlight .home-section-header {
    margin-bottom: 10px;
}

/* Produkt-Grid – ähnlich wie Admin-Kartenraster */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

/* Produktkarte – orientiert sich an admin-tile / pe-card */

.product-card {
    position: relative;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #dde1ea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    transition:
        box-shadow 0.15s ease,
        transform 0.12s ease,
        border-color 0.15s ease;
}

.product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: #c4d7ff;
}

/* Bildbereich – schlicht, wie Media-Thumbs im Admin */

.product-card-image {
    width: 100%;
    padding-top: 70%;
    position: relative;
    background: #f3f4f6;
}

.product-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #777;
}

/* Textbereich – gleiche Typo wie in den Admin-Forms */

.product-card-body {
    padding: 9px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 600;
    color: #222;
}

.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 4px;
}

/* Kategorie-Badge wie badge-category im Admin */

.product-card-category {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid #ccc;
    background: #f7f7fb;
    font-size: 0.78rem;
    color: #444;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Preis – leicht hervorgehoben, aber nicht schreiend */

.product-card-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

/* Responsiv an den Rest angepasst */

@media (max-width: 900px) {
    .shop-shell {
        padding: 12px 14px 18px;
        border-radius: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
}

@media (max-width: 600px) {
    .shop-shell {
        padding: 10px 10px 16px;
    }

    .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Grid nicht mehr auto-stretch, sondern feste, kleine Karten nebeneinander */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

/* Karten bewusst kompakt halten */
.product-card {
    position: relative;
    flex: 0 0 210px;              /* feste Breite -> werden NICHT riesig */
    max-width: 210px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #dde1ea;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    transition:
        box-shadow 0.15s ease,
        transform 0.12s ease,
        border-color 0.15s ease;
}

.product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
    transform: translateY(-1px);
    border-color: #c4d7ff;
}

/* Bild kleiner halten (weniger Höhe) */
.product-card-image {
    width: 100%;
    padding-top: 60%;             /* vorher 70% o.ä. -> macht die Karte kürzer */
    position: relative;
    background: #f3f4f6;
}

.product-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Textbereich kompakt */
.product-card-body {
    padding: 7px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product-card-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
}

.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 2px;
}

.product-card-category {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid #ccc;
    background: #f7f7fb;
    font-size: 0.72rem;
    color: #444;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
}

/* Handy: Karten dürfen dann 100% nutzen */
@media (max-width: 480px) {
    .product-card {
        flex: 1 1 100%;
        max-width: none;
    }
}

/* =========================================
   CART – AN PE-/ADMIN-STYLE ANGEPASST
   ========================================= */

.cart-shell {
    /* nutzt pe-shell-Optik, ggf. nur minimal anpassen */
}

/* Layout: links Tabelle, rechts kleine Summary-Karte */
.cart-layout {
    margin-top: 4px;
}

.cart-summary-card .pe-card-body {
    max-width: none;
}

/* Mengenfeld kompakt */
.cart-qty-input {
    width: 70px;
    border-radius: 8px;
    border: 1px solid #ccd1dd;
    padding: 5px 6px;
    font-size: 0.85rem;
}

/* Aktionszeile unter der Tabelle */
.cart-actions-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Summary-Block rechts */
.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-summary-row--total {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

/* Mobil: alles untereinander */
@media (max-width: 870px) {
    .cart-actions-row {
        flex-wrap: wrap;
    }
}

/* =========================================
   PRODUKT-DETAIL – PE-/SHOP-STYLE
   ========================================= */

.product-detail-shell {
    /* nutzt die vorhandene pe-shell-Optik */
}

/* Layout leicht enger als Standard-PE, damit Detailseite ruhig wirkt */
.product-detail-layout {
    align-items: flex-start;
}

/* Badge über dem Titel */
.product-detail-category-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4ff;
    border: 1px solid #d4d8ff;
    font-size: 0.75rem;
    color: #424b6a;
    margin-bottom: 4px;
}

/* Hauptkarte */
.product-detail-main-card .pe-card-body {
    max-width: none;
}

.product-detail-main-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Galerie: Bild links, Text rechts */
.product-detail-gallery {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
    gap: 14px;
}

/* Main-Bild */
.product-detail-image-main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-detail-image-main {
    position: relative;
    width: 100%;
    padding-top: 70%;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #dde1ea;
}

.product-detail-image-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-image-main--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #777;
}

/* Thumbs */
.product-detail-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-detail-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dde1ea;
    background: #f3f4f6;
}

.product-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Textblock rechts */
.product-detail-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Preis groß, aber nicht schreiend */
.product-detail-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

/* Beschreibung */
.product-description {
    font-size: 0.92rem;
    line-height: 1.45;
    color: #333;
}

/* Kaufbox rechts */
.product-detail-buy-card .pe-card-body {
    max-width: 320px;
}

.product-detail-buy-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-detail-stock {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: #111827;
}

.product-detail-stock-label {
    color: #555;
}

/* Out-of-stock Block */
.product-out-of-stock {
    padding: 8px 10px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: 0.9rem;
    color: #7f1d1d;
}

/* Responsive: untereinander auf kleineren Screens */
@media (max-width: 870px) {
    .product-detail-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-detail-buy-card .pe-card-body {
        max-width: none;
    }
}
/* =========================================
   CHECKOUT – AN PE-/SHOP-STYLE ANGEPASST
   ========================================= */

.checkout-shell {
    /* nutzt pe-shell-Optik, optional minimal enger machen */
}

/* Layout-Spaltengap */
.checkout-layout {
    margin-top: 4px;
}

/* Kartenbreite rechts nicht künstlich einschränken */
.checkout-summary-card .pe-card-body {
    max-width: none;
}

/* Formular-Innenabstände leicht enger */
.checkout-form .pe-field + .pe-field {
    margin-top: 8px;
}

/* Zahlungsarten-Karten */

.checkout-payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.checkout-payment-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid #dde1ea;
    background: #f9fafb;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.05s ease;
}

.checkout-payment-option:hover {
    border-color: #2c7df7;
    background: #f2f7ff;
    box-shadow: 0 2px 6px rgba(44,125,247,0.12);
    transform: translateY(-1px);
}

.checkout-payment-option input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.checkout-payment-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-payment-main {
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
}

.checkout-payment-sub {
    font-size: 0.8rem;
    color: #666;
}

/* Hinweis unten im Formular */

.checkout-hint {
    margin-top: 10px;
}

/* Submit-Row */

.checkout-submit-row {
    margin-top: 12px;
}

/* Warenkorb-Tabelle im Checkout */

.checkout-cart-table .checkout-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
}

.checkout-cart-table .checkout-item-price-single {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
}

/* Totals */

.checkout-totals {
    margin-top: 10px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.checkout-total-row-grand {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Zurück-Link */

.checkout-back {
    margin-top: 10px;
}

/* Mobile */

@media (max-width: 870px) {
    .checkout-payment-options {
        gap: 6px;
    }

    .checkout-submit-row button {
        width: 100%;
    }
}
/* =========================================
   ORDER CONFIRM – PE-/SHOP-STYLE
   ========================================= */

.order-confirm-shell {
    /* nutzt pe-shell-Optik */
}

.order-confirm-card {
    padding: 14px 16px 16px;
}

/* Header */

.order-confirm-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.order-confirm-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-confirm-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #dcfce7;
    border: 1px solid #86efac;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #166534;
    font-size: 1.1rem;
}

.order-confirm-heading {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.order-confirm-sub {
    margin: 2px 0 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Meta rechts */

.order-confirm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.85rem;
}

.order-confirm-meta > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
    color: #9ca3af;
}

.meta-value {
    font-weight: 600;
    color: #1f2933;
}

/* Main: zwei Spalten */

.order-confirm-main {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
    gap: 16px;
    margin-top: 12px;
}

.order-confirm-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-confirm-section-title {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

/* Totals */

.order-confirm-totals {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.order-confirm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.order-confirm-row-total {
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
}

/* Hinweistext */

.order-confirm-hint {
    margin-top: 6px;
}

/* Zahlungsbox */

.order-confirm-box {
    padding: 9px 10px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #dde1ea;
    font-size: 0.9rem;
    color: #111827;
}

.order-confirm-box p {
    margin: 0 0 6px 0;
}

.order-confirm-box p:last-child {
    margin-bottom: 0;
}

/* Footer */

.order-confirm-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

/* Mobile */

@media (max-width: 768px) {
    .order-confirm-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-confirm-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .order-confirm-footer {
        justify-content: flex-start;
    }
}

/* =========================================
   STATISCHE SEITEN (Impressum, AGB, etc.)
   ========================================= */

.page-shell {
    max-width: 900px;
    margin: 0 auto 32px auto;
    padding: 18px 20px 22px;
    border-radius: 14px;
    background: #f5f6fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e2e5ec;
    box-sizing: border-box;
}

.page-header {
    margin-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.page-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}

/* Inhalt – typografisch ruhig, passt zum Rest */

.page-body {
    display: block;
}

.page-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #111827;
}

/* Standard-Elemente innerhalb des CMS-Contents */

.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: 1.3em;
    margin-bottom: 0.4em;
    font-weight: 600;
    color: #111827;
}

.page-content h2 {
    font-size: 1.15rem;
}

.page-content h3 {
    font-size: 1.05rem;
}

.page-content p {
    margin: 0 0 0.8em 0;
}

.page-content ul,
.page-content ol {
    padding-left: 1.2em;
    margin: 0 0 0.8em 0;
}

.page-content li {
    margin-bottom: 0.25em;
}

.page-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.page-content a:hover {
    color: #1d4ed8;
}

/* Tabellen im Seiten-Content */

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.8em 0;
    font-size: 0.9rem;
}

.page-content th,
.page-content td {
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
}

.page-content th {
    background: #f3f4f6;
    font-weight: 600;
}

/* Mobile */

@media (max-width: 640px) {
    .page-shell {
        padding: 14px 12px 18px;
        border-radius: 10px;
    }

    .page-title {
        font-size: 1.25rem;
    }
}
/* =========================================
   NEWS-LISTE – KOMPAKT, KLEINES BILD LINKS
   ========================================= */

.news-shell {
    max-width: 900px;
    margin: 0 auto 32px auto;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

/* Bild links, deutlich schmaler */

.news-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e5ec;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    align-items: center;
}

/* vorher z.B. 72px breit – jetzt etwa halb so schmal */

.news-thumb.news-thumb--small {
    display: block;
    width: 40px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.news-thumb.news-thumb--small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text rechts */

.news-item-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-item-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #111827;
}

.news-item-title a {
    color: inherit;
    text-decoration: none;
}

.news-item-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.news-item-teaser {
    margin: 1px 0 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #374151;
}

.news-item-meta {
    margin: 2px 0 0 0;
    font-size: 0.78rem;
    color: #6b7280;
}

/* Falls kein Bild: Einspalter */

.news-item:not(:has(.news-thumb)) {
    grid-template-columns: minmax(0, 1fr);
}

/* Mobile */

@media (max-width: 600px) {
    .news-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .news-thumb.news-thumb--small {
        width: 36px;
        height: 64px;
    }
}

/* =========================================
   NEWS-DETAIL – BILD LINKS, ETWAS GRÖSSER
   ========================================= */

.news-detail-shell {
    max-width: 900px;
    margin: 0 auto 32px auto;
    padding: 18px 20px 22px;
    border-radius: 14px;
    background: #f5f6fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e2e5ec;
    box-sizing: border-box;
}

.news-detail {
    display: block;
}

/* Header: links Bild, rechts Titel + Datum */

.news-detail-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

.news-detail-thumb {
    width: 120px;
    height: 200px;           /* höher als vorher (ca. +50%) */
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.news-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-header-text {
    flex: 1 1 auto;
    min-width: 0;
}

.news-detail-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
}

.news-detail-meta {
    margin: 3px 0 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Teaser & Content wie gehabt */

.news-detail-teaser {
    margin: 4px 0 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    color: #111827;
}

.news-detail-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #111827;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    margin-top: 1.3em;
    margin-bottom: 0.4em;
    font-weight: 600;
    color: #111827;
}

.news-detail-content h2 {
    font-size: 1.15rem;
}

.news-detail-content h3 {
    font-size: 1.05rem;
}

.news-detail-content p {
    margin: 0 0 0.8em 0;
}

.news-detail-content ul,
.news-detail-content ol {
    padding-left: 1.2em;
    margin: 0 0 0.8em 0;
}

.news-detail-content li {
    margin-bottom: 0.25em;
}

.news-detail-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.news-detail-content a:hover {
    color: #1d4ed8;
}

/* Mobile */

@media (max-width: 640px) {
    .news-detail-shell {
        padding: 14px 12px 18px;
        border-radius: 10px;
    }

    .news-detail-header {
        align-items: flex-start;
    }

    .news-detail-thumb {
        width: 100px;
        height: 130px;
    }

    .news-detail-title {
        font-size: 1.15rem;
    }
}
/* =========================================
   404 / FEHLERSEITEN – FRONTSTYLE
   ========================================= */

.error-shell {
    max-width: 600px;
    margin: 40px auto;
    padding: 22px 24px 26px;
    border-radius: 14px;
    background: #f5f6fa;
    border: 1px solid #e2e5ec;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    text-align: center;
    box-sizing: border-box;
}

.error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 800;
    font-size: 1.4rem;
    border: 2px solid #fecaca;
}

.error-title {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}

.error-text {
    margin: 0 0 14px 0;
    font-size: 0.95rem;
    color: #4b5563;
}

.error-back {
    margin-top: 4px;
}

/* =========================================
   Grundlayout & Container
   ========================================= */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f6fa;
}

.main-content,
.site-content {
    flex: 1 0 auto;
    padding: 24px 0 32px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* =========================================
   HEADER (dunkel)
   ========================================= */

.site-header {
    background: #111827;
    color: #f9fafb;
    border-bottom: 1px solid #1f2937;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 16px;
}

.logo-block {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Navigation oben */

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
}

.main-nav a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
    background: #1f2937;
    color: #ffffff;
}

/* Header-Right (Cart + User) */

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.cart-link {
    padding: 4px 10px;
    border-radius: 999px;
    background: #1f2937;
    color: #f9fafb;
    text-decoration: none;
    font-weight: 500;
}

.cart-link:hover {
    background: #2563eb;
}

.user-name {
    color: #e5e7eb;
}

.admin-link,
.auth-link {
    color: #e5e7eb;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-link:hover,
.auth-link:hover {
    background: #1f2937;
    color: #ffffff;
}

/* =========================================
   FOOTER (dunkel)
   ========================================= */

.site-footer {
    background: #111827;
    color: #9ca3af;
    border-top: 1px solid #1f2937;
    flex-shrink: 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px 12px;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 10px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.footer-links a:hover {
    background: #1f2937;
    color: #ffffff;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-right {
        order: 2;
        margin-left: auto;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* =====================================================
   ADMIN NAVIGATION – PE-STYLE, KOMPAKT
   ===================================================== */

.admin-nav {
    background: transparent;
    padding: 0 0 12px 0;
    margin-bottom: 16px;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e2e5ec;
}

.admin-nav-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #6b7280;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Fallback, falls irgendwo noch .admin-nav ul ohne .admin-nav-list benutzt wird */
.admin-nav ul:not(.admin-nav-list) {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-nav li {
    margin: 0;
    padding: 0;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid #dde1ea;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.05s ease,
        color 0.15s ease;
}

.admin-nav-link:hover {
    background: #f3f4ff;
    border-color: #2c7df7;
    box-shadow: 0 2px 6px rgba(37,99,235,0.18);
    transform: translateY(-1px);
    color: #1f2937;
}

.admin-nav-link.active {
    background: linear-gradient(135deg, #2c7df7, #4dabff);
    border-color: #2c7df7;
    color: #ffffff;
    box-shadow: 0 3px 9px rgba(37,99,235,0.35);
}

/* Separator bleibt, nur etwas leichter */

.admin-separator {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 8px 0 18px 0;
}

/* Responsive: auf kleineren Screens enger packen / ggf. Zeilenumbruch */

@media (max-width: 768px) {
    .admin-nav {
        padding-bottom: 10px;
        margin-bottom: 14px;
    }

    .admin-nav-title {
        margin-bottom: 4px;
        font-size: 0.8rem;
    }

    .admin-nav-list,
    .admin-nav ul:not(.admin-nav-list) {
        gap: 4px;
    }

    .admin-nav-link {
        padding: 5px 9px;
        font-size: 0.8rem;
    }
}
