:root {
  color-scheme: dark;

  --bg: #070a12;
  --bg-secondary: #0b1020;

  --card: rgba(255, 255, 255, 0.065);
  --card-hover: rgba(255, 255, 255, 0.105);
  --border: rgba(255, 255, 255, 0.11);

  --text: #f8fafc;
  --muted: #94a3b8;

  --accent: #7dd3fc;

  --success: #4ade80;
  --danger: #f87171;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text);
  background: var(--bg);

  overflow-x: hidden;
}


/* =========================
   COZY HINTERGRUND
   ========================= */

.background {
  position: fixed;
  inset: 0;
  z-index: -3;

  overflow: hidden;

  background:
    linear-gradient(
      160deg,
      #060912 0%,
      #0a1020 45%,
      #0d0b19 100%
    );
}

.orb {
  position: absolute;

  border-radius: 50%;

  filter: blur(80px);
  opacity: 0.32;

  will-change: transform;
}

.orb-one {
  width: 520px;
  height: 520px;

  top: -180px;
  left: -120px;

  background: #2563eb;

  animation:
    drift-one
    20s
    ease-in-out
    infinite
    alternate;
}

.orb-two {
  width: 520px;
  height: 520px;

  right: -160px;
  bottom: -170px;

  background: #7c3aed;

  animation:
    drift-two
    24s
    ease-in-out
    infinite
    alternate;
}

.orb-three {
  width: 300px;
  height: 300px;

  left: 48%;
  top: 50%;

  background: #d97706;

  opacity: 0.11;

  animation:
    drift-three
    28s
    ease-in-out
    infinite
    alternate;
}

@keyframes drift-one {
  from {
    transform:
      translate(0, 0)
      scale(1);
  }

  to {
    transform:
      translate(80px, 60px)
      scale(1.12);
  }
}

@keyframes drift-two {
  from {
    transform:
      translate(0, 0)
      scale(1);
  }

  to {
    transform:
      translate(-90px, -70px)
      scale(1.08);
  }
}

@keyframes drift-three {
  from {
    transform:
      translate(-50%, -50%)
      scale(1);
  }

  to {
    transform:
      translate(-40%, -60%)
      scale(1.25);
  }
}

.particles {
  position: absolute;
  inset: 0;

  overflow: hidden;
}

.particle {
  position: absolute;

  width: 2px;
  height: 2px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.42);

  box-shadow:
    0 0 8px
    rgba(255, 255, 255, 0.25);

  animation:
    float-particle
    linear
    infinite;
}

@keyframes float-particle {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  15% {
    opacity: 0.5;
  }

  85% {
    opacity: 0.35;
  }

  to {
    transform: translateY(-120px);
    opacity: 0;
  }
}

.background-grid {
  position: absolute;
  inset: 0;

  opacity: 0.16;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );

  background-size: 42px 42px;

  mask-image:
    linear-gradient(
      to bottom,
      black,
      transparent 85%
    );
}


/* =========================
   ALLGEMEIN
   ========================= */

.page {
  width:
    min(
      1100px,
      calc(100% - 32px)
    );

  margin: 0 auto;

  padding:
    52px
    0
    48px;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}


