/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #F7931A;
    --primary-dark: #e58209;
    --secondary-color: #4CAF50;
    --danger-color: #f44336;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    /* DSGVO-konform: System-Schriften statt Google Fonts */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 0;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Headings - More spacing */
h1 {
    margin-bottom: 30px;
    margin-top: 20px;
}

h2 {
    margin-bottom: 25px;
    margin-top: 40px;
}

h3 {
    margin-bottom: 15px;
    margin-top: 25px;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

/* Input Section */
.input-section h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.description {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.input-field {
    flex: 1;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--text-primary);
}

.example-links {
    text-align: center;
    margin-bottom: 20px;
}

.example-btn-small {
    display: inline-block;
    padding: 10px 18px;
    background: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.example-btn-small:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 15px;
    border-radius: var(--radius-sm);
    color: #1565C0;
    font-size: 0.9rem;
}

/* Loading Section */
.loading-section {
    text-align: center;
}

.loading-content {
    padding: 40px 20px;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading-status {
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.summary-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.summary-card.highlight {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.summary-icon {
    font-size: 3rem;
    line-height: 1;
}

.summary-content h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.summary-card.highlight h3 {
    color: rgba(255,255,255,0.9);
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.summary-subtext {
    font-size: 0.95rem;
    opacity: 0.8;
}

.rate-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Table */
.table-container {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.results-table thead {
    background: var(--bg-light);
}

.results-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.results-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.results-table tbody tr:hover {
    background: var(--bg-light);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #f57c00;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

/* Affiliate Section (Always Visible) */
.affiliate-section {
    margin: 40px 0;
}

/* Affiliate Banner (Prominent) */
.affiliate-banner-prominent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 0;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.affiliate-banner-header {
    text-align: center;
    margin-bottom: 25px;
}

.affiliate-banner-header h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.affiliate-banner-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.affiliate-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.affiliate-card-prominent {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.affiliate-card-prominent:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.affiliate-card-prominent.cointracking {
    border-color: #4CAF50;
}

.affiliate-card-prominent.cointracking:hover {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
}

.affiliate-card-prominent.bitvavo {
    border-color: #2196F3;
}

.affiliate-card-prominent.bitvavo:hover {
    border-color: #2196F3;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.affiliate-card-prominent.bitbox {
    border-color: #FF9800;
}

.affiliate-card-prominent.bitbox:hover {
    border-color: #FF9800;
    background: linear-gradient(135deg, #ffffff 0%, #fff3e0 100%);
}

.affiliate-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.affiliate-card-content {
    flex: 1;
}

.affiliate-card-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
}

.affiliate-card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.affiliate-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

/* Pfeilfarben entsprechend der Container-Rahmenfarbe */
.affiliate-card-prominent.cointracking .affiliate-arrow {
    color: #4CAF50;
}

.affiliate-card-prominent.bitvavo .affiliate-arrow {
    color: #2196F3;
}

.affiliate-card-prominent.bitbox .affiliate-arrow {
    color: #FF9800;
}

.affiliate-card-prominent:hover .affiliate-arrow {
    transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .affiliate-banner-prominent {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .affiliate-banner-header h3 {
        font-size: 1.3rem;
    }
    
    .affiliate-banner-header p {
        font-size: 0.9rem;
    }
    
    .affiliate-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .affiliate-card-prominent {
        padding: 15px;
    }
    
    .affiliate-icon {
        font-size: 2rem;
    }
    
    .affiliate-card-content h4 {
        font-size: 1.1rem;
    }
    
    .affiliate-card-content p {
        font-size: 0.85rem;
    }
}

/* Error Section */
.error-card {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-card h3 {
    color: var(--danger-color);
    margin-bottom: 15px;
}

.error-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Info Section */
.info-section {
    margin-top: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.info-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .example-btn-small {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .rate-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .card {
        padding: 20px;
    }
    
    .results-table {
        font-size: 0.85rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px 4px;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 3px 6px;
        white-space: nowrap;
    }
    
    .footer-content {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 15px;
    }
}

