@charset "UTF-8";

/* Globale Basis */
* { box-sizing: border-box; }
body { 
    background-color: #f8f9fa; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    color: #334155; 
    line-height: 1.6; 
    margin: 0; 
    padding: 20px; 
}

/* Hauptbereich: Standard für Dashboard */
#hauptbereich { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 40px; 
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* AVV-Seite: Gezieltes Überschreiben bei avv-limit */
#hauptbereich.avv-limit { 
    max-width: 600px !important; 
    text-align: center;
    padding: 40px !important;
}

h2 { color: #083675; margin-bottom: 25px; font-size: 1.8rem; text-align: center; }
h3 { font-size: 1.1rem; color: #083675; margin: 0 0 20px 0; }

/* Dashboard Grid */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Box-Styling für Dashboard-Elemente */
#versand-box, #vorlage-box, #historie-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Formularelemente */
/* Formularelemente */
textarea, input[type="number"], input[type="file"] { 
    width: 100%; 
    padding: 12px; 
    margin: 10px 0; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    display: block; /* Wichtig für die korrekte Breitenberechnung */
}

/* Speziell für die Textarea im Dashboard-Grid */
textarea { 
    resize: vertical; 
    min-height: 100px;
}

.button-wrapper { margin-top: auto; padding-top: 20px; }

/* Buttons */
.sende-button {
    background-color: #083675;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
    width: 100%;
}
.sende-button:hover { background-color: #062a5a; }

/* Tabellen & Meldungen */
#tabelle-log { width: 100%; border-collapse: collapse; margin-top: 20px; }
#tabelle-log td { padding: 15px 10px; border-bottom: 1px solid #e2e8f0; }

#meldung-erfolg { background: #f0fdf4; color: #166534; padding: 20px; border-radius: 16px; margin-bottom: 30px; border: 1px solid #dcfce7; }

/* AVV-Spezifische Hilfsklassen */
.avv-infobox { background: #f8fafc; padding: 20px; border-radius: 16px; border: 1px solid #e2e8f0; margin-bottom: 20px; }
.avv-download-box { text-align: center; padding: 30px; border: 2px dashed #cbd5e1; border-radius: 16px; margin-bottom: 30px; }

/* Responsive Korrekturen */
@media (max-width: 768px) {
    /* Grid für Smartphone wieder untereinander */
    .grid-container { grid-template-columns: 1fr; gap: 20px; }
    
    /* Hauptbereich schmaler auf dem Smartphone */
    #hauptbereich { padding: 20px; }
    
    /* Überschrift anpassen */
    h2 { font-size: 1.4rem; }
    
    /* Boxen Padding reduzieren für mehr Platz */
    #versand-box, #vorlage-box, #historie-box { padding: 20px; }
}