/* =========================
   TOPBAR
   ========================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 58px;
}

.brand {
  color: #cbd5e1;

  font-size: 0.92rem;
  font-weight: 650;

  letter-spacing: -0.02em;

  text-decoration: none;
}

.topbar-actions {
  display: flex;
  align-items: center;

  gap: 10px;
}

.user-menu {
  position: relative;
}

.user-state {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  padding:
    8px
    12px;

  border:
    1px solid
    var(--border);

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.045);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  color: #cbd5e1;

  font-size: 0.82rem;

  cursor: pointer;

  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.user-state:hover {
  background:
    rgba(255, 255, 255, 0.085);

  border-color:
    rgba(255, 255, 255, 0.2);
}

.user-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #94a3b8;

  box-shadow:
    0 0 12px
    rgba(148, 163, 184, 0.45);
}

.user-dropdown {
  position: absolute;

  top: calc(100% + 8px);
  right: 0;

  min-width: 160px;

  padding: 7px;

  border:
    1px solid
    var(--border);

  border-radius: 12px;

  background:
    rgba(12, 17, 31, 0.96);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow:
    0 16px 40px
    rgba(0, 0, 0, 0.35);

  z-index: 50;
}

.user-dropdown[hidden] {
  display: none;
}

.logout-button {
  width: 100%;

  padding:
    10px
    12px;

  border: 0;
  border-radius: 8px;

  background: transparent;

  color: #fca5a5;

  text-align: left;

  cursor: pointer;

  transition:
    background 160ms ease;
}

.logout-button:hover {
  background:
    rgba(255, 255, 255, 0.07);
}

.settings-button {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  border:
    1px solid
    var(--border);

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.045);

  color: #cbd5e1;

  text-decoration: none;

  font-size: 1.1rem;

  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.settings-button:hover {
  transform: rotate(20deg);

  background:
    rgba(255, 255, 255, 0.1);

  border-color:
    rgba(255, 255, 255, 0.22);
}

.settings-button[hidden] {
  display: none;
}


/* =========================
   HERO
   ========================= */

.hero {
  margin-bottom: 54px;
}

.badge {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  padding:
    7px
    11px;

  margin-bottom: 20px;

  border:
    1px solid
    var(--border);

  border-radius: 999px;

  color: #cbd5e1;

  background:
    rgba(255, 255, 255, 0.045);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  font-size: 0.82rem;
}

.online-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--success);

  box-shadow:
    0 0 14px
    rgba(74, 222, 128, 0.85);
}

.greeting {
  margin:
    0
    0
    12px;

  color: #a5b4fc;

  font-size:
    clamp(
      1rem,
      2vw,
      1.18rem
    );

  font-weight: 550;
}

.hero h1 {
  margin: 0;

  font-size:
    clamp(
      3.2rem,
      8vw,
      6rem
    );

  letter-spacing: -0.055em;

  line-height: 0.95;

  background:
    linear-gradient(
      110deg,
      #ffffff 10%,
      #bae6fd 48%,
      #c4b5fd 90%
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.intro {
  max-width: 650px;

  margin-top: 22px;

  color: var(--muted);

  font-size:
    clamp(
      1rem,
      2vw,
      1.18rem
    );

  line-height: 1.7;
}


/* =========================
   DIENSTE
   ========================= */

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 18px;
}

.section-title {
  margin: 0;

  font-size: 1.15rem;
  font-weight: 650;
}

.clock {
  color: var(--muted);

  font-size: 0.9rem;

  font-variant-numeric:
    tabular-nums;
}

.grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 16px;
}

