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

body {
    font-family: "acumin-variable", -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #e1e2e3 0%, #c8c8c8 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1d1d1b;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(243, 146, 0, 0.1);
}

.header {
    background: linear-gradient(135deg, #503d2c 0%, #000 100%);
    color: white;
    padding: 30px;
    text-align: center;
    border-bottom: 3px solid #f39200;
}

.header .logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    background: #fff;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 900;
    font-variation-settings: "wdth" 75;
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
    font-weight: 400;
}

.form-section {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-variation-settings: "wdth" 75;
    margin-bottom: 8px;
    color: #1d1d1b;
    font-size: 1.1em;
}

.limit {
    font-weight: 400;
    color: #666;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: "acumin-variable", sans-serif;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f39200;
    background: white;
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.4;
}

.char-counter {
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 0.8em;
    color: #666;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.char-counter.warning {
    color: #ff6b35;
}

.char-counter.danger {
    color: #e74c3c;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    font-family: "acumin-variable", sans-serif;
    font-variation-settings: "wdth" 75;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #f39200 0%, #e67e22 100%);
    color: white;
    border: 1px solid #d35400;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e68200 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 146, 0, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: 1px solid #7f8c8d;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #6c7b7d 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 140, 141, 0.3);
}

.preview-section {
    padding: 40px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.preview-section h3 {
    margin-bottom: 20px;
    color: #1d1d1b;
    font-weight: 700;
    font-variation-settings: "wdth" 75;
}

.preview-container {
    display: flex;
    justify-content: center;
}

.preview-frame {
    width: 400px;
    height: 565px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.preview-content {
    width: 100%;
    height: 100%;
    background-image: url('../ATLAS-LayoutPreisschilder-A4-23-05-22-2-Background.png');
    background-size: cover;
    background-position: center;
    position: relative;
    transform: scale(0.48);
    transform-origin: top left;
    width: 210%;
    height: 210%;
}

.preview-marke {
    position: absolute;
    left: 64px;
    top: 112px;
    font-size: 20pt;
    font-weight: 900;
    font-variation-settings: "wdth" 75;
    color: #f39200;
}

.preview-produktname {
    position: absolute;
    left: 64px;
    top: 157px;
    font-size: 20pt;
    font-weight: 900;
    font-variation-settings: "wdth" 75;
    color: #f39200;
}

.preview-daten {
    position: absolute;
    left: 64px;
    top: 202px;
    font-size: 20pt;
    font-weight: 700;
    font-variation-settings: "wdth" 75;
    color: #1d1d1b;
}

.preview-datenfeld {
    position: absolute;
    left: 66px;
    top: 252px;
    font-size: 15pt;
    font-weight: 400;
    font-variation-settings: "wdth" 75;
    color: #1d1d1b;
    width: 280px;
    line-height: 1.2;
}

.preview-ausstattung {
    position: absolute;
    left: 64px;
    top: 392px;
    font-size: 20pt;
    font-weight: 700;
    font-variation-settings: "wdth" 75;
    color: #1d1d1b;
}

.preview-ausstattungfeld {
    position: absolute;
    left: 66px;
    top: 442px;
    font-size: 15pt;
    font-weight: 400;
    font-variation-settings: "wdth" 75;
    color: #1d1d1b;
    width: 280px;
    line-height: 1.2;
}

.preview-gültigkeit {
    position: absolute;
    left: 64px;
    top: 709px;
    font-size: 14pt;
    font-weight: 700;
    font-variation-settings: "wdth" 75;
    color: #1d1d1b;
}

.preview-preis-container {
    position: absolute;
    right: 200px;
    top: 244px;
    text-align: center;
}

.preview-preis {
    font-size: 40pt;
    font-weight: 900;
    font-variation-settings: "wdth" 87.5;
    color: #1d1d1b;
    line-height: 1;
}

.preview-währung {
    font-size: 24pt;
    font-weight: 900;
    font-variation-settings: "wdth" 87.5;
    color: #1d1d1b;
    margin-top: 5px;
}

.info-section {
    padding: 30px 40px;
    background: #f0f0f0;
}

.info-section h3 {
    margin-bottom: 15px;
    color: #1d1d1b;
    font-weight: 700;
    font-variation-settings: "wdth" 75;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    margin-bottom: 8px;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.info-section li::before {
    content: "•";
    color: #f39200;
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .form-section, .preview-section, .info-section {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .preview-frame {
        width: 300px;
        height: 424px;
    }
    
    .preview-content {
        transform: scale(0.36);
    }
}

.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
    background: #ffeaea;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}