/**
 * Goldrechner - Frontend Styles
 */

body {
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

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

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 30px 0;
}

header h1 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.phone-cta {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
    padding: 15px 30px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 400px;
    text-align: center;
}

.phone-cta a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
}

.phone-cta p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* ===== CALCULATOR ===== */
.calculator {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.category-section {
    border-bottom: 1px solid #eee;
}

.category-section:last-of-type {
    border-bottom: none;
}

/* ===== CATEGORY HEADERS ===== */
.category-header {
    padding: 15px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.category-header.gold { 
    background: linear-gradient(135deg, #ffd700, #d4a500); 
    color: #1a1a2e; 
}

.category-header.silver { 
    background: linear-gradient(135deg, #c0c0c0, #909090); 
    color: #1a1a2e; 
}

.category-header.platinum { 
    background: linear-gradient(135deg, #e5e4e2, #b8b8b6); 
    color: #1a1a2e; 
}

.category-header.palladium { 
    background: linear-gradient(135deg, #cec8c8, #9e9e9e); 
    color: #1a1a2e; 
}

.category-header.tin { 
    background: linear-gradient(135deg, #888, #666); 
    color: #fff;
}

/* ===== TABLES - FESTE SPALTENBREITEN ===== */
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Spalten-Definitionen */
table th:nth-child(1),
table td:nth-child(1) {
    width: 45%;
    text-align: left;
    padding-left: 20px;
}

table th:nth-child(2),
table td:nth-child(2) {
    width: 20%;
    text-align: center;
}

table th:nth-child(3),
table td:nth-child(3) {
    width: 17%;
    text-align: right;
}

table th:nth-child(4),
table td:nth-child(4) {
    width: 18%;
    text-align: right;
    padding-right: 20px;
}

table th {
    background: #f8f8f8;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

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

/* ===== INPUTS ===== */
.weight-input {
    width: 90px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.3s;
}

.weight-input:focus {
    outline: none;
    border-color: #ffd700;
}

/* ===== RATE & RESULT ===== */
.rate {
    font-weight: 600;
    color: #27ae60;
    white-space: nowrap;
}

.result {
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
}

/* ===== TOTAL SECTION ===== */
.total-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 25px;
    text-align: center;
}

.total-section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.total-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
}

/* ===== INFO SECTION ===== */
.info-section {
    padding: 30px;
    background: #f8f8f8;
}

.info-section ol {
    margin-left: 20px;
}

.info-section li {
    margin-bottom: 10px;
}

.disclaimer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.disclaimer h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.disclaimer p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
}

.disclaimer p:last-child {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #666;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    table th, 
    table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    table th:nth-child(1),
    table td:nth-child(1) {
        padding-left: 10px;
    }
    
    table th:nth-child(4),
    table td:nth-child(4) {
        padding-right: 10px;
    }

    .weight-input {
        width: 70px;
        padding: 6px 8px;
    }

    .total-value {
        font-size: 1.8rem;
    }

    .phone-cta {
        padding: 12px 20px;
    }

    .phone-cta a {
        font-size: 1.2rem;
    }
    
    .info-section {
        padding: 20px;
    }
}