.service {
  position: relative;

  min-height: 165px;

  padding: 24px;

  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius: 22px;

  background: var(--card);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow: var(--shadow);

  text-decoration: none;

  color: inherit;

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.service::after {
  content: "";

  position: absolute;

  width: 150px;
  height: 150px;

  top: -80px;
  right: -60px;

  border-radius: 50%;

  background:
    var(
      --glow,
      rgba(125, 211, 252, 0.18)
    );

  filter: blur(8px);

  transition:
    transform 250ms ease;
}

.service:hover {
  transform: translateY(-4px);

  border-color:
    rgba(255, 255, 255, 0.23);

  background:
    var(--card-hover);
}

.service:hover::after {
  transform: scale(1.18);
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: start;

  gap: 16px;
}

.icon {
  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  border-radius: 14px;

  background:
    rgba(255, 255, 255, 0.08);

  border:
    1px solid
    rgba(255, 255, 255, 0.09);

  font-size: 1.45rem;
}

.arrow {
  color: #64748b;

  font-size: 1.2rem;

  transition:
    transform 180ms ease,
    color 180ms ease;
}

.service:hover .arrow {
  transform:
    translate(3px, -3px);

  color: white;
}

.service h2 {
  margin:
    24px
    0
    6px;

  font-size: 1.18rem;

  letter-spacing: -0.02em;
}

.service p {
  margin: 0;

  color: var(--muted);

  line-height: 1.5;

  font-size: 0.92rem;
}


/* =========================
   LOGIN / FORMULARE
   ========================= */

.center-page {
  min-height: 100vh;

  display: grid;
  place-items: center;

  padding: 16px;
}

.form-card {
  width:
    min(
      420px,
      100%
    );

  padding: 32px;

  border:
    1px solid
    var(--border);

  border-radius: 22px;

  background: var(--card);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow: var(--shadow);
}

.form-card h1 {
  margin:
    0
    0
    8px;

  font-size: 2rem;
}

.form-subtitle {
  margin:
    0
    0
    26px;

  color: var(--muted);
}

.form-group {
  margin-top: 18px;
}

.form-group label {
  display: block;

  margin-bottom: 7px;

  color: #cbd5e1;

  font-size: 0.9rem;
}

.form-control {
  width: 100%;

  padding:
    12px
    14px;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 10px;

  outline: none;

  background:
    rgba(255, 255, 255, 0.07);

  color: white;

  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--accent);
}

.checkbox-row {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-top: 20px;

  color: #cbd5e1;

  font-size: 0.9rem;
}

.checkbox-row input {
  width: 17px;
  height: 17px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  padding: 13px;

  margin-top: 24px;

  border: 0;
  border-radius: 10px;

  background: #e2e8f0;
  color: #0f172a;

  font-size: 1rem;
  font-weight: 650;

  text-decoration: none;

  cursor: pointer;
}

.secondary-link {
  display: block;

  margin-top: 20px;

  text-align: center;

  color: var(--muted);

  text-decoration: none;

  font-size: 0.9rem;
}

.error-box {
  margin-bottom: 18px;

  padding:
    11px
    13px;

  border-radius: 10px;

  background:
    rgba(239, 68, 68, 0.12);

  border:
    1px solid
    rgba(239, 68, 68, 0.25);

  color: #fca5a5;

  font-size: 0.9rem;
}


/* =========================
   FOOTER
   ========================= */

footer {
  display: flex;
  justify-content: space-between;

  gap: 20px;

  margin-top: 42px;

  padding-top: 22px;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.08);

  color: #64748b;

  font-size: 0.82rem;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {
  .page {
    padding-top: 28px;
  }

  .topbar {
    margin-bottom: 44px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .service {
    min-height: 145px;
  }

  footer {
    flex-direction: column;
  }
}


/* =========================
   EINSTELLUNGEN
   ========================= */

.settings-hero {
  margin-bottom: 34px;
}

.settings-title {
  margin: 0;

  font-size:
    clamp(
      2.4rem,
      6vw,
      4.4rem
    );

  letter-spacing: -0.045em;
}

.settings-tabs {
  display: flex;
  gap: 8px;

  margin-bottom: 24px;

  padding: 5px;

  width: fit-content;

  border:
    1px solid
    var(--border);

  border-radius: 14px;

  background:
    rgba(255,255,255,0.04);
}

.settings-tab {
  padding:
    9px
    16px;

  border: 0;
  border-radius: 10px;

  background: transparent;
  color: var(--muted);

  cursor: pointer;

  font-weight: 600;

  transition:
    background 160ms ease,
    color 160ms ease;
}

.settings-tab:hover {
  color: white;
}

.settings-tab.active {
  background:
    rgba(255,255,255,0.1);

  color: white;
}

.settings-panel[hidden] {
  display: none;
}

.settings-panel {
  margin-top: 10px;
}

.settings-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  margin-bottom: 18px;
}

.settings-section-header h2 {
  margin:
    0
    0
    4px;

  font-size: 1.2rem;
}

.settings-section-header p {
  margin: 0;

  color: var(--muted);

  font-size: 0.9rem;
}

