:root {
  --primary: #A03B44;           /* Icy Crimson Metallic */
  --primary-light: #C8D6E5;     /* Icy Silver */
  --primary-dark: #4A6FA5;      /* Frosted Steel Blue */
  --accent: #C8D6E5;            /* Icy Silver als Akzent */
  --background: #2F2F2F;        /* Anthracite */
  --background-glass: rgba(47, 47, 47, 0.85);
  --foreground: #E6F0F3;        /* Frost White (Licht & Nebel) */
  --muted: #C8D6E5;             /* Icy Silver */
  --box-bg: rgba(20, 77, 59, 0.28); /* Deep Evergreen Metallic transparent */
  --box-radius: 14px;
  --shadow: 0 4px 24px rgba(20, 77, 59, 0.18); /* Deep Evergreen Metallic Schatten */
  --transition: 0.3s ease;
  --font-family: 'Segoe UI', Arial, sans-serif;
}

/* Profil-Box mit Neon-Rahmen */
.profile-box.neo-box {
  position: relative;
  max-width: 700px;
  margin: 32px auto;
  background: linear-gradient(135deg, rgb(47 47 47 / 65%) 60%, rgba(160, 59, 68, 0.18) 100%);
  border-radius: var(--box-radius);
  box-shadow:
    0 4px 24px 0 rgba(20,77,59,0.18),
    0 0 0 1.5px rgba(200,214,229,0.12) inset,
    0 1.5px 24px 0 rgba(160,59,68,0.10) inset;
  color: var(--foreground);
  font-family: var(--font-family);
  user-select: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(12px) saturate(1.2);
  z-index: 1;
  transition: box-shadow var(--transition), transform var(--transition);
}

/* Hover-Effekt */
.profile-box.neo-box:hover {
  transform: translateY(-6px);
  box-shadow:
    0 8px 30px rgba(20,77,59,0.3),
    0 0 0 2px rgba(200,214,229,0.2) inset,
    0 3px 36px 0 rgba(160,59,68,0.15) inset;
}

/* Neon-Rahmen: vier animierte Linien mit Pseudo-Elementen */
.profile-box.neo-box::before,
.profile-box.neo-box::after,
.profile-box.neo-box > .neon-left,
.profile-box.neo-box > .neon-right {
  position: absolute;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light), var(--primary));
  border-radius: 2px;
  filter: blur(1.5px) brightness(1.3);
  opacity: 0.85;
  animation: neon-move 3s linear infinite alternate;
  content: "";
  z-index: 2;
  pointer-events: none;
}

/* Oben */
.profile-box.neo-box::before {
  top: 0; left: 10%; right: 10%; height: 4px;
  animation-name: neon-move-horizontal;
}

/* Unten */
.profile-box.neo-box::after {
  bottom: 0; left: 10%; right: 10%; height: 4px;
  animation-name: neon-move-horizontal;
  animation-direction: reverse;
}

/* Links */
.profile-box.neo-box > .neon-left {
  top: 10%; bottom: 10%; left: 0; width: 4px;
  background: linear-gradient(180deg, var(--primary-dark), var(--primary-light), var(--primary));
  animation-name: neon-move-vertical;
}

/* Rechts */
.profile-box.neo-box > .neon-right {
  top: 10%; bottom: 10%; right: 0; width: 4px;
  background: linear-gradient(180deg, var(--primary-dark), var(--primary-light), var(--primary));
  animation-name: neon-move-vertical;
  animation-direction: reverse;
}

/* Animation horizontal */
@keyframes neon-move-horizontal {
  0% { left: 10%; right: 10%; }
  100% { left: 0; right: 0; }
}

/* Animation vertikal */
@keyframes neon-move-vertical {
  0% { top: 10%; bottom: 10%; }
  100% { top: 0; bottom: 0; }
}

/* Header */
.profile-box.neo-box .box-header {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 180px;
  padding-bottom: 36px;
  background: linear-gradient(120deg, rgba(160,59,68,0.13) 0%, rgba(200,214,229,0.09) 100%);
  color: var(--primary-light);
  font-weight: 700;
  font-size: 1.3rem;
  text-shadow:
    0 0 8px rgba(200,214,229,0.5),
    0 2px 4px rgba(0,0,0,0.7);
  border-radius: var(--box-radius) var(--box-radius) 0 0;
  text-align: center;
  position: relative;
  z-index: 3;
  overflow: visible;
}

/* Header Icon mit Glow */
.profile-box.neo-box .box-header h2 i {
  font-size: 2.2rem;
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--primary-light));
  animation: icon-glow 2.5s ease-in-out infinite alternate;
}
@keyframes icon-glow {
  0% { filter: drop-shadow(0 0 8px var(--primary-light)); }
  100% { filter: drop-shadow(0 0 18px var(--primary)); }
}

/* Content */
.profile-box.neo-box .box-content {
  padding: 28px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  background: linear-gradient(120deg, rgba(200,214,229,0.07) 0%, rgba(47,47,47,0.92) 100%);
  border-radius: 0 0 var(--box-radius) var(--box-radius);
  box-shadow: 0 2px 12px 0 rgba(160,59,68,0.08) inset;
  position: relative;
  z-index: 2;
}

/* Avatar mit animiertem Glow-Ring */
.profile-avatar-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  overflow: hidden;
  box-shadow: 0 0 18px 2px var(--primary-light), 0 0 0 6px rgba(160,59,68,0.08);
  animation: avatar-glow 2.5s ease-in-out infinite alternate;
}
@keyframes avatar-glow {
  0% { box-shadow: 0 0 18px 2px var(--primary-light), 0 0 0 6px rgba(160,59,68,0.08);}
  100% { box-shadow: 0 0 32px 6px var(--primary), 0 0 0 12px rgba(160,59,68,0.13);}
}

.profile-avatar-container img.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 1.1rem;
}

.profile-info .profile-greeting {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  color: var(--accent);
  text-shadow: 0 0 6px var(--primary-light);
}

.profile-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-links ul li a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition), text-shadow 0.2s;
  text-shadow: 0 0 4px var(--primary-dark);
}

.profile-links ul li a:hover,
.profile-links ul li a:focus-visible {
  color: var(--accent);
  text-shadow: 0 0 8px var(--primary-light);
  outline: none;
}

.profile-login-prompt {
  font-size: 1.1rem;
  color: var(--primary-light);
}

.profile-login-prompt a {
  color: var(--accent);
  text-decoration: underline;
  transition: color var(--transition);
}

.profile-login-prompt a:hover,
.profile-login-prompt a:focus-visible {
  color: var(--primary-light);
  outline: none;
}

/* Footer als schwebender Layer */
.profile-box.neo-box .box-footer {
  min-height: 24px;
  background: linear-gradient(90deg, rgba(160,59,68,0.09) 0%, rgba(200,214,229,0.13) 100%);
  border-radius: 0 0 var(--box-radius) var(--box-radius);
  box-shadow: 0 -2px 12px 0 rgba(160,59,68,0.08) inset;
  z-index: 2;
}

/* Responsive */
@media (max-width: 480px) {
  .profile-box.neo-box {
    max-width: 95vw;
    margin: 18px auto;
  }
  .profile-box.neo-box .box-header {
    height: 120px;
    padding-bottom: 18px;
    font-size: 1.1rem;
  }
  .profile-box.neo-box .box-content {
    padding: 16px 6px 14px 6px;
  }
}