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

:root {
    /* BeautyHills CI Farben */
    --primary-color: #EC6751;
    --primary-hover: #d95a47;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* BeautyHills Primärfarben */
    --bh-black: #000000;
    --bh-coral: #EC6751;
    --bh-white: #FFFFFF;
    --bh-taupe: #8a8e8f;
    
    /* BeautyHills Sekundärfarben */
    --bh-beige-light: #F0E6D8;
    --bh-beige: #DBC8B6;
    
    /* Graustufen */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-50);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 20px;
}

.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
    margin-bottom: 24px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.header-left {
    justify-self: start;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    justify-self: center;
}

.header-right {
    justify-self: end;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    color: var(--gray-700);
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bh-coral);
    box-shadow: 0 0 0 3px rgba(236, 103, 81, 0.1);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding-left: 32px;
    line-height: 1.6;
    color: var(--gray-700);
    font-weight: 400;
}

.checkbox-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    background: white;
    transition: all 0.2s ease;
}

.checkbox-group label::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 1px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked + label::before {
    background: var(--bh-coral);
    border-color: var(--bh-coral);
}

.checkbox-group input[type="checkbox"]:checked + label::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-group:hover label::before {
    border-color: var(--bh-coral);
}

.checkbox-group input[type="checkbox"]:focus + label::before {
    box-shadow: 0 0 0 3px rgba(236, 103, 81, 0.1);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--bh-coral);
    color: var(--bh-white);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 103, 81, 0.3);
}

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

.btn-success:hover {
    background-color: #059669;
}

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

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-secondary {
    background: var(--bh-white);
    color: var(--bh-black);
    border: 2px solid var(--bh-taupe);
}

.btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--bh-black);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    padding-left: 40px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.lead-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.lead-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lead-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.lead-card p {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 4px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.badge-new {
    background: var(--bh-coral);
    color: var(--bh-white);
}

.badge-progress {
    background: var(--bh-taupe);
    color: var(--bh-white);
}

.badge-qualified {
    background: var(--success-color);
    color: var(--bh-white);
}

.badge-sent {
    background-color: #e0e7ff;
    color: #3730a3;
}

/* Status Badge Farben - Einheitliches Design */
/* Kunde geworden - Grün gefüllt */
.badge-status-customer {
    background: #22c55e;
    color: white;
    border: 2px solid #22c55e;
    font-weight: 600;
}

/* Aktive Bearbeitung - Gelb/Orange gefüllt */
.badge-status-active {
    background: #f59e0b;
    color: white;
    border: 2px solid #f59e0b;
    font-weight: 600;
}

/* Latentes Interesse - Weiß mit grauem Rahmen */
.badge-status-latent {
    background: white;
    color: #374151;
    border: 2px solid #d1d5db;
    font-weight: 500;
}

/* Kein Interesse - Rot gefüllt */
.badge-status-no-interest {
    background: #ef4444;
    color: white;
    border: 2px solid #ef4444;
    font-weight: 600;
}

/* Neu - Blau gefüllt */
.badge-status-new {
    background: #3b82f6;
    color: white;
    border: 2px solid #3b82f6;
    font-weight: 600;
}

/* Fortschrittskreis Tooltip */
.progress-circle-wrapper {
    position: relative;
    display: inline-block;
}

.progress-circle-wrapper .progress-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 100%;
    transform: translateX(0);
    margin-top: 8px;
    background: #1f2937;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s, visibility 0.2s;
    text-align: left;
}

.progress-circle-wrapper .progress-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 12px;
    transform: translateX(0);
    border: 6px solid transparent;
    border-bottom-color: #1f2937;
}

.progress-circle-wrapper:hover .progress-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Legacy Badge Farben für Kompatibilität */
.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fef2f2;
    color: #dc2626;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-primary {
    background: #f3e8ff;
    color: #7c3aed;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