.settings-primary-button {
  flex-shrink: 0;

  padding:
    10px
    15px;

  border:
    1px solid
    rgba(255,255,255,0.12);

  border-radius: 10px;

  background:
    rgba(255,255,255,0.1);

  color: white;

  cursor: pointer;

  font-weight: 600;

  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.settings-primary-button:hover {
  background:
    rgba(255,255,255,0.16);

  border-color:
    rgba(255,255,255,0.22);
}

.settings-list {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.settings-service {
  display: grid;

  grid-template-columns:
    auto
    auto
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 16px;

  padding: 16px;

  border:
    1px solid
    var(--border);

  border-radius: 16px;

  background:
    rgba(255,255,255,0.05);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.settings-service:hover {
  background:
    rgba(255,255,255,0.075);

  border-color:
    rgba(255,255,255,0.18);
}

.drag-handle {
  padding:
    8px
    5px;

  color: #64748b;

  cursor: grab;

  user-select: none;

  font-size: 1.15rem;
}

.drag-handle:active {
  cursor: grabbing;
}

.settings-service-icon {
  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;

  border-radius: 12px;

  background:
    rgba(255,255,255,0.07);

  border:
    1px solid
    rgba(255,255,255,0.08);

  font-size: 1.3rem;
}

.settings-service-info {
  min-width: 0;
}

.settings-service-title {
  margin-bottom: 4px;

  font-size: 1rem;
  font-weight: 650;
}

.settings-service-description {
  margin-bottom: 5px;

  color: var(--muted);

  font-size: 0.87rem;
}

.settings-service-url {
  overflow: hidden;

  color: #64748b;

  font-size: 0.78rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-service-meta {
  display: flex;
  align-items: center;

  gap: 10px;
}

.visibility-badge {
  padding:
    5px
    8px;

  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 600;
}

.visibility-badge.public {
  color: #86efac;

  background:
    rgba(34,197,94,0.10);

  border:
    1px solid
    rgba(34,197,94,0.2);
}

.visibility-badge.private {
  color: #cbd5e1;

  background:
    rgba(148,163,184,0.08);

  border:
    1px solid
    rgba(148,163,184,0.14);
}

.settings-small-button {
  padding:
    7px
    10px;

  border:
    1px solid
    rgba(255,255,255,0.1);

  border-radius: 8px;

  background:
    rgba(255,255,255,0.055);

  color: #cbd5e1;

  cursor: pointer;

  font-size: 0.8rem;

  transition:
    background 160ms ease,
    color 160ms ease;
}

.settings-small-button:hover {
  background:
    rgba(255,255,255,0.1);

  color: white;
}

.settings-empty {
  padding: 30px;

  border:
    1px dashed
    rgba(255,255,255,0.12);

  border-radius: 16px;

  color: var(--muted);

  text-align: center;
}


/* =========================
   SETTINGS MOBILE
   ========================= */

@media (max-width: 700px) {

  .settings-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-primary-button {
    width: 100%;
  }

  .settings-service {
    grid-template-columns:
      auto
      auto
      minmax(0, 1fr);
  }

  .settings-service-meta {
    grid-column:
      2 / -1;

    justify-content:
      space-between;
  }

  .settings-service-url {
    max-width: 100%;
  }
}


/* =========================
   REDUZIERTE ANIMATIONEN
   ========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation: none !important;

    transition: none !important;
  }
}

.settings-service.dragging {
  opacity: 0.45;

  transform:
    scale(0.985);

  border-color:
    rgba(125, 211, 252, 0.35);
}

.settings-service[draggable="true"] {
  cursor: grab;
}

.settings-service[draggable="true"]:active {
  cursor: grabbing;
}

/* =========================
   MODAL
   ========================= */

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;

  z-index: 1000;

  display: grid;
  place-items: center;

  padding: 20px;

  overflow-y: auto;

  background:
    rgba(2, 6, 23, 0.72);

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width:
    min(
      620px,
      100%
    );

  max-height:
    calc(100vh - 40px);

  overflow-y: auto;

  padding: 26px;

  border:
    1px solid
    rgba(255,255,255,0.13);

  border-radius: 22px;

  background:
    rgba(12,17,31,0.97);

  box-shadow:
    0 30px 90px
    rgba(0,0,0,0.55);
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 6px;
}

.modal-header h2 {
  margin:
    0
    0
    5px;

  font-size: 1.35rem;
}

.modal-header p {
  margin: 0;

  color:
    var(--muted);

  font-size: 0.88rem;
}

.modal-close {
  display: grid;
  place-items: center;

  flex-shrink: 0;

  width: 38px;
  height: 38px;

  padding: 0;

  border:
    1px solid
    var(--border);

  border-radius: 50%;

  background:
    rgba(255,255,255,0.05);

  color: #cbd5e1;

  cursor: pointer;

  font-size: 1.45rem;
}

.modal-close:hover {
  background:
    rgba(255,255,255,0.1);

  color: white;
}

.modal-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0,1fr)
    );

  gap: 14px;
}

