/* NextPuls Consent – Banner, Einstellungen, Platzhalter. Farben über --npc-* (je Website). */
:root { --npc-primary: #141414; --npc-bg: #fff; --npc-text: #1e1e1e; }

.npc-banner, .npc-modal, .npc-placeholder, .npc-float, .npc-notice {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-text-size-adjust: 100%;
	box-sizing: border-box;
}
.npc-banner *, .npc-modal *, .npc-placeholder * { box-sizing: border-box; }

/* Banner */
.npc-banner {
	position: fixed; z-index: 2147483000; left: 16px; right: 16px; bottom: 16px;
	max-width: 760px; margin: 0 auto; max-height: calc(100vh - 32px); overflow: auto;
	background: var(--npc-bg); color: var(--npc-text);
	border-radius: 8px; box-shadow: 0 18px 60px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.06);
	animation: npc-in .25s ease-out;
}
.npc-banner.npc-pos-center { top: 50%; bottom: auto; transform: translateY(-50%); }
.npc-banner__inner { padding: 22px 24px 20px; }
.npc-logo { display: block; max-height: 32px; width: auto; margin: 0 0 10px; }
.npc-title { margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--npc-text); letter-spacing: 0; }
.npc-intro { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--npc-text); }
.npc-links { margin: 0 0 14px; font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.npc-links a, .npc-service a { color: var(--npc-text); text-decoration: underline; text-underline-offset: 2px; }

/* Aktionen: drei gleichwertige Schaltflächen (Ablehnen ist nicht schwerer als Akzeptieren). */
.npc-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.npc-btn {
	appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px;
	border: 2px solid var(--npc-primary); border-radius: 4px; background: var(--npc-primary); color: #fff;
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
	transition: filter .15s;
}
.npc-btn:hover { filter: brightness(1.15); }
.npc-btn:focus-visible, .npc-close:focus-visible, .npc-float:focus-visible, .npc-switch input:focus-visible + .npc-switch__ui,
.npc-placeholder button:focus-visible, .npc-modal summary:focus-visible, .npc-service input:focus-visible {
	outline: 3px solid #2563eb; outline-offset: 2px;
}

/* Einstellungen */
html.npc-lock { overflow: hidden; }
.npc-modal { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.55); }
.npc-modal__box { display: flex; flex-direction: column; width: min(720px, 100%); max-height: calc(100vh - 32px); background: var(--npc-bg); color: var(--npc-text); border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.npc-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 8px; }
.npc-modal__head .npc-title { margin: 0; }
.npc-close { appearance: none; border: 0; background: transparent; color: var(--npc-text); font-size: 28px; line-height: 1; width: 40px; height: 40px; cursor: pointer; border-radius: 4px; }
.npc-modal__body { padding: 4px 22px 8px; overflow: auto; -webkit-overflow-scrolling: touch; }
.npc-actions--modal { padding: 14px 22px 18px; border-top: 1px solid rgba(0,0,0,.08); }
.npc-cat { margin: 0 0 10px; padding: 12px 14px; border: 1px solid rgba(0,0,0,.1); border-radius: 6px; min-width: 0; }
.npc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.npc-cat__desc { margin: 6px 0 0; font-size: 13px; line-height: 1.5; opacity: .85; }
.npc-badge { font-size: 12px; font-weight: 600; opacity: .7; white-space: nowrap; }
.npc-cat details { margin-top: 8px; }
.npc-cat summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.npc-services { list-style: none; margin: 8px 0 0; padding: 0; }
.npc-services li { margin: 0; padding: 8px 0; border-top: 1px solid rgba(0,0,0,.06); }
.npc-service { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; cursor: pointer; }
.npc-service input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--npc-primary); }
.npc-service small { display: block; opacity: .75; }

/* Schalter */
.npc-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.npc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.npc-switch__ui { position: relative; flex: none; width: 40px; height: 22px; border-radius: 11px; background: #b9b9b9; transition: background .15s; }
.npc-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.npc-switch input:checked + .npc-switch__ui { background: var(--npc-primary); }
.npc-switch input:checked + .npc-switch__ui::after { transform: translateX(18px); }
.npc-switch input:disabled + .npc-switch__ui { opacity: .6; }

/* Platzhalter für externe Inhalte (kein Request zum Anbieter, auch kein Vorschaubild) */
.npc-placeholder { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 180px; margin: 0 0 1em; background: #f1f0ec; color: #1e1e1e; border-radius: 6px; overflow: hidden; }
.npc-placeholder__inner { max-width: 520px; padding: 20px; text-align: center; }
.npc-placeholder__text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.npc-placeholder__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.npc-placeholder button { appearance: none; min-height: 40px; padding: 8px 16px; border: 2px solid #1e1e1e; border-radius: 4px; background: #1e1e1e; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.npc-placeholder button.npc-placeholder__always { background: transparent; color: #1e1e1e; }
.npc-placeholder__privacy { display: inline-block; margin-top: 10px; font-size: 12px; color: #1e1e1e; text-decoration: underline; }

/* Schwebender Button (nur wenn das Theme keinen eigenen Footer-Link anbietet) */
.npc-float { position: fixed; z-index: 2147482999; left: 12px; bottom: calc(12px + var(--npc-float-offset, 0px) + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(0,0,0,.12); border-radius: 50%; background: rgba(255,255,255,.92); color: #3b3b3b; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; opacity: .85; transition: opacity .15s, transform .15s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.npc-float:hover { opacity: 1; transform: scale(1.06); }
.npc-float svg { width: 18px; height: 18px; }
html.npc-has-banner .npc-float { display: none; }

.npc-notice { position: fixed; z-index: 2147483002; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 6px; background: #141414; color: #fff; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.3); }

@keyframes npc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.npc-banner.npc-pos-center { animation: none; }

@media (max-width: 560px) {
	.npc-banner { left: 8px; right: 8px; bottom: 8px; }
	.npc-banner__inner { padding: 18px 16px 16px; }
	.npc-actions { grid-template-columns: 1fr; }
	.npc-modal { padding: 0; align-items: flex-end; }
	.npc-modal__box { max-height: 92vh; border-radius: 10px 10px 0 0; }
	.npc-btn, .npc-intro, .npc-service { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .npc-banner { animation: none; } }
@media print { .npc-banner, .npc-modal, .npc-float, .npc-notice { display: none !important; } }
.npc-cat__none { margin: 8px 0 0; font-size: 12px; font-style: italic; opacity: .7; }
