/* Kopfmenü Firma / Hilfe / Benutzer (Oberflaeche/KopfMenue.razor). Nutzt die Farbvariablen der app.css des jeweiligen Programms. */
.kopfmenue { display: flex; align-items: center; gap: 18px; }
.kopfmenue-punkt { position: relative; }
.kopfmenue-punkt > summary { cursor: pointer; list-style: none; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kopfmenue-punkt > summary::-webkit-details-marker { display: none; }
.kopfmenue-punkt > summary::after { content: " ▾"; color: var(--text-leise); }
.kopfmenue-punkt > summary:hover { color: var(--akzent); }
.kopfmenue-punkt > summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
.kopfmenue-liste { position: absolute; right: 0; top: 2rem; z-index: 50; display: grid; gap: 2px; min-width: 240px; padding: 8px;
    background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: 0 6px 24px rgb(0 0 0 / .12); }
.kopfmenue-liste a, .kopfmenue-liste button.link { display: block; padding: 8px 10px; border-radius: 6px; text-align: left; color: var(--text); text-decoration: none; }
.kopfmenue-liste a:hover, .kopfmenue-liste button.link:hover { background: var(--flaeche-2); color: var(--akzent); }
.kopfmenue-liste form { display: block; margin: 0; }
.kopfmenue-liste form button { width: 100%; font: inherit; }
.kopfmenue-liste hr { border: 0; border-top: 1px solid var(--linie); margin: 4px 2px; }

@media (max-width: 640px) {
    .kopfmenue { gap: 12px; }
    .kopfmenue-punkt > summary { max-width: 150px; }
    /* Am Handy über die ganze Breite unter der Leiste statt am Menüpunkt */
    .kopfmenue-punkt { position: static; }
    .kopfmenue-liste { left: 8px; right: 8px; top: auto; margin-top: 8px; min-width: 0; }
    .kopf { position: relative; }
}

/* Demo zum Ansehen und Hinweis zum Testende (KopfMenue): feste Leiste am unteren Rand, in allen Programmen gleich. */
.ebpl-leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 8px 16px; padding: 10px 16px; background: var(--akzent); color: #fff; font-size: .95rem; box-shadow: 0 -4px 16px rgb(0 0 0 / .15); }
.ebpl-leiste a.ebpl-leiste-knopf { display: inline-block; padding: 6px 14px; border-radius: 6px; background: #fff; color: var(--akzent);
    font-weight: 600; text-decoration: none; white-space: nowrap; }
.ebpl-leiste a.ebpl-leiste-knopf:hover { filter: brightness(.95); }
.ebpl-leiste a.ebpl-leiste-link { color: #fff; }
.ebpl-leiste.ebpl-leiste-test { background: var(--flaeche); color: var(--text); border-top: 1px solid var(--linie); }
.ebpl-leiste.ebpl-leiste-test a.ebpl-leiste-knopf { background: var(--akzent); color: #fff; }
body:has(.ebpl-leiste) { padding-bottom: 64px; }
.kopfmenue-demo { color: var(--text-leise); white-space: nowrap; }
/* „Zurück zu ebpl.at“ in der Demo: als Knopf gut erkennbar – oben umrandet, in der Leiste weiß umrandet neben „Mit Ihren Daten testen“. */
.kopfmenue a.kopfmenue-zurueck { display: inline-block; padding: 5px 12px; border: 2px solid var(--akzent); border-radius: 6px; color: var(--akzent);
    font-weight: 600; text-decoration: none; white-space: nowrap; }
.kopfmenue a.kopfmenue-zurueck:hover { background: var(--akzent); color: #fff; }
.ebpl-leiste a.ebpl-leiste-knopf.ebpl-leiste-zurueck { background: transparent; color: #fff; border: 2px solid #fff; padding: 4px 12px; }
.ebpl-leiste a.ebpl-leiste-knopf.ebpl-leiste-zurueck:hover { background: rgb(255 255 255 / .15); filter: none; }

/* Fenster nach einem Speicherversuch in der Demo (DemoHinweis.razor) */
.ebpl-demo-fenster { position: fixed; inset: 0; margin: auto; z-index: 80; width: min(460px, calc(100vw - 32px)); height: fit-content;
    border: 0; border-radius: 12px; padding: 24px; background: #fff; color: #1c2321;
    box-shadow: 0 0 0 100vmax rgba(20, 30, 25, .45), 0 12px 40px rgba(0, 0, 0, .25); }
.ebpl-demo-fenster h2 { margin: 0 0 8px; font-size: 1.25rem; }
.ebpl-demo-fenster p { margin: 0 0 18px; line-height: 1.5; }
.ebpl-demo-fenster-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ebpl-demo-fenster a.ebpl-demo-fenster-haupt { display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--akzent, #1f6f50);
    color: #fff; font-weight: 600; text-decoration: none; }
.ebpl-demo-fenster a.ebpl-demo-fenster-haupt:hover { filter: brightness(1.08); }
.ebpl-demo-fenster-weiter { padding: 10px 14px; border-radius: 8px; border: 1px solid #c9d3ce; background: #fff; color: #1c2321; cursor: pointer; font: inherit; }