table th {
    background-color: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

table tr:hover {
    background-color: var(--gray-50);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.filters .form-group {
    flex: 1;
    min-width: 150px;
    max-width: 220px;
    margin-bottom: 0;
}

.filters .form-group:first-child {
    flex: 2;
    max-width: 280px;
}

.filters .form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.filters .form-group:last-child {
    flex: 0 0 auto;
    max-width: none;
}

.filters .form-group:last-child label {
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card.header {
    background: var(--bh-black);
    color: var(--bh-white);
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid var(--bh-coral);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
}

.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    font-size: 20px;
    color: var(--gray-900);
}

.close-modal,
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-close:hover {
    color: var(--gray-900);
}

.debug-log {
    background: var(--gray-900);
    color: #10b981;
    padding: 16px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 20px;
}

.debug-log p {
    margin-bottom: 4px;
}

.radio-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
    min-height: 100px;
}

.radio-card:hover .radio-card-content {
    border-color: var(--primary-color);
    background: var(--gray-50);
}

.radio-card input[type="radio"]:checked + .radio-card-content {
    border-color: var(--primary-color);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.radio-card-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.radio-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
}

.radio-card input[type="radio"]:checked + .radio-card-content .radio-card-title {
    color: var(--primary-color);
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-600);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: var(--gray-50);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.radio-card-compact {
    position: relative;
    cursor: pointer;
    display: block;
}

.radio-card-compact input[type="radio"],
.radio-card-compact input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-content-compact {
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    background: white;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
}

.radio-card-compact:hover .radio-card-content-compact {
    border-color: var(--bh-beige);
    background: var(--gray-50);
}

.radio-card-compact input[type="radio"]:checked + .radio-card-content-compact,
.radio-card-compact input[type="checkbox"]:checked + .radio-card-content-compact {
    border-color: var(--bh-beige);
    background: var(--bh-beige);
    color: var(--bh-black);
    box-shadow: 0 2px 4px rgba(219, 200, 182, 0.4);
    font-weight: 600;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chip span {
    display: inline-block;
    padding: 10px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 20px;
    background: white;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.chip:hover span {
    border-color: var(--bh-beige);
    background: var(--gray-50);
}

.chip input[type="checkbox"]:checked + span {
    border-color: var(--bh-beige);
    background: var(--bh-beige);
    color: var(--bh-black);
    box-shadow: 0 2px 4px rgba(219, 200, 182, 0.4);
    font-weight: 600;
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 15px;
    background: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--bh-coral);
    box-shadow: 0 0 0 3px rgba(236, 103, 81, 0.1);
}

.lead-detail-section {
    background: var(--bh-beige-light);
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
}

.lead-detail-section .card {
    background: var(--bh-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.leads-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}

.leads-grid::-webkit-scrollbar {
    height: 8px;
}

.leads-grid::-webkit-scrollbar-track {
    background: var(--bh-beige-light);
    border-radius: 4px;
}

.leads-grid::-webkit-scrollbar-thumb {
    background: var(--bh-taupe);
    border-radius: 4px;
}

.leads-grid::-webkit-scrollbar-thumb:hover {
    background: var(--bh-coral);
}

.lead-tile {
    min-width: 240px;
    max-width: 240px;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lead-tile:hover {
    border-color: var(--bh-coral);
    box-shadow: 0 4px 12px rgba(236, 103, 81, 0.2);
    transform: translateY(-2px);
}

.lead-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.lead-tile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.3;
}

.lead-tile-info {
    font-size: 12px;
    color: var(--gray-600);
    margin: 3px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lead-tile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--gray-200);
}

.lead-tile-time {
    font-size: 11px;
    color: var(--gray-500);
}

.depot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.depot-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    position: relative;
}

.depot-card:hover {
    border-color: var(--bh-coral);
    box-shadow: 0 4px 12px rgba(236, 103, 81, 0.2);
    transform: translateY(-2px);
}

.depot-image-container {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: var(--gray-100);
}

.depot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.depot-card:hover .depot-image {
    transform: scale(1.05);
}

.depot-info {
    padding: 12px;
}

.depot-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.3;
}

.depot-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--bh-coral);
    margin: 0;
}

.depot-tax {
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-600);
    display: block;
    margin-top: 2px;
}

