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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --background: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --plate-green: #2d5016;
    --plate-text: #ffffff;
    --plate-border: #1a3009;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #3b82f6;
        --secondary-color: #2563eb;
        --success-color: #22c55e;
        --danger-color: #f87171;
        --background: #0f172a;
        --card-background: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --border-color: #334155;
        --plate-green: #2d5016;
        --plate-text: #ffffff;
        --plate-border: #1a3009;
    }

    .license-plate {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    }

    header,
    section {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .form-group input,
    .form-group select {
        background: #334155;
        color: var(--text-primary);
        border-color: var(--border-color);
    }

    .form-group input:focus,
    .form-group select:focus {
        background: #475569;
    }

    .price-box {
        background: #0f172a;
    }

    .random-info {
        background: #334155;
    }

    a {
        color: var(--primary-color);
    }

    a:hover {
        color: var(--secondary-color);
    }

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

    .btn-primary:hover {
        background: var(--secondary-color);
        box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
    }

    .btn-secondary {
        background: #475569;
        color: #ffffff;
    }

    .btn-secondary:hover {
        background: #64748b;
    }

    button {
        background: var(--primary-color);
        color: #ffffff;
    }

    button:hover {
        background: var(--secondary-color);
    }

    /* Highlight boxes im Dark Mode */
    .highlight-box {
        background: #064e3b !important;
        border-left-color: var(--success-color) !important;
        color: var(--text-primary) !important;
    }

    .info-box {
        background: #164e63 !important;
        border-left-color: #06b6d4 !important;
        color: var(--text-primary) !important;
    }

    /* Kostenlos-Box und Summen im Dark Mode */
    .price-item.total {
        background: #064e3b;
        color: var(--text-primary);
    }

    .summary-section .price-box {
        background: #0f172a;
        border-color: var(--border-color);
    }

    /* Footer im Dark Mode */
    footer {
        color: var(--text-secondary);
    }

    footer a {
        color: var(--primary-color);
    }

    footer a:hover {
        color: var(--secondary-color);
    }

    /* FAQ Section Dark Mode */
    .faq-section {
        background-color: var(--card-background);
        color: var(--text-primary);
    }

    .faq-question {
        color: var(--primary-color);
    }

    .faq-answer {
        color: var(--text-secondary);
    }

    .faq-item {
        border-bottom-color: var(--border-color);
    }

    /* Content Section Dark Mode */
    .content-section {
        background: var(--card-background);
        color: var(--text-primary);
    }

    .content-section h2,
    .content-section h3 {
        color: var(--primary-color);
    }

    .content-section p,
    .content-section ul,
    .content-section li {
        color: var(--text-secondary);
    }

    /* Checkboxes im Dark Mode */
    input[type="checkbox"] {
        accent-color: var(--primary-color);
    }

    /* Tables im Dark Mode */
    table {
        background: var(--card-background);
        color: var(--text-primary);
    }

    th {
        background: #334155;
        color: var(--text-primary);
        border-bottom-color: var(--border-color);
    }

    td {
        border-bottom-color: var(--border-color);
    }

    tr:hover {
        background: #334155;
    }

    /* Plate Text Inputs im Dark Mode */
    .plate-text input::placeholder,
    .plate-text select option {
        color: rgba(255, 255, 255, 0.6);
    }
}

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

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

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-background);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Main Sections */
section {
    background: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* License Plate Preview */
.preview-section {
    text-align: center;
}

.license-plate {
    display: inline-block;
    background: var(--plate-green);
    border: 4px solid var(--plate-border);
    border-radius: 8px;
    padding: 20px 30px;
    margin: 20px auto;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
}

.plate-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eu-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #64748b;
    color: #ffffff;
    padding: 5px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.eu-stars {
    font-size: 8px;
    line-height: 1;
    margin-bottom: 3px;
    letter-spacing: -1px;
}

.country-code {
    font-size: 14px;
    font-weight: bold;
}

.plate-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--plate-text);
    letter-spacing: 3px;
}

.plate-text input {
    background: transparent;
    border: none;
    color: var(--plate-text);
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    outline: none;
    letter-spacing: 3px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s;
}

.plate-text input:focus {
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.plate-text input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.plate-text select {
    background: transparent;
    border: none;
    color: var(--plate-text);
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: bold;
    outline: none;
    letter-spacing: 3px;
    cursor: pointer;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.plate-text select:focus {
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.plate-text select option {
    background: var(--plate-green);
    color: var(--plate-text);
}

.plate-space {
    display: inline-block;
    width: 8px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.price-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.form-group.half {
    display: inline-block;
    width: calc(50% - 10px);
}

.form-group.half:first-child {
    margin-right: 20px;
}

.custom-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.custom-section .form-group {
    flex: 1;
}

/* Random Letters Info */
.random-info {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.random-info p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* Buttons */
button,
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

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

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

/* Price Box */
.price-box {
    background: #f8fafc;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    color: #1e293b;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: #1e293b;
}

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

.price-item.total {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid var(--text-primary);
    font-size: 1.2rem;
    color: #1e293b;
}

.price {
    color: var(--primary-color);
    font-weight: 600;
}

.price-item.total .price {
    color: var(--success-color);
}

/* Random Letters Info */
.random-info {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    color: #1e293b;
}

.random-info p {
    margin-bottom: 10px;
    color: #475569;
}

/* Checkboxes */
input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    .plate-text {
        font-size: 1.5rem;
    }

    section {
        padding: 20px;
    }

    .form-group.half {
        width: 100%;
        display: block;
        margin-right: 0;
    }

    .custom-section {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.5s ease-out;
}
