/* Baukasten: Fenster „Module & Preise“ – Milchglas, grüne Knöpfe mit heller Schrift */
#emDialog { width: min(1200px, calc(100vw - 24px)); height: min(900px, calc(100vh - 24px)); max-height: none; padding: 0; border: 0; border-radius: 26px; overflow: hidden; background: #eef3f0; color: #14323a;
  box-shadow: 0 40px 100px #0b182059; font: 15px/1.5 Manrope, "Segoe UI", system-ui, sans-serif; }
#emDialog[open] { display: block; animation: em-auf .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes em-auf { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
#emDialog::backdrop { background: #0b1820a6; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
#emDialog button, #emDialog input { font-family: inherit; margin: 0; min-height: 0; box-shadow: none; }
.em-rahmen { position: relative; isolation: isolate; overflow: hidden; height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; }
.em-rahmen::before { content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .8;
  background: radial-gradient(26% 30% at 12% 12%, #2f9a83aa, transparent 70%), radial-gradient(24% 30% at 88% 20%, #e7b878aa, transparent 70%), radial-gradient(30% 34% at 60% 92%, #6aa7c788, transparent 70%);
  animation: em-schweben 24s ease-in-out infinite alternate; }
@keyframes em-schweben { to { transform: translate3d(3%, -2%, 0) rotate(5deg) scale(1.04); } }

.em-oben { display: flex; justify-content: space-between; gap: 20px; padding: 24px 26px 14px; background: #ffffff8c; border-bottom: 1px solid #ffffffd9; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.em-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #1d6d5e; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; }
.em-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c99a5b; box-shadow: 0 0 0 4px #c99a5b33; }
.em-oben h2 { margin: 6px 0 4px; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; color: #14323a; }
.em-oben p { margin: 0; max-width: 760px; color: #3d5258; font-size: 14px; }
#emDialog .em-zu { flex: none; width: 42px; height: 42px; border-radius: 13px; border: 1px solid #14323a1f; background: #ffffffcc; color: #14323a; font-size: 16px; cursor: pointer; }
#emDialog .em-zu:hover { background: #fff; border-color: #14323a; }

.em-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 26px; }
.em-reiter { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: #ffffffa6; border: 1px solid #14323a14; }
#emDialog .em-reiter button { height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: #34474e; font-weight: 700; font-size: 13.5px; cursor: pointer; }
#emDialog .em-reiter button:hover { background: #fff; }
#emDialog .em-reiter button[aria-selected="true"] { background: linear-gradient(135deg, #2a9079, #1d6d5e); color: #fff; box-shadow: 0 8px 18px -10px #1d6d5ecc; }
#emDialog .em-reiter button span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: #14323a14; font-size: 11.5px; }
#emDialog .em-reiter button[aria-selected="true"] span { background: #ffffff33; }
.em-suche { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 13px; background: #fff; border: 1.5px solid #cfdcd6; min-width: 240px; }
.em-suche:focus-within { border-color: #1d6d5e; box-shadow: 0 0 0 4px #1d6d5e22; }
.em-suche span { color: #5a6d72; font-size: 17px; }
#emDialog .em-suche input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: #14323a; font-size: 15px; }

.em-inhalt { min-height: 0; overflow-y: auto; padding: 4px 26px 20px; }
.em-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.em-karte { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 20px; background: linear-gradient(160deg, #ffffffe0, #ffffffa8); border: 1.5px solid #fff;
  box-shadow: 0 16px 34px -26px #14323a8c; animation: em-rein .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 25ms); transition: transform .2s, box-shadow .2s, border-color .2s; }
.em-karte:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -26px #14323aa6; }
.em-karte.em-an { border-color: #2a9079; background: linear-gradient(160deg, #ffffff, #e8f5f0); box-shadow: 0 0 0 3px #2a907926, 0 18px 36px -24px #1d6d5ecc; }
.em-karte.em-plopp { animation: em-plopp .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes em-rein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes em-plopp { 40% { transform: scale(1.03); } }
.em-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.em-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: linear-gradient(140deg, #eaf5f1, #fbf3e6); border: 1px solid #14323a12; }
.em-an .em-icon { background: linear-gradient(140deg, #2a9079, #1d6d5e); color: #fff; }
.em-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.em-tag { padding: 3px 9px; border-radius: 999px; background: #eef3f1; color: #45585e; font-size: 11px; font-weight: 800; font-style: normal; }
.em-tag-an { background: #1d6d5e; color: #fff; }
.em-name { margin-top: 4px; font-size: 16px; color: #14323a; }
.em-text { margin: 0; flex: 1; font-size: 13px; line-height: 1.45; color: #45585e; }
.em-baustein { display: flex; align-items: center; gap: 7px; margin: 2px 0 0; padding: 6px 9px; border-radius: 10px; background: #eaf5f1; color: #16564b; font-size: 12px; font-weight: 700; }
.em-baustein i { font-style: normal; }
.em-wir { background: #fbf3e6; color: #7a4f22; }
.em-fuss { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin-top: 4px; }
.em-preis b { font-size: 19px; color: #14323a; } .em-preis small { display: block; font-size: 11.5px; color: #536469; }
.em-menge { display: inline-flex; align-items: center; border-radius: 11px; background: #fff; border: 1.5px solid #cfdcd6; overflow: hidden; }
#emDialog .em-menge button { width: 32px; height: 32px; border: 0; background: transparent; color: #1d6d5e; font-weight: 800; font-size: 17px; cursor: pointer; }
#emDialog .em-menge button:hover { background: #eaf6f1; }
.em-menge output { min-width: 30px; text-align: center; font-weight: 800; font-size: 14px; }
.em-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
#emDialog .em-haupt { flex: 1 1 auto; height: 42px; padding: 0 14px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #2a9079, #1d6d5e); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer;
  box-shadow: 0 10px 20px -12px #1d6d5ecc; transition: transform .18s, background .18s; }
#emDialog .em-haupt:hover, #emDialog .em-haupt:focus-visible { background: linear-gradient(135deg, #1f7a68, #14323a); color: #fff; transform: translateY(-1px); outline: none; }
#emDialog .em-haupt[aria-pressed="true"] { background: #16564b; }
#emDialog .em-haupt[aria-pressed="true"]:hover { background: #8a3b32; }
#emDialog .em-haupt[aria-pressed="true"]:hover::after { content: " – entfernen"; }
#emDialog .em-neben { flex: 1 1 auto; height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #14323a33; background: #ffffffcc; color: #14323a; font-weight: 700; font-size: 13px; cursor: pointer; }
#emDialog .em-neben:hover { background: #fff; border-color: #14323a; }
.em-leer { grid-column: 1 / -1; margin: 30px 0; text-align: center; color: #45585e; }

.em-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 26px; background: #ffffffd6; border-top: 1px solid #fff; box-shadow: 0 -12px 30px -24px #14323a80; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.em-leiste-text { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
.em-zahl { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #b07a3c, #7a4f22); color: #fff; font-weight: 800; font-size: 18px; }
.em-leiste-text b { display: block; font-size: 15px; } .em-leiste-text small { display: block; color: #45585e; font-size: 13px; }
.em-gesamt { text-align: right; } .em-gesamt small { display: block; color: #45585e; font-size: 12px; } .em-gesamt b { font-size: 22px; color: #1d6d5e; }
#emDialog .em-kalk { flex: 0 0 auto; height: 46px; padding: 0 20px; }

@media (max-width: 640px) {
  #emDialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .em-oben, .em-filter, .em-leiste { padding-left: 16px; padding-right: 16px; }
  .em-inhalt { padding: 4px 16px 16px; }
  .em-suche { min-width: 0; width: 100%; }
  .em-karten { grid-template-columns: 1fr; }
  #emDialog .em-kalk { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { #emDialog[open], .em-rahmen::before, .em-karte, .em-karte.em-plopp { animation: none; } }

/* Eintrag im „Mehr“-Menü hervorheben */
#hsBar .sm-menu [data-sm-menu="fn:module"] { font-weight: 800; color: #16564b !important; background: linear-gradient(120deg, #eaf5f1, #fbf3e6) !important; }
