/* Link-Seite unter xyntal.com/name: am Handy eine Spalte (Karte, Links, Profil), am Desktop links die Karte, rechts Links und Profil */
.pf.pf--links { gap: 28px; }
.pf.pf--links .pf-main { gap: 28px; }
@media (max-width: 899px) { .pf.pf--links { max-width: 580px; } }
/* Links in der linken Spalte unter Karte und Knöpfen */
.pf-side .lp-list { width: 100%; max-width: 380px; margin-top: 6px; }
/* Mit Links wird die Spalte lang: dann nicht mehr kleben, sonst wären untere Links nicht erreichbar */
@media (min-width: 900px) { .pf-side:has(.lp-list) { position: static; } }
/* Breite Bildschirme: eigene Spalte links neben der Karte, im freien Rand der Seite */
@media (min-width: 1720px) {
  .pf-side:has(.lp-list) { position: sticky; top: 96px; }
  .pf-side .lp-list { position: absolute; top: 0; right: calc(100% + 32px); width: 300px; max-height: calc(100vh - 120px); margin: 0;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 4px; }
}

.lp-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lp-link { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px 10px 12px;
  border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .03); color: var(--text); text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.lp-link:hover { transform: translateY(-2px); border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.lp-link:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
/* Text-Einträge (ohne Adresse): gleiche Zeile, Klick kopiert */
.lp-text { width: 100%; margin: 0; font: inherit; text-align: left; cursor: copy; }
.lp-text .lp-txt small { white-space: normal; overflow-wrap: anywhere; color: var(--text-2); }
.lp-copy svg { width: 16px; height: 16px; display: block; }
.lp-copied { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); padding: 4px 9px; border-radius: 999px;
  background: var(--text); color: #1C1C1C; font: 600 12px/1.2 var(--f-text); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.lp-text.is-copied .lp-copied { opacity: 1; }
.lp-text.is-copied .lp-copy { opacity: 0; }
.lp-text { position: relative; }
.lp-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: var(--text); }
.lp-ico svg { width: 22px; height: 22px; }
.lp-txt { display: grid; gap: 2px; min-width: 0; }
.lp-txt b { font: 600 16px/1.3 var(--f-text); overflow-wrap: anywhere; }
.lp-txt small { color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-arrow { color: var(--text-3); font-style: normal; transition: color .18s, transform .18s; }
.lp-link:hover .lp-arrow { color: var(--text); transform: translate(2px, -2px); }
/* Normale Profile: Licht in der Kartenfarbe (--lp-accent, setzt u.js) folgt dem Mauszeiger, Symbol und Rahmen nehmen die Farbe an.
   Die Admin-Seite hat einen eigenen Effekt (u.html, body.admin-profile). */
body:not(.admin-profile) .pf-side { --lp-accent: #B95CFF; }
body:not(.admin-profile) .pf-side .lp-link { --mx: 50%; --my: 50%; position: relative; isolation: isolate; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
body:not(.admin-profile) .pf-side .lp-link::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(220px circle at var(--mx) var(--my), color-mix(in srgb, var(--lp-accent) 26%, transparent), transparent 70%); }
body:not(.admin-profile) .pf-side .lp-link .lp-ico { transition: background .2s ease, color .2s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
body:not(.admin-profile) .pf-side .lp-link:hover, body:not(.admin-profile) .pf-side .lp-link:focus-visible {
  border-color: color-mix(in srgb, var(--lp-accent) 55%, transparent); background: rgba(255, 255, 255, .04);
  box-shadow: 0 12px 30px -20px var(--lp-accent); }
body:not(.admin-profile) .pf-side .lp-link:hover::before, body:not(.admin-profile) .pf-side .lp-link:focus-visible::before { opacity: 1; }
body:not(.admin-profile) .pf-side .lp-link:hover .lp-ico, body:not(.admin-profile) .pf-side .lp-link:focus-visible .lp-ico {
  background: color-mix(in srgb, var(--lp-accent) 22%, transparent); color: var(--lp-accent); transform: scale(1.1); }
body:not(.admin-profile) .pf-side .lp-link:hover .lp-arrow { color: var(--lp-accent); transform: translate(3px, -3px); }
@media (prefers-reduced-motion: reduce) { body:not(.admin-profile) .pf-side .lp-link, body:not(.admin-profile) .pf-side .lp-link .lp-ico { transition: none; } body:not(.admin-profile) .pf-side .lp-link:hover .lp-ico { transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-link, .lp-arrow { transition: none; } .lp-link:hover { transform: none; } }

/* Editor im Profil (/profil#links): jede Zeile eine kleine Karte – Symbol, Titel und Adresse, Werkzeuge rechts */
.le { --line: var(--border, #333333); --line-2: var(--border-2, #4A4A4A); display: grid; gap: 14px; }
.le h2 { margin: 0; }
.le .hint { margin: 0; color: var(--text-2); }
.le .hint b { color: var(--text); }
.le .mk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.le .mk-actions .btn[hidden] { display: none; }
.le .mk-status { min-height: 1.3em; margin: 0; font-size: 14px; color: var(--text-2); }
.le .mk-status:empty { display: none; }
.le .mk-status.is-ok { color: var(--green, #3CCF8E); }
.le .mk-status.is-error { color: #F28B82; }
.le-add[hidden] { display: none; }
.le-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.le-row {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .03);
  transition: border-color .15s ease, background .15s ease, opacity .15s ease;
}
.le-row:hover { border-color: var(--line-2); }
.le-row:focus-within { border-color: var(--line-2); background: rgba(255, 255, 255, .05); }
.le-row.is-off { opacity: .55; }
/* Ziehen zum Sortieren */
.le-row { cursor: grab; touch-action: pan-y; }
.le-row input, .le-row select, .le-row button { cursor: auto; }
.le-row .le-grip { cursor: grab; touch-action: none; }
.le-row.is-dragging { z-index: 2; cursor: grabbing; border-color: var(--text-3); background: #2E2E2E;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); transition: none; }
.le-list.is-sorting { user-select: none; }
.le-list.is-sorting .le-row:not(.is-dragging) { transition: transform .15s ease; }

/* Symbol: Fläche mit kleinem Pfeil, die Auswahl liegt unsichtbar darüber */
.le-ico {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px;
  background: rgba(255, 255, 255, .07); color: var(--text); cursor: pointer; grid-row: span 2; align-self: start;
}
.le-ico [data-ico] { display: grid; place-items: center; }
.le-ico [data-ico] svg { width: 22px; height: 22px; }
.le-ico-chev { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--line-2); color: var(--text); }
.le-ico-chev svg { width: 12px; height: 12px; }
.le-ico select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.le-ico:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }
.le-ico:hover { background: rgba(255, 255, 255, .11); }

/* Titel groß, Adresse klein darunter – ohne Kästen, nur eine Linie beim Fokus */
.le-fields { display: grid; gap: 2px; min-width: 0; padding-right: 4px; }
.le-fields input {
  width: 100%; min-width: 0; margin: 0; padding: 4px 0; border: 0 !important; border-bottom: 1px solid transparent !important;
  border-radius: 0; background: transparent !important; box-shadow: none !important; color: var(--text); outline: none;
}
.le-fields input:focus { border-bottom-color: var(--line-2) !important; }
.le-fields input::placeholder { color: var(--text-3); }
.le-title { font: 600 16px/1.3 var(--f-text); }
.le-url { font: 400 14px/1.3 var(--f-text); color: var(--text-2) !important; }
.le-kind { justify-self: start; margin-top: 2px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-3); font: 500 12px/1.3 var(--f-text); }

/* Werkzeuge: kleine runde Knöpfe in einer Reihe unter dem Text */
.le-tools { grid-column: 2; display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.le-btn {
  display: grid; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0;
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text-3); cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.le-btn svg { width: 17px; height: 17px; }
.le-btn:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, .07); }
.le-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.le-btn:disabled { opacity: .3; cursor: default; }
.le-btn[aria-pressed="true"] { color: var(--text); border-color: var(--line-2); }
.le-btn-del { margin-left: auto; }
.le-btn-del:hover:not(:disabled) { color: #F28B82; background: rgba(242, 139, 130, .1); }
.le-tag { position: absolute; top: 12px; right: 12px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font: 500 12px/1.2 var(--f-text); }
.le-clicks { position: absolute; right: 54px; bottom: 19px; color: var(--text-3); font-size: 12.5px; }

/* style.css setzt für jedes label ein Raster mit Abstand: das Symbol bleibt mittig */
.le .le-ico { gap: 0; align-content: center; justify-content: center; font-size: 0; }
/* Viel Platz (Profil): Werkzeuge rechts neben Titel und Adresse statt darunter */
.le-list { container-type: inline-size; }
@container (min-width: 560px) {
  .le-row { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 12px 14px; }
  .le-ico { grid-row: auto; align-self: center; }
  .le-tools { grid-column: 3; grid-row: 1; margin-top: 0; }
  .le-btn-del { margin-left: 6px; }
  .le-tag { position: static; grid-column: 2; justify-self: start; margin-top: 4px; }
  .le-clicks { position: static; grid-column: 3; justify-self: end; margin-top: -2px; }
}

/* Hinzufügen: gestrichelte Fläche über die ganze Breite */
.le-add {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin: 0;
  border: 1px dashed var(--line-2); border-radius: 16px; background: transparent; color: var(--text-2);
  font: 600 15px/1 var(--f-text); cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.le-add span { font-size: 20px; font-weight: 400; line-height: 1; }
.le-add:hover:not(:disabled) { color: var(--text); border-color: var(--text-3); background: rgba(255, 255, 255, .03); }
.le-add:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.le-add:disabled { opacity: .4; cursor: default; }
.le .mk-actions .btn:not(.btn-ghost) { flex: 1 1 200px; justify-content: center; }

.le-count { display: grid; gap: 6px; margin: 0; color: var(--text-3); font-size: 12.5px; }
.le-meter { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.le-meter i { display: block; height: 100%; border-radius: 3px; background: var(--text-2); transition: width .2s ease; }
.le-meter.is-full i { background: #D9B25F; }
.le-full { color: #D9B25F; font-weight: 600; }
.le-count a { color: var(--text-2); }
.le-empty { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; color: var(--text-3); font-size: 14px; text-align: center; }
.le-empty[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { .le-row, .le-btn, .le-add, .le-meter i { transition: none; } }
