:root {
    --background: #ffffff;
    --surface: #f9f9f9;
    --surface-elevated: #f9f9f9;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius: 12px;
    --radius-large: 20px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    background: var(--surface);
    margin: 2rem 0px;
    border-radius: 20px;
    padding: 10px;
    box-shadow: var(--shadow-md);
    justify-content: space-between;
}


.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 5px 10px;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 20px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Main Layout */
.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    min-width: fit-content;
}

.nav-item:hover {
    background: rgba(31, 69, 102, 0.08);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.nav-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Content Area */

.content-panel {
    display: none;
}

.content-panel.active {
    display: block;
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.card-header {
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.field-hidden {
    display: none !important;
}

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

.logo-upload-container {
    position: relative;
    width: 200px;
    height: 200px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: #f9fafb;
}

.logo-upload-container:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.logo-upload-container.drag-over {
    border-color: #10b981;
    background-color: #ecfdf5;
    transform: scale(1.02);
}

.current-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.logo-upload-container:hover .upload-overlay {
    opacity: 1;
}

.plus-icon {
    width: 48px;
    height: 48px;
    color: white;
    stroke-width: 2;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
    text-align: center;
    padding: 1rem;
}

.upload-placeholder .plus-icon {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.upload-text {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.file-input {
    display: none;
}

.logo-background {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label.eegLabel {
    text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.875rem 1rem!important;
    border: 2px solid var(--border-light)!important;
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--text-primary);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 69, 102, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Input file styling */
.form-input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed var(--border-light);
    cursor: pointer;
}

.form-input[type="file"]:hover {
    border-color: var(--primary-color);
}

/* Color input styling */
.form-input[type="color"] {
    height: 50px;
    padding: 0.25rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    justify-content: center;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}


.btn-primary.abo {
    background: var(--primary-color);
    color: white;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 0px);
}

.btn-primary:hover:not(:disabled) {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}


.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Dashboard Home */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Products Table */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.table th {
    background: var(--background);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table tr:hover {
    background: var(--background);
}

.table tr:last-child td {
    border-bottom: none;
}

/* Team Members */
.member-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    margin-bottom: 1rem;
    transition: var(--transition);
    position: relative;
}

/* Eigener Kontakt hervorgehoben */
.member-card.my-contact {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(31, 69, 102, 0.05) 0%, rgba(191, 247, 5, 0.05) 100%);
}

/* Team Separator */
.team-separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.team-separator::before,
.team-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.team-separator span {
    white-space: nowrap;
}

.member-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.member-email {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.member-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    position: absolute;
    top: 5px;
    right: 5px;
}

.status-active {
    background: #dcfce7;
    color: #166534;
    display: none;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

/* Subscription Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    background: var(--surface);
    border-radius: var(--radius-large);
    padding: 2rem;
    border: 2px solid var(--border-light);
    position: relative;
    transition: var(--transition);
    padding-bottom: 70px;
}

.plan-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-card.featured {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(191, 247, 5, 0.05) 0%, rgba(31, 69, 102, 0.05) 100%);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

/* Domain Verification */
.verification-steps {
    background: var(--background);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.verification-step {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.verification-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.verification-code {
    background: var(--text-primary);
    color: var(--surface);
    padding: 0.75rem;
    border-radius: var(--radius);
    font-family: 'SF Mono', Monaco, 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    font-size: 0.875rem;
    margin: 0.5rem 0;
    word-break: break-all;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Overlay */
.loadingOverlay {
    display: none;
    position: absolute;
    border-radius: var(--radius-large);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.loadingOverlay.active {
    display: flex;
    pointer-events: none;
}

.loadingOverlay .spinner {
    border: 8px solid var(--primary-color);
    border-top: 8px solid var(--secondary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Error Messages */
.errorMessage {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Success Messages */
#account-creation-message, #password-reset-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
}

/* Form Links */
.form-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.form-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-links a:hover {
    color: var(--primary-color);
    background: rgba(31, 69, 102, 0.08);
}

/* Focus States for Accessibility */
.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
.nav-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .main-content {
        padding: 0 1rem;
    }

    .tab-navigation {
        margin: 1rem 0;
        padding: 0.25rem;
    }

    .nav-item {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

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

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

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

    .member-card {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .table-container {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.5rem;
    }

    .member-card {
        padding: 1rem;
    }

    .plan-card {
        padding: 1.5rem;
    }

    .nav-item {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }

    .nav-icon {
        width: 16px;
        height: 16px;
    }

    .form-links {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn + .btn {
        margin-top: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .tab-navigation,
    .btn {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid var(--border-light);
    }

    .content-panel {
        display: block !important;
    }
}



/* Edit Team Member Popup Styling */
#editTeamMemberOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#editTeamMemberOverlay .card {
    background: var(--surface);
    border-radius: var(--radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 0;
}

#editTeamMemberOverlay .card-header {
    position: relative;
    margin-bottom: 2rem;
}

#closeEditTeamMemberButton {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#closeEditTeamMemberButton:hover {
    background: var(--background);
    color: var(--text-primary);
}

/* Member role styling */
.member-role {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive design for the popup */
@media (max-width: 768px) {
    #editTeamMemberOverlay .card {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }

    #editTeamMemberOverlay .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #editTeamMemberOverlay .card {
        width: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
        max-height: 100vh;
    }
}

/* Checkbox styling for organizationStandard */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-label input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Product Image Header */
.product-image-header {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    background: var(--background);
}

.product-image-container:hover {
    border-color: var(--primary-color);
    transform: scale(1.01);
}

.product-image-container.has-image {
    border: none;
}

.product-image-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--transition);
}

.image-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    gap: 0.5rem;
}

.product-image-container:hover .image-upload-overlay {
    opacity: 1;
}

.product-image-container:not(.has-image) .image-upload-overlay {
    opacity: 1;
    background: rgba(31, 69, 102, 0.1);
    color: var(--text-secondary);
}

.upload-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Drag & Drop Styling */
.product-image-container.drag-over {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
    transform: scale(1.02);
}

.product-image-container.drag-over .image-upload-overlay {
    opacity: 1;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}


/* Platzhalter-Bild Styling */
.product-image-container.has-placeholder {
    border-style: dashed;
    border-color: var(--border-medium);
}

.product-image-container.has-placeholder .product-image-background {
    opacity: 0.3;
    filter: grayscale(100%);
}

.product-image-container.has-placeholder .image-upload-overlay {
    opacity: 1;
    background: rgba(31, 69, 102, 0.05);
    color: var(--text-secondary);
}

.product-image-container.has-placeholder:hover .image-upload-overlay {
    background: rgba(31, 69, 102, 0.1);
}

.product-image-container.has-placeholder:hover .product-image-background {
    opacity: 0.5;
}

/* Echtes Bild hat Vorrang */
.product-image-container.has-image {
    border: none;
}

.product-image-container.has-image .product-image-background {
    opacity: 1;
    filter: none;
}
@media (max-width: 768px) {
    .product-image-container {
        height: 150px;
    }

    .upload-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .product-image-container {
        height: 120px;
    }

    .plus-icon {
        width: 32px;
        height: 32px;
    }
}


.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.category-section {
    background: var(--surface);
    border-radius: var(--radius-large);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.category-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 0;
}

.category-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    width: 24px;
    height: 24px;
    opacity: 0.9;
}

.category-add-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.category-add-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.category-content {
    padding: 0;
}

.category-products {
    max-height: 400px;
    overflow-y: auto;
}


.product-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 30px;
    padding-bottom: 0px;
}

.product-standard {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: end;
}

.empty-category {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.empty-category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.empty-category h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.empty-category p {
    margin: 0;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .product-details {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .product-actions {
        flex-direction: column;
    }
}

.product-category-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    min-width: fit-content;
}

.category-tab:hover {
    color: var(--text-primary);
    background: rgba(31, 69, 102, 0.05);
}

.category-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(31, 69, 102, 0.1);
}

.category-tab-icon {
    width: 18px;
    height: 18px;
}

.category-tab-count {
    background: var(--text-secondary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.category-tab.active .category-tab-count {
    background: var(--primary-color);
}

div#category-systemhardware {
    background: white;
}

/* Tab Content */
.category-tab-content {
    display: none;
}

.category-tab-content.active {
    display: block;
}

.category-header-with-add {
    top: 20px;
    right: 20px;
    margin-bottom: 1.5rem;
    position: absolute;
}

.category-title-section h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.category-title-section p {
    margin: 0.25rem 0 0 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Product List */
.tab-content {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
    overflow-y: auto;
    height: calc(100vh - 250px);
}

.product-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    gap: 1.5rem;
}

.product-item:last-child {
    border-bottom: none;
}

.product-item:hover {
    background: var(--background);
}

.product-item-header {
    display: flex;
    margin-bottom: 1rem;
    gap: 20px;
}

.product-item-container-left {
    width: 200px;
}

.product-item-container-right {
    width: calc(100% - 200px - 1.5rem);
}

.product-item-image-container {
    width: 200px;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


/* Special styling for the price row */
.price-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: end;
}

.markup-group {
    max-width: 120px;
    min-width: 100px;
}

.markup-input {
    text-align: center;
    font-weight: 600;
    background: rgba(31, 69, 102, 0.05);
    border-color: var(--primary-color) !important;
}

.markup-input:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(31, 69, 102, 0.15);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .price-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .markup-group {
        max-width: 100%;
        order: 3; /* Aufschlag als letztes auf Mobile */
    }
}

@media (max-width: 480px) {
    .markup-group {
        max-width: 100%;
    }

    .markup-input {
        text-align: left;
    }
}

.example-calculation {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

.example-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.example-content:hover {
    transform: translateY(-1px);
    box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.example-text {
    font-size: 0.875rem;
    color: var(--text-primary, #2c3e50);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.profit-indicator {
    margin-left: 0.75rem;
    color: var(--success, #27ae60);
    font-weight: 600;
    font-size: 0.8rem;
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .example-content {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
        border-color: rgba(255, 255, 255, 0.05);
    }

    .example-text {
        color: var(--text-primary, #ecf0f1);
    }
}

/* ===== NEW: Shop Popup Styles ===== */
.shop-popup-container {
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    background: var(--surface);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shop-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--background);
}

.shop-popup-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.shop-popup-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#closeShopPopup {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#closeShopPopup:hover {
    background: var(--background);
    color: var(--text-primary);
}

.shop-popup-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.shop-categories {
    width: 50%;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.shop-category-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    background: var(--background);
}

.shop-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.shop-tab:hover {
    color: var(--text-primary);
    background: rgba(31, 69, 102, 0.05);
}

.shop-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(31, 69, 102, 0.1);
}

.shop-products-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.shop-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.shop-product-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.shop-product-item.selected {
    border-color: var(--primary-color);
    background: rgba(31, 69, 102, 0.05);
    box-shadow: var(--shadow-md);
}

.shop-product-image {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius);
    flex-shrink: 0;
    background-color: var(--background);
    border: 1px solid var(--border-light);
}

.shop-product-info {
    flex: 1;
    min-width: 0;
}

.shop-product-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.shop-product-price {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.shop-product-preview {
    width: 50%;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
}

.preview-placeholder h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.preview-placeholder p {
    margin: 0;
    font-size: 0.875rem;
}

.shop-preview-content {
    display: none;
}

.shop-preview-content.active {
    display: block;
}

.shop-preview-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    background-color: var(--background);
    border: 1px solid var(--border-light);
}

.shop-preview-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.shop-preview-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.shop-preview-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-preview-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* Shop Item Badge */
.product-standard.shop-item {
    background: var(--primary-color);
    color: white;
}

/* Empty shop category */
.shop-empty-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-secondary);
    text-align: center;
}

.shop-empty-category h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.shop-empty-category p {
    margin: 0;
    font-size: 0.875rem;
}

/* Category visibility for installation costs */
.category-hardware #installationCostGroup,
.category-hardware #editInstallationCostGroup {
    display: block !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-popup-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .shop-popup-content {
        flex-direction: column;
    }

    .shop-categories,
    .shop-product-preview {
        width: 100%;
        max-height: 50vh;
    }

    .shop-categories {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .shop-category-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .shop-category-tabs::-webkit-scrollbar {
        display: none;
    }

    .shop-tab {
        white-space: nowrap;
        min-width: fit-content;
    }

    .shop-popup-header {
        padding: 1rem;
    }

    .shop-popup-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .shop-product-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .shop-product-image {
        width: 50px;
        height: 50px;
    }

    .shop-product-preview {
        padding: 1rem;
    }

    .shop-preview-image {
        height: 150px;
    }
}

/* MINIMALES SystemHardware CSS - wiederverwendet bestehende Styles */

/* Sub-Tabs verwenden gleichen Style wie Haupt-Tabs, nur kleinere Variante */
.system-hardware-subtabs {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.system-subtab {
    font-size: 0.875rem; /* Etwas kleiner als Haupt-Tabs */
    padding: 0.5rem 1rem; /* Kompakter */
}

.system-subtab .category-tab-icon {
    width: 14px;
    height: 14px; /* Kleinere Icons */
}

/* System Hardware Items verwenden product-item Basis mit minimalen Anpassungen */
.system-used {
    opacity: 0.7;
    background: var(--background-light, #f8f9fa);
}

.system-available:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

/* SystemHardware Sub-Tabs Styling */
.system-hardware-subtabs {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.system-subtab {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.system-subtab:hover {
    color: var(--text-primary);
    background-color: rgba(31, 69, 102, 0.05);
}

.system-subtab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: rgba(31, 69, 102, 0.1);
}

.system-subtab .category-tab-icon {
    width: 16px;
    height: 16px;
}

.system-subtab .category-tab-count {
    background: var(--text-secondary);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.system-subtab.active .category-tab-count {
    background: var(--primary-color);
}

/* SystemHardware Content Container */
.system-hardware-content {
    position: relative;
}

.system-hardware-type-content {
    display: none;
}

.system-hardware-type-content.active {
    display: block;
}


/* Debug Info */
.debug-info {
    background: #f0f0f0;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

/* DE Leads Styles */
.leads-search-container {
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    max-width: 400px;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.search-clear-btn:hover {
    background: var(--background);
    color: var(--text-primary);
}

.leads-table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

#deLeadsTable {
    width: 100%;
    min-width: 600px;
}

.lead-row {
    transition: var(--transition);
}

.lead-row:hover {
    background: var(--background);
}

#leadsSearchInput {
    padding-right: 40px;
}

/* Additional styles: */

.interval-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.interval-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.discount-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--success);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
}

.billing-info-section {
    border: 1px solid var(--border-light);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color) !important;
}

.active-subscription-card {
    position: relative;
    overflow: hidden;
}

.active-subscription-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}


/* ===== MODERN SUBSCRIPTION STYLES ===== */
.subscription-hero-card {
    background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.subscription-status-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 1.125rem;
    font-weight: 600;
}

.plan-badge-large {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(31, 69, 102, 0.3);
}

.subscription-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

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

.detail-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(31, 69, 102, 0.1), rgba(191, 247, 5, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    stroke-width: 2;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.subscription-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Comparison Plans */
.other-plans-section {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: #1a1a1a;
}

.interval-selector-modern {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: #f3f4f6;
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.interval-option {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
    font-weight: 500;
    position: relative;
}

.interval-option:hover {
    color: #1a1a1a;
}

.interval-option.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.discount-badge[data-discount] {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: none;
}

.discount-badge[data-discount]:not(:empty) {
    display: inline-block;
}

.comparison-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-plan-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.comparison-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.comparison-plan-card.current-plan {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(31, 69, 102, 0.05) 0%, rgba(191, 247, 5, 0.05) 100%);
}

.comparison-plan-card.recommended {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(31, 69, 102, 0.15);
}

.current-plan-badge,
.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.current-plan-badge {
    background: var(--primary-color);
    color: white;
}

.recommended-badge {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.plan-header-modern {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.plan-name-modern {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.plan-price-modern {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price-currency {
    font-size: 1.5rem;
    color: #6b7280;
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 1rem;
    color: #6b7280;
}

.savings-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.plan-features-modern {
    list-style: none;
    padding: 0;
    margin: 0 0 5rem 0;
}

.plan-features-modern li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}

.plan-features-modern li:last-child {
    border-bottom: none;
}

.plan-features-modern li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.plan-action {
    bottom: 40px;
    position: absolute;
    width: 80%;
    left: 10%;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

/* Welcome Screen */
.subscription-welcome {
    text-align: center;
    padding: 2rem 0;
}

.welcome-header {
    margin-bottom: 3rem;
}

.welcome-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.welcome-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.money-back-guarantee {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    border: 1px solid #10b981;
}

.guarantee-icon {
    width: 48px;
    height: 48px;
    stroke: #10b981;
    flex-shrink: 0;
}

.guarantee-content h4 {
    margin: 0 0 0.5rem 0;
    color: #065f46;
    font-size: 1.125rem;
}

.guarantee-content p {
    margin: 0;
    color: #047857;
    font-size: 0.875rem;
}

/* ================================================
   MOBILE RESPONSIVE STYLES - Account/Registrierung
   ================================================ */

/* Tablet Anpassungen */
@media (max-width: 1024px) {
    .ee-create-account-container,
    .ee-account-container {
        padding: 20px;
    }

    .comparison-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    /* Container */
    .ee-create-account-container,
    .ee-account-container {
        padding: 16px;
        max-width: 100%;
    }

    /* Formular */
    .ee-create-account-form,
    .ee-account-form {
        padding: 20px 16px;
        border-radius: 12px;
    }

    /* Grid zu einzelner Spalte */
    .ee-create-account-row,
    .ee-form-row,
    .subscription-details-grid {
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .ee-create-account-group,
    .ee-form-group {
        width: 100% !important;
        margin-bottom: 16px;
    }

    /* Input Felder */
    .ee-create-account-input,
    .ee-create-account-select,
    .ee-create-account-textarea,
    .ee-form-input,
    .ee-form-select {
        font-size: 16px !important; /* Verhindert iOS Zoom */
        padding: 14px !important;
        border-radius: 8px !important;
    }

    /* Labels */
    .ee-create-account-label,
    .ee-form-label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    /* Buttons */
    .ee-create-account-submit,
    .ee-form-button,
    .submit-btn {
        width: 100% !important;
        padding: 16px !important;
        font-size: 16px !important;
        min-height: 52px !important;
        border-radius: 10px !important;
    }

    /* Pricing Plans */
    .comparison-plans-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .comparison-plan-card {
        padding: 20px !important;
    }

    .comparison-plan-card.recommended {
        transform: none !important;
        margin: 0 !important;
    }

    .plan-price {
        font-size: 2rem !important;
    }

    /* Interval Selector */
    .interval-selector-modern {
        width: 100% !important;
        flex-direction: column !important;
    }

    .interval-option {
        width: 100% !important;
        padding: 14px !important;
    }

    /* Dashboard Bereich */
    .ee-account-dashboard {
        padding: 16px !important;
    }

    .ee-account-section {
        padding: 16px !important;
        margin-bottom: 16px !important;
    }

    .ee-account-section h3 {
        font-size: 16px !important;
    }

    /* Money-back Guarantee */
    .money-back-guarantee {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }

    .guarantee-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .guarantee-content h4 {
        font-size: 1rem !important;
    }

    .guarantee-content p {
        font-size: 0.8rem !important;
    }

    /* Verification Pages */
    .ee-verification-container {
        padding: 20px !important;
    }

    .ee-verification-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .ee-verification-title {
        font-size: 20px !important;
    }

    .ee-verification-text {
        font-size: 14px !important;
    }

    /* Password Setup */
    .password-requirements {
        font-size: 12px !important;
    }

    .password-requirements li {
        padding: 4px 0 !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .ee-create-account-container,
    .ee-account-container {
        padding: 12px;
    }

    .ee-create-account-form,
    .ee-account-form {
        padding: 16px 12px;
    }

    .ee-create-account-input,
    .ee-create-account-select,
    .ee-form-input,
    .ee-form-select {
        padding: 12px !important;
    }

    .comparison-plan-card {
        padding: 16px !important;
    }

    .plan-price {
        font-size: 1.75rem !important;
    }

    .plan-features li {
        font-size: 13px !important;
        padding: 6px 0 !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    h3 {
        font-size: 1rem !important;
    }
}

@keyframes highlight {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 20px 40px rgba(31, 69, 102, 0.2); }
}

/* =============================================
   CROP PROFILES (Anbaukulturen)
   ============================================= */

.ee-crop-management {
    margin-top: 20px;
}

.ee-crop-toolbar {
    margin-bottom: 20px;
}

.ee-crop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.ee-crop-card {
    background: var(--bg-secondary, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius, 12px);
    padding: 20px;
    transition: box-shadow 0.2s;
}

.ee-crop-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ee-crop-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.ee-crop-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    margin: 0 0 4px 0;
}

.ee-crop-card-slug {
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280);
    font-family: monospace;
}

.ee-crop-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ee-crop-badge--c3 {
    background: #dbeafe;
    color: #1d4ed8;
}

.ee-crop-badge--c4 {
    background: #fef3c7;
    color: #92400e;
}

.ee-crop-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 16px;
}

.ee-crop-card-actions {
    display: flex;
    gap: 8px;
}

.ee-crop-card-actions .btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: #fecaca;
}

/* Editor */
.ee-crop-editor {
    margin-top: 24px;
    background: var(--bg-secondary, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius, 12px);
    padding: 24px;
}

.ee-crop-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ee-crop-editor-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.ee-crop-editor-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
    padding: 4px 8px;
    border-radius: 6px;
}

.ee-crop-editor-close:hover {
    background: var(--bg-tertiary, #f3f4f6);
}

.ee-crop-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ee-crop-section {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 16px;
    background: white;
}

.ee-crop-section legend {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color, #1f4566);
    padding: 0 8px;
}

.ee-crop-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.ee-crop-row:last-child {
    margin-bottom: 0;
}

.ee-crop-row label {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
}

.ee-crop-row input,
.ee-crop-row select,
.ee-crop-row textarea {
    padding: 8px 12px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.ee-crop-row input:focus,
.ee-crop-row select:focus,
.ee-crop-row textarea:focus {
    outline: none;
    border-color: var(--primary-color, #1f4566);
    box-shadow: 0 0 0 3px rgba(31, 69, 102, 0.1);
}

.ee-crop-row textarea {
    font-family: monospace;
    font-size: 0.8rem;
    resize: vertical;
}

.ee-crop-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

@media (max-width: 768px) {
    .ee-crop-grid {
        grid-template-columns: 1fr;
    }

    .ee-crop-row {
        flex-direction: column;
    }

    .ee-crop-row label {
        min-width: unset;
    }
}

/* ==========================================
   Sales Settings (M4c) — Account Page
   ========================================== */
.ee-sales-settings { padding: 24px; }
.ee-sales-settings .ee-reasons-section {
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.ee-reasons-section .ee-reasons-header {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ee-reasons-section .ee-reason-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}
.ee-reason-row:last-child { border-bottom: none; }
.ee-reason-row .ee-reason-label { flex: 1; color: #334155; }
.ee-reason-row .ee-reason-order { font-size: 0.75rem; color: #94a3b8; min-width: 30px; text-align: center; }
.ee-reason-row .ee-reason-toggle { position: relative; width: 36px; height: 20px; }
.ee-reason-row .ee-reason-toggle input { opacity: 0; width: 0; height: 0; }
.ee-reason-row .ee-reason-toggle .slider {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: #cbd5e1; border-radius: 20px; cursor: pointer; transition: background 0.2s;
}
.ee-reason-row .ee-reason-toggle .slider::before {
    content: ''; position: absolute; width: 16px; height: 16px; left: 2px; bottom: 2px;
    background: #fff; border-radius: 50%; transition: transform 0.2s;
}
.ee-reason-row .ee-reason-toggle input:checked + .slider { background: #10b981; }
.ee-reason-row .ee-reason-toggle input:checked + .slider::before { transform: translateX(16px); }
.ee-reason-row .ee-reason-actions { display: flex; gap: 4px; }
.ee-reason-row .ee-reason-actions button {
    background: none; border: none; cursor: pointer; color: #94a3b8;
    padding: 4px; font-size: 14px; transition: color 0.15s;
}
.ee-reason-row .ee-reason-actions button:hover { color: #374151; }
.ee-reasons-section .ee-add-reason-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px; width: 100%; background: none; border: none;
    cursor: pointer; color: #6366f1; font-size: 0.85rem; font-weight: 500; transition: background 0.1s;
}
.ee-add-reason-btn:hover { background: #f8fafc; }
