/* Einwilligungs-Banner und Platzhalter für externe Medien (inc/cookie-hinweis.html, assets/js/consent.js) */
.cm[hidden], .cm [hidden] { display: none !important; }
.cm { position: fixed; z-index: 10000; left: 24px; bottom: 24px; width: min(560px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; color: var(--ink-2, #2c3e50); border: 1px solid var(--border, #d3dce6); border-top: 4px solid var(--primary, #003c71); box-shadow: 0 12px 40px rgba(0, 26, 52, .22); font-family: var(--ff-base, "Open Sans", system-ui, sans-serif); }
.cm-innen { padding: 22px 24px 18px; }
.cm-titel { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--ink, #1a1a1a); }
.cm-text { margin: 0 0 16px; font-size: 14px; line-height: 1.55; }
.cm-einst { margin: 0 0 16px; border-top: 1px solid var(--border, #d3dce6); }
.cm-kat { padding: 12px 0; border-bottom: 1px solid var(--border, #d3dce6); }
.cm-kat-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cm-kat-name { font-size: 14px; font-weight: 700; color: var(--ink, #1a1a1a); cursor: pointer; }
.cm-immer-an { font-size: 12px; font-weight: 600; color: var(--tip, #00795c); }
.cm-kat p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted, #5e6b7a); }

.cm-schalter { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; }
.cm-schalter input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cm-schalter span { position: absolute; inset: 0; background: #b8c3cf; border-radius: 12px; transition: background .15s ease; }
.cm-schalter span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .15s ease; }
.cm-schalter input:checked + span { background: var(--primary, #003c71); }
.cm-schalter input:checked + span::after { transform: translateX(18px); }
.cm-schalter input:focus-visible + span { outline: 2px solid var(--accent, #d50019); outline-offset: 2px; }

.cm-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cm-btn { flex: 1 1 auto; white-space: nowrap; padding: 11px 16px; border: 2px solid var(--primary, #003c71); background: var(--primary, #003c71); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; border-radius: 2px; }
.cm-btn:hover { background: var(--primary-2, #002a52); border-color: var(--primary-2, #002a52); }
.cm-btn-leise { background: #fff; color: var(--primary, #003c71); }
.cm-btn-leise:hover { background: var(--primary-soft, #e6edf5); color: var(--primary, #003c71); }
.cm-mehr { padding: 6px 2px; border: 0; background: none; color: var(--primary, #003c71); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.cm-btn:focus-visible, .cm-mehr:focus-visible, .cm-link:focus-visible, .cm-embed button:focus-visible { outline: 2px solid var(--accent, #d50019); outline-offset: 2px; }
.cm-links { margin: 14px 0 0; font-size: 12px; color: var(--muted, #5e6b7a); }
.cm-links a { color: var(--muted, #5e6b7a); }

/* Fußzeilen-Link zum erneuten Öffnen */
.cm-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: inherit; cursor: pointer; text-align: left; }
.cm-link:hover { text-decoration: underline; }

/* Platzhalter für YouTube- und Maps-Einbettungen (span, weil sie oft in einem <p> stehen) */
.cm-embed { display: block; position: relative; max-width: 100%; margin: 16px 0; }
.cm-embed iframe { display: none; max-width: 100%; }
.cm-embed.cm-geladen iframe { display: block; }
.cm-embed.cm-geladen .cm-platz { display: none; }
.cm-platz { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 240px; padding: 24px; background: var(--soft, #f1f5f9); border: 1px solid var(--border, #d3dce6); border-left: 4px solid var(--primary, #003c71); box-sizing: border-box; }
.cm-platz-titel { display: block; font-size: 16px; font-weight: 700; color: var(--ink, #1a1a1a); }
.cm-platz-text { display: block; font-size: 14px; line-height: 1.55; color: var(--ink-2, #2c3e50); }
.cm-platz-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cm-platz .cm-laden { padding: 9px 16px; border: 2px solid var(--primary, #003c71); background: var(--primary, #003c71); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; border-radius: 2px; }
.cm-platz .cm-immer { padding: 9px 16px; border: 2px solid var(--primary, #003c71); background: #fff; color: var(--primary, #003c71); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; border-radius: 2px; }
.cm-platz-link { font-size: 13px; color: var(--muted, #5e6b7a); }

@media (max-width: 600px) {
	.cm { left: 0; right: 0; bottom: 0; width: 100%; max-height: 85vh; border-left: 0; border-right: 0; }
	.cm-innen { padding: 18px 16px 14px; }
	.cm-btn { flex-basis: 100%; }
	.cm-platz { min-height: 200px; padding: 18px 16px; }
}
@media print { .cm { display: none !important; } }