.checkout-container {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.checkout-summary {
    margin-bottom: 24px;
}

.legal-notice {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--bh-coral);
    margin-bottom: 24px;
}

.legal-notice h4 {
    color: var(--gray-900);
    margin-bottom: 12px;
    font-size: 16px;
}

.legal-notice p {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.legal-notice ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.legal-notice li {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
}

.legal-notice li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bh-coral);
    font-weight: bold;
}

.signature-section {
    margin-bottom: 24px;
}

.signature-section h4 {
    color: var(--gray-900);
    font-size: 16px;
}

.signature-container {
    position: relative;
}

.signature-canvas {
    width: 100%;
    height: 200px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    background: white;
    cursor: crosshair;
    touch-action: none;
}

.signature-canvas:hover {
    border-color: var(--bh-coral);
}

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .card {
        padding: 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .filters {
        flex-direction: column;
    }

    .filters .form-group,
    .filters .form-group:first-child {
        max-width: 100%;
        width: 100%;
    }

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

    table {
        font-size: 14px;
    }

    table th,
    table td {
        padding: 8px;
    }

    .depot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .depot-image-container {
        height: 120px;
    }

    .checkout-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .depot-grid {
        grid-template-columns: 1fr;
    }
}

/* Checkout Modal */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkout-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.checkout-modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-modal-header h2 {
    margin: 0;
    color: var(--gray-900);
}

.checkout-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-400);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkout-modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.checkout-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.checkout-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 24px;
}

.checkout-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.checkout-tab:hover {
    color: var(--gray-900);
}

.checkout-tab.active {
    color: var(--bh-coral);
    border-bottom-color: var(--bh-coral);
}

.checkout-tab-content {
    display: none;
}

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

/* Bundle & Product Cards */
.bundle-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.bundle-card,
.product-card {
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.bundle-card:hover,
.product-card:hover {
    border-color: var(--bh-coral);
    box-shadow: 0 4px 12px rgba(236, 103, 81, 0.15);
    transform: translateY(-2px);
}

.bundle-image,
.product-image {
    width: 100%;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bundle-image img,
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    font-size: 48px;
    color: var(--gray-300);
}

.bundle-name,
.product-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.bundle-price,
.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--bh-coral);
}

.product-sku {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

/* Warenkorb */
.checkout-cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.checkout-cart-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.checkout-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--gray-100);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image .no-image {
    font-size: 32px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.cart-item-sku {
    font-size: 12px;
    color: var(--gray-500);
}

.badge-bundle {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bh-beige-light);
    color: var(--bh-coral);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-quantity {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-quantity:hover:not(:disabled) {
    border-color: var(--bh-coral);
    color: var(--bh-coral);
}

.btn-quantity:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cart-item-quantity input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 6px;
    font-size: 14px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    min-width: 100px;
    text-align: right;
}

.btn-remove {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

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

.checkout-cart-summary {
    margin-top: 24px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 8px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 16px;
}

.checkout-summary-row.total {
    border-top: 2px solid var(--gray-300);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 20px;
    font-weight: 700;
    color: var(--bh-coral);
}

/* Produkt-Suche */
.checkout-search-box {
    margin-bottom: 24px;
}

.checkout-search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}

.checkout-search-box input:focus {
    outline: none;
    border-color: var(--bh-coral);
}

.checkout-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
}

