:root {
    --primary: #0066cc;
    --primary-hover: #004e9e;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --focus-ring: rgba(0, 102, 204, 0.25);
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    max-width: 760px; 
    margin: 40px auto; 
    padding: 0 20px; 
    background: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6; 
}

.container { 
    background: var(--bg-card); 
    padding: 36px 32px; 
    border-radius: 12px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
    border: 1px solid var(--border-color); 
}

.header-logo { text-align: center; margin-bottom: 24px; }
.header-logo img { max-width: 260px; height: auto; }

.lang-switch { text-align: right; margin-bottom: 24px; font-size: 13px; font-weight: 600; }
.lang-switch a { text-decoration: none; color: var(--text-muted); padding: 4px 8px; border-radius: 4px; }
.lang-switch a.active { color: var(--primary); background: rgba(0, 102, 204, 0.08); }

h2 { font-size: 22px; font-weight: 700; margin-top: 0; margin-bottom: 8px; }
p { color: var(--text-muted); font-size: 14px; margin-top: 0; margin-bottom: 24px; }
.required { color: #dc2626; }

.field { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }

input[type="text"], 
input[type="file"], 
textarea { 
    width: 100%; 
    padding: 10px 14px; 
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    box-sizing: border-box; 
    font-family: inherit; 
    font-size: 14px; 
    background-color: #fff;
}

input[type="text"]:focus, 
input[type="file"]:focus, 
textarea:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px var(--focus-ring); 
}

textarea { height: 120px; resize: vertical; }

.allowed-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 6px;
}

.format-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1.4;
    display: inline-block;
}

.format-badge.image   { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.format-badge.doc     { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.format-badge.text    { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.format-badge.archive { background: #fce7f3; color: #9d174d; border: 1px solid #fbcfe8; }

.checkbox-field { 
    display: flex; 
    align-items: flex-start; 
    gap: 12px; 
    margin: 24px 0; 
    padding: 12px 14px; 
    background: #f9fafb; 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
}
.checkbox-field input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; }
.checkbox-field label { font-weight: 400; font-size: 13px; cursor: pointer; margin-bottom: 0; }

.hint-box {
    background: #f0f9ff;
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-main);
    border-radius: 0 6px 6px 0;
}

button { 
    background: var(--primary); 
    color: #fff; 
    padding: 14px 20px; 
    border: none; 
    border-radius: 6px; 
    font-size: 15px; 
    cursor: pointer; 
    width: 100%; 
    font-weight: 600; 
}
button:hover { background: var(--primary-hover); }

.status { padding: 14px 16px; border-radius: 6px; margin-bottom: 24px; font-size: 14px; }
.status.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.status.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

footer a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 6px;
}

footer a:hover { text-decoration: underline; }

.footer-pgp {
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
    word-break: break-all;
}

.footer-pgp code {
    background: #f3f4f6;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #374151;
    font-size: 11px;
    border: 1px solid var(--border-color);
    display: inline-block;
    margin-top: 4px;
}

.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.6); 
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 1000; 
    padding: 20px; 
    box-sizing: border-box; 
}
.modal-overlay:target { display: flex; }
.modal-box { 
    background: #fff; 
    max-width: 650px; 
    max-height: 80vh; 
    overflow-y: auto; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
    position: relative; 
}
.modal-close-btn { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 24px; 
    text-decoration: none; 
    color: #666; 
    font-weight: bold; 
}
.modal-close-btn:hover { color: #000; }

.website-hp-field {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}
/* ==========================================================================
   VDP-Richtlinien Seite (Isolation durch .vdp-page)
   ========================================================================== */

/* Spezifische Anpassungen für die Richtlinien-Inhalte */
.vdp-page .vdp-content ul { 
    padding-left: 20px; 
}

.vdp-page .vdp-content li { 
    margin-bottom: 8px; 
}

/* Call-to-Action Button für die Rückkehr zum Formular */
.vdp-page .btn-cta {
    display: inline-block; 
    background: var(--primary, #0066cc); 
    color: #ffffff; 
    padding: 12px 24px; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: 600; 
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.vdp-page .btn-cta:hover {
    background: var(--primary-hover, #004e9e);
}
/* ==========================================================================
   Modal-Fenster Styles (VDP Richtlinien)
   ========================================================================== */

/* Overlay Hintergrund */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.6); 
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 1000; 
    padding: 20px; 
    box-sizing: border-box; 
    backdrop-filter: blur(2px);
}

.modal-overlay:target { 
    display: flex; 
}

/* Modal Inhalts-Box */
.modal-box { 
    background: #ffffff; 
    max-width: 650px; 
    width: 100%;
    max-height: 85vh; 
    overflow-y: auto; 
    padding: 32px; 
    border-radius: 12px; 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); 
    position: relative; 
}

/* X-Button oben rechts */
.modal-close-btn { 
    position: absolute; 
    top: 16px; 
    right: 20px; 
    font-size: 28px; 
    line-height: 1;
    text-decoration: none; 
    color: var(--text-muted, #6b7280); 
    font-weight: 300; 
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-block;
    padding: 4px;
}

.modal-close-btn:hover { 
    color: var(--text-main, #1f2937); 
    transform: scale(1.1);
}

/* Footer-Aktionsbereich im Modal */
.modal-actions {
    text-align: right;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

/* Schließen-Button unten rechts im Modal */
.modal-btn-close {
    display: inline-block;
    background: var(--primary, #0066cc); 
    color: #ffffff; 
    padding: 8px 18px; 
    text-decoration: none; 
    border-radius: 6px; 
    font-size: 14px; 
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.modal-btn-close:hover {
    background: var(--primary-hover, #004e9e);
}