* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.config-panel, .preview-panel {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.config-panel h2, .preview-panel h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

/* Phone Type Selector */
.phone-type-selector {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    font-size: 1.1em;
}

.radio-label:hover {
    border-color: #667eea;
    background: #f5f5f5;
}

.radio-label input[type="radio"] {
    margin: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: bold;
    color: #667eea;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #e8f0fe;
}

/* Farbpalette */
.color-palette {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.color-option.selected {
    border-color: #333;
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.5);
}

/* Button */
.btn-shop {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #50C878 0%, #45B06B 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
}

.btn-shop:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(80, 200, 120, 0.4);
}

.btn-shop:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-cart {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
    margin-top: 10px;
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Karten-Vorschau */
.card-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 30px;
}

.nfc-card {
    width: 342px;
    height: 216px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-nfc-label {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.9em;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    z-index: 2;
}

.nfc-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 1;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-name {
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.card-phone-section {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 15px;
    padding-left: 10px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.phone-icon {
    font-size: 3em;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-icon img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.card-phone {
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.preview-info {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 0.95em;
    color: #666;
}

.preview-info p {
    margin-bottom: 8px;
}

.preview-price {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
}

.preview-info #ndefPayload {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #333;
    word-break: break-all;
    background: white;
    padding: 5px;
    border-radius: 4px;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .nfc-card {
        width: 300px;
        height: 189px;
    }
    
    .card-name {
        font-size: 1.6em;
    }
    
    .card-phone {
        font-size: 1.2em;
    }
    
    .phone-icon {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .config-panel, .preview-panel {
        padding: 20px;
    }
    
    .color-palette {
        grid-template-columns: repeat(4, 1fr);
    }
}