/* Checkout Footer */
.checkout-modal-footer {
    padding: 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .checkout-modal-content {
        max-height: 95vh;
    }
    
    .bundle-grid,
    .product-grid,
    .checkout-search-results {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .checkout-cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-quantity {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
}

/* ============================================================================
   Owner-Dashboard Styles
   ============================================================================ */

/* Tab-Navigation */
.coach-tabs {
    display: flex;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-600);
}

.tab-btn:hover {
    background: var(--gray-100);
}

.tab-btn.active {
    background: var(--bh-coral);
    color: white;
}

.tab-badge {
    background: white;
    color: var(--bh-coral);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.tab-btn.active .tab-badge {
    background: rgba(255, 255, 255, 0.9);
}

/* Lead Detail Modal Tabs */
.lead-detail-tab {
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    transition: all 0.2s;
    white-space: nowrap;
}

.lead-detail-tab:hover {
    color: var(--bh-coral);
    background: var(--gray-50);
}

.lead-detail-tab.active {
    color: var(--bh-coral);
    border-bottom-color: var(--bh-coral);
}

.lead-detail-tab-content {
    animation: fadeIn 0.2s ease;
}

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

/* Analytics Sub-Tabs */
.analytics-sub-tab {
    padding: 8px 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s;
}

.analytics-sub-tab:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.analytics-sub-tab.active {
    background: var(--bh-coral);
    color: white;
    border-color: var(--bh-coral);
}

.analytics-view {
    animation: fadeIn 0.2s ease;
}

/* Task-Count Cards */
.task-count-card {
    flex: 1;
    padding: 16px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.task-count-card.overdue {
    background: #fef2f2;
    border: 2px solid #fecaca;
}

.task-count-card.overdue:hover {
    border-color: #f87171;
}

.task-count-card.today {
    background: #fffbeb;
    border: 2px solid #fde68a;
}

.task-count-card.today:hover {
    border-color: #fbbf24;
}

.task-count-card.upcoming {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
}

.task-count-card.upcoming:hover {
    border-color: #4ade80;
}

.task-count-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.task-count-card.overdue .task-count-number {
    color: #dc2626;
}

.task-count-card.today .task-count-number {
    color: #d97706;
}

.task-count-card.upcoming .task-count-number {
    color: #16a34a;
}

.task-count-label {
    display: block;
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 4px;
}

/* Owner-Leads Grid */
.owner-leads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .owner-leads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Owner-Lead Cards */
.owner-lead-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.owner-lead-card:hover {
    border-color: var(--bh-coral);
    box-shadow: 0 2px 8px rgba(236, 103, 81, 0.15);
}

.owner-lead-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.owner-lead-source {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.owner-lead-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.owner-lead-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: var(--gray-600);
}

.owner-lead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-400);
    padding-top: 8px;
    border-top: 1px solid var(--gray-100);
}

.owner-lead-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
}

.action-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.action-btn:hover {
    opacity: 0.85;
}

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

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

.action-btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

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

/* Lead-Info Grid */
.lead-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.lead-info-item {
    display: flex;
    flex-direction: column;
}

.lead-info-item .label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.lead-info-item .value {
    font-size: 15px;
    color: var(--gray-900);
    font-weight: 500;
}

/* Quick-Action Buttons */
.btn-action {
    padding: 12px 20px;
    border: 2px solid var(--gray-300);
    background: white;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    border-color: var(--bh-coral);
    background: #fef7f6;
}

/* Final Status Buttons */
.btn-success {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-info {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-info:hover {
    background: #2563eb;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

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

/* Timeline */
.timeline-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.timeline-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
}

.timeline-content {
    flex: 1;
}

.timeline-date {
    font-size: 12px;
    color: var(--gray-500);
}

.timeline-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-900);
    margin-top: 2px;
}

.timeline-details {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 4px;
}

.timeline-notes {
    font-size: 13px;
    color: var(--gray-500);
    font-style: italic;
    margin-top: 4px;
}

.timeline-actor {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

/* Coach Attempt Modal (spezifisch für Coach-Bereich) */
#attemptModal.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#attemptModal .modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

#attemptModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

#attemptModal .modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

#attemptModal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-500);
}

#attemptModal .modal-close:hover {
    color: var(--gray-900);
}

#attemptModal .modal-body {
    padding: 24px;
}

#attemptModal .modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

/* Kampagnen-Tabs */
.campaign-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.campaign-tab {
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.campaign-tab:hover {
    border-color: var(--bh-coral);
    color: var(--bh-coral);
}

.campaign-tab.active {
    background: var(--bh-coral);
    border-color: var(--bh-coral);
    color: white;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--success-color);
}

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

@media (max-width: 768px) {
    .lead-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .task-counts {
        flex-direction: column;
    }
    
    .coach-tabs {
        flex-direction: column;
    }
}