.settings-textarea {
  resize: vertical;

  min-height: 85px;
}

.settings-public-toggle {
  margin-top: 22px;

  padding:
    13px
    14px;

  border:
    1px solid
    var(--border);

  border-radius: 10px;

  background:
    rgba(255,255,255,0.035);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;

  gap: 10px;

  margin-top: 26px;
}

.modal-actions .settings-primary-button {
  min-width: 110px;
}

.modal-secondary-button {
  padding:
    10px
    15px;

  border:
    1px solid
    var(--border);

  border-radius: 10px;

  background:
    transparent;

  color: #cbd5e1;

  cursor: pointer;
}

.modal-secondary-button:hover {
  background:
    rgba(255,255,255,0.06);

  color: white;
}

.modal-danger-button {
  padding:
    10px
    15px;

  border:
    1px solid
    rgba(248, 113, 113, 0.35);

  border-radius: 10px;

  background:
    rgba(248, 113, 113, 0.08);

  color:
    #fca5a5;

  cursor: pointer;

  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.modal-danger-button:hover {
  background:
    rgba(248, 113, 113, 0.16);

  border-color:
    rgba(248, 113, 113, 0.55);

  color:
    #fecaca;
}

button:disabled {
  opacity: 0.55;
  cursor: default;
}

@media (max-width: 600px) {

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions button {
    width: 100%;
  }

}

/* =========================
   KACHEL-ZUGRIFF
   ========================= */

.service-access-section {
  margin-top: 24px;

  padding-top: 22px;

  border-top:
    1px solid
    rgba(255,255,255,0.08);
}

.service-access-section[hidden] {
  display: none;
}

.service-access-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-bottom: 13px;
}

.service-access-title {
  margin-bottom: 3px;

  font-size: 0.95rem;
  font-weight: 650;
}

.service-access-description {
  color: var(--muted);

  font-size: 0.8rem;
}

.add-user-access-button {
  display: grid;
  place-items: center;

  flex-shrink: 0;

  width: 36px;
  height: 36px;

  padding: 0;

  border:
    1px solid
    var(--border);

  border-radius: 50%;

  background:
    rgba(255,255,255,0.06);

  color: white;

  cursor: pointer;

  font-size: 1.25rem;
}

.add-user-access-button:hover {
  background:
    rgba(255,255,255,0.12);
}

.assigned-users {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;
}

.assigned-user-chip {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  padding:
    6px
    7px
    6px
    10px;

  border:
    1px solid
    rgba(255,255,255,0.11);

  border-radius: 999px;

  background:
    rgba(255,255,255,0.065);

  color: #e2e8f0;

  font-size: 0.82rem;
}

.assigned-user-chip button {
  display: grid;
  place-items: center;

  width: 20px;
  height: 20px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background:
    rgba(255,255,255,0.07);

  color: #94a3b8;

  cursor: pointer;
}

