/*
Theme Name: Verwertungsportal Child
Template: astra
Version: 1.0.0
Description: Child-Theme fÃ¼r Verwertungsportal basierend auf Astra
*/

@import url("../astra/style.css");

/* Portal Design Variablen */
:root {
    --portal-primary: #1e3a5f;
    --portal-success: #10b981;
    --portal-warning: #f39c12;
    --portal-danger: #ef4444;
    --portal-gray: #6c757d;
}

/* Grundlegende Schriftart */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ULTRA-AGGRESSIVE Astra-Override für Portal-Seiten */
body.portal-page * {
    box-sizing: border-box !important;
}



body.portal-page .site-content,
body.portal-page .site-content div.ast-container,
body.portal-page .site-content .ast-container,
body.portal-page .site-content .ast-container,
body.portal-page .ast-separate-container,
body.portal-page .ast-separate-container .ast-article-single,
body.portal-page .ast-separate-container .ast-article-post,
body.portal-page #content,
body.portal-page #primary,
body.portal-page .entry-content,
body.portal-page .site-main,
body.portal-page main,
body.portal-page article {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: none !important;
    width: 100% !important;
    display: block !important;
}

/* Portal-Dashboard überschreibt alles */
body.portal-page .portal-dashboard {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Portal Haupt-Container - Volle Breite */
.portal-dashboard {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Admin-Portal */
div.portal-dashboard.admin-portal {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Portal Navigation - Einheitlich für alle Seiten */
.portal-nav {
    background: var(--portal-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 80px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.portal-nav-logo {
    padding: 20px 20px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

.portal-nav-menu {
    display: flex;
    gap: 0;
    height: 100%;
}

.portal-nav-item {
    color: white;
    padding: 0 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
    border: none;
    background: none;
    white-space: nowrap;
    position: relative;
    font-size: 15px;
}

/* Admin-Portal Navigation kompakter */
.admin-portal .portal-nav-item {
    padding: 0 20px;
    font-size: 14px;
}

.admin-portal .portal-nav-logo {
    padding: 20px 20px;
    font-size: 16px;
}

.admin-portal .portal-nav-user {
    padding: 0 20px;
    gap: 10px;
}

.portal-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: white;
    transition: transform 0.3s ease;
}

.portal-nav-item:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.portal-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
}

.portal-nav-item.active {
    background: #0f2335;
    color: white;
}

.portal-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    color: white;
    white-space: nowrap;
    height: 80px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f39c12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.logout-btn {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
    color: white;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
    transform: translateY(0);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.btn-primary {
    background: var(--portal-primary);
    color: white;
}

.btn-primary:hover {
    background: #0f2335;
    color: white;
    text-decoration: none;
}

.btn-success {
    background: var(--portal-success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-full {
    width: 100%;
}

/* Card Design */
.portal-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.portal-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.portal-card h3 {
    margin-top: 0;
    color: var(--portal-primary);
}

/* Grundlegende Responsive Anpassung - DEAKTIVIERT für Desktop-Portal */
@media (max-width: 600px) {
    .portal-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .portal-nav-menu {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .portal-nav-item {
        padding: 15px 20px;
        min-width: max-content;
    }
}
/* Benachrichtigungs-System */
.portal-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.portal-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-info {
    background: #3b82f6;
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

.notification-warning {
    background: #f59e0b;
}

/* Modal-System */
.portal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portal-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.portal-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--portal-primary);
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Loading-States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--portal-primary);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Body-Klasse wenn Modal offen */
body.modal-open {
    overflow: hidden;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .portal-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

.portal-login-page {
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 900px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%);
    color: white;
    text-align: center;
    padding: 40px 30px;
}

.login-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

.login-header h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 400;
    color: white;
    opacity: 0.95;
}

.login-header p {
    margin: 0;
    font-size: 14px;
    color: white;
    opacity: 0.9;
}

.login-tabs {
    display: flex;
    background: #f8f9fa;
    align-items: stretch;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s;
    box-sizing: border-box;
}

.tab-btn.active {
    background: white;
    color: #1e3a5f;
    border-bottom: 3px solid #1e3a5f;
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: #1e3a5f;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
    border-color: #9ca3af;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.5;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.authority-notice {
    background: #f0f9ff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    border-radius: 6px;
}

.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: #1e3a5f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.form-links a:hover {
    text-decoration: underline;
}

.agreements {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.registration-note {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 16px 20px;
    margin-top: 20px;
    border-radius: 4px;
}

.registration-note p {
    margin: 0;
    color: #1e40af;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .portal-login-page {
        padding: 20px 15px;
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .tab-content {
        padding: 30px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .login-header h2 {
        font-size: 16px;
    }
}

/* ==================== 
   PROZESSÃœBERSICHT TIMELINE (Dashboard)
   ==================== */
.process-timeline-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.process-timeline-container h2 {
    color: var(--color-primary);
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 600;
}

.process-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 10px 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 10px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f2f5;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 600;
    font-size: 18px;
}

.step-content h4 {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.step-content p {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.timeline-arrow {
    color: var(--color-primary);
    font-size: 24px;
    padding: 0 5px;
    opacity: 0.4;
    flex-shrink: 0;
    margin-top: 25px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .process-timeline {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .timeline-arrow {
        display: none;
    }
    
    .process-step {
        padding: 15px;
        background: #f9fafb;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        display: flex;
        align-items: center;
        text-align: left;
    }
    
    .step-number {
        margin: 0 15px 0 0;
        flex-shrink: 0;
    }
    
    .step-content h4 {
        margin-bottom: 2px;
    }
    
    .step-content p {
        font-size: 11px;
    }
}

/* Zugangscode Screen */
.access-code-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 20px;
}

.access-code-box {
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    width: 100%;
    padding: 40px;
    text-align: center;
}

.access-code-box h1 {
    color: #1e3a5f;
    font-size: 28px;
    margin: 10px 0;
}

.access-code-box h2 {
    color: #6b7280;
    font-size: 18px;
    font-weight: normal;
    margin: 5px 0 20px;
}

.access-code-box p {
    color: #6b7280;
    margin: 10px 0;
}

#access_code:focus {
    outline: none;
    border-color: #0073aa;
}

/* Erwerbsliste Counter */
.cart-count {
    color: #f59e0b;
    font-weight: 600;
    margin-left: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.portal-nav-item .cart-count {
    color: inherit;
    opacity: 0.9;
}

/* Smooth Scroll Global */
html {
    scroll-behavior: smooth;
}

/* Pulse Animation für wichtige Elemente */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Link Hover Effekte */
a {
    transition: color 0.2s ease;
}

/* Table Hover (für Listenansicht) */
table tr {
    transition: background 0.2s ease;
}

table tr:hover {
    background: #f9fafb;
}

/* Checkbox & Radio Transitions */
input[type="checkbox"],
input[type="radio"] {
    transition: all 0.2s ease;
    cursor: pointer;
}

/* ========================================
   REFERENZNUMMER NAVIGATION
   ======================================== */

/* User Navigation mit Referenznummer */
.portal-nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #1f2937;
}

.portal-nav-user > span {
    font-weight: 500;
}

/* Referenznummer Styles */
.ref-separator {
    color: #9ca3af;
    font-weight: 300;
    margin: 0 4px;
}

.referenznummer {
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* Responsive: Referenznummer auf kleinen Bildschirmen ausblenden */
@media (max-width: 1024px) {
    .referenznummer,
    .ref-separator {
        display: none;
    }
}

/* ===================================
   KATEGORIEN-FARBEN FÜR BADGES
   Alle 17 Kategorien
   =================================== */

/* Bestehende Kategorien (7) */
.kategorie-badge.kategorie-wein,
.lot-category-wein {
    background: #E91E63;
    color: #FFFFFF;
}

.kategorie-badge.kategorie-champagner,
.lot-category-champagner {
    background: #F48FB1;
    color: #000000;
}

.kategorie-badge.kategorie-cognac,
.lot-category-cognac {
    background: #FF9800;
    color: #FFFFFF;
}

.kategorie-badge.kategorie-whiskey,
.kategorie-badge.kategorie-whisky,
.lot-category-whiskey,
.lot-category-whisky {
    background: #FFB74D;
    color: #000000;
}

.kategorie-badge.kategorie-rum,
.lot-category-rum {
    background: #FFCC80;
    color: #000000;
}

.kategorie-badge.kategorie-gin,
.lot-category-gin {
    background: #4DD0E1;
    color: #000000;
}

.kategorie-badge.kategorie-vodka,
.lot-category-vodka {
    background: #90A4AE;
    color: #FFFFFF;
}

/* Neue Kategorien (10) */
.kategorie-badge.kategorie-tequila,
.lot-category-tequila {
    background: #FFD54F;
    color: #000000;
}

.kategorie-badge.kategorie-likör,
.lot-category-likör,
.kategorie-badge.kategorie-likor,
.lot-category-likor {
    background: #EF5350;
    color: #FFFFFF;
}

.kategorie-badge.kategorie-aperitif,
.lot-category-aperitif {
    background: #FF7043;
    color: #FFFFFF;
}

.kategorie-badge.kategorie-vermouth,
.lot-category-vermouth {
    background: #AD1457;
    color: #FFFFFF;
}

.kategorie-badge.kategorie-portwein,
.lot-category-portwein {
    background: #C62828;
    color: #FFFFFF;
}

.kategorie-badge.kategorie-sake,
.lot-category-sake {
    background: #81D4FA;
    color: #000000;
}

.kategorie-badge.kategorie-mezcal,
.lot-category-mezcal {
    background: #66BB6A;
    color: #FFFFFF;
}

.kategorie-badge.kategorie-grappa,
.lot-category-grappa {
    background: #BDBDBD;
    color: #000000;
}

.kategorie-badge.kategorie-calvados,
.lot-category-calvados {
    background: #8D6E63;
    color: #FFFFFF;
}

.kategorie-badge.kategorie-kräuterlikör,
.lot-category-kräuterlikör,
.kategorie-badge.kategorie-krauterlikör,
.lot-category-krauterlikör,
.kategorie-badge.kategorie-kraeuterlikoer,
.lot-category-kraeuterlikoer {
    background: #388E3C;
    color: #FFFFFF;
}

/* ===================================
   DIREKTERWERB-BOX STYLING
   Option A: Grüne Umrandung + Heller Hintergrund
   =================================== */

.direkterwerb-box {
    border: 2px solid #28a745;
    background: #f0f9f4;
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    margin-bottom: 15px;
}

.direkterwerb-box .direkterwerb-label {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.direkterwerb-box .direkterwerb-preis {
    font-size: 20px;
    color: #28a745;
    font-weight: 700;
    display: block;
}

.direkterwerb-box .direkterwerb-hinweis {
    font-size: 11px;
    color: #28a745;
    margin-top: 4px;
    display: block;
}

/* Direkterwerb in Tabellen-Ansicht (bereits grün) */
.direkterwerb-price {
    color: #28a745;
    font-weight: 700;
}

/* ===================================
   BADGE GRUNDSTYLES
   =================================== */

.kategorie-badge,
.lot-category-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Responsive: Kleinere Badges auf Mobile */
@media (max-width: 768px) {
    .kategorie-badge,
    .lot-category-badge {
        padding: 4px 10px;
        font-size: 10px;
    }
}