/* Grundlegende Formatierung */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    color: #333;
}

.container {
    background: #ffffff;
    max-width: 900px;
    width: 100%;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

h1 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #1a1a1a;
    text-align: center;
}

/* Sektions-Überschriften (An, CC, BCC etc.) */
.section-title {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: #888;
    margin: 25px 0 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    letter-spacing: 0.5px;
}

/* Layout-Raster für die Empfänger (3 Spalten) */
.receiver-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* Layout-Raster für die Einstellungen */
.settings-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
}

/* Layout für Farbwahl und Reset */
.color-row {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    align-items: flex-end;
}

/* Allgemeine Feld-Steuerung */
.field {
    display: flex;
    flex-direction: column;
}

.full-width {
    width: 100%;
}

label {
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Input-Styling */
input[type="text"], 
input[type="email"], 
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #007bff;
}

textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

/* Checkbox-Gruppe */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
}

/* Farbwähler Styling */
input[type="color"] {
    width: 60px;
    height: 35px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
}

/* Output-Bereich (Code und URL) */
.output-area {
    margin-top: 30px;
}

.output-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

code {
    display: block;
    background: #fff;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    word-break: break-all;
    max-height: 100px;
    overflow-y: auto;
}

/* Buttons */
.copy-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #000;
}

.secondary-btn {
    background-color: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background-color: #dc3545;
    color: #fff;
}

.reset-field {
    margin-left: auto; /* Schiebt Reset-Button nach rechts */
}

/* Vorschau-Zone */
.preview-zone {
    margin-top: 20px;
    padding: 30px;
    text-align: center;
    border: 2px dashed #ddd;
    border-radius: 10px;
    background-color: #fafafa;
}

.preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.1s;
}

.preview-btn:active {
    transform: scale(0.98);
}

.icon-part {
    font-size: 1.3em;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .receiver-row {
        grid-template-columns: 1fr;
    }
    
    .settings-row {
        grid-template-columns: 1fr;
    }
    
    .color-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reset-field {
        margin-left: 0;
        width: 100%;
    }
    
    .secondary-btn {
        width: 100%;
    }
}
/* Ergänze dies in deiner style.css */
.output-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.half-width {
    flex: 1; /* Nimmt 50% des Platzes ein */
    margin-bottom: 0 !important; /* Entfernt den unteren Abstand innerhalb der Reihe */
}

/* Mobil-Optimierung: Untereinander stapeln, wenn der Platz nicht reicht */
@media (max-width: 600px) {
    .output-row {
        flex-direction: column;
    }
}