/**
 * Frontend CSS - Zählerstand-Portal v2.0
 * =======================================
 * Alle Frontend-Styles zentral
 */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #1e293b;
}

/* === HEADER === */
.header {
    background: white;
    padding: 25px 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    height: 65px;
}

.header-title {
    font-size: 22px;
    color: #1e293b;
    font-weight: 600;
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 6px 12px;
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
}

.lang-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.lang-btn.active {
    background: #32A1DD;
    color: white;
    border-color: #32A1DD;
}

/* === CONTAINER === */
.container {
    flex: 1;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* === CARDS === */
.card,
.welcome-card,
.reading-card,
.success-card {
    background: white;
    border-radius: 16px;
    padding: 50px 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.card h1 {
    color: #32A1DD;
    font-size: 28px;
    margin-bottom: 15px;
}

.card h2 {
    color: #1e293b;
    font-size: 24px;
    margin-bottom: 15px;
}

.card-text {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* === METER INFO === */
.meter-info {
    background: #f8fafc;
    border-left: 4px solid #32A1DD;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.meter-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.meter-info-row:last-child {
    border-bottom: none;
}

.meter-info-label {
    font-weight: 600;
    color: #64748b;
}

.meter-info-value {
    color: #1e293b;
    font-weight: 500;
}

.meter-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.meter-badge-gas {
    background: #fee2e2;
    color: #991b1b;
}

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

/* === FORMS === */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #32A1DD;
}

.form-group input.error {
    border-color: #ef4444;
}

.hint {
    color: #64748b;
    font-size: 13px;
    margin-top: 6px;
}

.form-note {
    background: #f0f9ff;
    border-left: 4px solid #32A1DD;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 20px;
}

/* === MESSAGES === */
.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #ef4444;
    font-size: 14px;
}

.success {
    background: #d1fae5;
    color: #065f46;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #10b981;
    font-size: 14px;
}

.warning {
    background: #fef3c7;
    color: #92400e;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #f59e0b;
    font-size: 14px;
}

/* === BUTTONS === */
.btn {
    padding: 16px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #32A1DD;
    color: white;
}

.btn-primary:hover {
    background: #2891cd;
}

.btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-success {
    background: #10b981;
    color: white;
}

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

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* === SUCCESS PAGE === */
.success-icon {
    text-align: center;
    font-size: 64px;
    margin-bottom: 20px;
}

.success-summary {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #64748b;
}

.summary-value {
    color: #1e293b;
    font-weight: 500;
}

/* === UTILITIES === */
.honeypot {
    position: absolute;
    left: -9999px;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* === FOOTER === */
.footer {
    background: white;
    padding: 30px 40px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #1e293b;
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-section p,
.footer-section a {
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
}

.footer-section a:hover {
    color: #32A1DD;
}

/* === RESPONSIVE === */

/* Tablets */
@media (max-width: 1024px) {
    .container {
        width: 85%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        height: 50px;
    }
    
    .header-title {
        font-size: 18px;
    }
    
    .card,
    .welcome-card,
    .reading-card,
    .success-card {
        padding: 30px 25px;
    }
    
    .card h1 {
        font-size: 24px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* Large screens */
@media (min-width: 1920px) {
    .container {
        width: 70%;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        width: 98%;
        padding: 20px 10px;
    }
    
    .card,
    .welcome-card,
    .reading-card,
    .success-card {
        padding: 25px 20px;
    }
    
    .language-switcher {
        flex-wrap: wrap;
    }
}