/* Inhaltsschutz – Einstellungen → Kommunikation & Webseite → Inhaltsschutz (content-shield-settings.js) */
.cs-form .panel + .panel, .cs-form .cs-areas + .panel, .cs-form .panel + .cs-areas { margin-top: 16px; }
.cs-note { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.cs-note code { padding: 1px 5px; border-radius: 4px; background: #f0eef1; font-size: 11px; }

/* Status */
.cs-status-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 16px; }
.cs-status-body strong { font-size: 15px; }
.cs-status.is-on { border-color: #c9b9d6; background: linear-gradient(180deg, #f7f2fa, #fff 60%); }
.cs-status-meta { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12.5px; text-align: right; }
.cs-status-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cs-status-meta svg { width: 14px; height: 14px; }

/* Grenzen */
.cs-limits details { padding: 10px 16px 12px; }
.cs-limits summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 650; font-size: 14px; list-style: none; }
.cs-limits summary::-webkit-details-marker { display: none; }
.cs-limits summary svg { width: 16px; height: 16px; color: #8a6d1d; }
.cs-limits p { margin: 10px 0 6px; font-size: 13.5px; }
.cs-limits ul { margin: 0; padding-left: 20px; color: #3b4348; font-size: 13px; line-height: 1.55; }
.cs-limits li + li { margin-top: 3px; }

/* Bereiche */
.cs-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cs-area { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.cs-area.is-on { border-color: #b79ac9; box-shadow: 0 0 0 3px rgba(100, 49, 130, 0.08); }
.cs-area-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); background: #faf8fb; }
.cs-area.is-on .cs-area-head { background: #f5eef9; }
.cs-area-state { flex: 0 0 auto; margin-top: 3px; padding: 2px 9px; border-radius: 999px; background: #ecebed; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.cs-area.is-on .cs-area-state { background: #e4d6ee; color: #4e2566; }
.cs-switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; position: relative; }
.cs-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cs-switch-track { position: relative; flex: 0 0 44px; width: 44px; height: 24px; margin-top: 2px; border-radius: 12px; background: #cfd6d9; transition: background 0.2s; }
.cs-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.cs-switch input:checked + .cs-switch-track { background: var(--accent); }
.cs-switch input:checked + .cs-switch-track::after { transform: translateX(20px); }
.cs-switch input:focus-visible + .cs-switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-switch strong { display: block; font-size: 15px; }
.cs-switch small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.cs-options { margin: 0; padding: 6px 0; list-style: none; }
.cs-option { display: flex; align-items: flex-start; gap: 10px; padding: 8px 14px; cursor: pointer; }
.cs-option:hover { background: #faf8fb; }
.cs-option input { margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.cs-option input:disabled + span { opacity: 0.5; }
.cs-option strong { display: block; font-size: 13px; font-weight: 600; }
.cs-option small { display: block; margin-top: 1px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }

/* Texte und Vorschau */
.cs-texts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 46%); gap: 18px; padding: 14px 16px 16px; }
.cs-text-fields { display: flex; flex-direction: column; gap: 10px; }
.cs-field { display: flex; flex-direction: column; gap: 4px; }
.cs-field > span { font-size: 12.5px; font-weight: 600; color: #3b4348; }
.cs-field input, .cs-field textarea { width: 100%; box-sizing: border-box; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; font-size: 13.5px; }
.cs-field textarea { resize: vertical; line-height: 1.45; }
.cs-preview-wrap { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cs-preview-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.cs-preview-tabs button { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #3b4348; font: inherit; font-size: 12.5px; cursor: pointer; }
.cs-preview-tabs button.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.cs-preview-stage { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #efe9f2; }
.cs-preview { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.cs-preview-scene { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f7f5f8; }
.cs-preview-scene.is-veiled { filter: blur(6px) saturate(0.6); }
.cs-preview-bar { height: 14px; width: 40%; border-radius: 7px; background: #cdbfd6; }
.cs-preview-photo { position: relative; flex: 1; min-height: 120px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #8d6aa5, #c9a6d9 55%, #e9d9f0); }
.cs-preview-photo span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-30deg); white-space: nowrap; color: rgba(255, 255, 255, 0.5); text-shadow: 1px 1px 0 rgba(20, 10, 30, 0.3); font-family: Cardo, Georgia, serif; font-size: 15px; }
.cs-preview-lines { display: flex; flex-direction: column; gap: 6px; }
.cs-preview-lines i { display: block; height: 8px; border-radius: 4px; background: #d9cfe0; }
.cs-preview-lines i:nth-child(2) { width: 80%; }
.cs-preview-lines i:nth-child(3) { width: 55%; }
.cs-preview-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(244, 240, 247, 0.72); }
.cs-preview-card { width: min(100%, 330px); box-sizing: border-box; padding: 20px 18px 18px; border: 1px solid #ddd6e1; border-radius: 16px; background: #fff; color: #2b2430; box-shadow: 0 18px 44px rgba(43, 36, 48, 0.2); text-align: center; line-height: 1.45; }
.cs-preview-card h3 { margin: 10px 0 6px; font-family: Cardo, Georgia, serif; font-weight: 400; font-size: 21px; color: #3f1f52; }
.cs-preview-card p { margin: 0 0 6px; font-size: 13px; }
.cs-preview-hint { color: #716b73; font-size: 12px; }
.cs-preview-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: #f5f0f7; color: #643182; }
.cs-preview-icon.small { flex: 0 0 38px; width: 38px; height: 38px; }
.cs-preview-icon svg { width: 22px; height: 22px; fill: currentColor; }
.cs-preview-button { display: inline-block; margin-top: 8px; padding: 7px 18px; border-radius: 999px; background: #643182; color: #fff; font-size: 12.5px; font-weight: 600; }
.cs-preview-blocked { background: #f5f0f7; }
.cs-preview-blocked .cs-preview-card { border-top: 5px solid #643182; }
.cs-preview-blocked h3 { font-size: 26px; }
.cs-preview-notice { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #ddd6e1; border-radius: 12px; background: #fff; color: #2b2430; box-shadow: 0 14px 34px rgba(43, 36, 48, 0.18); }
.cs-preview-notice strong { display: block; font-family: Cardo, Georgia, serif; font-weight: 400; font-size: 16px; color: #3f1f52; }
.cs-preview-notice p { margin: 0; font-size: 12px; line-height: 1.4; }
.cs-preview-close { color: #716b73; font-size: 18px; line-height: 1; }
.cs-preview-print { background: #e9e5ec; }
.cs-preview-paper { width: min(100%, 300px); min-height: 220px; padding: 40px 24px; box-sizing: border-box; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); color: #000; font-size: 13px; line-height: 1.5; }

/* Nachweise */
.cs-marks-body { padding: 12px 16px 14px; }
.cs-marks { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cs-marks th, .cs-marks td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cs-marks th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.cs-marks code { font-size: 11.5px; }
.cs-marks-path { word-break: break-all; }

.cs-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

@media (max-width: 1100px) { .cs-areas { grid-template-columns: 1fr; } .cs-texts { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .cs-status-body { flex-direction: column; }
  .cs-status-meta { text-align: left; }
  .cs-texts { padding: 12px; }
  .cs-actions { flex-direction: column-reverse; }
  .cs-actions .button { width: 100%; justify-content: center; }
}
