/* Projektliste („Weiter an …“) und Löschen */
#creatorContinueProject .pl-badge { font-style: normal; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #f1d6a8; color: #14323a; font-size: 12px; font-weight: 800; margin-left: 4px; }

#plDialog { width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; background: #f6f5f0; color: #14323a; box-shadow: 0 30px 90px #0b182050; font-family: Manrope, "Segoe UI", system-ui, sans-serif; overflow: hidden; }
#plDialog[open] { display: block; animation: pl-in .3s cubic-bezier(.2, .8, .2, 1); }
#plDialog::backdrop { background: #0b1820b8; backdrop-filter: blur(4px); }
@keyframes pl-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
#plDialog button, #plDialog input { font-family: inherit; margin: 0; box-shadow: none; min-height: 0; }
.pl { display: grid; grid-template-rows: auto auto 1fr auto; max-height: calc(100dvh - 24px); }
.pl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; background: linear-gradient(110deg, #14323a, #1d5c55 70%, #2f7a6d); color: #fff; }
.pl-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: #f1d6a8; }
.pl-head h2 { margin: 6px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
#plDialog .pl-x { flex: none; width: 38px; height: 38px; padding: 0; border-radius: 11px; border: 1px solid #ffffff40; background: #ffffff1a; color: #fff; font-size: 20px; cursor: pointer; }
.pl-tools { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid #e1e7e4; background: #fbfaf7; }
#plDialog .pl-search { flex: 1; height: 42px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #cfdcd6; background: #fff; color: #14323a; font-size: 14.5px; }
#plDialog .pl-search:focus { outline: none; border-color: #1d5c55; box-shadow: 0 0 0 4px #1d5c5520; }
.pl-count { flex: none; font-size: 12.5px; font-weight: 700; color: #66777d; }
.pl-list { overflow-y: auto; padding: 12px 16px; display: grid; gap: 8px; align-content: start; min-height: 120px; }
.pl-row { position: relative; display: flex; align-items: stretch; gap: 6px; border-radius: 16px; background: #fff; border: 1px solid #e1e7e4; transition: border-color .2s, box-shadow .2s; }
.pl-row:hover { border-color: #b9d0c8; box-shadow: 0 8px 22px #14323a14; }
.pl-row.pl-active { border-color: #1d5c55; }
#plDialog .pl-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; border-radius: 16px; }
.pl-thumb { flex: none; width: 74px; height: 52px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--tone), #14323a); }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-thumb i { font-style: normal; color: #fff; font-size: 22px; font-weight: 800; }
.pl-text { display: grid; gap: 3px; min-width: 0; flex: 1; }
.pl-text b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-text b em { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #e3f1ec; color: #1d5c55; vertical-align: 2px; margin-left: 6px; }
.pl-text small { font-size: 12.5px; color: #66777d; }
.pl-go { flex: none; font-size: 13px; font-weight: 800; color: #1d5c55; }
#plDialog .pl-del { flex: none; width: 46px; border: 0; border-left: 1px solid #eef1ef; border-radius: 0 16px 16px 0; background: none; color: #a3443c; cursor: pointer; display: grid; place-items: center; }
#plDialog .pl-del:hover, #plDialog .pl-del:focus-visible { background: #fdecec; }
.pl-empty { display: grid; gap: 4px; padding: 30px 10px; text-align: center; color: #66777d; font-size: 13.5px; }
.pl-empty b { color: #14323a; font-size: 15px; }
.pl-foot { display: flex; justify-content: flex-end; padding: 12px 22px; border-top: 1px solid #e1e7e4; background: #fff; }
#plDialog .pl-new { height: 42px; padding: 0 18px; border-radius: 12px; border: 0; background: linear-gradient(120deg, #2f7a6d, #1d5c55 45%, #14323a); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }

/* Rückfrage beim Löschen (Popup und Projektkarten) */
.pl-confirm { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: inherit; background: #fff8f6f2; backdrop-filter: blur(3px); border: 1.5px solid #e7b4ad; animation: pl-in .2s ease; font-family: Manrope, "Segoe UI", system-ui, sans-serif; color: #14323a; }
.pl-confirm p { margin: 0; display: grid; gap: 2px; min-width: 0; }
.pl-confirm b { font-size: 14px; font-weight: 800; }
.pl-confirm small { font-size: 12px; color: #7a5a55; line-height: 1.4; }
.pl-confirm div { display: flex; gap: 8px; flex: none; }
.pl-confirm button { height: 36px; padding: 0 14px; border-radius: 10px; font: 700 13px Manrope, "Segoe UI", system-ui, sans-serif; cursor: pointer; margin: 0; box-shadow: none; min-height: 0; }
.pl-confirm .pl-confirm-no { border: 1px solid #d6dde0; background: #fff; color: #14323a; }
.pl-confirm .pl-confirm-yes { border: 0; background: #b3392f; color: #fff; }

/* Projektkarten der Startseite */
.pl-tile { position: relative; display: grid; border-radius: 22px; }
.pl-tile > .hs-project-tile { width: 100%; }
.pl-tile-del { position: absolute; top: 14px; right: 62px; z-index: 2; width: 38px; height: 38px; padding: 0 !important; margin: 0 !important; display: grid; place-items: center; border-radius: 11px; border: 1px solid #ffffff66 !important; background: #14323acc !important; color: #fff !important; cursor: pointer; opacity: 0; transform: scale(.9); transition: opacity .2s, transform .2s, background .2s; backdrop-filter: blur(4px); box-shadow: 0 6px 16px #0003 !important; min-height: 0 !important; }
.pl-tile:hover .pl-tile-del, .pl-tile-del:focus-visible { opacity: 1; transform: none; }
.pl-tile-del:hover { background: #b3392f !important; }
.pl-tile .pl-confirm { flex-direction: column; justify-content: center; text-align: center; padding: 20px; }
@media (hover: none) { .pl-tile-del { opacity: 1; transform: none; } }

/* Kunde (Vor- und Nachname) in Liste und auf den Karten */
.pl-kunde-zeile { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #14323a; min-width: 0; }
.pl-kunde-zeile svg { width: 14px; height: 14px; flex: none; color: #1d6d5e; }
.pl-kunde-zeile > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-kunde-zeile strong { font-weight: 800; color: #16564b; }
.pl-kunde-zeile.leer { color: #a3443c; font-size: 12px; font-weight: 700; }
#plDialog .pl-kunde { flex: none; width: 44px; border: 0; border-left: 1px solid #eef1ef; background: none; color: #1d6d5e; cursor: pointer; display: grid; place-items: center; }
#plDialog .pl-kunde:hover, #plDialog .pl-kunde:focus-visible { background: #eef7f4; }
.pl-row.pl-bearbeitet { flex-wrap: wrap; }
.pl-kunde-form { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; padding: 12px 14px 14px; border-top: 1px solid #e1e7e4; background: #f5faf8; border-radius: 0 0 16px 16px; }
.pl-kunde-form label { display: grid; gap: 4px; margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #5f7177; }
#plDialog .pl-kunde-form input { height: 40px; padding: 0 12px; border-radius: 10px; border: 1.5px solid #cfdcd6; background: #fff; color: #14323a; font: 600 14.5px Manrope, "Segoe UI", system-ui, sans-serif; text-transform: none; letter-spacing: 0; }
#plDialog .pl-kunde-form input:focus { outline: none; border-color: #1d6d5e; box-shadow: 0 0 0 3px #1d6d5e26; }
.pl-kunde-form > div { display: flex; gap: 8px; }
#plDialog .pl-kunde-form button { height: 40px; padding: 0 14px; border-radius: 10px; font: 800 13px Manrope, "Segoe UI", system-ui, sans-serif; cursor: pointer; }
#plDialog .pl-kunde-form .pl-confirm-no { border: 1px solid #d6dde0; background: #fff; color: #14323a; }
#plDialog .pl-kunde-form .pl-kunde-ok { border: 0; background: #1d6d5e; color: #fff; }
.pl-karte-kunde { display: flex; align-items: center; gap: 7px; margin: 4px 0 6px; font: 700 13.5px Manrope, "Segoe UI", system-ui, sans-serif; color: #16564b; min-width: 0; }
.pl-karte-kunde svg { width: 15px; height: 15px; flex: none; }
.pl-karte-kunde span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-karte-kunde.leer { color: #a3443c; font-weight: 600; font-size: 12.5px; }

/* Vorname/Nachname in den Kundenformularen (Projektstart, Kundendaten bearbeiten) */
.kd-paar { display: grid; gap: 4px; }
.kd-paar input { width: 100%; }

/* Rechtliches im Fußbereich der Startseite */
#creatorHome .hs-footer { flex-wrap: wrap; gap: 10px 20px; }
#creatorHome .rl-links { display: flex; gap: 16px; flex-wrap: wrap; }
#creatorHome .rl-links a { color: inherit; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; opacity: .85; }
#creatorHome .rl-links a:hover { opacity: 1; }
#atPanel .at-info a { color: #1d6d5e; font-weight: 700; }
main > footer .rl-editor { display: inline-flex; gap: 12px; margin-left: auto; }
main > footer .rl-editor a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; opacity: .85; }
main > footer .rl-editor a:hover { opacity: 1; }

/* Hinweis mit „Rückgängig“ */
.pl-snack { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2147483001; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; border-radius: 14px; background: #14323a; color: #fff; box-shadow: 0 16px 40px #0b182066; font: 600 13.5px Manrope, "Segoe UI", system-ui, sans-serif; max-width: calc(100vw - 32px); animation: pl-in .3s ease; }
.pl-snack button { height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: #f1d6a8; color: #14323a; font: 800 13px Manrope, "Segoe UI", system-ui, sans-serif; cursor: pointer; margin: 0; box-shadow: none; min-height: 0; flex: none; }

@media (max-width: 560px) {
  #plDialog { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .pl { max-height: 100dvh; height: 100%; }
  .pl-head h2 { font-size: 19px; }
  .pl-go { display: none; }
  .pl-text b { white-space: normal; line-height: 1.3; }
  .pl-kunde-form { grid-template-columns: 1fr 1fr; }
  .pl-kunde-form > div { grid-column: 1 / -1; } .pl-kunde-form > div button { flex: 1; }
  #plDialog .pl-kunde, #plDialog .pl-del { width: 40px; }
  .pl-thumb { width: 58px; height: 44px; }
  .pl-row .pl-confirm { flex-direction: column; align-items: stretch; }
  .pl-row .pl-confirm div button { flex: 1; }
  .pl-row:has(.pl-confirm) { min-height: 128px; }
}
@media (prefers-reduced-motion: reduce) { #plDialog[open], .pl-confirm, .pl-snack { animation: none; } .pl-tile-del { transition: none; } }
