/* NAK Liedvorschläge – Demo-Gemeinde: Leiste, Rollenwahl, Postfach, Anforderung, Einrichtung. Präfix lvd. */
:root {
	--lvd-bg: #0f2238;
	--lvd-bg2: #17324f;
	--lvd-ink: #f1f5f9;
	--lvd-mut: #9fb3c8;
	--lvd-acc: #f59e0b;
	--lvd-acc-ink: #1f1300;
	--lvd-card: #ffffff;
	--lvd-card-ink: #15202b;
	--lvd-card-mut: #5b6b7d;
	--lvd-line: #dde4ec;
	--lvd-soft: #f4f7fa;
	--lvd-brand: #1d4f7c;
	--lvd-ok: #0f766e;
}
@media (prefers-color-scheme: dark) {
	:root { --lvd-card: #141c25; --lvd-card-ink: #e6ebf1; --lvd-card-mut: #94a3b8; --lvd-line: #263241; --lvd-soft: #1a2430; --lvd-brand: #7cb8ee; }
}

/* ---------- Leiste ---------- */
body.lvd-on { padding-bottom: 76px; }
body.lvd-on .lvh-fab { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px); }
.lvd-bar { position: fixed; z-index: 99980; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); width: min(980px, calc(100vw - 24px)); display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem .45rem .7rem; border-radius: 18px; background: linear-gradient(120deg, var(--lvd-bg), var(--lvd-bg2)); color: var(--lvd-ink); font: 500 .88rem/1.25 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: 0 14px 40px rgb(5 15 30 / .38), inset 0 0 0 1px rgb(255 255 255 / .06); }
.lvd-bar * { box-sizing: border-box; }
.lvd-bar__tag { display: inline-flex; flex-direction: column; min-width: 0; padding-right: .4rem; }
.lvd-bar__tag b { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lvd-acc); }
.lvd-bar__tag b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lvd-acc); box-shadow: 0 0 0 3px rgb(245 158 11 / .25); animation: lvd-pulse 2.4s ease-in-out infinite; }
.lvd-bar__tag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lvd-mut); font-size: .8rem; }
@keyframes lvd-pulse { 50% { box-shadow: 0 0 0 6px rgb(245 158 11 / 0); } }
.lvd-bar button, .lvd-bar a { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; height: 40px; padding: 0 .8rem; border-radius: 12px; color: var(--lvd-ink); white-space: nowrap; transition: background .15s; }
.lvd-bar button:hover, .lvd-bar a:hover { background: rgb(255 255 255 / .09); }
.lvd-bar button:focus-visible, .lvd-bar a:focus-visible { outline: 2px solid var(--lvd-acc); outline-offset: 1px; }
.lvd-bar__who { background: rgb(255 255 255 / .07) !important; padding-left: .35rem !important; min-width: 0; flex: 0 1 auto; }
.lvd-bar__who i { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .78rem; background: var(--lvd-acc); color: var(--lvd-acc-ink); }
.lvd-bar__who span { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.lvd-bar__who b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.lvd-bar__who small { color: var(--lvd-mut); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; }
.lvd-bar__who svg { flex: none; opacity: .7; }
.lvd-bar__sp { flex: 1; }
.lvd-bar__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--lvd-acc); color: var(--lvd-acc-ink); font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center; }
.lvd-bar__cta { background: var(--lvd-acc) !important; color: var(--lvd-acc-ink) !important; font-weight: 700; }
.lvd-bar__cta:hover { filter: brightness(1.06); }
.lvd-bar__more { width: 40px; justify-content: center; padding: 0 !important; }
.lvd-bar svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lvd-menu { position: fixed; z-index: 99985; min-width: 230px; padding: .35rem; border-radius: 14px; background: var(--lvd-card); color: var(--lvd-card-ink); box-shadow: 0 20px 50px rgb(5 15 30 / .3); border: 1px solid var(--lvd-line); font: 500 .9rem/1.3 Inter, ui-sans-serif, system-ui, sans-serif; }
.lvd-menu button { all: unset; box-sizing: border-box; display: flex; width: 100%; gap: .6rem; align-items: center; padding: .6rem .7rem; border-radius: 10px; cursor: pointer; }
.lvd-menu button:hover, .lvd-menu button:focus-visible { background: var(--lvd-soft); }
.lvd-menu button small { display: block; color: var(--lvd-card-mut); font-size: .78rem; }
.lvd-menu .is-danger { color: #dc2626; }

@media (max-width: 760px) {
	body.lvd-on { padding-bottom: 70px; }
	.lvd-bar { left: 0; right: 0; transform: none; width: auto; bottom: 0; border-radius: 16px 16px 0 0; padding: .4rem .45rem calc(.4rem + env(safe-area-inset-bottom)); gap: .25rem; }
	.lvd-bar__tag, .lvd-bar__lbl { display: none !important; }
	.lvd-bar button, .lvd-bar a { padding: 0 .6rem; }
	.lvd-bar__who { flex: 1 1 auto; }
	body.lvd-on .lvh-fab { bottom: calc(68px + env(safe-area-inset-bottom)); }
}

.lvd-bar.is-support { background: linear-gradient(120deg, #3b0764, #6d28d9); }
.lvd-bar.is-support .lvd-bar__tag b { color: #fde68a; }

/* ---------- Dialoge ---------- */
.lvd-dlg { position: fixed; inset: 0; z-index: 99995; display: grid; place-items: center; padding: 16px; background: rgb(8 18 32 / .55); backdrop-filter: blur(3px); animation: lvd-fade .15s ease-out; font: 400 .95rem/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
@keyframes lvd-fade { from { opacity: 0; } }
.lvd-dlg__box { width: min(760px, 100%); max-height: min(86dvh, 860px); overflow: auto; background: var(--lvd-card); color: var(--lvd-card-ink); border-radius: 22px; box-shadow: 0 40px 100px rgb(5 15 30 / .45); }
.lvd-dlg__box--s { width: min(480px, 100%); }
.lvd-dlg__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.3rem .8rem; background: var(--lvd-card); border-bottom: 1px solid var(--lvd-line); }
.lvd-dlg__head h2 { margin: 0; font-size: 1.2rem; line-height: 1.3; color: inherit; }
.lvd-dlg__head p { margin: .2rem 0 0; color: var(--lvd-card-mut); font-size: .88rem; }
.lvd-dlg__x { all: unset; cursor: pointer; margin-left: auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; color: var(--lvd-card-mut); }
.lvd-dlg__x:hover { background: var(--lvd-soft); }
.lvd-dlg__body { padding: 1rem 1.3rem 1.3rem; }
.lvd-dlg__foot { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; padding: 0 1.3rem 1.2rem; }
.lvd-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: 0 1.2rem; border-radius: 999px; background: var(--lvd-brand); color: #fff; font-weight: 650; text-decoration: none !important; }
@media (prefers-color-scheme: dark) { .lvd-btn { color: #0b1724; } }
.lvd-btn:hover { filter: brightness(1.08); }
.lvd-btn:focus-visible { outline: 3px solid var(--lvd-acc); outline-offset: 2px; }
.lvd-btn--ghost { background: transparent; color: var(--lvd-brand); box-shadow: inset 0 0 0 1.5px var(--lvd-line); }
.lvd-btn--acc { background: var(--lvd-acc); color: var(--lvd-acc-ink); }
.lvd-btn--danger { background: #dc2626; color: #fff; }

/* Rollen */
.lvd-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.lvd-role { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem; border-radius: 16px; border: 1.5px solid var(--lvd-line); background: var(--lvd-card); transition: border-color .15s, box-shadow .15s, transform .15s; }
.lvd-role:hover, .lvd-role:focus-visible { border-color: var(--lvd-brand); box-shadow: 0 8px 24px rgb(15 47 82 / .12); transform: translateY(-1px); }
.lvd-role.is-cur { border-color: var(--lvd-acc); background: color-mix(in srgb, var(--lvd-acc) 7%, var(--lvd-card)); }
.lvd-role__top { display: flex; align-items: center; gap: .6rem; }
.lvd-role__top i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--lvd-soft); color: var(--lvd-brand); }
.lvd-role.is-cur .lvd-role__top i { background: var(--lvd-acc); color: var(--lvd-acc-ink); }
.lvd-role__top b { display: block; font-size: .98rem; }
.lvd-role__top small { display: block; color: var(--lvd-card-mut); font-size: .8rem; }
.lvd-role p { margin: 0; color: var(--lvd-card-mut); font-size: .86rem; }
.lvd-role ul { margin: .1rem 0 0; padding: 0; list-style: none; display: grid; gap: .2rem; font-size: .83rem; }
.lvd-role li { position: relative; padding-left: 1.05rem; }
.lvd-role li::before { content: "→"; position: absolute; left: 0; color: var(--lvd-brand); }
.lvd-note { margin: 0 0 1rem; padding: .75rem .9rem; border-radius: 12px; background: var(--lvd-soft); font-size: .9rem; }

/* Postfach */
.lvd-mail { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; min-height: 420px; }
.lvd-mail__list { border-right: 1px solid var(--lvd-line); overflow: auto; max-height: 64dvh; }
.lvd-mail__list button { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; padding: .7rem 1rem; border-bottom: 1px solid var(--lvd-line); }
.lvd-mail__list button:hover, .lvd-mail__list button.is-cur { background: var(--lvd-soft); }
.lvd-mail__list b { display: block; font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvd-mail__list .is-new b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lvd-acc); margin-right: .4rem; vertical-align: middle; }
.lvd-mail__list small { display: block; color: var(--lvd-card-mut); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvd-mail__kind { display: inline-block; padding: 0 .4rem; border-radius: 6px; background: var(--lvd-soft); font-size: .7rem; margin-right: .3rem; }
.lvd-mail__read { display: flex; flex-direction: column; min-width: 0; }
.lvd-mail__meta { padding: .8rem 1rem; border-bottom: 1px solid var(--lvd-line); font-size: .85rem; color: var(--lvd-card-mut); }
.lvd-mail__meta b { display: block; color: var(--lvd-card-ink); font-size: 1rem; }
.lvd-mail__read iframe { flex: 1; width: 100%; min-height: 360px; border: 0; background: #f4f5f7; }
.lvd-mail__empty { padding: 2rem 1rem; text-align: center; color: var(--lvd-card-mut); }
@media (max-width: 680px) {
	.lvd-mail { grid-template-columns: 1fr; }
	.lvd-mail__list { border-right: 0; max-height: none; }
	.lvd-mail.is-reading .lvd-mail__list { display: none; }
	.lvd-mail:not(.is-reading) .lvd-mail__read { display: none; }
}
.lvd-back { all: unset; cursor: pointer; color: var(--lvd-brand); font-weight: 600; font-size: .85rem; margin-bottom: .3rem; display: none; }
@media (max-width: 680px) { .lvd-back { display: inline-block; } }

/* Toast */
.lvd-toast { position: fixed; z-index: 99996; left: 50%; bottom: 96px; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); padding: .75rem 1.1rem; border-radius: 14px; background: #0f2238; color: #fff; font: 500 .92rem/1.4 Inter, ui-sans-serif, system-ui, sans-serif; box-shadow: 0 14px 40px rgb(5 15 30 / .35); animation: lvd-fade .2s ease-out; }
.lvd-toast.is-out { opacity: 0; transition: opacity .3s; }

/* ---------- Anforderung (Shortcode) ---------- */
.lvd-wrap { container-type: inline-size; }
.lvd-land { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; margin: 1rem 0 2rem; font-size: 1rem; }
@container (min-width: 760px) { .lvd-land { grid-template-columns: 1.3fr 1fr; } .lvd-land__list li { grid-template-columns: 10.5rem 1fr !important; } }
.lvd-land__note { grid-column: 1 / -1; margin: 0; padding: .85rem 1rem; border-radius: 14px; background: #fff7e6; color: #5a3b00; border: 1px solid #f7d58a; }
.lvd-land__hero h2 { margin: .2rem 0 .6rem; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
.lvd-land__kick { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b45309; }
.lvd-land__list { list-style: none; margin: 1.1rem 0; padding: 0; display: grid; gap: .55rem; }
.lvd-land__list li { display: grid; grid-template-columns: 1fr; gap: .15rem .8rem; padding: .7rem .9rem; border-radius: 12px; background: rgb(29 79 124 / .06); }
.lvd-land__list b { color: #1d4f7c; }
.lvd-land__safe { font-size: .9rem; padding: .8rem 1rem; border-radius: 12px; border: 1px dashed rgb(29 79 124 / .35); }
.lvd-land__card { position: sticky; top: 1.5rem; padding: 1.4rem; border-radius: 20px; background: #fff; color: #15202b; box-shadow: 0 20px 50px rgb(15 47 82 / .14); border: 1px solid #e3e9f0; }
.lvd-land__card h3, .lvd-land__card h2 { margin-top: 0; }
.lvd-land__form label { display: block; margin: 0 0 .9rem; }
.lvd-land__form label > span { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .3rem; }
.lvd-land__form input:not([type=checkbox]) { width: 100%; box-sizing: border-box; padding: .7rem .85rem; border-radius: 12px; border: 1px solid #cfd8e3; background: #f8fafc; font: inherit; color: inherit; }
.lvd-land__form input:focus { outline: 0; border-color: #1d4f7c; box-shadow: 0 0 0 3px rgb(29 79 124 / .18); }
.lvd-land__form small { display: block; color: #64748b; font-size: .8rem; margin-top: .25rem; }
.lvd-land__ok { display: flex !important; gap: .55rem; align-items: flex-start; font-size: .84rem; color: #475569; }
.lvd-land__ok span { font-weight: 400 !important; }
.lvd-land__ok input { margin-top: .2rem; }
.lvd-land__form .lvd-btn { width: 100%; background: #1d4f7c; color: #fff; text-align: center; }
.lvd-land__res { min-height: 1.2em; margin: .8rem 0 0; font-weight: 600; }
.lvd-land__res.is-ok { color: #0f766e; }
.lvd-land__res.is-err { color: #b91c1c; }
.lvd-land__small { font-size: .85rem; color: #64748b; margin: .6rem 0 0; }
.lvd-hp { position: absolute !important; left: -9999px !important; }


/* ---------- Einrichtungsseite ---------- */
body.lvd-setup { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 16px; box-sizing: border-box; background: radial-gradient(1000px 500px at 20% -10%, rgb(124 196 255 / .25), transparent 60%), linear-gradient(140deg, #0f2f52, #1d4f7c); font: 400 1rem/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #15202b; }
.lvd-setup__card { width: min(460px, 100%); padding: 2rem 1.8rem; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgb(5 20 40 / .4); text-align: center; }
.lvd-setup__card h1 { font-size: 1.3rem; margin: 1rem 0 1.1rem; }
.lvd-setup__spin { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; border: 4px solid #e2e8f0; border-top-color: #f59e0b; animation: lvd-spin .9s linear infinite; }
@keyframes lvd-spin { to { transform: rotate(360deg); } }
.lvd-setup__steps { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: .45rem; text-align: left; width: fit-content; }
.lvd-setup__steps li { position: relative; padding-left: 1.7rem; color: #94a3b8; transition: color .3s; }
.lvd-setup__steps li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cbd5e1; box-sizing: border-box; }
.lvd-setup__steps li.is-done { color: #15202b; }
.lvd-setup__steps li.is-done::before { border-color: #0f766e; background: #0f766e; }
.lvd-setup__msg { color: #64748b; font-size: .9rem; margin: 1.2rem 0 0; }
@media (prefers-color-scheme: dark) {
	.lvd-setup__card, .lvd-land__card { background: #141c25; color: #e6ebf1; border-color: #263241; }
	.lvd-setup__steps li.is-done { color: #e6ebf1; }
	.lvd-land__form input:not([type=checkbox]) { background: #0f1419; border-color: #2a3542; }
	.lvd-land__list li { background: rgb(124 184 238 / .08); }
	.lvd-land__list b { color: #7cb8ee; }
}
@media (prefers-reduced-motion: reduce) {
	.lvd-bar__tag b::before, .lvd-setup__spin { animation: none; }
}
@media (min-width: 1000px) { .lvd-bar__tag { flex: none; } }

/* ---------- Werbeband „Mustergemeinde ausprobieren“ ---------- */
.lvd-band { container-type: inline-size; margin: 2rem 0; padding: clamp(1.3rem, 4vw, 2.4rem); border-radius: 24px; background: radial-gradient(900px 400px at 100% 0%, rgb(245 158 11 / .22), transparent 60%), linear-gradient(135deg, #0f2f52, #1d4f7c); color: #eaf2fb; font: 400 1rem/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
.lvd-band__in { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@container (min-width: 760px) { .lvd-band__in { grid-template-columns: 1.05fr 1fr; } }
.lvd-band h2 { margin: .2rem 0 .7rem; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; color: #fff; }
.lvd-band p { margin: 0 0 1rem; color: #c9d8e8; }
.lvd-band__kick { margin: 0 !important; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fbbf24 !important; }
.lvd-band ul { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: .35rem; }
.lvd-band li { position: relative; padding-left: 1.6rem; color: #fff; font-weight: 500; }
.lvd-band li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.15rem; height: 1.15rem; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: #f59e0b; color: #1f1300; margin-top: .2rem; }
.lvd-band__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.5rem; border-radius: 999px; background: #f59e0b; color: #1f1300 !important; font-weight: 750; text-decoration: none !important; box-shadow: 0 10px 28px rgb(245 158 11 / .35); transition: transform .15s, filter .15s; }
.lvd-band__btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.lvd-band__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lvd-band__v img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 24px 60px rgb(0 0 0 / .35); transform: rotate(-1.2deg); }
.lvd-band__v { max-width: 560px; }
.lvd-band__btn { white-space: nowrap; }

/* ---------- Rückmeldung ---------- */
.lvd-fb__kinds { border: 0; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .45rem; }
.lvd-fb__kinds legend { font-weight: 650; font-size: .9rem; margin-bottom: .45rem; padding: 0; }
.lvd-fb__kinds label { display: flex; gap: .5rem; align-items: center; padding: .55rem .75rem; border-radius: 12px; border: 1.5px solid var(--lvd-line); cursor: pointer; font-size: .9rem; }
.lvd-fb__kinds label:has(input:checked) { border-color: var(--lvd-acc); background: color-mix(in srgb, var(--lvd-acc) 9%, transparent); }
.lvd-fb__f { display: block; margin: 0 0 .9rem; }
.lvd-fb__f span { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .3rem; }
.lvd-fb__f textarea, .lvd-fb__f input { width: 100%; box-sizing: border-box; padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--lvd-line); background: var(--lvd-soft); font: inherit; color: inherit; }
.lvd-fb__f textarea:focus, .lvd-fb__f input:focus { outline: 0; border-color: var(--lvd-brand); box-shadow: 0 0 0 3px rgb(29 79 124 / .18); }
.lvd-fbp { width: min(560px, 100%); text-align: left; }
.lvd-fbp h1 { font-size: 1.3rem; margin: 0 0 .5rem; }
.lvd-fbp__lead { color: #475569; margin: 0 0 1.2rem; }
.lvd-fbp form .lvd-btn { width: 100%; }
.lvd-fbp__ok { padding: 1rem; border-radius: 12px; background: #ecfdf5; color: #065f46; font-weight: 600; }
.lvd-fbp a { color: #1d4f7c; }
@media (prefers-color-scheme: dark) { .lvd-fbp__lead { color: #94a3b8; } .lvd-fbp__ok { background: #052e26; color: #a7f3d0; } .lvd-fbp a { color: #7cb8ee; } }