.assigned-user-chip button:hover {
  background:
    rgba(248,113,113,0.15);

  color: #fca5a5;
}

.no-assigned-users {
  color: #64748b;

  font-size: 0.82rem;
}

.user-picker {
  margin-top: 12px;

  padding: 10px;

  border:
    1px solid
    var(--border);

  border-radius: 12px;

  background:
    rgba(3,7,18,0.5);
}

.user-picker[hidden] {
  display: none;
}

.user-picker-list {
  display: flex;
  flex-direction: column;

  gap: 4px;

  max-height: 210px;

  margin-top: 8px;

  overflow-y: auto;
}

.user-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  width: 100%;

  padding:
    9px
    10px;

  border: 0;
  border-radius: 8px;

  background: transparent;

  color: white;

  text-align: left;

  cursor: pointer;
}

.user-picker-item:hover {
  background:
    rgba(255,255,255,0.07);
}

.user-picker-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.user-picker-username {
  color: #64748b;

  font-size: 0.76rem;
}

.user-picker-empty {
  padding: 12px;

  color: #64748b;

  text-align: center;

  font-size: 0.82rem;
}

.user-picker-empty {
  padding: 12px;

  color: #64748b;

  text-align: center;

  font-size: 0.82rem;
}

/* =========================
   SELECT / DROPDOWN
   ========================= */

select.form-control {
  appearance: none;
  -webkit-appearance: none;

  color-scheme: dark;

  cursor: pointer;

  padding-right: 44px;

  background-color:
    rgba(255, 255, 255, 0.07);

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  background-repeat: no-repeat;

  background-position:
    right 14px center;

  background-size:
    14px;
}

select.form-control:hover {
  background-color:
    rgba(255, 255, 255, 0.10);

  border-color:
    rgba(255, 255, 255, 0.20);
}

select.form-control:focus {
  background-color:
    rgba(255, 255, 255, 0.10);

  border-color:
    var(--accent);
}

select.form-control option {
  background-color:
    #111827;

  color:
    #f8fafc;
}

/* =========================
   BENUTZERVERWALTUNG
   ========================= */

.user-setup-result {
  margin-top: 20px;
  padding: 16px;

  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  border-radius: 12px;

  background:
    rgba(255, 255, 255, 0.045);
}


.user-setup-result[hidden] {
  display: none;
}


.user-setup-link-row {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 12px;
}


.user-setup-link-row .form-control {
  flex: 1;
  min-width: 0;
}


.user-setup-link-row .modal-secondary-button {
  flex-shrink: 0;
}


.form-control[readonly] {
  background:
    rgba(255, 255, 255, 0.04);

  color:
    rgba(255, 255, 255, 0.72);

  cursor: default;
}


@media (max-width: 600px) {

  .user-setup-link-row {
    flex-direction: column;
    align-items: stretch;
  }


  .user-setup-link-row .modal-secondary-button {
    width: 100%;
  }

}

/* =========================
   BENUTZER – KACHELZUGRIFFE
   ========================= */

.user-service-access-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}


.user-service-access-item {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;

  background:
    rgba(255, 255, 255, 0.045);

  cursor: pointer;

  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}


.user-service-access-item:hover {
  background:
    rgba(255, 255, 255, 0.07);

  border-color:
    rgba(255, 255, 255, 0.16);

  transform:
    translateY(-1px);
}


.user-service-access-item input {
  width: 18px;
  height: 18px;

  flex-shrink: 0;

  accent-color:
    #38bdf8;

  cursor: pointer;
}


.user-service-access-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  flex-shrink: 0;

  border-radius: 9px;

  background:
    rgba(255, 255, 255, 0.06);

  font-size: 1.05rem;
}


.user-service-access-name {
  flex: 1;

  color:
    rgba(255, 255, 255, 0.92);

  font-weight: 500;
}


.user-service-access-item:has(input:checked) {
  border-color:
    rgba(56, 189, 248, 0.32);

  background:
    rgba(56, 189, 248, 0.08);
}