/* ── Profil-Projekte: Werkzeugbereiche und Übersicht ───────────────────── */

/* ── Profilreiter Projekte V4: an Musik-Profilreiter angepasst ────────── */

.ds-projects-profile-tools {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  gap: 16px;
  align-items: start;
  margin: 0 0 18px;
}

.ds-projects-profile-tool-panel,
.ds-projects-panel {
  position: relative;
  min-width: 0;
  padding: 12px 14px 14px;
  border-radius: 10px;
  background: radial-gradient(ellipse at 18% 0%, rgba(255,255,255,0.08), transparent 45%), linear-gradient(135deg, rgba(255,255,255,0.035), rgba(0,0,0,0.30) 62%, rgba(0,0,0,0.46));
  box-shadow: inset 0 0 0 1px rgba(215,223,229,0.16), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 18px color-mix(in srgb, var(--ds-profile-accent, #cfd6dd) 8%, transparent);
}

.ds-projects-profile-tool-panel > summary { cursor: pointer; list-style: none; }

.ds-projects-profile-tool-panel > summary::-webkit-details-marker { display: none; }

.ds-projects-profile-tool-panel > summary::marker { content: ""; }

.ds-projects-profile-tool-summary {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  text-shadow: 0 0 9px rgba(215,223,229,0.50), 0 0 14px color-mix(in srgb, var(--ds-profile-accent, #cfd6dd) 30%, transparent);
}

.ds-projects-profile-tool-summary h2 { margin: 0; font-size: 0.94rem; }

.ds-projects-profile-tool-summary > span {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(215,223,229,0.70), color-mix(in srgb, var(--ds-profile-accent, #cfd6dd) 40%, transparent), transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--ds-profile-accent, #cfd6dd) 28%, transparent);
}

.ds-projects-profile-tool-summary::after {
  content: "+";
  color: #e4e8ec;
  font-size: 0.92rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(205,214,221,0.42);
}

.ds-projects-profile-tool-panel[open] .ds-projects-profile-tool-summary::after { content: "−"; }

.ds-projects-profile-tool-body,
.ds-projects-profile-form,
.ds-projects-manage-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.ds-projects-manage-list {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
}

.ds-projects-field span { color: #dfe5ea; text-shadow: 0 1px 0 #000; }

.ds-projects-field input,
.ds-projects-field textarea {
  width: 100%;
  min-height: 34px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(38,43,49,0.94), rgba(3,5,8,0.98));
  color: #f2f5f7;
  outline: none;
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(205,214,221,0.24), inset 0 8px 13px rgba(0,0,0,0.48), 0 0 10px rgba(205,214,221,0.08);
}

.ds-projects-field input:focus,
.ds-projects-field textarea:focus {
  box-shadow: inset 0 0 0 1px rgba(245,248,250,0.46), inset 0 8px 13px rgba(0,0,0,0.48), 0 0 14px rgba(205,214,221,0.18);
}

.ds-projects-file-picker {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 92px;
  padding: 12px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(0,0,0,0.38));
  box-shadow: inset 0 0 0 1px rgba(215,223,229,0.14), 0 0 12px color-mix(in srgb, var(--ds-profile-accent, #cfd6dd) 8%, transparent);
  color: #f2f5f7;
}

.ds-projects-file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ds-projects-file-button,
.ds-projects-upload-actions .ds-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 8px 20px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  background: radial-gradient(ellipse at 18% 0%, rgba(255,255,255,0.24), transparent 54%), linear-gradient(135deg, rgba(82,88,96,0.92), rgba(24,28,34,0.98) 48%, rgba(5,7,10,0.99));
  box-shadow: inset 0 0 0 1px rgba(225,230,234,0.24), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -7px 13px rgba(0,0,0,0.36), 0 0 14px rgba(205,214,221,0.16);
  text-shadow: 0 1px 0 #000000, 0 0 7px rgba(215,223,229,0.28);
}

.ds-projects-file-name { color: #e1e6ea; font-size: 0.78rem; }

.ds-projects-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.ds-projects-manage-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(215,223,229,0.09);
}

.ds-projects-manage-title {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 0 7px rgba(215,223,229,0.24);
}

.ds-projects-manage-delete-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ds-projects-profile-overview {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 340px);
  gap: 58px;
  align-items: start;
  justify-content: start;
  width: 100%;
}

.ds-projects-profile-overview-main { width: 100%; max-width: 760px; min-width: 0; }

.ds-projects-profile-overview-side { min-width: 0; margin-left: 8px; }

.ds-projects-profile-overview .ds-projects-search-form { margin-bottom: 12px; }


/* Profil-Projekte: Meine Projekte nicht als grosser Kasten-im-Kasten. */

.ds-profile-projects-tab #profile-projects-list.ds-projects-panel {
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ds-profile-projects-tab #profile-projects-list.ds-projects-panel::after { content: none; display: none; }

.ds-projects-live-note {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 3000;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 30px));
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  color: #f2f5f7;
  background: linear-gradient(135deg, rgba(32,58,78,0.96), rgba(0,0,0,0.98));
  box-shadow: 0 0 24px rgba(205,214,221,0.24), inset 0 0 0 1px rgba(215,223,229,0.18);
}

.ds-projects-visibility-picker {
  position: relative;
  overflow: visible;
  width: fit-content;
  margin-top: 3px;
}

.ds-projects-visibility-picker:not(.ds-projects-visibility-eye-menu) > summary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 172px;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(ellipse at 18% 0%, rgba(255,255,255,0.22), transparent 54%),
    linear-gradient(135deg, rgba(226,242,252,0.18), rgba(4,12,20,0.92) 72%);
  box-shadow: inset 0 0 0 1px rgba(225,230,234,0.24),
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 14px color-mix(in srgb, var(--ds-profile-accent, #cfd6dd) 18%, transparent);
  list-style: none;
  text-decoration: none;
  text-shadow: 0 1px 0 #000, 0 0 8px color-mix(in srgb, var(--ds-profile-accent, #cfd6dd) 28%, transparent);
}

.ds-projects-visibility-picker:not(.ds-projects-visibility-eye-menu) > summary::-webkit-details-marker { display: none; }

.ds-projects-visibility-picker:not(.ds-projects-visibility-eye-menu) > summary::marker { content: ""; }

.ds-projects-visibility-picker:not(.ds-projects-visibility-eye-menu) > summary::after {
  content: "⌄";
  color: #e4e8ec;
  font-size: 0.82rem;
  text-shadow: 0 0 8px rgba(205,214,221,0.42);
}

.ds-projects-visibility-picker:not(.ds-projects-visibility-eye-menu)[open] > summary::after { content: "⌃"; }

.ds-projects-visibility-picker:not(.ds-projects-visibility-eye-menu) > summary:hover,
.ds-projects-visibility-picker:not(.ds-projects-visibility-eye-menu) > summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(245,248,250,0.36),
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 0 18px color-mix(in srgb, var(--ds-profile-accent, #cfd6dd) 28%, transparent);
}

.ds-projects-shell .ds-profile-post-visibility-popover,
.ds-profile-projects-tab .ds-profile-post-visibility-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 5360;
  width: max-content;
  min-width: 220px;
  padding: 9px;
  border-radius: 10px;
  background: radial-gradient(ellipse at 12% 0%, rgba(215,237,255,0.18), transparent 48%),
    linear-gradient(135deg, rgba(34,61,82,0.98), rgba(4,13,23,0.99) 52%, rgba(0,0,0,0.99));
  box-shadow: 0 18px 38px rgba(0,0,0,0.64),
    0 0 22px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 22%, transparent),
    inset 0 0 0 1px rgba(215,237,255,0.16),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.ds-projects-shell .ds-profile-post-visibility-form,
.ds-profile-projects-tab .ds-profile-post-visibility-form {
  display: grid;
  gap: 5px;
  margin: 0;
}

.ds-projects-shell .ds-profile-visibility-choice,
.ds-profile-projects-tab .ds-profile-visibility-choice {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #dff5ff;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.ds-projects-shell .ds-profile-visibility-choice:hover,
.ds-projects-shell .ds-profile-visibility-choice:focus-visible,
.ds-projects-shell .ds-profile-visibility-choice-active,
.ds-profile-projects-tab .ds-profile-visibility-choice:hover,
.ds-profile-projects-tab .ds-profile-visibility-choice:focus-visible,
.ds-profile-projects-tab .ds-profile-visibility-choice-active {
  color: #ffffff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 20%, transparent), rgba(0,0,0,0.28));
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(215,237,255,0.12),
    0 0 10px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 18%, transparent);
}

.ds-projects-shell .ds-profile-visibility-check,
.ds-profile-projects-tab .ds-profile-visibility-check {
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 7px rgba(215,237,255,0.50), 0 1px 0 #000000;
}

.ds-projects-shell .ds-profile-post-visibility-popover.ds-visibility-popover-open-right,
.ds-profile-projects-tab .ds-profile-post-visibility-popover.ds-visibility-popover-open-right {
  left: 0;
  right: auto;
}

.ds-projects-shell .ds-profile-post-visibility-popover.ds-visibility-popover-open-left,
.ds-profile-projects-tab .ds-profile-post-visibility-popover.ds-visibility-popover-open-left {
  left: auto;
  right: 0;
}

.ds-projects-visibility-eye-menu {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0 0 0 6px;
  line-height: 1;
}

.ds-projects-visibility-eye-menu > summary.ds-profile-icon-link,
.ds-projects-card .ds-projects-visibility-eye-menu > summary.ds-profile-icon-link,
.ds-profile-projects-card .ds-projects-visibility-eye-menu > summary.ds-profile-icon-link,
.ds-projects-mini-page .ds-projects-visibility-eye-menu > summary.ds-profile-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  min-width: 28px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  gap: 0;
  list-style: none;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}

.ds-projects-visibility-eye-menu > summary.ds-profile-icon-link::-webkit-details-marker { display: none; }

.ds-projects-visibility-eye-menu > summary.ds-profile-icon-link::marker { content: ""; }

.ds-projects-visibility-eye-menu > summary.ds-profile-icon-link::after { display: none; content: ""; }

.ds-projects-visibility-eye-menu[open] { z-index: 610; }

.ds-projects-visibility-eye-menu .ds-profile-post-visibility-popover { z-index: 630; min-width: 210px; }

.ds-projects-manage-search { margin: 0 0 10px; }

.ds-projects-manage-search input {
  width: 100%;
  min-height: 34px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(38,43,49,0.94), rgba(3,5,8,0.98));
  color: #f2f5f7;
  outline: none;
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(205,214,221,0.24),
    inset 0 8px 13px rgba(0,0,0,0.48),
    0 0 10px rgba(205,214,221,0.08);
}

.ds-projects-manage-search input:focus { box-shadow: inset 0 0 0 1px rgba(245,248,250,0.46),
    inset 0 8px 13px rgba(0,0,0,0.48),
    0 0 14px rgba(205,214,221,0.18); }

.ds-projects-manage-preview {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: radial-gradient(ellipse at 30% 10%, rgba(235,248,255,0.16), transparent 55%), #050b12;
  box-shadow: inset 0 0 0 1px rgba(215,223,229,0.18);
}

.ds-projects-manage-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ds-projects-manage-row .ds-projects-visibility-eye-menu { margin-left: 0; }

.ds-projects-create-note {
  margin: 0 0 14px;
  color: #e1e6ea;
  font-size: 0.84rem;
  line-height: 1.45;
  text-shadow: 0 1px 0 #000;
}

.ds-projects-char-counter {
  display: block;
  margin-top: 4px;
  color: rgba(225,230,234,0.72);
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: right;
}

.ds-projects-card-titleblock h3,
.ds-profile-projects-card h3,
.ds-projects-card-titleblock h3 a,
.ds-profile-projects-card h3 a {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-projects-preview-textcard { min-height: 100%; }

.ds-projects-preview-style-dark { background: radial-gradient(ellipse at 24% 0%, rgba(245,248,250,0.20), transparent 58%), linear-gradient(135deg, rgba(30,35,42,0.98), rgba(3,6,11,0.98)); }

.ds-projects-preview-style-blue { background: radial-gradient(ellipse at 24% 0%, rgba(245,248,250,0.20), transparent 58%), linear-gradient(135deg, rgba(28,82,122,0.96), rgba(3,13,23,0.98)); }

.ds-projects-preview-style-silver { background: radial-gradient(ellipse at 24% 0%, rgba(255,255,255,0.34), transparent 58%), linear-gradient(135deg, rgba(115,124,132,0.96), rgba(20,24,28,0.98)); }

.ds-projects-preview-style-red { background: radial-gradient(ellipse at 24% 0%, rgba(255,255,255,0.20), transparent 58%), linear-gradient(135deg, rgba(118,20,27,0.96), rgba(21,3,7,0.98)); }

/* Projekt-Kommentare: Bearbeiten/Melden/Loeschen als ruhige Textlinks. */

.ds-profile-comment[data-project-comment] .ds-profile-glow-link-button {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #78dcff;
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  text-shadow: 0 1px 0 #000000, 0 0 7px rgba(215,223,229,0.26);
}

.ds-profile-comment[data-project-comment] .ds-profile-glow-link-button:hover,
.ds-profile-comment[data-project-comment] .ds-profile-glow-link-button:focus-visible {
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  outline: none;
}

