/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Neues Farbschema - Grün #94c41c */
    --primary-color: #94c41c;
    --primary-dark: #7ab317;
    --primary-darker: #628f12;
    --primary-light: #a8d42f;
    --primary-lighter: #c5e35c;
    
    /* Akzentfarben */
    --success-color: #28a745;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #17a2b8;
    
    /* Text & Hintergrund */
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    
    /* Schatten */
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Primary Color RGB für rgba() Verwendung */
    --primary-rgb: 148, 196, 28;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-lg);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

header nav {
    display: flex;
    gap: 1.5rem;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

header nav a:hover {
    opacity: 0.8;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Messages */
.messages {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

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

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

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

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Form Styles */
.check-voucher-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.check-voucher-container h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
}

.voucher-form {
    margin-bottom: 2rem;
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-block {
    width: 100%;
}

/* Voucher Result */
.voucher-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f0f9ff;
    border: 2px solid var(--primary-color);
    border-radius: 0.75rem;
}

.voucher-result h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.voucher-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
}

.detail-row .label {
    font-weight: 500;
    color: var(--text-light);
}

.detail-row .value {
    font-weight: 600;
    color: var(--text-color);
}

.detail-row .value.highlight {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.detail-row .value.status-active {
    color: var(--success-color);
}

.detail-row .value.status-redeemed {
    color: var(--text-light);
}

.detail-row .value.status-expired {
    color: var(--error-color);
}

.detail-row .value.expired {
    color: var(--text-light);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--error-color);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 1.5rem 0;
    margin-top: auto;
    text-align: center;
}

footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Main Sections */
.main-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.section-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.section-card h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.purchase-form {
    margin-top: 1.5rem;
}

.info-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    color: #856404;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

/* Staff Dashboard */
.staff-dashboard {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.staff-dashboard .subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    header nav {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .check-voucher-container {
        padding: 1.5rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .section-card {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}
